arm64: Use level-2 for largest block mappings when FEAT_HAFDBS is present
authorMarc Zyngier <maz@kernel.org>
Fri, 17 Mar 2023 16:22:52 +0000 (00:22 +0800)
committerTom Rini <trini@konsulko.com>
Tue, 25 Apr 2023 19:31:27 +0000 (15:31 -0400)
commit836b8d4b205d2175b57cb9ef271e638b0c116e89
treef057d0af7248d9817c2e254dbbd9163965c36439
parent6cdf6b7a340db4ddd008516181de7e08e3f8c213
arm64: Use level-2 for largest block mappings when FEAT_HAFDBS is present

In order to make invalidation by VA more efficient, set the largest
block mapping to 2MB, mapping it onto level-2. This has no material
impact on u-boot's runtime performance, and allows a huge speedup
when cleaning the cache.

Signed-off-by: Marc Zyngier <maz@kernel.org>
[ Paul: pick from the Android tree. Rebase to the upstream ]
Signed-off-by: Ying-Chun Liu (PaulLiu) <paul.liu@linaro.org>
Cc: Tom Rini <trini@konsulko.com>
Link: https://android.googlesource.com/platform/external/u-boot/+/417a73581a72ff6d6ee4b0938117b8a23e32f7e8
arch/arm/cpu/armv8/cache_v8.c
arch/arm/include/asm/global_data.h