summaryrefslogtreecommitdiffstats
path: root/drivers/iommu/arm-smmu.c
diff options
context:
space:
mode:
authorRobert Richter <rrichter@cavium.com>2017-03-13 11:39:01 +0100
committerWill Deacon <will.deacon@arm.com>2017-04-06 17:06:42 +0200
commit53c35dce45713d2a554109c21a8cd617d09eba50 (patch)
tree10237cb4a7d312e35fb38e4c4738c019490d2f37 /drivers/iommu/arm-smmu.c
parentiommu: Better document the IOMMU_PRIV flag (diff)
downloadlinux-53c35dce45713d2a554109c21a8cd617d09eba50.tar.xz
linux-53c35dce45713d2a554109c21a8cd617d09eba50.zip
iommu/arm-smmu: Print message when Cavium erratum 27704 was detected
Firmware is responsible for properly enabling smmu workarounds. Print a message for better diagnostics when Cavium erratum 27704 was detected. Reviewed-by: Robin Murphy <robin.murphy@arm.com> Signed-off-by: Robert Richter <rrichter@cavium.com> Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'drivers/iommu/arm-smmu.c')
-rw-r--r--drivers/iommu/arm-smmu.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/iommu/arm-smmu.c b/drivers/iommu/arm-smmu.c
index b493c99e17f7..8e16da64e72e 100644
--- a/drivers/iommu/arm-smmu.c
+++ b/drivers/iommu/arm-smmu.c
@@ -1887,6 +1887,7 @@ static int arm_smmu_device_cfg_probe(struct arm_smmu_device *smmu)
atomic_add_return(smmu->num_context_banks,
&cavium_smmu_context_count);
smmu->cavium_id_base -= smmu->num_context_banks;
+ dev_notice(smmu->dev, "\tenabling workaround for Cavium erratum 27704\n");
}
/* ID2 */