Ver Fonte

qcacmn: Reduce the log level in direct buffer rx

Frequent log in direct buffer rx component will cause platform assert,
so lower the log level. Get wmi handler by psoc since since pdev
creation is in progress and it doesn't have related information yet.

Change-Id: Iaaf5a43642f9b6dfaf07ddd3f158abd346903a87
CRs-Fixed: 2495249
Wu Gao há 5 anos atrás
pai
commit
c86454bc00

+ 5 - 6
target_if/direct_buf_rx/src/target_if_direct_buf_rx_main.c

@@ -359,10 +359,9 @@ static QDF_STATUS target_if_dbr_replenish_ring(struct wlan_objmgr_pdev *pdev,
 	dw_lo = (uint64_t)paddr & 0xFFFFFFFF;
 	WMI_HOST_DBR_RING_ADDR_HI_SET(dw_hi, (uint64_t)paddr >> 32);
 	WMI_HOST_DBR_DATA_ADDR_HI_HOST_DATA_SET(dw_hi, cookie);
-	direct_buf_rx_info("Cookie = %d", cookie);
-	direct_buf_rx_info("dw_lo = %x dw_hi = %x", dw_lo, dw_hi);
 	*ring_entry = (uint64_t)dw_hi << 32 | dw_lo;
-	direct_buf_rx_info("Valid ring entry");
+	direct_buf_rx_debug("Valid ring entry, cookie %u, dw_lo %x, dw_hi :%x",
+			    cookie, dw_lo, dw_hi);
 	hal_srng_access_end(hal_soc, srng);
 
 	return QDF_STATUS_SUCCESS;
@@ -579,7 +578,7 @@ static QDF_STATUS target_if_dbr_cfg_tgt(struct wlan_objmgr_pdev *pdev,
 	dbr_ring_cfg = mod_param->dbr_ring_cfg;
 	dbr_ring_cap = mod_param->dbr_ring_cap;
 	dbr_config = &mod_param->dbr_config;
-	wmi_hdl = lmac_get_pdev_wmi_handle(pdev);
+	wmi_hdl = get_wmi_unified_hdl_from_psoc(psoc);
 	if (!wmi_hdl) {
 		direct_buf_rx_err("WMI handle null. Can't send WMI CMD");
 		return QDF_STATUS_E_INVAL;
@@ -1127,8 +1126,8 @@ QDF_STATUS target_if_deinit_dbr_ring(struct wlan_objmgr_pdev *pdev,
 		direct_buf_rx_err("dir buf rx module param is null");
 		return QDF_STATUS_E_FAILURE;
 	}
-	direct_buf_rx_info("mod_param %pK", mod_param);
-	direct_buf_rx_info("dbr_ring_cap %pK", mod_param->dbr_ring_cap);
+	direct_buf_rx_debug("mod_param %pK, dbr_ring_cap %pK",
+			    mod_param, mod_param->dbr_ring_cap);
 	target_if_dbr_deinit_srng(pdev, mod_param);
 	if (mod_param->dbr_ring_cap)
 		qdf_mem_free(mod_param->dbr_ring_cap);