qcacld-3.0: add cdp ops for IPA Tx buf smmu_unmapping
Add cdp ops for IPA Tx buf SMMU-S1 unmapping and call unmap from ipa_uc_ol_deinit if IPA uc_loaded, also assert if mapping/unmapping failed. Change-Id: I79f293fcf5d6f02e3a01d6c8ff829f4ca87e76e8 CRs-Fixed: 2788811
This commit is contained in:

gecommit door
snandini

bovenliggende
35097f574b
commit
bbcf12c70d
@@ -617,8 +617,10 @@ static void wlan_ipa_pm_flush(void *data)
|
||||
|
||||
int wlan_ipa_uc_smmu_map(bool map, uint32_t num_buf, qdf_mem_info_t *buf_arr)
|
||||
{
|
||||
if (!ipa_is_ready())
|
||||
if (!ipa_is_ready()) {
|
||||
ipa_info("IPA is not READY");
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (!num_buf) {
|
||||
ipa_info("No buffers to map/unmap");
|
||||
@@ -3698,6 +3700,8 @@ QDF_STATUS wlan_ipa_uc_ol_deinit(struct wlan_ipa_priv *ipa_ctx)
|
||||
wlan_ipa_uc_disable_pipes(ipa_ctx, true);
|
||||
|
||||
if (true == ipa_ctx->uc_loaded) {
|
||||
cdp_ipa_tx_buf_smmu_unmapping(ipa_ctx->dp_soc,
|
||||
ipa_ctx->dp_pdev_id);
|
||||
status = cdp_ipa_cleanup(ipa_ctx->dp_soc,
|
||||
ipa_ctx->dp_pdev_id,
|
||||
ipa_ctx->tx_pipe_handle,
|
||||
|
Verwijs in nieuw issue
Block a user