diff options
| author | Connor Abbott <cwabbott0@gmail.com> | 2025-05-20 22:08:56 +0300 |
|---|---|---|
| committer | Will Deacon <will@kernel.org> | 2025-05-21 13:34:06 +0300 |
| commit | 70892277ca2dbad30ce89acf62fb62045d4bc59b (patch) | |
| tree | 0a348251f15f1a2848c0d374048ff518336b5d52 /include | |
| parent | 3053a2c5086d56ce7f64cfb5816b4124769c0ccd (diff) | |
| download | linux-70892277ca2dbad30ce89acf62fb62045d4bc59b.tar.xz | |
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>
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/adreno-smmu-priv.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/adreno-smmu-priv.h b/include/linux/adreno-smmu-priv.h index abec23c7744f..d83c9175828f 100644 --- a/include/linux/adreno-smmu-priv.h +++ b/include/linux/adreno-smmu-priv.h @@ -45,9 +45,9 @@ struct adreno_smmu_fault_info { * TTBR0 translation is enabled with the specified cfg * @get_fault_info: Called by the GPU fault handler to get information about * the fault - * @set_stall: Configure whether stall on fault (CFCFG) is enabled. Call - * before set_ttbr0_cfg(). If stalling on fault is enabled, - * the GPU driver must call resume_translation() + * @set_stall: Configure whether stall on fault (CFCFG) is enabled. If + * stalling on fault is enabled, the GPU driver must call + * resume_translation() * @resume_translation: Resume translation after a fault * * @set_prr_bit: [optional] Configure the GPU's Partially Resident |
