summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorAlexey Kardashevskiy <aik@ozlabs.ru>2020-10-29 02:52:40 +0100
committerChristoph Hellwig <hch@lst.de>2020-11-27 10:33:40 +0100
commit8d8d53cf8fd028310b1189165b939cde124895d7 (patch)
treef1aab854df1f06f0604eb240adf21937c5bc6bc6 /usr
parentLinux 5.10-rc5 (diff)
downloadlinux-8d8d53cf8fd028310b1189165b939cde124895d7.tar.xz
linux-8d8d53cf8fd028310b1189165b939cde124895d7.zip
dma-mapping: Allow mixing bypass and mapped DMA operation
At the moment we allow bypassing DMA ops only when we can do this for the entire RAM. However there are configs with mixed type memory where we could still allow bypassing IOMMU in most cases; POWERPC with persistent memory is one example. This adds an arch hook to determine where bypass can still work and we invoke direct DMA API. The following patch checks the bus limit on POWERPC to allow or disallow direct mapping. This adds a ARCH_HAS_DMA_MAP_DIRECT config option to make the arch_xxxx hooks no-op by default. Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru> Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'usr')
0 files changed, 0 insertions, 0 deletions