Parcourir la source

qcacmn: Fix smmu fault for IPA TX buffer unmapped

It's regression of change: qcacmn: Fix smmu fault for tx buffer unmapped.
Only 1 tx buffer is smmu mapped for IPA with it.
During STA-SAP tethering, when IPA access 2nd tx buffer, smmu fault
happens.

Remove qdf_assert_always since it already exists in
__dp_ipa_handle_buf_smmu_mapping.

Change-Id: Ife8ed17d85a8bcfc507c312001af4b905c9b3a27
CRs-Fixed: 2937435
Jianmin Zhu il y a 4 ans
Parent
commit
2c9dd68894
1 fichiers modifiés avec 2 ajouts et 3 suppressions
  1. 2 3
      dp/wifi3.0/dp_ipa.c

+ 2 - 3
dp/wifi3.0/dp_ipa.c

@@ -195,8 +195,8 @@ static QDF_STATUS __dp_ipa_tx_buf_smmu_mapping(
 		if (!nbuf)
 		if (!nbuf)
 			continue;
 			continue;
 		buf_len = qdf_nbuf_get_data_len(nbuf);
 		buf_len = qdf_nbuf_get_data_len(nbuf);
-		return __dp_ipa_handle_buf_smmu_mapping(
-				soc, nbuf, buf_len, create);
+		ret = __dp_ipa_handle_buf_smmu_mapping(soc, nbuf, buf_len,
+						       create);
 	}
 	}
 
 
 	return ret;
 	return ret;
@@ -682,7 +682,6 @@ static QDF_STATUS dp_ipa_tx_alt_buf_smmu_mapping(struct dp_soc *soc,
 		buf_len = qdf_nbuf_get_data_len(nbuf);
 		buf_len = qdf_nbuf_get_data_len(nbuf);
 		ret = __dp_ipa_handle_buf_smmu_mapping(
 		ret = __dp_ipa_handle_buf_smmu_mapping(
 				soc, nbuf, buf_len, create);
 				soc, nbuf, buf_len, create);
-		qdf_assert_always(!ret);
 	}
 	}
 
 
 	return ret;
 	return ret;