Forráskód Böngészése

qcacld-3.0: dump ce event history upon fw hang event receive

Dump the CE event history and hp/tp values for CE2 and CE3
when FW hang event received.

Change-Id: I79dd857878a43dedc104cbd3b10578041ce3fb1a
CRs-Fixed: 3587934
Venkateswara Naralasetty 1 éve
szülő
commit
d780947743
1 módosított fájl, 7 hozzáadás és 0 törlés
  1. 7 0
      core/hdd/src/wlan_hdd_driver_ops.c

+ 7 - 0
core/hdd/src/wlan_hdd_driver_ops.c

@@ -2182,6 +2182,7 @@ static void
 wlan_hdd_pld_uevent(struct device *dev, struct pld_uevent_data *event_data)
 {
 	struct qdf_notifer_data hang_evt_data;
+	void *hif_ctx = cds_get_context(QDF_MODULE_ID_HIF);
 	enum qdf_hang_reason reason = QDF_REASON_UNSPECIFIED;
 	uint8_t bus_type;
 
@@ -2225,6 +2226,12 @@ wlan_hdd_pld_uevent(struct device *dev, struct pld_uevent_data *event_data)
 	case PLD_FW_HANG_EVENT:
 		hdd_info("Received firmware hang event");
 		cds_get_recovery_reason(&reason);
+
+		if ((reason == QDF_REASON_UNSPECIFIED) && hif_ctx) {
+			hif_display_ctrl_traffic_pipes_state(hif_ctx);
+			hif_display_latest_desc_hist(hif_ctx);
+		}
+
 		qdf_mem_zero(&g_fw_host_hang_event, QDF_HANG_EVENT_DATA_SIZE);
 		hang_evt_data.hang_data = g_fw_host_hang_event;
 		hang_evt_data.offset = 0;