diff options
author | Marc Zyngier <maz@kernel.org> | 2023-03-17 19:22:52 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-04-25 22:31:27 +0300 |
commit | 836b8d4b205d2175b57cb9ef271e638b0c116e89 (patch) | |
tree | f057d0af7248d9817c2e254dbbd9163965c36439 /arch/arm/include/asm | |
parent | 6cdf6b7a340db4ddd008516181de7e08e3f8c213 (diff) | |
download | u-boot-836b8d4b205d2175b57cb9ef271e638b0c116e89.tar.xz |
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
Diffstat (limited to 'arch/arm/include/asm')
-rw-r--r-- | arch/arm/include/asm/global_data.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/include/asm/global_data.h b/arch/arm/include/asm/global_data.h index 6956182acc..0c13075711 100644 --- a/arch/arm/include/asm/global_data.h +++ b/arch/arm/include/asm/global_data.h @@ -52,6 +52,7 @@ struct arch_global_data { #if defined(CONFIG_ARM64) unsigned long tlb_fillptr; unsigned long tlb_emerg; + unsigned int first_block_level; bool has_hafdbs; #endif #endif |