[PATCH 1/3] ARM: cpu: suppress arm_early_mmu_cache_invalidate if dcache enabled

Ahmad Fatoum a.fatoum at pengutronix.de
Wed Aug 5 04:59:20 PDT 2026


Hello Lucas,

On 7/7/26 7:20 PM, Ahmad Fatoum wrote:
>> Also, by moving the call to a later point in the init flow later in the
>> series, are you sure that the invalidate happens before the I cache
>> gets enabled in arm_cpu_lowlevel_init()?
> arm_cpu_lowlevel_init() invalidates I cache on ARMv6 and ARMv7.
> I believe on ARMv8, it's not necessary?
> 
> Interestingly, for ARMv8, I-Cache looks like it is only enabled early
> for EL3, but for EL2/1, it's enabled in mmu_early_enable(). Any reason
> for that?

Any thoughts on this?

Cheers,
Ahmad


-- 
Pengutronix e.K.                  |                             |
Steuerwalder Str. 21              | http://www.pengutronix.de/  |
31137 Hildesheim, Germany         | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686  | Fax:   +49-5121-206917-5555 |




More information about the barebox mailing list