[PATCH v6 00/12] arm64: Automatic system register definition generation

Catalin Marinas catalin.marinas at arm.com
Wed May 4 09:17:12 PDT 2022


On Tue, May 03, 2022 at 06:02:21PM +0100, Mark Brown wrote:
> This patch series introduces a
> script which describes registers and the fields within them in a format
> that is easy to cross reference with the architecture reference manual
> and uses them to generate the constants we use in a standard format:

Something went wrong since v5, likely some encoding is wrong:

kvm [1]: sys_reg table (____ptrval____) out of order (138)
------------[ cut here ]------------
kernel BUG at arch/arm64/kvm/sys_regs.c:2869!
Internal error: Oops - BUG: 0 [#1] PREEMPT SMP
Modules linked in:
CPU: 1 PID: 1 Comm: swapper/0 Not tainted 5.18.0-rc3-00012-g0cabf2a94034 #1
Hardware name: QEMU QEMU Virtual Machine, BIOS 0.0.0 02/06/2015
pstate: 62400005 (nZCv daif +PAN -UAO +TCO -DIT -SSBS BTYPE=--)
pc : kvm_sys_reg_table_init+0x138/0x170
lr : kvm_sys_reg_table_init+0x24/0x170
sp : ffff80000801bc90
x29: ffff80000801bc90 x28: 0000000000000000 x27: 0000000000000001
x26: 0000000000000e58 x25: 0000000000000100 x24: 0000000000000004
x23: ffffa2429433d000 x22: ffffa24294879a38 x21: ffffa24294879c80
x20: ffffa24294879a58 x19: ffffa24294bb65e8 x18: ffffffffffffffff
x17: 0000000000000003 x16: 00000000000001f7 x15: ffff80008801b9a7
x14: 0000000000000000 x13: ffffa242948924a0 x12: 0000000000000285
x11: 00000000000000d7 x10: ffffa242948ea4a0 x9 : ffffa242948924a0
x8 : 00000000ffffefff x7 : ffffa242948ea4a0 x6 : 0000000000000000
x5 : 000000000000bff4 x4 : 0000000000000000 x3 : 0000000000000000
x2 : 0000000000000000 x1 : ffff000000088000 x0 : 0000000000000001
Call trace:
 kvm_sys_reg_table_init+0x138/0x170
 kvm_arch_init+0x904/0xd70
 kvm_init+0x38/0x3a4
 arm_init+0x20/0x30
 do_one_initcall+0x50/0x1c0
 kernel_init_freeable+0x208/0x28c
 kernel_init+0x28/0x13c
 ret_from_fork+0x10/0x20

-- 
Catalin



More information about the linux-arm-kernel mailing list