summaryrefslogtreecommitdiffstats
path: root/drivers/iommu/arm-smmu-regs.h
diff options
context:
space:
mode:
authorVivek Gautam <vivek.gautam@codeaurora.org>2019-04-22 12:40:36 +0530
committerWill Deacon <will.deacon@arm.com>2019-04-23 12:23:16 +0100
commitbc580b56cb7888d1f09fff8a50270228fb834ae8 (patch)
treed98cab92214aa7770dad659d7aa27341b5b4b04b /drivers/iommu/arm-smmu-regs.h
parent3f54c447df34ff9efac7809a4a80fd3208efc619 (diff)
downloadlinux-bc580b56cb7888d1f09fff8a50270228fb834ae8.tar.gz
linux-bc580b56cb7888d1f09fff8a50270228fb834ae8.tar.bz2
linux-bc580b56cb7888d1f09fff8a50270228fb834ae8.zip
iommu/arm-smmu: Log CBFRSYNRA register on context fault
Bits[15:0] in CBFRSYNRA register contain information about StreamID of the incoming transaction that generated the fault. Dump CBFRSYNRA register to get this info. This is specially useful in a distributed SMMU architecture where multiple masters are connected to the SMMU. SID information helps to quickly identify the faulting master device. Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org> Reviewed-by: Robin Murphy <robin.murphy@arm.com> Acked-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Signed-off-by: Vivek Gautam <vivek.gautam@codeaurora.org> Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'drivers/iommu/arm-smmu-regs.h')
-rw-r--r--drivers/iommu/arm-smmu-regs.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/iommu/arm-smmu-regs.h b/drivers/iommu/arm-smmu-regs.h
index a1226e4ab5f8..e9132a926761 100644
--- a/drivers/iommu/arm-smmu-regs.h
+++ b/drivers/iommu/arm-smmu-regs.h
@@ -147,6 +147,8 @@ enum arm_smmu_s2cr_privcfg {
#define CBAR_IRPTNDX_SHIFT 24
#define CBAR_IRPTNDX_MASK 0xff
+#define ARM_SMMU_GR1_CBFRSYNRA(n) (0x400 + ((n) << 2))
+
#define ARM_SMMU_GR1_CBA2R(n) (0x800 + ((n) << 2))
#define CBA2R_RW64_32BIT (0 << 0)
#define CBA2R_RW64_64BIT (1 << 0)