]> 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)
commit6058f95627227aa2ce4311148bbec12280340bfd
tree83349945d71967733d3b906dc8a044bbb85ffee4
parent06200561fc88c3c239a7081c1bc10d021e6fbb20
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