iommu/arm-smmu-qcom: Use the custom fault handler on more platforms
authorGeorgi Djakov <quic_c_gdjako@quicinc.com>
Wed, 17 Apr 2024 13:37:30 +0000 (06:37 -0700)
committerWill Deacon <will@kernel.org>
Thu, 18 Apr 2024 14:48:01 +0000 (15:48 +0100)
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>
drivers/iommu/arm/arm-smmu/arm-smmu-qcom.c

index a901230dbabd1910dc04b8740a63894ceba46477..25f034677f5683f4ee58283fdc817c792cb26db3 100644 (file)
@@ -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 = {