diff options
author | Harini Katakam <harini.katakam@amd.com> | 2023-03-16 15:03:18 +0530 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2023-03-31 17:54:02 +0530 |
commit | e9f92b9999055110249dacdc5f1a6dfda2a155f6 (patch) | |
tree | f61a7ebb69041522fd5e6d50f0a04e2641acf0c1 /drivers | |
parent | a747051efa16d4304aacaf44fa0771667e28ca54 (diff) | |
download | linux-stable-e9f92b9999055110249dacdc5f1a6dfda2a155f6.tar.gz linux-stable-e9f92b9999055110249dacdc5f1a6dfda2a155f6.tar.bz2 linux-stable-e9f92b9999055110249dacdc5f1a6dfda2a155f6.zip |
dmaengine: zynqmp_dma: Sync DMA and coherent masks
Align ZDMA DMA as well as coherent memory masks to 44 bit. This is
required when using >32 bit memory regions.
Signed-off-by: Harini Katakam <harini.katakam@amd.com>
Acked-by: Michal Simek <michal.simek@amd.com>
Link: https://lore.kernel.org/r/20230316093318.6722-1-harini.katakam@amd.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/dma/xilinx/zynqmp_dma.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/dma/xilinx/zynqmp_dma.c b/drivers/dma/xilinx/zynqmp_dma.c index ce359058c638..9360f43b8e0f 100644 --- a/drivers/dma/xilinx/zynqmp_dma.c +++ b/drivers/dma/xilinx/zynqmp_dma.c @@ -1060,7 +1060,11 @@ static int zynqmp_dma_probe(struct platform_device *pdev) zdev->dev = &pdev->dev; INIT_LIST_HEAD(&zdev->common.channels); - dma_set_mask(&pdev->dev, DMA_BIT_MASK(44)); + ret = dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(44)); + if (ret) { + dev_err(&pdev->dev, "DMA not available for address range\n"); + return ret; + } dma_cap_set(DMA_MEMCPY, zdev->common.cap_mask); p = &zdev->common; |