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:
Sravan Kumar Kairam
2018-02-27 18:37:40 +05:30
committed by nshrivas
parent 59c25048cd
commit 58e0adfb53
14 changed files with 157 additions and 87 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2016-2017 The Linux Foundation. All rights reserved.
* Copyright (c) 2016-2018 The Linux Foundation. All rights reserved.
*
* Previously licensed under the ISC license by Qualcomm Atheros, Inc.
*
@@ -299,14 +299,14 @@ void hif_dummy_dump_target_memory(struct hif_softc *hif_sc, void *ramdump_base,
/**
* hif_dummy_ipa_get_ce_resource - dummy call
* @scn: HIF context
* @sr_base_paddr: source base address
* @ce_sr: copyengine source ring resource info
* @sr_ring_size: source ring size
* @reg_paddr: bus physical address
*
* Return: None
*/
void hif_dummy_ipa_get_ce_resource(struct hif_softc *hif_sc,
qdf_dma_addr_t *sr_base_paddr,
qdf_shared_mem_t **ce_sr,
uint32_t *sr_ring_size,
qdf_dma_addr_t *reg_paddr)
{