summaryrefslogtreecommitdiffstats
path: root/scripts/gdb
diff options
context:
space:
mode:
authorKuan-Ying Lee <kuan-ying.lee@canonical.com>2024-06-19 15:49:10 +0800
committerAndrew Morton <akpm@linux-foundation.org>2024-06-28 19:36:29 -0700
commit7d8742bf853cc1d4faf08840cc64414ad5f34061 (patch)
treecbe3de3b4917bd79ede8703e2469304a8d544a0a /scripts/gdb
parent04a40baec04fa0634d71ebfa0c91469160a9976e (diff)
downloadlinux-7d8742bf853cc1d4faf08840cc64414ad5f34061.tar.gz
linux-7d8742bf853cc1d4faf08840cc64414ad5f34061.tar.bz2
linux-7d8742bf853cc1d4faf08840cc64414ad5f34061.zip
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: 9684ec186f8f ("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>
Diffstat (limited to 'scripts/gdb')
-rw-r--r--scripts/gdb/linux/mm.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/gdb/linux/mm.py b/scripts/gdb/linux/mm.py
index 200def0e4b9a..7571aebbe650 100644
--- a/scripts/gdb/linux/mm.py
+++ b/scripts/gdb/linux/mm.py
@@ -47,7 +47,10 @@ class aarch64_page_ops():
self.VA_BITS = constants.LX_CONFIG_ARM64_VA_BITS
if self.VA_BITS > 48:
- self.VA_BITS_MIN = 48
+ if constants.LX_CONFIG_ARM64_16K_PAGES:
+ self.VA_BITS_MIN = 47
+ else:
+ self.VA_BITS_MIN = 48
tcr_el1 = gdb.execute("info registers $TCR_EL1", to_string=True)
tcr_el1 = int(tcr_el1.split()[1], 16)
self.vabits_actual = 64 - ((tcr_el1 >> 16) & 63)