Re: [PATCH] microblaze: Fix mmap for cache coherent memory

2014-12-10 Thread Michal Simek
On 12/03/2014 04:07 PM, Lars-Peter Clausen wrote: > 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(

[PATCH] microblaze: Fix mmap for cache coherent memory

2014-12-03 Thread Lars-Peter Clausen
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 defa