dmaengine: qcom: reduce vmalloc memory size
SMMU stage 1 is in passthrough mode for GPI clients.
Reduce vmalloc memory to the minimum size when
creating the iommu mapping.
CRs-Fixed: 1970703
Change-Id: I6711c11b487d954af9da10f28f99fd26ad303def
Signed-off-by: Tony Truong <truong@codeaurora.org>
diff --git a/drivers/dma/qcom/gpi.c b/drivers/dma/qcom/gpi.c
index 6e6f28f..3cc035c 100644
--- a/drivers/dma/qcom/gpi.c
+++ b/drivers/dma/qcom/gpi.c
@@ -2564,7 +2564,7 @@ static void gpi_setup_debug(struct gpi_dev *gpi_dev)
static int gpi_smmu_init(struct gpi_dev *gpi_dev)
{
- u64 size = U64_MAX;
+ u64 size = PAGE_SIZE;
dma_addr_t base = 0x0;
struct dma_iommu_mapping *map;
int attr, ret;