summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHsiu-Chang Chen <hsiuchangchen@google.com>2023-01-16 16:42:05 +0530
committerHsiu-Chang Chen <hsiuchangchen@google.com>2023-03-20 10:07:09 +0800
commit80b70e7237d10ffa1b9264b19d8246346628b306 (patch)
tree5102b883e5cfbdeb958d7d2be8ddfc626eeede56
parent3db853186d71ed0258c07313675624c01cbe9b04 (diff)
downloadwlan-80b70e7237d10ffa1b9264b19d8246346628b306.tar.gz
qcacmn: Enhance hang reason code mappings
Currently many host hang reason codes are not mapped to corresponding userspace codes as a result these hang reason code will be invalid for userspace and also QDF_REASON_UNSPECIFIED is used in some places in host. To add mappings for host hang codes to corresponding to userspace hang codes and also add new hang codes. Bug: 267416490 Test: Regression test Change-Id: Idb21ccb4a34c9c94872798404912bdb743e9270b CRs-Fixed: 3381229 Signed-off-by: Hsiu-Chang Chen <hsiuchangchen@google.com>
-rw-r--r--qca-wifi-host-cmn/qdf/inc/qdf_types.h6
-rw-r--r--qca-wifi-host-cmn/utils/logging/src/wlan_logging_sock_svc.c4
2 files changed, 8 insertions, 2 deletions
diff --git a/qca-wifi-host-cmn/qdf/inc/qdf_types.h b/qca-wifi-host-cmn/qdf/inc/qdf_types.h
index ca34893..b33e040 100644
--- a/qca-wifi-host-cmn/qdf/inc/qdf_types.h
+++ b/qca-wifi-host-cmn/qdf/inc/qdf_types.h
@@ -1415,6 +1415,9 @@ enum qdf_suspend_type {
* @QDF_RSO_STOP_RSP_TIMEOUT: Firmware hasn't sent RSO stop response
* @QDF_HOST_WAKEUP_REASON_PAGEFAULT: Host wakeup because of pagefault
* @QDF_SCHED_TIMEOUT: Scheduler watchdog timedout
+ * @QDF_SELF_PEER_DEL_FAILED: Failed to send self peer deletion cmd to fw
+ * @QDF_DEL_SELF_STA_FAILED: Received del self sta without del bss
+ * @QDF_FLUSH_LOGS : Recovery needed when sending flush completion to userspace
*/
enum qdf_hang_reason {
QDF_REASON_UNSPECIFIED,
@@ -1449,6 +1452,9 @@ enum qdf_hang_reason {
QDF_RSO_STOP_RSP_TIMEOUT,
QDF_HOST_WAKEUP_REASON_PAGEFAULT,
QDF_SCHED_TIMEOUT,
+ QDF_SELF_PEER_DEL_FAILED,
+ QDF_DEL_SELF_STA_FAILED,
+ QDF_FLUSH_LOGS,
};
/**
diff --git a/qca-wifi-host-cmn/utils/logging/src/wlan_logging_sock_svc.c b/qca-wifi-host-cmn/utils/logging/src/wlan_logging_sock_svc.c
index 58f5782..741a763 100644
--- a/qca-wifi-host-cmn/utils/logging/src/wlan_logging_sock_svc.c
+++ b/qca-wifi-host-cmn/utils/logging/src/wlan_logging_sock_svc.c
@@ -1,6 +1,6 @@
/*
* Copyright (c) 2014-2021 The Linux Foundation. All rights reserved.
- * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
+ * Copyright (c) 2022-2023 Qualcomm Innovation Center, Inc. All rights reserved.
*
* Permission to use, copy, modify, and/or distribute this software for
* any purpose with or without fee is hereby granted, provided that the
@@ -777,7 +777,7 @@ static void send_flush_completion_to_user(uint8_t ring_id)
wlan_report_log_completion(is_fatal, indicator, reason_code, ring_id);
if (recovery_needed)
- cds_trigger_recovery(QDF_REASON_UNSPECIFIED);
+ cds_trigger_recovery(QDF_FLUSH_LOGS);
}
#endif