Subject: port-sparc/14107: -curent panics on sun4c probing le0
To: None <>
From: Manuel Bouyer <>
List: netbsd-bugs
Date: 09/30/2001 21:12:48
>Number:         14107
>Category:       port-sparc
>Synopsis:       -curent panics on sun4c probing le0
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    port-sparc-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Sep 30 12:25:01 PDT 2001
>Originator:     Manuel Bouyer
>Release:        -current as of today

System: NetBSD 1.5Y (GENERIC) #0: Sun Sep 30 20:34:37 MEST 2001
Architecture: sparc
Machine: sun4c (sparc IPC)

	A current kernel will panic while probing le0:
NetBSD 1.5Y (GENERIC) #0: Sun Sep 30 20:34:37 MEST 2001
total memory = 49100 KB
avail memory = 44648 KB
using 128 buffers containing 512 KB of memory
bootpath: /sbus0/esp0/sd@0,0
mainbus0 (root): Sun 4/40
cpu0 at mainbus0: MB86900/1A or L64801 @ 25 MHz, WTL3170/2 FPU
cpu0: 64K byte write-through, 16 bytes/line, sw flush: cache enabled
memreg0 at mainbus0 ioaddr 0xf4000000
clock0 at mainbus0 ioaddr 0xf2000000: mk48t02: hostid 521c276e
timer0 at mainbus0 ioaddr 0xf3000000 ipl 10 delay constant 10
auxreg0 at mainbus0 ioaddr 0xf7400000
zs0 at mainbus0 ioaddr 0xf1000000 ipl 12 softpri 6
zstty0 at zs0 channel 0 (console i/o)
zstty1 at zs0 channel 1
zs1 at mainbus0 ioaddr 0xf0000000 ipl 12 softpri 6
kbd0 at zs1 channel 0: baud rate 1200
ms0 at zs1 channel 1: baud rate 1200
fdc0 at mainbus0 ioaddr 0xf7200000 ipl 11 softpri 4: chip 82072
audioamd0 at mainbus0 ioaddr 0xf7201000 ipl 13 softpri 4
audio0 at audioamd0: full duplex
sbus0 at mainbus0 ioaddr 0xf8000000: clock = 25 MHz
dma0 at sbus0 slot 0 offset 0x400000: dma rev 1
esp0 at sbus0 slot 0 offset 0x800000 level 3: ESP100, 25MHz, SCSI ID 7
scsibus0 at esp0: 8 targets, 8 luns per target
le0 at sbus0 slot 0 offset 0xc00000 level 5: address 08:00:20:1c:27:6e
le0: 8 receive buffers, 2 transmit buffers
trap type 0x2: pc=0xf01d0918 npc=0xf01d091c psr=801fc0<EF,S,PS>
panic: illegal instruction

	From a kernel compile with ddb:
le0 at sbus0 slot 0 offset 0xc00000 level 5: address 08:00:20:1c:27:6e
le0: 8 receive buffers, 2 transmit buffers
trap type 0x2: pc=0xf01d7ca8 npc=0xf01d7cac psr=801fc0<EF,S,PS>
kernel: illegal instruction trap
Stopped in pid 0 (swapper) at   gcc2_compiled.: illtrap         gcc2_compiled.
db> tr
config_search(0xf0284868, 0xf0385c80, 0xf0284a04, 0xf02836c8, 0xf02836c4, 0x8000
000) at config_search+0x8c
config_found_sm(0xf0385c80, 0xf02836a0, 0xf01e07f8, 0x0, 0xf02836a0, 0x4010e4) a
t config_found_sm+0xc
sbus_attach_common(0xf0385c80, 0xf028e800, 0x0, 0x0, 0xf025eeb0, 0x4010e5) at sb
sbus_attach_mainbus(0xf0390fc0, 0xf0385c80, 0xf02838c0, 0xf01e095c, 0x4, 0xf037f
cf0) at sbus_attach_mainbus+0xac
config_attach(0xf0385c80, 0xf02857bc, 0xf02838c0, 0xf0286400, 0xf0204e38, 0x4000
e0) at config_attach+0x310
config_found_sm(0xf0390fc0, 0xf02838c0, 0xf0204e38, 0x0, 0x0, 0x0) at config_fou
mainbus_attach(0xf0283800, 0xf0390fc0, 0xf0266b18, 0xf0204c00, 0xf028e800, 0xf03
7ffb0) at mainbus_attach+0x620
config_attach(0xf0390fc0, 0xf02857bc, 0x0, 0xf0286400, 0x0, 0xf02c9114) at confi
config_rootfound(0xf0266aa0, 0x0, 0x400fe4, 0xfe014000, 0x1, 0xf037e3c4) at conf
cpu_configure(0xf02b6000, 0xf02b62c8, 0xf02b6000, 0xffffffff, 0x0, 0xf023fc40) a
t cpu_configure+0x120
configure(0x30a, 0x337, 0xf0283c00, 0x1cc0, 0xffffffff, 0x76c0) at configure+0x3
main(0x0, 0xfffffff8, 0x0, 0x0, 0xffffffff, 0xf0002200) at main+0x3d8
Lgandul(0x0, 0x387cb8, 0x10, 0x387d5c, 0x38c37c, 0x2ce85a) at Lgandul+0xe8

I also tried to build trimmed down, ipc-only kernels wihtout better results.

A 1.5X kernel runs fine on this hardware.

	Boot -current on a Sparc IPC