drm/nouveau/tegra: Stop using iommu_present()
authorRobin Murphy <robin.murphy@arm.com>
Tue, 5 Apr 2022 14:21:34 +0000 (15:21 +0100)
committerLyude Paul <lyude@redhat.com>
Fri, 6 May 2022 21:23:17 +0000 (17:23 -0400)
commit87fd2b091fb33871a7f812658a0971e8e26f903f
tree13676c6d1e4187e6283aa444ca0aa2b1996dceb8
parentb3c9a924aab61adbc29df110006aa03afe1a78ba
drm/nouveau/tegra: Stop using iommu_present()

Even if some IOMMU has registered itself on the platform "bus", that
doesn't necessarily mean it provides translation for the device we
care about. Replace iommu_present() with a more appropriate check.

Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Reviewed-by: Lyude Paul <lyude@redhat.com>
[added cc for stable]
Signed-off-by: Lyude Paul <lyude@redhat.com>
Cc: stable@vger.kernel.org # v5.0+
Link: https://patchwork.freedesktop.org/patch/msgid/70d40ea441da3663c2824d54102b471e9a621f8a.1649168494.git.robin.murphy@arm.com
drivers/gpu/drm/nouveau/nvkm/engine/device/tegra.c