فهرست منبع

qcacld-3.0: Runtime PM packets tagging after wow suspend

qcacld-2.0 to qcacld-3.0 propagation.

Don't Tag Non-WoW packets as Runtime PM packets after
wow suspend. Some WMI Commands can be send in Runtime
PM context and MC thread context. Packets coming via
MC Thread Context can be tagged as Runtime PM packets
when runtime pm in progress.

Packets should be tagged in the same caller context to
avoid any race condition. Being stability issue, addressing
this issue by not tagging any non-wow commands as runtime pm
after wow suspend. This will ensure all the non-wow packets
coming after wow_suspend flag is set as non runtime pm packets
and will trigger a runtime resume.

Git-commit: 4a396d80c5cc2ded75098c61426521b9b2762c17
Git-commit: 2ee4bf4791cc5db30ec03eceaf591367deffe39a

CRs-Fixed: 1106513
Change-Id: Ic83fedd645a86d48feecf54c407bb46a9afda24b
Sarada Prasanna Garnayak 8 سال پیش
والد
کامیت
c55b15b745
1فایلهای تغییر یافته به همراه2 افزوده شده و 3 حذف شده
  1. 2 3
      core/wma/src/wma_features.c

+ 2 - 3
core/wma/src/wma_features.c

@@ -3498,12 +3498,10 @@ int wma_pdev_resume_event_handler(void *handle, uint8_t *event, uint32_t len)
  */
 static inline void wma_set_wow_bus_suspend(tp_wma_handle wma, int val)
 {
-
 	qdf_atomic_set(&wma->is_wow_bus_suspended, val);
+	wmi_set_is_wow_bus_suspended(wma->wmi_handle, val);
 }
 
-
-
 /**
  * wma_add_wow_wakeup_event() -  Configures wow wakeup events.
  * @wma: wma handle
@@ -4740,6 +4738,7 @@ static QDF_STATUS wma_send_host_wakeup_ind_to_fw(tp_wma_handle wma)
 			 wmi_get_host_credits(wma->wmi_handle));
 		if (!cds_is_driver_recovering()) {
 			if (pMac->sme.enableSelfRecovery) {
+				wmi_tag_crash_inject(wma->wmi_handle, true);
 				cds_trigger_recovery(false);
 			} else {
 				QDF_BUG(0);