public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/1] Enhanced TLB flushing for vmap/vmalloc()
@ 2023-08-07  8:23 Dylan Jhong
  2023-08-07  8:23 ` [PATCH 1/1] riscv: Implement arch_sync_kernel_mappings() for "preventive" TLB flush Dylan Jhong
  0 siblings, 1 reply; 6+ messages in thread
From: Dylan Jhong @ 2023-08-07  8:23 UTC (permalink / raw)
  To: paul.walmsley, palmer, aou, ajones, alexghiti, anup, rppt, samuel,
	panqinglin2020, sergey.matyukevich, maz, linux-riscv,
	conor.dooley, linux-kernel
  Cc: ycliang, x5710999x, tim609, Dylan Jhong

This patch is actually the v2 version of the this patch[1]. In the v1 version,
Alexandre suggested that I should make the patch more general, so I even changed
the title accordingly. Many thanks to Alexandre.

And Alexandre also submitted a similar patch[2] recently, in which he implemented
TLB flushing via flush_cache_vmap() instead. However, it seems that flush_cache_vmap()
does not cover every place where arch_sync_kernel_mappings() performs TLB flushing.
IMHO, arch_sync_kernel_mappings() cannot be replaced by flush_cache_vmap().
Please correct me if I'm wrong!

[1]: [PATCH] riscv: Flush stale TLB entry with VMAP_STACK enabled
     http://lists.infradead.org/pipermail/linux-riscv/2023-August/037503.html

[2]: [PATCH -fixes] riscv: Implement flush_cache_vmap()
     https://www.spinics.net/lists/kernel/msg4873712.html

Dylan Jhong (1):
  riscv: Implement arch_sync_kernel_mappings() for "preventive" TLB
    flush

 arch/riscv/include/asm/page.h |  2 ++
 arch/riscv/mm/tlbflush.c      | 12 ++++++++++++
 2 files changed, 14 insertions(+)

-- 
2.34.1


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

end of thread, other threads:[~2023-08-09 11:16 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-07  8:23 [PATCH 0/1] Enhanced TLB flushing for vmap/vmalloc() Dylan Jhong
2023-08-07  8:23 ` [PATCH 1/1] riscv: Implement arch_sync_kernel_mappings() for "preventive" TLB flush Dylan Jhong
2023-08-07  9:35   ` kernel test robot
2023-08-07 12:28   ` kernel test robot
2023-08-08 10:16   ` Alexandre Ghiti
2023-08-09 11:16     ` Dylan Jhong

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