Port-arm archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: aarch64 broken on qemu



Le 27/07/2020 à 15:47, Jason Thorpe a écrit :
>> On Jul 27, 2020, at 5:50 AM, Maxime Villard <max%m00nbsd.net@localhost> wrote:
>>
>> Is it normal that netbsd-aarch64 doesn't work on qemu?
>>
>> Launching the latest current with:
>>
>> 	qemu-system-aarch64 -M virt -cpu max -m 4g -drive if=none,file=arm64.img,id=hd0 -device virtio-blk-device,drive=hd0 -bios QEMU_EFI.fd
>>
>> Gives:
>>
>> 	[   1.0000000] panic: kernel diagnostic assertion "dv != NULL" failed: file "/home/source/ab/HEAD/src/sys/kern/subr_prf.c", line 757
>> 	[   1.0000000] cpu0: Begin traceback...
>> 	[   1.0000000] trace fp ffffc00000f89680
>> 	[   1.0000000] fp ffffc00000f896a0 vpanic() at ffffc000004b3fe4 netbsd:vpanic+0x15c
>> 	[   1.0000000] fp ffffc00000f89710 kern_assert() at ffffc000007d33ac netbsd:kern_assert+0x5c
>> 	[   1.0000000] fp ffffc00000f897a0 aprint_normal_dev() at ffffc000004b5310 netbsd:aprint_normal_dev+0x90
>> 	[   1.0000000] fp ffffc00000f89830 gic_v2m_acpi_find_msi_frame() at ffffc0000000f8a0 netbsd:gic_v2m_acpi_find_msi_frame+0x1b0
>> 	[   1.0000000] fp ffffc00000f89880 acpi_madt_walk() at ffffc0000006ac18 netbsd:acpi_madt_walk+0x60
>> 	[   1.0000000] fp ffffc00000f898b0 gic_acpi_attach() at ffffc0000000f100 netbsd:gic_acpi_attach+0xf0
> 
> Can you provide the full boot messages just up to the panic?  Seems like the only way that can happen is if the "armgic" device doesn't get attached ... commented out in the config file?

This is the default kernel, I didn't change any config

