Re: [PATCH 06/17] arm: mmu_gather rework
From: Peter Zijlstra
Date: Thu Feb 24 2011 - 11:35:07 EST
On Thu, 2011-02-17 at 17:23 +0100, Peter Zijlstra wrote:
> plain text document attachment
> Fix up the arm mmu_gather code to conform to the new API.
So akpm noted that this one doesn't apply anymore because of:
Author: Russell King <rmk+kernel@xxxxxxxxxxxxxxxx>
Date: Sun Feb 20 12:16:45 2011 +0000
ARM: tlb: delay page freeing for SMP and ARMv7 CPUs
We need to delay freeing any mapped page on SMP and ARMv7 systems to
ensure that the data is not accessed by other CPUs, or is used for
speculative prefetch with ARMv7. This includes not only mapped pages
but also pages used for the page tables themselves.
This avoids races with the MMU/other CPUs accessing pages after they've
been freed but before we've invalidated the TLB.
Signed-off-by: Russell King <rmk+kernel@xxxxxxxxxxxxxxxx>
Which raises a nice point about shift_arg_pages() which calls
free_pgd_range(), the other architectures that look similar to arm in
this respect are ia64 and sh, do they suffer the same problem?
It doesn't look hard to fold the requirements for this into the generic
tlb range support (patch 14 in this series).
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/