alistair23-linux/arch/microblaze
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
..
boot microblaze: Move DTS file to common location at boot/dts folder 2014-04-07 13:45:19 +02:00
configs microblaze: Enable SERIAL_OF_PLATFORM 2014-06-04 06:59:46 +02:00
include microblaze: Fix mmap for cache coherent memory 2014-12-17 12:59:59 +01:00
kernel microblaze: Fix mmap for cache coherent memory 2014-12-17 12:59:59 +01:00
lib microblaze: Change libgcc-style functions from lib-y to obj-y 2014-07-18 14:26:09 +02:00
mm microblaze: Fix mmap for cache coherent memory 2014-12-17 12:59:59 +01:00
oprofile
pci microblaze: Fix IO space breakage after of_pci_range_to_resource() change 2014-10-27 08:29:54 +01:00
Kconfig microblaze: Fix missing NR_CPUS in menuconfig 2014-10-27 08:29:54 +01:00
Kconfig.debug
Kconfig.platform microblaze: Remove platform folder 2014-04-07 13:45:21 +02:00
Makefile microblaze: Remove platform folder 2014-04-07 13:45:21 +02:00