[PATCH] ARM: Improve the L2 cache performance when PL310 is used

Catalin Marinas catalin.marinas at arm.com
Tue Mar 9 05:52:39 EST 2010


On Tue, 2010-03-09 at 10:30 +0000, Colin Tuckley wrote:
> > -----Original Message-----
> > From: linux-arm-kernel-bounces at lists.infradead.org [mailto:linux-arm-
> > kernel-bounces at lists.infradead.org] On Behalf Of Catalin Marinas
> 
> 
> > With this L2 cache controller, the cache maintenance by PA and sync
> > operations are atomic and do not require a "wait" loop or spinlocks.
> > This patch conditionally defines the cache_wait() function and locking
> > primitives (rather than duplicating the functions or file).
> > 
> > Since L2x0 cache controllers do not work with ARMv7 CPUs, the patch
> > automatically enables CACHE_PL310 when CPU_V7 is defined.
> 
> That will cause a problem with A8 CPUs which are V7 but which do *not* use a
> PL310 for the L2 cache.

But do they use an L220? Or they don't use anything?

Note that CACHE_PL310 depends on CACHE_L2X0, so if you don't have an
outer cache controller, you don't get CACHE_PL310 enabled.

-- 
Catalin




More information about the linux-arm-kernel mailing list