aboutsummaryrefslogtreecommitdiff
path: root/drivers/iommu/arm
diff options
context:
space:
mode:
authorGravatar Georgi Djakov <quic_c_gdjako@quicinc.com> 2024-04-17 06:37:30 -0700
committerGravatar Will Deacon <will@kernel.org> 2024-04-18 15:48:01 +0100
commitb8ca7ce709f8210c13eec022e87a12111db5d745 (patch)
tree2943baac0dc3c009588b90b1d9c7ecf6ed62f645 /drivers/iommu/arm
parentiommu/arm-smmu-qcom: Use a custom context fault handler for sdm845 (diff)
downloadlinux-b8ca7ce709f8210c13eec022e87a12111db5d745.tar.gz
linux-b8ca7ce709f8210c13eec022e87a12111db5d745.tar.bz2
linux-b8ca7ce709f8210c13eec022e87a12111db5d745.zip
iommu/arm-smmu-qcom: Use the custom fault handler on more platforms
The TBU support is now available, so let's allow it to be used on other platforms that have the Qualcomm SMMU-500 implementation with TBUs. This will allow the context fault handler to query the TBUs when a context fault occurs. Signed-off-by: Georgi Djakov <quic_c_gdjako@quicinc.com> Link: https://lore.kernel.org/r/20240417133731.2055383-7-quic_c_gdjako@quicinc.com Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'drivers/iommu/arm')
-rw-r--r--drivers/iommu/arm/arm-smmu/arm-smmu-qcom.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/iommu/arm/arm-smmu/arm-smmu-qcom.c b/drivers/iommu/arm/arm-smmu/arm-smmu-qcom.c
index a901230dbabd..25f034677f56 100644
--- a/drivers/iommu/arm/arm-smmu/arm-smmu-qcom.c
+++ b/drivers/iommu/arm/arm-smmu/arm-smmu-qcom.c
@@ -413,6 +413,10 @@ static const struct arm_smmu_impl qcom_smmu_500_impl = {
.reset = arm_mmu500_reset,
.write_s2cr = qcom_smmu_write_s2cr,
.tlb_sync = qcom_smmu_tlb_sync,
+#ifdef CONFIG_ARM_SMMU_QCOM_DEBUG
+ .context_fault = qcom_smmu_context_fault,
+ .context_fault_needs_threaded_irq = true,
+#endif
};
static const struct arm_smmu_impl sdm845_smmu_500_impl = {