]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
scripts/gdb: set vabits_actual based on TCR_EL1
authorKuan-Ying Lee <kuan-ying.lee@canonical.com>
Wed, 19 Jun 2024 07:49:09 +0000 (15:49 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Sat, 29 Jun 2024 02:36:29 +0000 (19:36 -0700)
commit04a40baec04fa0634d71ebfa0c91469160a9976e
treeecd5fb824f35bac440203e762cc9f7bdb181ac97
parent3c0e9a200434e8bb4a2bffbaaeb381bdff5a5938
scripts/gdb: set vabits_actual based on TCR_EL1

We encounter the following issue after commit 9cce9c6c2c3b ("arm64: mm: Handle
LVA support as a CPU feature").

(gdb) lx-slabinfo
Python Exception <class 'gdb.error'>: No symbol "vabits_actual" in current context.
Error occurred in Python: No symbol "vabits_actual" in current context.

We set vabits_actual based on TCR_EL1 value when
VA_BITS is bigger than 48.

Link: https://lkml.kernel.org/r/20240619074911.100434-5-kuan-ying.lee@canonical.com
Fixes: 9cce9c6c2c3b ("arm64: mm: Handle LVA support as a CPU feature")
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>
scripts/gdb/linux/mm.py