Explorar o código

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
Asutosh Mohapatra %!s(int64=2) %!d(string=hai) anos
pai
achega
de1e7e7e12
Modificáronse 2 ficheiros con 7 adicións e 1 borrados
  1. 6 0
      qdf/inc/qdf_types.h
  2. 1 1
      utils/logging/src/wlan_logging_sock_svc.c

+ 6 - 0
qdf/inc/qdf_types.h

@@ -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,
 };
 
 /**

+ 1 - 1
utils/logging/src/wlan_logging_sock_svc.c

@@ -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