]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iommu/arm-smmu: Introduce ACTLR custom prefetcher settings
authorBibek Kumar Patro <quic_bibekkum@quicinc.com>
Thu, 12 Dec 2024 15:14:01 +0000 (20:44 +0530)
committerWill Deacon <will@kernel.org>
Tue, 7 Jan 2025 13:55:28 +0000 (13:55 +0000)
commit9fe18d825a5854f1ed6d6f91b45190d3a20f9f23
tree2865b95eef07a8d3984ac26c1c7acf9b00c7e9bc
parent7f2ef1bfc758f0f206eac863ff8ee417d5bb1493
iommu/arm-smmu: Introduce ACTLR custom prefetcher settings

Currently in Qualcomm SoCs the default prefetch is set to 1 which allows
the TLB to fetch just the next page table. MMU-500 features ACTLR
register which is implementation defined and is used for Qualcomm SoCs
to have a custom prefetch setting enabling TLB to prefetch the next set
of page tables accordingly allowing for faster translations.

ACTLR value is unique for each SMR (Stream matching register) and stored
in a pre-populated table. This value is set to the register during
context bank initialisation.

Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Bibek Kumar Patro <quic_bibekkum@quicinc.com>
Link: https://lore.kernel.org/r/20241212151402.159102-5-quic_bibekkum@quicinc.com
Signed-off-by: Will Deacon <will@kernel.org>
drivers/iommu/arm/arm-smmu/arm-smmu-qcom.c
drivers/iommu/arm/arm-smmu/arm-smmu-qcom.h