[PATCH -next v6 04/10] arm: armv8: invalidate dcache entries on dcache_enable

Dhruva Gole d-gole at ti.com
Wed Sep 10 11:50:44 CEST 2025


On Sep 05, 2025 at 13:48:55 +0530, Anshul Dalal wrote:
> In dcache_enable, currently the dcache entries are only invalidated when
> the MMU is not enabled. This causes issues when dcache_enable is called
> with the MMU already configured, in such cases the existing dcache
> entries are not flushed which might result in un-expected behavior.
> 
> This patch invalidates the cache entries on every call of dcache_enable
> before enabling dcache (by setting CR_C). This makes dcache_enable
> behave similar to icache_enable as well.
> 
> Signed-off-by: Anshul Dalal <anshuld at ti.com>
> ---

Reviewed-by: Dhruva Gole <d-gole at ti.com>

-- 
Best regards,
Dhruva Gole
Texas Instruments Incorporated


More information about the U-Boot mailing list