Skip to content

Commit b8ca7ce

Browse files
Georgi Djakovwilldeacon
authored andcommitted
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>
1 parent d374555 commit b8ca7ce

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

drivers/iommu/arm/arm-smmu/arm-smmu-qcom.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,10 @@ static const struct arm_smmu_impl qcom_smmu_500_impl = {
413413
.reset = arm_mmu500_reset,
414414
.write_s2cr = qcom_smmu_write_s2cr,
415415
.tlb_sync = qcom_smmu_tlb_sync,
416+
#ifdef CONFIG_ARM_SMMU_QCOM_DEBUG
417+
.context_fault = qcom_smmu_context_fault,
418+
.context_fault_needs_threaded_irq = true,
419+
#endif
416420
};
417421

418422
static const struct arm_smmu_impl sdm845_smmu_500_impl = {

0 commit comments

Comments
 (0)