summaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorMax Filippov <jcmvbkbc@gmail.com>2017-03-30 01:44:47 +0300
committerMax Filippov <jcmvbkbc@gmail.com>2017-03-30 23:29:20 +0300
commit2b83878dd74a7c73bedcb6600663c1c46836e8af (patch)
tree70787ba6284fdfdff1530e35ec859c20d7d91d62 /README
parentc02ed2e75ef4c74e41e421acb4ef1494671585e8 (diff)
downloadlinux-2b83878dd74a7c73bedcb6600663c1c46836e8af.tar.xz
xtensa: make __pa work with uncached KSEG addresses
When __pa is applied to virtual address in uncached KSEG region the result is incorrect. Fix it by checking if the original address is in the uncached KSEG and adjusting the result. It looks better than masking off bits because pfn_valid would correctly work with new __pa results and it may be made working in noMMU case, once we get definition for uncached memory view. This is required for the dma_common_mmap and DMA debug code to work correctly: they both indirectly use __pa with coherent DMA addresses. In case of DMA debug the visible effect is false reports that an address mapped for DMA is accessed by CPU. Cc: stable@vger.kernel.org Tested-by: Boris Brezillon <boris.brezillon@free-electrons.com> Reviewed-by: Boris Brezillon <boris.brezillon@free-electrons.com> Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Diffstat (limited to 'README')
0 files changed, 0 insertions, 0 deletions