diff options
| author | Nicolin Chen <nicolinc@nvidia.com> | 2026-09-15 09:38:13 -0700 |
|---|---|---|
| committer | Will Deacon <will@kernel.org> | 2026-10-04 16:01:29 +0000 |
| commit | ab0dbf411aced59c04ce86fd8443faf13bdc9936 (patch) | |
| tree | 7650d5a9b9c0da847f1d1134f4c2b37bb74e55ca /scripts/basic/split-include.c | |
| parent | d587faf668287f0c18f016da29c3bc05a87efa1d (diff) | |
| download | linux-ab0dbf411aced59c04ce86fd8443faf13bdc9936.tar.gz linux-ab0dbf411aced59c04ce86fd8443faf13bdc9936.zip | |
iommu/arm-smmu-v3: Disable the impl before disabling the SMMU on shutdown
arm_smmu_device_shutdown() only calls arm_smmu_device_disable(), and never
the impl_ops->device_disable() hook. On tegra241-cmdqv, that hook quiesces
every VINTF through tegra241_vintf_hw_deinit(), which issues a CMD_SYNC on
the shared CMDQ while it is still enabled.
arm_smmu_disable_action() already runs this hook before disabling the SMMU,
to cover an unbind or a probe failure, and no devres release ever follows a
reboot or a kexec to run it again. Have arm_smmu_device_shutdown() call it
directly, instead of reimplementing part of what it already does.
Fixes: 9ff145a25c5c ("iommu/tegra241-cmdqv: Fix CMD_SYNC use-after-free on teardown")
Cc: stable@vger.kernel.org
Reviewed-by: Jonathan Cameron <jonathan.cameron@oss.qualcomm.com>
Assisted-by: LLM
Signed-off-by: Nicolin Chen <nicolinc@nvidia.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'scripts/basic/split-include.c')
0 files changed, 0 insertions, 0 deletions
