]> git.baikalelectronics.ru Git - kernel.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)
commitf28d0a2b699cabd0ea9d40347fe12b91a9e04002
treeefe50f3b32fada0819709f90c604a258c7b09e8d
parent171d7896cb01e12314fa66d67e501d9604c27cdc
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