sparc/iommu: use __sbus_iommu_map_page to implement the map_sg path
authorChristoph Hellwig <hch@lst.de>
Tue, 16 Apr 2019 18:23:46 +0000 (20:23 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 9 May 2019 00:11:57 +0000 (17:11 -0700)
commitedb1f07203ba8856b24bcddf8326386ba6a03291
tree7af3c722ab3b9736c03ec9a5e79acd1e38dc3113
parent7e996890b88078011bfb55ce072712d464207dad
sparc/iommu: use __sbus_iommu_map_page to implement the map_sg path

This means we handle > PAGE_SIZE offsets fine, and grow the size check
so far only performed in the map_page path.  We lose the optimization
to not double flush a page if it apears in multiple consecutive SG list
entries.  But at least for block I/O those don't happen anymore since
we properly merge in higher layers anyway.

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