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:

committed by
Madan Koyyalamudi

parent
8cfe6b1005
commit
de1e7e7e12
@@ -1558,6 +1558,9 @@ enum qdf_suspend_type {
|
|||||||
* @QDF_TX_DESC_LEAK: tx desc leak
|
* @QDF_TX_DESC_LEAK: tx desc leak
|
||||||
* @QDF_HOST_WAKEUP_REASON_PAGEFAULT: Host wakeup because of pagefault
|
* @QDF_HOST_WAKEUP_REASON_PAGEFAULT: Host wakeup because of pagefault
|
||||||
* @QDF_SCHED_TIMEOUT: Scheduler watchdog timedout
|
* @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 {
|
enum qdf_hang_reason {
|
||||||
QDF_REASON_UNSPECIFIED,
|
QDF_REASON_UNSPECIFIED,
|
||||||
@@ -1591,6 +1594,9 @@ enum qdf_hang_reason {
|
|||||||
QDF_TX_DESC_LEAK,
|
QDF_TX_DESC_LEAK,
|
||||||
QDF_HOST_WAKEUP_REASON_PAGEFAULT,
|
QDF_HOST_WAKEUP_REASON_PAGEFAULT,
|
||||||
QDF_SCHED_TIMEOUT,
|
QDF_SCHED_TIMEOUT,
|
||||||
|
QDF_SELF_PEER_DEL_FAILED,
|
||||||
|
QDF_DEL_SELF_STA_FAILED,
|
||||||
|
QDF_FLUSH_LOGS,
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -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);
|
wlan_report_log_completion(is_fatal, indicator, reason_code, ring_id);
|
||||||
|
|
||||||
if (recovery_needed)
|
if (recovery_needed)
|
||||||
cds_trigger_recovery(QDF_REASON_UNSPECIFIED);
|
cds_trigger_recovery(QDF_FLUSH_LOGS);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user