qcacmn: Add support for WLAN-IPA WDI2 with SMMU Stage 1
Update WLAN-IPA WDI-2 datapath for DMA buffer sharing with SMMU Stage 1 translation support. When SMMU Stage 1 is enabled DMA APIs return IO virtual address(IOVA) instead of physical address. This IOVA need to mapped to physical address by IPA module before accessing them. Change-Id: I33082bc74760b0f12c348238c6f48f5ce5750172 CRS-Fixed: 2072953
This commit is contained in:
@@ -945,17 +945,15 @@ void *htc_get_targetdef(HTC_HANDLE htc_handle)
|
||||
* Return: None
|
||||
*/
|
||||
void htc_ipa_get_ce_resource(HTC_HANDLE htc_handle,
|
||||
qdf_dma_addr_t *ce_sr_base_paddr,
|
||||
qdf_shared_mem_t **ce_sr,
|
||||
uint32_t *ce_sr_ring_size,
|
||||
qdf_dma_addr_t *ce_reg_paddr)
|
||||
{
|
||||
HTC_TARGET *target = GET_HTC_TARGET_FROM_HANDLE(htc_handle);
|
||||
|
||||
if (target->hif_dev != NULL) {
|
||||
if (target->hif_dev)
|
||||
hif_ipa_get_ce_resource(target->hif_dev,
|
||||
ce_sr_base_paddr,
|
||||
ce_sr_ring_size, ce_reg_paddr);
|
||||
}
|
||||
ce_sr, ce_sr_ring_size, ce_reg_paddr);
|
||||
}
|
||||
#endif /* IPA_OFFLOAD */
|
||||
|
||||
|
Reference in New Issue
Block a user