[PATCH 1/5] ARM: Use lazy cache flushing on ARMv7 SMP systems
Catalin Marinas
catalin.marinas at arm.com
Wed Mar 24 05:51:13 EDT 2010
On Tue, 2010-03-23 at 21:33 +0000, Russell King - ARM Linux wrote:
> On Mon, Mar 22, 2010 at 03:19:39PM +0000, Catalin Marinas wrote:
> > ARMv7 processors like Cortex-A9 broadcast the cache maintenance
> > operations in hardware. This patch allows the
> > flush_dcache_page/update_mmu_cache pair to work in lazy flushing mode
> > similar to the UP case.
>
> Didn't Ben point out that there's a race with the lazy dcache flushing
> on SMP platforms?
Yes, there is a slight risk of getting this race. I started working on a
patch to move the cache flushing to set_pte_at (and together with the
PG_dcache_clean bit) but I don't think I'll finish it in time (I'm on
holiday between 1-19 April). That's if we decide to go this route, the
other thread (USB mass storage ...) seems to have slowed down.
So I think it's better to wait with this patch for now and maybe post a
full series addressing the issues above sometime next month.
--
Catalin
More information about the linux-arm-kernel
mailing list