]> git.baikalelectronics.ru Git - kernel.git/commit
sfc: Stop using iommu_present()
authorRobin Murphy <robin.murphy@arm.com>
Tue, 5 Apr 2022 13:40:55 +0000 (14:40 +0100)
committerJakub Kicinski <kuba@kernel.org>
Fri, 8 Apr 2022 04:04:10 +0000 (21:04 -0700)
commit288d0ecf19f581d8820406873c06567f08496f9a
tree83349945d71967733d3b906dc8a044bbb85ffee4
parentbff260e408711334a6bba0750fe4c35b390e5b1e
sfc: Stop using iommu_present()

Even if an IOMMU might be present for some PCI segment in the system,
that doesn't necessarily mean it provides translation for the device
we care about. It appears that what we care about here is specifically
whether DMA mapping ops involve any IOMMU overhead or not, so check for
translation actually being active for our device.

Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Acked-by: Edward Cree <ecree.xilinx@gmail.com>
Link: https://lore.kernel.org/r/7350f957944ecfce6cce90f422e3992a1f428775.1649166055.git.robin.murphy@arm.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/sfc/falcon/rx.c