From dfe4a17ade0ec1f181553295417e18c6b5a86241 Mon Sep 17 00:00:00 2001 From: Huicheng Liu Date: Mon, 2 Nov 2020 23:43:28 -0500 Subject: [PATCH] dsp: Set dma_mask to accept 64 bit dma address We do not set the dma_mask so by default it only accepts 32bit dma address. setting the dma_mask to DMA_BIT_MASK(64) makes it accept 64 bit dma address as well Change-Id: I3c5dc78e69432f261bee26bf9e0d8d097bc16d09 Signed-off-by: Huicheng Liu --- dsp/msm_audio_ion_vm.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dsp/msm_audio_ion_vm.c b/dsp/msm_audio_ion_vm.c index 40d11a0e285d..71b055853742 100644 --- a/dsp/msm_audio_ion_vm.c +++ b/dsp/msm_audio_ion_vm.c @@ -948,6 +948,11 @@ static int msm_audio_ion_probe(struct platform_device *pdev) dev_dbg(dev, "%s: SMMU is Disabled\n", __func__); goto exit; } + else { + rc = dma_set_mask(dev, DMA_BIT_MASK(64)); + dev_dbg(dev, "%s: dma_set_mask returned 0x%x\n", + __func__, rc); + } rc = habmm_socket_open(&msm_audio_ion_hab_handle, HAB_MMID_CREATE(MM_AUD_3,