]> git.ipfire.org Git - thirdparty/linux.git/commit
sparc/iommu: fix __sbus_iommu_map_page for highmem pages
authorChristoph Hellwig <hch@lst.de>
Tue, 16 Apr 2019 18:23:45 +0000 (20:23 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 9 May 2019 00:11:57 +0000 (17:11 -0700)
commit7e996890b88078011bfb55ce072712d464207dad
treeefe50f3b32fada0819709f90c604a258c7b09e8d
parent8668b38c1c7720baf76da15a7a7eef43ae0c65a4
sparc/iommu: fix __sbus_iommu_map_page for highmem pages

__sbus_iommu_map_page currently assumes all pages are mapped into the
kernel direct mapping.  Switch to using physical address instead of
virtual ones for all the normal mapping operations, and only use
the virtual addresses for cache flushing when not operating on
a highmem page.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reported-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/mm/iommu.c