Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Kuan-Ying Lee and committed by
Andrew Morton
7d8742bf 04a40bae

+4 -1
+4 -1
scripts/gdb/linux/mm.py
··· 47 47 48 48 self.VA_BITS = constants.LX_CONFIG_ARM64_VA_BITS 49 49 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 51 54 tcr_el1 = gdb.execute("info registers $TCR_EL1", to_string=True) 52 55 tcr_el1 = int(tcr_el1.split()[1], 16) 53 56 self.vabits_actual = 64 - ((tcr_el1 >> 16) & 63)