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)
commit6a62924c0a81316b2aff713566593405b57545d5
tree83349945d71967733d3b906dc8a044bbb85ffee4
parente9f656b7a21408866ba04c112ccbac73885529bd
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