[PATCH 2/2] ARM: flush_ptrace_access: invalidate all I-caches
Catalin Marinas
catalin.marinas at arm.com
Thu Jul 15 12:54:33 EDT 2010
On Thu, 2010-07-15 at 17:43 +0100, Will Deacon wrote:
> Russell King wrote:
> > So, what CPUs report themselves as having VIPT non-aliasing caches but
> > actually have an aliasing I-cache?
>
> As far as I understand, all ARM cores have aliasing I-caches if it's a
> VIPT cache with way size greater than the page size. The D-cache has
> additional logic for handling aliasing which is what the VIPT non-aliasing
> characteristics refer to.
Just to confirm what Will said (and I checked this in the past with our
lead architect) - if the CTR reports VIPT I-cache, it is a true VIPT
I-cache with potential aliases if the way size is greater than the page
size (e.g. on vexpress, C-A9 has 32K I-cache and 4 ways).
On the D side, the VIPT on ARMv7 is always non-aliasing (e.g. it behaves
like PIPT).
Anyway, it's not that bad since most places where this matters use
__flush_icache_all(). This includes my patches for cache maintenance via
set_pte_at().
--
Catalin
More information about the linux-arm-kernel
mailing list