drm/tegra: Fix SMMU support on Tegra124 and Tegra210
authorThierry Reding <treding@nvidia.com>
Wed, 25 Mar 2020 20:16:03 +0000 (21:16 +0100)
committerThierry Reding <treding@nvidia.com>
Tue, 28 Apr 2020 09:44:07 +0000 (11:44 +0200)
commit501be6c1c72417eab05e7413671a38ea991a8ebc
tree507d44b5a84d9a7e3fb1fc3c6a69acb68cc5f253
parent8f3d9f354286745c751374f5f1fcafee6b3f3136
drm/tegra: Fix SMMU support on Tegra124 and Tegra210

When testing whether or not to enable the use of the SMMU, consult the
supported DMA mask rather than the actually configured DMA mask, since
the latter might already have been restricted.

Fixes: 2d9384ff9177 ("drm/tegra: Relax IOMMU usage criteria on old Tegra")
Tested-by: Jon Hunter <jonathanh@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/tegra/drm.c
drivers/gpu/host1x/dev.c
include/linux/host1x.h