Prechádzať zdrojové kódy

cnss2: Add 3 more log buffer regions to ssr driver logs

Add support to include hif_ce_desc_history, hif_ce_desc_history_buff,
and hang_event_data log buffer regions in ssr host dump collection.

Change-Id: I650b94973b8b12cb546a1bc2d121ee319a182767
CRs-Fixed: 3455747
Alan Chen 2 rokov pred
rodič
commit
7793f64f52
2 zmenil súbory, kde vykonal 7 pridanie a 9 odobranie
  1. 4 5
      cnss2/main.c
  2. 3 4
      inc/cnss2.h

+ 4 - 5
cnss2/main.c

@@ -3140,10 +3140,6 @@ int cnss_do_host_ramdump(struct cnss_plat_data *plat_priv,
 		[CNSS_HOST_WMI_EVENT_LOG] = "wmi_event_log",
 		[CNSS_HOST_WMI_RX_EVENT] = "wmi_rx_event",
 		[CNSS_HOST_HAL_SOC] = "hal_soc",
-		[CNSS_HOST_WMI_HANG_DATA] = "wmi_hang_data",
-		[CNSS_HOST_CE_HANG_EVT] = "ce_hang_evt",
-		[CNSS_HOST_PEER_MAC_ADDR_HANG_DATA] = "peer_mac_addr_hang_data",
-		[CNSS_HOST_CP_VDEV_INFO] = "cp_vdev_info",
 		[CNSS_HOST_GWLAN_LOGGING] = "gwlan_logging",
 		[CNSS_HOST_WMI_DEBUG_LOG_INFO] = "wmi_debug_log_info",
 		[CNSS_HOST_HTC_CREDIT_IDX] = "htc_credit_history_idx",
@@ -3151,7 +3147,10 @@ int cnss_do_host_ramdump(struct cnss_plat_data *plat_priv,
 		[CNSS_HOST_WMI_TX_CMP_IDX] = "wmi_tx_cmp_idx",
 		[CNSS_HOST_WMI_COMMAND_LOG_IDX] = "wmi_command_log_idx",
 		[CNSS_HOST_WMI_EVENT_LOG_IDX] = "wmi_event_log_idx",
-		[CNSS_HOST_WMI_RX_EVENT_IDX] = "wmi_rx_event_idx"
+		[CNSS_HOST_WMI_RX_EVENT_IDX] = "wmi_rx_event_idx",
+		[CNSS_HOST_HIF_CE_DESC_HISTORY] = "hif_ce_desc_history",
+		[CNSS_HOST_HIF_CE_DESC_HISTORY_BUFF] = "hif_ce_desc_history_buff",
+		[CNSS_HOST_HANG_EVENT_DATA] = "hang_event_data"
 	};
 	int i;
 	int ret = 0;

+ 3 - 4
inc/cnss2.h

@@ -96,10 +96,6 @@ enum cnss_host_dump_type {
 	CNSS_HOST_WMI_EVENT_LOG,
 	CNSS_HOST_WMI_RX_EVENT,
 	CNSS_HOST_HAL_SOC,
-	CNSS_HOST_WMI_HANG_DATA,
-	CNSS_HOST_CE_HANG_EVT,
-	CNSS_HOST_PEER_MAC_ADDR_HANG_DATA,
-	CNSS_HOST_CP_VDEV_INFO,
 	CNSS_HOST_GWLAN_LOGGING,
 	CNSS_HOST_WMI_DEBUG_LOG_INFO,
 	CNSS_HOST_HTC_CREDIT_IDX,
@@ -108,6 +104,9 @@ enum cnss_host_dump_type {
 	CNSS_HOST_WMI_COMMAND_LOG_IDX,
 	CNSS_HOST_WMI_EVENT_LOG_IDX,
 	CNSS_HOST_WMI_RX_EVENT_IDX,
+	CNSS_HOST_HIF_CE_DESC_HISTORY,
+	CNSS_HOST_HIF_CE_DESC_HISTORY_BUFF,
+	CNSS_HOST_HANG_EVENT_DATA,
 	CNSS_HOST_DUMP_TYPE_MAX,
 };