Skip to content

Commit 7d8742b

Browse files
kylee0215akpm00
authored andcommitted
scripts/gdb: change VA_BITS_MIN when we use 16K page
Change VA_BITS_MIN when we use 16K page. Link: https://lkml.kernel.org/r/20240619074911.100434-6-kuan-ying.lee@canonical.com Fixes: 9684ec1 ("arm64: Enable LPA2 at boot if supported by the system") Signed-off-by: Kuan-Ying Lee <kuan-ying.lee@canonical.com> Cc: Jan Kiszka <jan.kiszka@siemens.com> Cc: Kieran Bingham <kbingham@kernel.org> Cc: Kirill A. Shutemov <kirill.shutemov@linux.intel.com> Cc: Michael Ellerman <mpe@ellerman.id.au> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
1 parent 04a40ba commit 7d8742b

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

scripts/gdb/linux/mm.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,10 @@ def __init__(self):
4747

4848
self.VA_BITS = constants.LX_CONFIG_ARM64_VA_BITS
4949
if self.VA_BITS > 48:
50-
self.VA_BITS_MIN = 48
50+
if constants.LX_CONFIG_ARM64_16K_PAGES:
51+
self.VA_BITS_MIN = 47
52+
else:
53+
self.VA_BITS_MIN = 48
5154
tcr_el1 = gdb.execute("info registers $TCR_EL1", to_string=True)
5255
tcr_el1 = int(tcr_el1.split()[1], 16)
5356
self.vabits_actual = 64 - ((tcr_el1 >> 16) & 63)

0 commit comments

Comments
 (0)