Ver código fonte

qcacmn: Debug framework for SMMU buffer tracker

To support SMMU debug framework for IPA offload, change the
caller IPA component where SMMU map and unmap are done.

CRs-Fixed: 3255423
Change-Id: I5276c0b41c8e315940e8d4f5d3082d45b08b571b
Devender Kumar 2 anos atrás
pai
commit
1c3e98b8f0
1 arquivos alterados com 6 adições e 3 exclusões
  1. 6 3
      ipa/core/src/wlan_ipa_core.c

+ 6 - 3
ipa/core/src/wlan_ipa_core.c

@@ -4203,7 +4203,8 @@ static void wlan_ipa_uc_loaded_handler(struct wlan_ipa_priv *ipa_ctx)
 	}
 	/* Setup the Tx buffer SMMU mapings */
 	status = cdp_ipa_tx_buf_smmu_mapping(ipa_ctx->dp_soc,
-					     ipa_ctx->dp_pdev_id);
+					     ipa_ctx->dp_pdev_id,
+					     __func__, __LINE__);
 	if (status) {
 		ipa_err("Failure to map Tx buffers for IPA(status=%d)",
 			status);
@@ -4486,7 +4487,8 @@ QDF_STATUS wlan_ipa_uc_ol_init(struct wlan_ipa_priv *ipa_ctx,
 
 		/* Setup the Tx buffer SMMU mapings */
 		status = cdp_ipa_tx_buf_smmu_mapping(ipa_ctx->dp_soc,
-						     ipa_ctx->dp_pdev_id);
+						     ipa_ctx->dp_pdev_id,
+						     __func__, __LINE__);
 		if (status) {
 			ipa_err("Failure to map Tx buffers for IPA(status=%d)",
 				status);
@@ -4549,7 +4551,8 @@ QDF_STATUS wlan_ipa_uc_ol_deinit(struct wlan_ipa_priv *ipa_ctx)
 
 	if (true == ipa_ctx->uc_loaded) {
 		cdp_ipa_tx_buf_smmu_unmapping(ipa_ctx->dp_soc,
-					      ipa_ctx->dp_pdev_id);
+					      ipa_ctx->dp_pdev_id,
+					      __func__, __LINE__);
 		status = cdp_ipa_cleanup(ipa_ctx->dp_soc,
 					 ipa_ctx->dp_pdev_id,
 					 ipa_ctx->tx_pipe_handle,