Re: [PATCH 00/12] Avoid synchronous TLB invalidation for intermediate page-table entries on arm64

From: Will Deacon
Date: Fri Aug 31 2018 - 05:54:08 EST


On Thu, Aug 30, 2018 at 06:04:12PM -0700, Linus Torvalds wrote:
> On Thu, Aug 30, 2018 at 6:01 PM Nicholas Piggin <npiggin@xxxxxxxxx> wrote:
> >
> > Well it would help if powerpc say wanted to start using them without a
> > merge cycle lag. Not a huge issue because powerpc already does
> > reasonably well here and there's other work that can be done.
>
> Sure. If somebody wants to send the generic changes I can just take
> them directly to make it easier for people to work on this.

Tell you what: how about I stick the following patches (with Nick's and
Peter's acks) on a separate, stable branch:

asm-generic/tlb: Track which levels of the page tables have been cleared
asm-generic/tlb: Track freeing of page-table directories in struct mmu_gather
asm-generic/tlb: Guard with #ifdef CONFIG_MMU

and then anybody who needs them can just pull that in for the merge window?

Also, how would people feel about adding a MAINTAINERS entry for all the
tlb.h files? A big part of the recent "fun" was us figuring out what the
code is actually doing ("It used to do foo() but that may have changed").
and it certainly took me the best part of a day to figure things out again.
If we're trying to do more in the generic code and less in the arch code,
it would help if we're on top of the changes in this area.

Proposal below (omitted Linus because that seems to be the pattern elsewhere
in the file and he's not going to shout at himself when things break :)
Anybody I've missed?

Will

--->8

diff --git a/MAINTAINERS b/MAINTAINERS
index a5b256b25905..7224b5618883 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -9681,6 +9681,15 @@ S: Maintained
F: arch/arm/boot/dts/mmp*
F: arch/arm/mach-mmp/

+MMU GATHER AND TLB INVALIDATION
+M: Will Deacon <will.deacon@xxxxxxx>
+M: Nick Piggin <npiggin@xxxxxxxxx>
+M: Peter Zijlstra <peterz@xxxxxxxxxxxxx>
+L: linux-arch@xxxxxxxxxxxxxxx
+S: Maintained
+F: include/asm-generic/tlb.h
+F: arch/*/include/asm/tlb.h
+
MN88472 MEDIA DRIVER
M: Antti Palosaari <crope@xxxxxx>
L: linux-media@xxxxxxxxxxxxxxx