mbox series

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

Message ID 20230822075112.717992-1-bhupesh.sharma@linaro.org
Headers show
Series Disable setting ICACHE and DCACHE off for ARM64 platforms | expand

Message

Bhupesh Sharma Aug. 22, 2023, 7:51 a.m. UTC
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@foss.st.com>
Cc: Patrick Delaunay <patrick.delaunay@foss.st.com>
Cc: Tom Rini <trini@konsulko.com>
Cc: Simon Glass <sjg@chromium.org>
Cc: Peng Fan <peng.fan@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(-)