summaryrefslogtreecommitdiff
path: root/include/linux/i2c/git@git.tavy.me:linux.git
diff options
context:
space:
mode:
authorGaurav Batra <gbatra@linux.ibm.com>2025-11-07 10:11:05 -0600
committerMadhavan Srinivasan <maddy@linux.ibm.com>2026-01-07 09:33:55 +0530
commit1471c517cf7dae1a6342fb821d8ed501af956dd0 (patch)
tree8adae503ae559b9eb3fe6e6f5ffd86854621fe24 /include/linux/i2c/git@git.tavy.me:linux.git
parent20ab1d11265350a9ea3d315d6c70170b8198f329 (diff)
powerpc/iommu: bypass DMA APIs for coherent allocations for pre-mapped memory
Leverage ARCH_HAS_DMA_MAP_DIRECT config option for coherent allocations as well. This will bypass DMA ops for memory allocations that have been pre-mapped. Always set device bus_dma_limit when memory is pre-mapped. In some architectures, like PowerPC, pmemory can be converted to regular memory via daxctl command. This will gate the coherent allocations to pre-mapped RAM only, by dma_coherent_ok(). Signed-off-by: Gaurav Batra <gbatra@linux.ibm.com> Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com> Link: https://patch.msgid.link/20251107161105.85999-1-gbatra@linux.ibm.com
Diffstat (limited to 'include/linux/i2c/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions