Re: [PATCH v4 1/2] Introduce cpu_icache_is_aliasing() across all architectures

2024-12-09 Thread Vlastimil Babka
On 12/7/24 18:16, Zi Yan wrote: > In commit eacd0e950dc2 ("ARC: [mm] Lazy D-cache flush (non aliasing > VIPT)"), arc adds the need to flush dcache to make icache see the code > page change. This also requires special handling for > clear_user_(high)page(). Introduce cpu_icache_is_aliasing() to make

[PATCH v4 1/2] Introduce cpu_icache_is_aliasing() across all architectures

2024-12-07 Thread Zi Yan
In commit eacd0e950dc2 ("ARC: [mm] Lazy D-cache flush (non aliasing VIPT)"), arc adds the need to flush dcache to make icache see the code page change. This also requires special handling for clear_user_(high)page(). Introduce cpu_icache_is_aliasing() to make MM code query special clear_user_(high)