All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/3] arm64: tlb: Fix TLBI RANGE operand
@ 2024-04-05  3:58 ` Gavin Shan
  0 siblings, 0 replies; 40+ messages in thread
From: Gavin Shan @ 2024-04-05  3:58 UTC (permalink / raw)
  To: linux-arm-kernel, linux-kernel
  Cc: catalin.marinas, will, gshan, akpm, maz, oliver.upton,
	ryan.roberts, apopple, rananta, mark.rutland, v-songbaohua,
	yangyicong, shahuang, yihyu, shan.gavin

A kernel crash on the destination VM after the live migration was
reported by Yihuang Yu. The issue is only reproducible on NVidia's
grace-hopper where TLBI RANGE feature is available. The kernel crash
is caused by incomplete TLB flush and missed dirty page. For the
root cause and analysis, please refer to PATCH[v3 1/3]'s commit log.

Thanks to Marc Zyngier who proposed all the code changes.

PATCH[1] fixes the kernel crash by extending __TLBI_RANGE_NUM() so that
         the TLBI RANGE on the area with MAX_TLBI_RANGE_PAGES pages can
         be supported
PATCH[2] improves __TLBI_VADDR_RANGE() with masks and FIELD_PREP()
PATCH[3] allows TLBI RANGE operation on the area with MAX_TLBI_RANGE_PAGES
         pages in __flush_tlb_range_nosync()

v2: https://lists.infradead.org/pipermail/linux-arm-kernel/2024-April/917432.html
v1: https://lists.infradead.org/pipermail/linux-arm-kernel/2024-April/916972.html

Changelog
=========
v3:
  Improve __TLBI_RANGE_NUM() and its comments. Added patches
  to improve __TLBI_VADDR_RANGE() and __flush_tlb_range_nosync() (Marc) 
v2:
  Improve __TLBI_RANGE_NUM()                                     (Marc)

Gavin Shan (3):
  arm64: tlb: Fix TLBI RANGE operand
  arm64: tlb: Improve __TLBI_VADDR_RANGE()
  arm64: tlb: Allow range operation for MAX_TLBI_RANGE_PAGES

 arch/arm64/include/asm/tlbflush.h | 53 ++++++++++++++++++-------------
 1 file changed, 31 insertions(+), 22 deletions(-)

-- 
2.44.0


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

end of thread, other threads:[~2024-04-12 16:07 UTC | newest]

Thread overview: 40+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-05  3:58 [PATCH v3 0/3] arm64: tlb: Fix TLBI RANGE operand Gavin Shan
2024-04-05  3:58 ` Gavin Shan
2024-04-05  3:58 ` [PATCH v3 1/3] " Gavin Shan
2024-04-05  3:58   ` Gavin Shan
2024-04-05 17:10   ` Catalin Marinas
2024-04-05 17:10     ` Catalin Marinas
2024-04-08  8:29   ` Ryan Roberts
2024-04-08  8:29     ` Ryan Roberts
2024-04-10  8:45     ` Marc Zyngier
2024-04-10  8:45       ` Marc Zyngier
2024-04-11  9:59       ` Ryan Roberts
2024-04-11  9:59         ` Ryan Roberts
2024-04-10  7:55   ` Anshuman Khandual
2024-04-10  7:55     ` Anshuman Khandual
2024-04-05  3:58 ` [PATCH v3 2/3] arm64: tlb: Improve __TLBI_VADDR_RANGE() Gavin Shan
2024-04-05  3:58   ` Gavin Shan
2024-04-05 17:10   ` Catalin Marinas
2024-04-05 17:10     ` Catalin Marinas
2024-04-08  8:31   ` Ryan Roberts
2024-04-08  8:31     ` Ryan Roberts
2024-04-10  7:57   ` Anshuman Khandual
2024-04-10  7:57     ` Anshuman Khandual
2024-04-05  3:58 ` [PATCH v3 3/3] arm64: tlb: Allow range operation for MAX_TLBI_RANGE_PAGES Gavin Shan
2024-04-05  3:58   ` Gavin Shan
2024-04-05 17:12   ` Catalin Marinas
2024-04-05 17:12     ` Catalin Marinas
2024-04-08  8:43   ` Ryan Roberts
2024-04-08  8:43     ` Ryan Roberts
2024-04-10  8:50     ` Marc Zyngier
2024-04-10  8:50       ` Marc Zyngier
2024-04-11 10:44       ` Will Deacon
2024-04-11 10:44         ` Will Deacon
2024-04-10  7:58   ` Anshuman Khandual
2024-04-10  7:58     ` Anshuman Khandual
2024-04-10  8:43 ` [PATCH v3 0/3] arm64: tlb: Fix TLBI RANGE operand Shaoqin Huang
2024-04-10  8:43   ` Shaoqin Huang
2024-04-10 17:52 ` (subset) " Catalin Marinas
2024-04-10 17:52   ` Catalin Marinas
2024-04-12 16:06 ` Will Deacon
2024-04-12 16:06   ` Will Deacon

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.