]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
iommu/arm-smmu-qcom: Make set_stall work when the device is on
authorConnor Abbott <cwabbott0@gmail.com>
Tue, 20 May 2025 19:08:56 +0000 (15:08 -0400)
committerWill Deacon <will@kernel.org>
Wed, 21 May 2025 10:34:06 +0000 (11:34 +0100)
commit70892277ca2dbad30ce89acf62fb62045d4bc59b
tree0a348251f15f1a2848c0d374048ff518336b5d52
parent3053a2c5086d56ce7f64cfb5816b4124769c0ccd
iommu/arm-smmu-qcom: Make set_stall work when the device is on

Up until now we have only called the set_stall callback during
initialization when the device is off. But we will soon start calling it
to temporarily disable stall-on-fault when the device is on, so handle
that by checking if the device is on and writing SCTLR.

Signed-off-by: Connor Abbott <cwabbott0@gmail.com>
Reviewed-by: Rob Clark <robdclark@gmail.com>
Link: https://lore.kernel.org/r/20250520-msm-gpu-fault-fixes-next-v8-3-fce6ee218787@gmail.com
[will: Fix "mixed declarations and code" warning from sparse]
Signed-off-by: Will Deacon <will@kernel.org>
drivers/iommu/arm/arm-smmu/arm-smmu-qcom.c
include/linux/adreno-smmu-priv.h