[PATCH v2 0/2] Disable setting ICACHE and DCACHE off for ARM64 platforms

Bhupesh Sharma bhupesh.sharma at linaro.org
Tue Aug 22 09:51:10 CEST 2023


As suggested by Tom, disable setting ICACHE and DCACHE off for ARM64
platforms. It is also noticed that with CACHEs off u-boot on ARM64 (ARMv8)
boots slower.

If some platforms still wish to turn off ICACHE / DCACHE during the
SPL stage, support that configuration as well.

While at it, also fix an compilation issue for stm32mp when 
SYS_DCACHE_OFF and/or SYS_DCACHE_SYS are enabled.

Cc: Patrice Chotard <patrice.chotard at foss.st.com>
Cc: Patrick Delaunay <patrick.delaunay at foss.st.com>
Cc: Tom Rini <trini at konsulko.com>
Cc: Simon Glass <sjg at chromium.org>
Cc: Peng Fan <peng.fan at nxp.com>

Bhupesh Sharma (2):
  arm: stm32mp: Really fix compilation issue when SYS_DCACHE_OFF and/or
    SYS_DCACHE_SYS are enabled
  armv8: Disable SYS_DCACHE_OFF & SYS_ICACHE_OFF for ARM64

 arch/arm/Kconfig            | 2 ++
 arch/arm/cpu/armv8/Makefile | 4 ++--
 arch/arm/mach-stm32mp/cpu.c | 4 ++--
 3 files changed, 6 insertions(+), 4 deletions(-)

-- 
2.38.1



More information about the U-Boot mailing list