Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

gpu: host1x: Unconditionally select IOMMU_IOVA

Currently configurations can be generated where IOMMU_SUPPORT is
disabled but IOMMU_IOVA is built as a module and HOST1X as built-in. In
such a case, the symbols guarded by IOMMU_IOVA will not be available
when linking the host1x driver and cause a linking failure.

Simplify this by unconditionally selecting IOMMU_IOVA, which makes sure
that it will be forced to =y if HOST1X=y. Technically we can now get
IOMMU_IOVA code built-in even if we don't use it (host1x only uses it
when IOMMU_SUPPORT is also enabled), but such configuration are of a
mostly academic nature. In all practical configurations we want IOMMU
support anyway.

Signed-off-by: Thierry Reding <treding@nvidia.com>

+1 -1
+1 -1
drivers/gpu/host1x/Kconfig
··· 2 2 config TEGRA_HOST1X 3 3 tristate "NVIDIA Tegra host1x driver" 4 4 depends on ARCH_TEGRA || (ARM && COMPILE_TEST) 5 - select IOMMU_IOVA if IOMMU_SUPPORT 5 + select IOMMU_IOVA 6 6 help 7 7 Driver for the NVIDIA Tegra host1x hardware. 8 8