diff options
author | 2021-03-12 18:54:39 +0300 | |
---|---|---|
committer | 2021-03-18 11:31:12 +0100 | |
commit | 8dfd0fa6ecdc5e2099a57d485b7ce237abc6c7a0 (patch) | |
tree | 6ba404a4f44c9a49c63fe13f41f8a152f445698f /tools/perf/scripts/python/export-to-postgresql.py | |
parent | iommu/amd: Keep track of amd_iommu_irq_remap state (diff) | |
download | wireguard-linux-8dfd0fa6ecdc5e2099a57d485b7ce237abc6c7a0.tar.xz wireguard-linux-8dfd0fa6ecdc5e2099a57d485b7ce237abc6c7a0.zip |
iommu/tegra-smmu: Make tegra_smmu_probe_device() to handle all IOMMU phandles
The tegra_smmu_probe_device() handles only the first IOMMU device-tree
phandle, skipping the rest. Devices like 3D module on Tegra30 have
multiple IOMMU phandles, one for each h/w block, and thus, only one
IOMMU phandle is added to fwspec for the 3D module, breaking GPU.
Previously this problem was masked by tegra_smmu_attach_dev() which
didn't use the fwspec, but parsed the DT by itself. The previous commit
to tegra-smmu driver partially reverted changes that caused problems for
T124 and now we have tegra_smmu_attach_dev() that uses the fwspec and
the old-buggy variant of tegra_smmu_probe_device() which skips secondary
IOMMUs.
Make tegra_smmu_probe_device() not to skip the secondary IOMMUs. This
fixes a partially attached IOMMU of the 3D module on Tegra30 and now GPU
works properly once again.
Fixes: 765a9d1d02b2 ("iommu/tegra-smmu: Fix mc errors on tegra124-nyan")
Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Tested-by: Nicolin Chen <nicoleotsuka@gmail.com>
Link: https://lore.kernel.org/r/20210312155439.18477-1-digetx@gmail.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions