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.

Change-Id: Idb21ccb4a34c9c94872798404912bdb743e9270b
CRs-Fixed: 3381229
This commit is contained in:
Asutosh Mohapatra
2023-01-16 16:42:05 +05:30
committed by Madan Koyyalamudi
parent 8cfe6b1005
commit de1e7e7e12
2 changed files with 7 additions and 1 deletions

View File

@@ -1558,6 +1558,9 @@ enum qdf_suspend_type {
* @QDF_TX_DESC_LEAK: tx desc leak
* @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,
@@ -1591,6 +1594,9 @@ enum qdf_hang_reason {
QDF_TX_DESC_LEAK,
QDF_HOST_WAKEUP_REASON_PAGEFAULT,
QDF_SCHED_TIMEOUT,
QDF_SELF_PEER_DEL_FAILED,
QDF_DEL_SELF_STA_FAILED,
QDF_FLUSH_LOGS,
};
/**

View File

@@ -797,7 +797,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