]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iommu/arm-smmu: Re-enable context caching in smmu reset operation
authorBibek Kumar Patro <quic_bibekkum@quicinc.com>
Thu, 12 Dec 2024 15:13:58 +0000 (20:43 +0530)
committerWill Deacon <will@kernel.org>
Tue, 7 Jan 2025 13:26:28 +0000 (13:26 +0000)
commitef4144b1b47dba61ebf19b9567013afdba5225dd
tree46d2e716e9be02166f5c4526fa30c47690a6250d
parente94dc6ddda8dd3770879a132d577accd2cce25f9
iommu/arm-smmu: Re-enable context caching in smmu reset operation

Default MMU-500 reset operation disables context caching in prefetch
buffer. It is however expected for context banks using the ACTLR
register to retain their prefetch value during reset and runtime
suspend.

Add config 'ARM_SMMU_MMU_500_CPRE_ERRATA' to gate this errata workaround
in default MMU-500 reset operation which defaults to 'Y' and provide
option to disable workaround for context caching in prefetch buffer as
and when needed.

Suggested-by: Will Deacon <will@kernel.org>
Signed-off-by: Bibek Kumar Patro <quic_bibekkum@quicinc.com>
Link: https://lore.kernel.org/r/20241212151402.159102-2-quic_bibekkum@quicinc.com
Signed-off-by: Will Deacon <will@kernel.org>
Documentation/arch/arm64/silicon-errata.rst
drivers/iommu/Kconfig
drivers/iommu/arm/arm-smmu/arm-smmu-impl.c