]> git.baikalelectronics.ru Git - kernel.git/commit
dmaengine: sun6i: Add support for 34-bit physical addresses
authorSamuel Holland <samuel@sholland.org>
Sun, 24 Apr 2022 17:27:57 +0000 (12:27 -0500)
committerVinod Koul <vkoul@kernel.org>
Thu, 19 May 2022 18:13:41 +0000 (23:43 +0530)
commit6913824e3c964f9fe7d7cdf59e645da54d9d32b5
tree9da68524181eb5f5f2c03d87aa577361a3d0a960
parent6e101f2b344e5deb1f19955aa4a6c8b50382a070
dmaengine: sun6i: Add support for 34-bit physical addresses

Recent Allwinner SoCs support >4 GiB of DRAM, so those variants of the
DMA engine support >32 bit physical addresses. This is accomplished by
placing the high bits in the "para" word in the DMA descriptor.

DMA descriptors themselves can be located at >32 bit addresses by
putting the high bits in the LSBs of the descriptor address register,
taking advantage of the required DMA descriptor alignment. However,
support for this is not really necessary, so we can avoid the
complication by allocating them from the DMA_32 zone.

Signed-off-by: Samuel Holland <samuel@sholland.org>
Acked-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Link: https://lore.kernel.org/r/20220424172759.33383-4-samuel@sholland.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/sun6i-dma.c