1
0
Fork 0
alistair23-linux/arch/microblaze/mm
Lars-Peter Clausen 3a8e326517 microblaze: Fix mmap for cache coherent memory
When running in non-cache coherent configuration the memory that was
allocated with dma_alloc_coherent() has a custom mapping and so there is no
1-to-1 relationship between the kernel virtual address and the PFN. This
means that virt_to_pfn() will not work correctly for those addresses and the
default mmap implementation in the form of dma_common_mmap() will map some
random, but not the requested, memory area.

Fix this by providing a custom mmap implementation that looks up the PFN
from the page table rather than using virt_to_pfn.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
2014-12-17 12:59:59 +01:00
..
Makefile microblaze: Highmem support 2012-03-23 09:28:13 +01:00
consistent.c microblaze: Fix mmap for cache coherent memory 2014-12-17 12:59:59 +01:00
fault.c arch: mm: pass userspace fault flag to generic fault handler 2013-09-12 15:38:01 -07:00
highmem.c microblaze: Do not use module.h in files which are not modules 2013-02-12 11:24:45 +01:00
init.c microblaze: Use asm-generic/io.h 2014-04-07 14:25:53 +02:00
mmu_context.c
pgtable.c microblaze: Use asm-generic/io.h 2014-04-07 14:25:53 +02:00