Skip to content

Commit dc31234

Browse files
geertuVinod Koul
authored andcommitted
dmaengine: rcar-dmac: Widen DMA mask to 40 bits
By default, the DMA mask covers only the low 32-bit address space, which causes SWIOTLB on arm64 to fall back to a bounce buffer for DMA transfers involving memory outside the 32-bit address space. The R-Car DMA controller hardware supports a 40-bit address space, hence widen the DMA mask to 40 bits to actually make use of this feature. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
1 parent c429ceb commit dc31234

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎drivers/dma/sh/rcar-dmac.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1716,6 +1716,7 @@ static int rcar_dmac_probe(struct platform_device *pdev)
17161716

17171717
dmac->dev = &pdev->dev;
17181718
platform_set_drvdata(pdev, dmac);
1719+
dma_set_mask_and_coherent(dmac->dev, DMA_BIT_MASK(40));
17191720

17201721
ret = rcar_dmac_parse_of(&pdev->dev, dmac);
17211722
if (ret < 0)

0 commit comments

Comments
 (0)