]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iommu: arm-smmu-qcom: Ensure smmu is powered up in set_ttbr0_cfg
authorAnna Maniscalco <anna.maniscalco2000@gmail.com>
Thu, 7 May 2026 15:43:15 +0000 (17:43 +0200)
committerWill Deacon <will@kernel.org>
Tue, 19 May 2026 11:46:02 +0000 (12:46 +0100)
commit8a0aab012b52b5c044ca3bec523e91f95dd40765
tree816d1ad8ea5775a1d7d4765e7bc67635780c330c
parent8bcad9e3a6742f15d3a8569a987b9ccbefeb4f55
iommu: arm-smmu-qcom: Ensure smmu is powered up in set_ttbr0_cfg

arm_smmu_write_context_bank() assumes it is being called with RPM
active, but it turns out that is not guaranteed in the path from
qcom_adreno_smmu_set_ttbr0_cfg(), so it's possible for the register
writes to get lost when configuring the context bank while the GPU is
idle, leading to page faults later.
Add the RPM calls here to make sure the SMMU is active before we touch
it.

Signed-off-by: Anna Maniscalco <anna.maniscalco2000@gmail.com>
Reviewed-by: Rob Clark <rob.clark@oss.qualcomm.com>
Reviewed-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Will Deacon <will@kernel.org>
drivers/iommu/arm/arm-smmu/arm-smmu-qcom.c