NetBSD-Bugs archive

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

Re: kern/55889: panic when boot GENERIC64 kernel on RaspberryPi4 (without RPi4_UEFI_Firmware)



The following reply was made to PR kern/55889; it has been noted by GNATS.

From: Kouichi Hashikawa <hashikaw%mail.ru@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: mlelstv%serpens.de@localhost
Subject: Re: kern/55889: panic when boot GENERIC64 kernel on RaspberryPi4 (without  RPi4_UEFI_Firmware)
Date: Tue, 22 Dec 2020 19:42:36 +0900

 > A crude workaround is to skip bcm2836mp_intr_init() for aarch64.
 
 -current kernel can boot with your patch. Thank you.
 
 > The percpu allocation needs to synchronize with other CPUs and this fails b=
 ecause the process isn't correctly initialized as LSONPROC yet.
 
 I add aprint_normal() at l->l_stat =3D LSONPROC in kern_synch.c, kern_softin=
 t.c,
 kern_sleepq.c, kern_lwp.c and make kernel and boot several times.
 Panic occured after kern_softint.c:softint_dispatch().
 
 I add KASSERT(1=3D=3D0) at softint_dispatch(), I got following trace.
 
 
 [   1.4669126] panic: kernel diagnostic assertion "1=3D=3D0" failed: file "/=
 curren
 t/netbsd/c/src/sys/kern/kern_softint.c", line 803=20
 [   1.4669126] cpu0: Begin traceback...
 [   1.4669126] trace fp ffffc00060e6fbd0
 [   1.4669126] fp ffffc00060e6fc00 vpanic() at ffffc000004e59cc netbsd:vpani=
 c+
 0x14c
 [   1.4669126] fp ffffc00060e6fc60 kern_assert() at ffffc0000080bc7c netbsd:=
 ke
 rn_assert+0x5c
 [   1.4669126] fp ffffc00060e6fd30 softint_dispatch() at ffffc000004b26d8 ne=
 tb
 sd:softint_dispatch+0x88
 [   1.4669126] fp ffffc000011b2a90 cpu_switchto_softint() at ffffc0000008c71=
 8=20
 netbsd:cpu_switchto_softint+0x6c
 [   1.4669126] tf ffffc000011b2ae0 el1_trap() at ffffc00000092f84 netbsd:el1=
 _t
 rap
 [   1.4669126] ---- trapframe 0xffffc000011b2ae0 (304 bytes) ----
 [   1.4669126]     pc=3Dffffc00000087674,   spsr=3D0000000000000005
 [   1.4669126]    esr=3D0000000000000000,    far=3D0000000000000000
 [   1.4669126]     x0=3D000000000000000e,     x1=3D000000000000000e
 [   1.4669126]     x2=3D0000000000000000,     x3=3D0000000000000000
 [   1.4669126]     x4=3Dffffc00001195998,     x5=3Dffffc00000e2e980
 [   1.4669126]     x6=3D0000000000000000,     x7=3D0000000000000007
 [   1.4669126]     x8=3Dffffc000011b2e20,     x9=3D00000000ffffffc8
 [   1.4669126]    x10=3Dffffc00000bd4e58,    x11=3D000000000000003f
 [   1.4669126]    x12=3Dfffffc0003ebbbe8,    x13=3Dfffffc0003ebbbed
 [   1.4669126]    x14=3D0000000044ca02be,    x15=3Dffffc000011b2e50
 [   1.4669126]    x16=3Dffffc000008001e8,    x17=3Dffffc00000b4a768
 [   1.4669126]    x18=3D000000000000000f,    x19=3D0000000000000000
 [   1.4669126]    x20=3D0000000000000001,    x21=3Dffffc00001195980
 [   1.4669126]    x22=3Dffffc00001195900,    x23=3Dffffc000011a9e90
 [   1.4669126]    x24=3D0000000000000001,    x25=3Dffffc000011a9000
 [   1.4669126]    x26=3D0000000000000002,    x27=3D0000000000000050
 [   1.4669126]    x28=3D000000003297c000, fp=3Dx29=3Dffffc000011b2e10
 [   1.4669126] lr=3Dx30=3Dffffc00000087678,     sp=3Dffffc000011b2e10
 [   1.4669126] ------------------------------------------------
 [   1.4669126] fp ffffc000011b2e10 cpu_boot_secondary_processors() at ffffc0=
 00
 00087674 netbsd:cpu_boot_secondary_processors+0xe4
 [   1.4669126] fp ffffc000011b2e60 main() at ffffc0000080bfe8 netbsd:main+0x=
 36
 8
 [   1.4669126] fp 0000000000000000 aarch64_start() at ffffc0000000187c netbs=
 d:
 aarch64_start+0x107c
 [   1.4669126] cpu0: End traceback...
 Stopped in pid 0.5 (system) at  netbsd:cpu_Debugger+0x4:        ret
 db{0}>=
 



Home | Main Index | Thread Index | Old Index