2.4.20-pa14 64bit crash on boot - A500-5X
Hi pa-ckers
I'm dropping here a brief report of a crash I just experienced with the latest 2.4 kernel on our A500.
For various reasons you don't want to know, I cannot currently track that problem down, so i'm providing the System.map and .config of that kernel :)
kernel built using hppa64-gcc-3.0.4 on the A500, based on the previous kernel's .config (2.4.19-pa22).
Console log:
pty: 256 Unix98 ptys configured
Serial driver version 5.05c (2001-07-08) with MANY_PORTS SHARE_IRQ SERIAL_PCI enabled
Redundant entry in serial pci_table. Please send the output of lspci -vv, this message (103c,1048,103c,1049)
and the manufacturer and name of serial board or modem board to [email protected].
ttyS00 at iomem 0xfffffffff8000000 (irq = 132) is a 16550A ttyS01 at iomem 0xfffffffff8000008 (irq = 132) is a 16550A ttyS02 at iomem 0xfffffffff8000010 (irq = 132) is a 16550A
Press Q/q to quit, Enter to continue:
Redundant entry in serial pci_table. Please send the output of lspci -vv, this message (103c,1048,103c,104a)
and the manufacturer and name of serial board or modem board to [email protected]. spin_unlock(000000001039a8d0): no lock cpu 0 curr PC 00000000101101a4 swapper/1
Stack Dump:
0000000014ced200: 000000ff0804ff0e 00000000a9c50000 0000000010143bd4
0000000000000040
0000000014ced1e0: 00000000103f8d60 0000000010356684 0000000000000084fffffffff8000010
0000000014ced1c0: 0000000010549800 0000000000000000 0000000010549800000000001046ce00
0000000014ced1a0: 00000000104b6c00 0000000010549800 000000001046ce00028000001046ce00
0000000014ced180: 00000000104ec000 000000001046ce00 000000001048e7b40000000014cece90
0000000014ced160: 000000000000007e 00000000103569a8 0000000014cecfb8000000001046ce00
Kernel addresses on the stack:
[<0000000010143bd4>] [<000000001014bf2c>] [<0000000010281a94>]
[<000000001014018c>]
[<0000000010281b98>] [<00000000101003c0>] [<0000000010108460>]
[<0000000010108518>]
[<00000000101317dc>] [<0000000010137c98>] [<0000000010326804>]
[<0000000010100390>]
[<0000000010137960>]
Press Q/q to quit, Enter to continue:
Kernel Fault: Code=26 regs=0000000014ced200 (Addr=0000000000000008)
YZrvWESTHLNXBCVMcbcbcbcbOGFRQPDI
PSW: 00001000000001001111111100001110 Not tainted r00-03 0000000000000000 0000000010518e50 0000000010143bd4 0000000010538b48
r04-07 0000000000000000 000000000800000f 000000001046ce00 0000000000000000
r08-11 0000000010538898 00000000105389d8 00000000103fc4b0 0000000010538898
r12-15 00000000103fc4a0 0000000010538898 0000000010538898 0000000010538898
r16-19 00000000103fc480 0000000010538898 0000000010538898 0000000010538b48
r20-23 0000000000000000 0000000010519e50 0000000000002e49 0000000000002eac
r24-27 0000000000000001 0000000000002eac 00000000103df7c0 000000001046ce00
r28-31 0000000000000000 0000000014ced1f0 0000000014ced200 000000001047be00
sr0-3 0000000000000000 0000000000000000 0000000000000000
0000000000000000
sr4-7 0000000000000000 0000000000000000 0000000000000000
0000000000000000
IASQ: 0000000000000000 0000000000000000 IAOQ: 0000000010143c48 0000000010143c4c
IIR: 0e8312d0 ISR: 0000000000000000 IOR: 0000000000000008
CPU: 0 CR30: 0000000014cec000 CR31: 00000000104f0000
ORIG_R28: 0000000010325edc
HTH,
Thibaut VARENE
PA/Linux ESIEE Team
http://pateam.esiee.fr/
I strike again, now being able to provide a first analysis of the reg dump:
IAOQ = 0000000010143c48
AOUT: 0x10143c48 mod_timer+b0
Func: mod_timer, Off: b0, Addr: 0x10143c48
10143c40: 0e 70 10 d3 ldd 8(sr0,r19),r19
10143c44: 0e 60 10 d4 ldd 0(sr0,r19),r20
10143c48: 0e 83 12 d0 std r3,8(sr0,r20)
10143c4c: 0c 74 12 c0 std r20,0(sr0,r3)
10143d2c: e8 1f 1e 1d b,l 10143c40 <mod_timer+0xa8>,r0
10143d60: e8 1f 1d b5 b,l 10143c40 <mod_timer+0xa8>,r0GR2 = 0000000010143bd4
AOUT: 0x10143bd4 mod_timer+3c
Func: mod_timer, Off: 3c, Addr: 0x10143bd4
10143bd0: 08 01 02 5a copy r1,r26
10143bd4: 08 06 02 5b copy r6,dp
10143bd8: 70 64 00 20 std r4,10(r3)
10143bdc: 0c 60 10 d4 ldd 0(sr0,r3),r20GR3 = 0000000010538b48
AOUT: 0x10538b48 hp_diva_timer+0
Func: hp_diva_timer, Off: 0, Addr: 0x10538b48
GR20 = 0000000000000000
Kernel addresses on the stack:
[<0000000010143bd4>] mod_timer+3c [<000000001014bf2c>] dev_probe_lock+54 [<0000000010281a94>] pci_announce_device+7c [<000000001014018c>] __request_region+134 [<0000000010281b98>] pci_register_driver+b8 [<00000000101003c0>] init+30 [<0000000010108460>] ret_from_kernel_thread+1c [<0000000010108518>] _switch_to_ret+0 [<00000000101317dc>] __wake_up+13c [<0000000010137c98>] release_console_sem+1a0 [<0000000010326804>] __umoddi3+1c [<0000000010100390>] init+0 [<0000000010137960>] printk+230
spin_unlock(000000001039a8d0): no lock cpu 0 curr PC 00000000101101a4 0x1039a8d0 pdc_lock+00x101101a4 pdc_emergency_unlock+24
HTH,
Thibaut VARENE
The PA/Linux ESIEE Team
http://pateam.esiee.fr/
Quoted 1 line · Thibaut VARENE
AOUT:
0x10143bd4mod_timer+3c
...
Quoted 1 line
AOUT:
0x10538b48hp_diva_timer+0
Good News: I reproduced this and fixed it.
But I don't know exactly what I did that fixed it. :^( (drawbacks of the shotgun approach).
Fairly small patch is on ftp.parisc-linux.org/patches/diff-2.4.20-timer This isn't ready to commit until someone narrows it down to one thing.
Bad News: SMP kernel now hangs during SCSI device discover. I haven't tried CONFIG_SMP=n yet and I guess that would be a next step. Console output of the a500-44 boot with 2.4.20-pa14 + patch is on
dsl2.e.h.c:~grundler/rp2470-2.4.20-symhang-01
grant
Quoted 11 lines · On Sat, 14 Dec 2002 20:53:59 -0700 "Grant Grundler"…
Quoted 1 line · Thibaut VARENE
AOUT:
0x10143bd4mod_timer+3c...
Quoted 1 line
AOUT:
0x10538b48hp_diva_timer+0Good News: I reproduced this and fixed it.
But I don't know exactly what I did that fixed it. :^( (drawbacks of the shotgun approach).
Fairly small patch is on ftp.parisc-linux.org/patches/diff-2.4.20-timer This isn't ready to commit until someone narrows it down to one thing.
Quoted 4 lines
Bad News: SMP kernel now hangs during SCSI device discover. I haven't tried
CONFIG_SMP=nyet and I guess that would be a next step. Console output of the a500-44 boot with 2.4.20-pa14 + patch is ondsl2.e.h.c:~grundler/rp2470-2.4.20-symhang-01
With CONFIG_SMP=y, here is what happens upon boot:
SMP: Total 2 of 2 processors activated (2195.46 BogoMIPS noticed). Waiting on wait_init_idle (map = 0x2)
All processors have done init_idle
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039 Initializing RT netlink socket
Soft power switch support not available.
Performance monitoring counters enabled for Crescend
Some investigation provided the following (after TOC/SER PIM) CPU0:
IAOQ = 0x0000000010144f1c
Func: timer_bh, Off: 1a4, Addr: 0x10144f1c
10144f10: 52 d3 0d f0 ldd 6f8(r22),r19
10144f14: 08 01 02 57 copy r1,r23
10144f18: 0e 60 10 94 ldw 0(sr0,r19),r20
10144f1c: 2b 61 20 00 addil 3000,dp,%r1
10144ff4: e8 1f 1e 2d b,l 10144f10 <timer_bh+0x198>,r0GR1 = 000000001047ae00
Func: __gp, Off: a000, Addr: 0x1047ae00
GR2 = 0000000010144fd8
Func: timer_bh, Off: 260, Addr: 0x10144fd8
10144fd0: eb df bc 81 b,l 10103e18 <spin_lock>,%r2
10144fd4: 08 13 02 5a copy r19,r26
10144fd8: 08 0e 02 5b copy r14,dp
10144fdc: 2b 65 00 00 addil a000,dp,%r1GR6 = 0000000010540b48
Func: hp_diva_timer, Off: 0, Addr: 0x10540b48
GR14 = 0000000010470e00
Func: __gp, Off: 0, Addr: 0x10470e00
GR18 = 0000000010540898
Func: serial_driver, Off: 0, Addr: 0x10540898
GR19 = 0000000010520e48
Func: tv1, Off: 0, Addr: 0x10520e48
GR26 = 00000000103e37c0
Func: timerlist_lock, Off: 0, Addr: 0x103e37c0
on a second try it went up to:
Performance monitoring counters enabled for Crescendo 550 Starting kswapd
Journalled Block Device driver loaded
Installing knfsd (copyright (C) 1996 o
Now the UP try:
went up to:
Performance monitoring counters enabled for Crescendo 550
Starting kswapd
Journalled Block Device driver loaded
Installing knfsd (copyright (C) 1996 [email protected]).
pty: 256 Unix98 ptys configured
Serial driver version 5.05c (2001-07-08) with MANY_PORTS SHARE_IRQ SERIAL_PCI enabled
Investigation showed that:
IAOQ = 0x000000001021210c
Func: hp_diva_check, Off: ec, Addr: 0x1021210c
10212100: eb 94 be 61 b,l 1013b038 <add_timer>,%r2
10212104: 08 15 02 5a copy r21,r26
10212108: 08 03 02 5b copy r3,dp
1021210c: 53 c2 3e e1 ldd -90(sp),rpGR0 = 0000000000000000
GR1 = 000000001045df70
Func: timer_jiffies, Off: 0, Addr: 0x1045df70
GR2 = 0000000010212108
Func: hp_diva_check, Off: e8, Addr: 0x10212108
10212100: eb 94 be 61 b,l 1013b038 <add_timer>,%r2
10212104: 08 15 02 5a copy r21,r26
10212108: 08 03 02 5b copy r3,dp
1021210c: 53 c2 3e e1 ldd -90(sp),rpGR3 = 00000000103bd2a0
Func: __gp, Off: 0, Addr: 0x103bd2a0
GR6 = 0000000010472df8
Func: hp_diva_timer, Off: 0, Addr: 0x10472df8
GR18 = 0000000010472b48
Func: serial_driver, Off: 0, Addr: 0x10472b48
GR19 = 000000001045df68
Func: run_timer_list_running, Off: 0, Addr: 0x1045df68
GR20 = 0000000000001e11
GR21 = 000000001045df68
Func: run_timer_list_running, Off: 0, Addr: 0x1045df68
GR26 = 0000000010472df8
Func: hp_diva_timer, Off: 0, Addr: 0x10472df8
I think that the patch is quite wrong somehow...
Will investigate further tomorrow.
HTH,
Thibaut VARENE
The PA/Linux ESIEE Team
http://pateam.esiee.fr/