iommu/arm-smmu: Warn once when the perfetcher errata patch fails to apply
authorChen Lin <chen45464546@163.com>
Thu, 3 Nov 2022 22:21:21 +0000 (06:21 +0800)
committerWill Deacon <will@kernel.org>
Tue, 15 Nov 2022 11:47:28 +0000 (11:47 +0000)
commitf87f6e5b4539639460ab105e597e5190c9b2500f
tree0a124ad2b8d1c112899d569c259bb4e11d92e148
parent9abf2313adc1ca1b6180c508c25f22f9395cc780
iommu/arm-smmu: Warn once when the perfetcher errata patch fails to apply

Default reset value of secure banked register SMMU_sACR.cache_lock is 1.
If it is not been set to 0 by secure software(eg: atf), the non-secure
linux cannot clear ARM_MMU500_ACTLR_CPRE bit. In this situation,
the prefetcher errata is not applied successfully, warn once.

Signed-off-by: Chen Lin <chen45464546@163.com>
Link: https://lore.kernel.org/r/20221103222121.3051-1-chen45464546@163.com
[will: Tweaked wording of diagnostic]
Signed-off-by: Will Deacon <will@kernel.org>
drivers/iommu/arm/arm-smmu/arm-smmu-impl.c