public inbox for linux-arch@vger.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH 0/3] couple of TLB flush optimisations
@ 2018-06-12  7:16 Nicholas Piggin
  2018-06-12  7:16 ` Nicholas Piggin
                   ` (3 more replies)
  0 siblings, 4 replies; 38+ messages in thread
From: Nicholas Piggin @ 2018-06-12  7:16 UTC (permalink / raw)
  To: linux-mm
  Cc: linux-arch, Nadav Amit, Mel Gorman, Linus Torvalds,
	Nicholas Piggin, Minchan Kim, Aneesh Kumar K . V, Andrew Morton,
	linuxppc-dev

I'm just looking around TLB flushing and noticed a few issues with
the core code. The first one seems pretty straightforward, unless I
missed something, but the TLB flush pattern after the revert seems
okay.

The second one might be a bit more interesting for other architectures
and the big comment in include/asm-generic/tlb.h and linked mail from
Linus gives some good context.

I suspect mmu notifiers should use this precise TLB range too, because
I don't see how they could care about the page table structure under
the mapping. Although I only use it in powerpc so far.

Comments?

Thanks,
Nick

Nicholas Piggin (3):
  Revert "mm: always flush VMA ranges affected by zap_page_range"
  mm: mmu_gather track of invalidated TLB ranges explicitly for more
    precise flushing
  powerpc/64s/radix: optimise TLB flush with precise TLB ranges in
    mmu_gather

 arch/powerpc/mm/tlb-radix.c |  7 +++++--
 include/asm-generic/tlb.h   | 27 +++++++++++++++++++++++++--
 mm/memory.c                 | 18 ++++--------------
 3 files changed, 34 insertions(+), 18 deletions(-)

-- 
2.17.0

^ permalink raw reply	[flat|nested] 38+ messages in thread

end of thread, other threads:[~2018-06-14  6:51 UTC | newest]

Thread overview: 38+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-06-12  7:16 [RFC PATCH 0/3] couple of TLB flush optimisations Nicholas Piggin
2018-06-12  7:16 ` Nicholas Piggin
2018-06-12  7:16 ` [RFC PATCH 1/3] Revert "mm: always flush VMA ranges affected by zap_page_range" Nicholas Piggin
2018-06-12  7:16   ` Nicholas Piggin
2018-06-12 13:53   ` Aneesh Kumar K.V
2018-06-12 13:53     ` Aneesh Kumar K.V
2018-06-12 18:52   ` Nadav Amit
2018-06-12 18:52     ` Nadav Amit
2018-06-12  7:16 ` [RFC PATCH 2/3] mm: mmu_gather track of invalidated TLB ranges explicitly for more precise flushing Nicholas Piggin
2018-06-12  7:16   ` Nicholas Piggin
2018-06-12 18:14   ` Linus Torvalds
2018-06-12 18:14     ` Linus Torvalds
2018-06-12  7:16 ` [RFC PATCH 3/3] powerpc/64s/radix: optimise TLB flush with precise TLB ranges in mmu_gather Nicholas Piggin
2018-06-12  7:16   ` Nicholas Piggin
2018-06-12 18:18   ` Linus Torvalds
2018-06-12 18:18     ` Linus Torvalds
2018-06-12 22:31     ` Nicholas Piggin
2018-06-12 22:31       ` Nicholas Piggin
2018-06-12 22:42       ` Linus Torvalds
2018-06-12 22:42         ` Linus Torvalds
2018-06-12 23:09         ` Nicholas Piggin
2018-06-12 23:09           ` Nicholas Piggin
2018-06-12 23:26           ` Linus Torvalds
2018-06-12 23:26             ` Linus Torvalds
2018-06-12 23:39             ` Linus Torvalds
2018-06-12 23:39               ` Linus Torvalds
2018-06-13  0:12               ` Nicholas Piggin
2018-06-13  0:12                 ` Nicholas Piggin
2018-06-13  1:10                 ` Linus Torvalds
2018-06-13  1:10                   ` Linus Torvalds
2018-06-14  2:49                   ` Nicholas Piggin
2018-06-14  2:49                     ` Nicholas Piggin
2018-06-14  6:15                     ` Linus Torvalds
2018-06-14  6:15                       ` Linus Torvalds
2018-06-14  6:51                       ` Nicholas Piggin
2018-06-14  6:51                         ` Nicholas Piggin
2018-06-12 23:53             ` Nicholas Piggin
2018-06-12 23:53               ` Nicholas Piggin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox