diff options
| author | Mitchel Humpherys <mitchelh@codeaurora.org> | 2015-11-02 14:27:44 -0800 |
|---|---|---|
| committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-22 11:14:30 -0700 |
| commit | 404edd8bd30ad3854a4b298e46f29d40d260e8f4 (patch) | |
| tree | 68342c30dbcccd3324d09e097381266553766959 | |
| parent | 551c3178fc1f7864c6382933dc838da3aebd994d (diff) | |
iommu/arm-smmu: Use correct mask when printing SID during fault
As per the spec, FRSYNRA contains the SID in the lower 16 bits.
Currently we're masking off all but the lower 8 bits, so we could be
losing bits when we print SIDs. Fix this by using a 16 bit mask.
Change-Id: I4a16c169a52d31b43b2f850a5558eecb64b93902
Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org>
| -rw-r--r-- | drivers/iommu/arm-smmu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iommu/arm-smmu.c b/drivers/iommu/arm-smmu.c index 540c0d1966fc..6d5841c78bd9 100644 --- a/drivers/iommu/arm-smmu.c +++ b/drivers/iommu/arm-smmu.c @@ -1258,7 +1258,7 @@ static irqreturn_t arm_smmu_context_fault(int irq, void *dev) "soft iova-to-phys=%pa\n", &phys_soft); dev_err(smmu->dev, "hard iova-to-phys (ATOS)=%pa\n", &phys_atos); - dev_err(smmu->dev, "SID=0x%x\n", frsynra & 0x1FF); + dev_err(smmu->dev, "SID=0x%x\n", frsynra & 0xffff); } ret = IRQ_NONE; resume = RESUME_TERMINATE; |
