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/[email protected] Fixes: 9684ec1 ("arm64: Enable LPA2 at boot if supported by the system") Signed-off-by: Kuan-Ying Lee <[email protected]> Cc: Jan Kiszka <[email protected]> Cc: Kieran Bingham <[email protected]> Cc: Kirill A. Shutemov <[email protected]> Cc: Michael Ellerman <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent 04a40ba commit 7d8742b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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)