2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2025-01-11 07:04:04 +08:00
linux-next/arch
Christoph Hellwig 58b0440663 dma-mapping: consolidate the dma mmap implementations
The only functional differences (modulo a few missing fixes in the arch
code) is that architectures without coherent caches need a hook to
convert a virtual or dma address into a pfn, given that we don't have
the kernel linear mapping available for the otherwise easy virt_to_page
call.  As a side effect we can support mmap of the per-device coherent
area even on architectures not providing the callback, and we make
previous dangerous default methods dma_common_mmap actually save for
non-coherent architectures by rejecting it without the right helper.

In addition to that we need a hook so that some architectures can
override the protection bits when mmaping a dma coherent allocations.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Paul Burton <paul.burton@mips.com> # MIPS parts
2018-09-20 09:01:16 +02:00
..
alpha Merge branch 'userns-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace 2018-08-24 09:25:39 -07:00
arc dma-mapping: consolidate the dma mmap implementations 2018-09-20 09:01:16 +02:00
arm dma-mapping: consolidate the dma mmap implementations 2018-09-20 09:01:16 +02:00
arm64 dma-mapping: clear dev->dma_ops in arch_teardown_dma_ops 2018-09-08 11:19:38 +02:00
c6x dma-mapping: merge direct and noncoherent ops 2018-09-20 09:01:15 +02:00
h8300 Kbuild updates for v4.19 (2nd) 2018-08-25 13:40:38 -07:00
hexagon dma-mapping: merge direct and noncoherent ops 2018-09-20 09:01:15 +02:00
ia64 ia64: Fix allnoconfig section mismatch for ioc_init/ioc_iommu_info 2018-08-22 14:12:47 -07:00
m68k dma-mapping: merge direct and noncoherent ops 2018-09-20 09:01:15 +02:00
microblaze dma-mapping: consolidate the dma mmap implementations 2018-09-20 09:01:16 +02:00
mips dma-mapping: consolidate the dma mmap implementations 2018-09-20 09:01:16 +02:00
nds32 dma-mapping: merge direct and noncoherent ops 2018-09-20 09:01:15 +02:00
nios2 dma-mapping: merge direct and noncoherent ops 2018-09-20 09:01:15 +02:00
openrisc dma-mapping: merge direct and noncoherent ops 2018-09-20 09:01:15 +02:00
parisc dma-mapping: merge direct and noncoherent ops 2018-09-20 09:01:15 +02:00
powerpc powerpc: disable support for relative ksymtab references 2018-08-29 16:12:07 -07:00
riscv RISC-V: Use a less ugly workaround for unused variable warnings 2018-08-28 12:58:36 -07:00
s390 Kbuild updates for v4.19 (2nd) 2018-08-25 13:40:38 -07:00
sh dma-mapping: merge direct and noncoherent ops 2018-09-20 09:01:15 +02:00
sparc dma-mapping: merge direct and noncoherent ops 2018-09-20 09:01:15 +02:00
um kbuild: rename LDFLAGS to KBUILD_LDFLAGS 2018-08-24 08:22:08 +09:00
unicore32 mm: convert return type of handle_mm_fault() caller to vm_fault_t 2018-08-17 16:20:28 -07:00
x86 dma-mapping: merge direct and noncoherent ops 2018-09-20 09:01:15 +02:00
xtensa dma-mapping: merge direct and noncoherent ops 2018-09-20 09:01:15 +02:00
.gitignore
Kconfig Merge branch 'tlb-fixes' 2018-08-23 14:55:01 -07:00