[   1.0000000] Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
[   1.0000000]     2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017,
[   1.0000000]     2018, 2019, 2020 The NetBSD Foundation, Inc.  All rights reserved.
[   1.0000000] Copyright (c) 1982, 1986, 1989, 1991, 1993
[   1.0000000]     The Regents of the University of California.  All rights reserved.
[   1.0000000] NetBSD 9.99.69 (GENERIC64) #0: Thu Jul 23 07:53:35 UTC 2020
[   1.0000000]  mkrepro%mkrepro.NetBSD.org@localhost:/usr/src/sys/arch/evbarm/compile/GENERIC64
[   1.0000000] total memory = 4072 MB
[   1.0000000] avail memory = 3948 MB
[   1.0000000] pool redzone disabled for 'buf4k'
[   1.0000000] pool redzone disabled for 'buf64k'
[   1.0000000] entropy: no seed from bootloader
[   1.0000000] armfdt0 (root)
[   1.0000000] simplebus0 at armfdt0: QEMU QEMU Virtual Machine
[   1.0000000] simplebus1 at simplebus0
[   1.0000000] acpifdt0 at simplebus0
[   1.0000000] acpifdt0: using EFI runtime services for RTC
[   1.0000000] ACPI: RSDP 0x0000000138520000 000024 (v02 BOCHS )
[   1.0000000] ACPI: XSDT 0x0000000138510000 00004C (v01 BOCHS  BXPCFACP 00000001      01000013)
[   1.0000000] ACPI: FACP 0x00000001384D0000 00010C (v05 BOCHS  BXPCFACP 00000001 BXPC 00000001)
[   1.0000000] ACPI: DSDT 0x00000001384E0000 004826 (v02 BOCHS  BXPCDSDT 00000001 BXPC 00000001)
[   1.0000000] ACPI: APIC 0x00000001384C0000 0000A8 (v03 BOCHS  BXPCAPIC 00000001 BXPC 00000001)
[   1.0000000] ACPI: GTDT 0x00000001384B0000 000060 (v02 BOCHS  BXPCGTDT 00000001 BXPC 00000001)
[   1.0000000] ACPI: MCFG 0x00000001384A0000 00003C (v01 BOCHS  BXPCMCFG 00000001 BXPC 00000001)
[   1.0000000] ACPI: SPCR 0x0000000138490000 000050 (v02 BOCHS  BXPCSPCR 00000001 BXPC 00000001)
[   1.0000000] ACPI: 1 ACPI AML tables successfully acquired and loaded
[   1.0000000] acpi0 at acpifdt0: Intel ACPICA 20200430
[   1.0000000] cpu0 at acpi0: unknown CPU (ID = 0x000f0510), id 0x0
[   1.0000000] entropy: ready
[   1.0000000] gic0 at acpi0: GIC
[   1.0000000] panic: kernel diagnostic assertion "dv != NULL" failed: file "/home/source/ab/HEAD/src/sys/kern/subr_prf.c", line 757
[   1.0000000] cpu0: Begin traceback...
[   1.0000000] trace fp ffffc00000f89680
[   1.0000000] fp ffffc00000f896a0 vpanic() at ffffc000004b3fe4 netbsd:vpanic+0x15c
[   1.0000000] fp ffffc00000f89710 kern_assert() at ffffc000007d33ac netbsd:kern_assert+0x5c
[   1.0000000] fp ffffc00000f897a0 aprint_normal_dev() at ffffc000004b5310 netbsd:aprint_normal_dev+0x90
[   1.0000000] fp ffffc00000f89830 gic_v2m_acpi_find_msi_frame() at ffffc0000000f8a0 netbsd:gic_v2m_acpi_find_msi_frame+0x1b0
[   1.0000000] fp ffffc00000f89880 acpi_madt_walk() at ffffc0000006ac18 netbsd:acpi_madt_walk+0x60
[   1.0000000] fp ffffc00000f898b0 gic_acpi_attach() at ffffc0000000f100 netbsd:gic_acpi_attach+0xf0
[   1.0000000] fp ffffc00000f89920 config_attach_loc() at ffffc00000497604 netbsd:config_attach_loc+0x184
[   1.0000000] fp ffffc00000f89970 acpi_md_madt_probe_gic() at ffffc0000000bf28 netbsd:acpi_md_madt_probe_gic+0x30
[   1.0000000] fp ffffc00000f89980 acpi_madt_walk() at ffffc0000006ac18 netbsd:acpi_madt_walk+0x60
[   1.0000000] fp ffffc00000f899b0 acpi_md_callback() at ffffc0000000c7ac netbsd:acpi_md_callback+0x64
[   1.0000000] fp ffffc00000f899e0 acpi_attach() at ffffc0000006b270 netbsd:acpi_attach+0x250
[   1.0000000] fp ffffc00000f89a40 config_attach_loc() at ffffc00000497604 netbsd:config_attach_loc+0x184
[   1.0000000] fp ffffc00000f89ac0 acpi_fdt_attach() at ffffc00000069218 netbsd:acpi_fdt_attach+0xb8
[   1.0000000] fp ffffc00000f89b40 config_attach_loc() at ffffc00000497604 netbsd:config_attach_loc+0x184
[   1.0000000] fp ffffc00000f89b90 fdt_scan() at ffffc000005b1fc8 netbsd:fdt_scan+0xe0
[   1.0000000] fp ffffc00000f89d00 fdt_rescan() at ffffc000005b20d4 netbsd:fdt_rescan+0x54
[   1.0000000] fp ffffc00000f89d30 config_attach_loc() at ffffc00000497604 netbsd:config_attach_loc+0x184
[   1.0000000] fp ffffc00000f89d80 arm_fdt_attach() at ffffc00000064484 netbsd:arm_fdt_attach+0x64
[   1.0000000] fp ffffc00000f89de0 config_attach_loc() at ffffc00000497604 netbsd:config_attach_loc+0x184
[   1.0000000] fp ffffc00000f89e30 cpu_configure() at ffffc0000006012c netbsd:cpu_configure+0x44
[   1.0000000] fp ffffc00000f89e60 main() at ffffc000007d364c netbsd:main+0x29c
[   1.0000000] fp 0000000000000000 aarch64_start() at ffffc00000001870 netbsd:aarch64_start+0x1070
[   1.0000000] cpu0: End traceback...
Stopped in pid 0.0 (system) at  netbsd:cpu_Debugger+0x4:        ret
db{0}>


Home | Main Index | Thread Index | Old Index