Subject: Problems building an SMP kernel on netbsd/sparc
To: 'NetBSD-Current List' <current-users@netbsd.org>
From: Glen Gross <ggross@symark.com>
List: current-users
Date: 11/06/2001 07:56:24
Hi All,

I have been trying to build an SMP kernel on a dual processor sparcstation 10. 
  I added "options MULTIPROCESSOR" to the
kernel build file.

Now when I build my kernel, both CPU's are detected, but the onboard ethernet 
[le0] fails to initialize.  Does anyone know a workaround
for this problem?  My dmesg output is attached.  Thanks in advance for any 
light you can shed on this situation.

Regards,

Glen M. Gross


[dmesg output follows.....]

Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001
    The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 1.5Y (clonix.smp) #5: Tue Nov  6 06:15:05 PST 2001
    root@sparc10:/usr/src/src/sys/arch/sparc/compile/clonix.smp
total memory = 32048 KB
avail memory = 27320 KB
using 426 buffers containing 1704 KB of memory
bootpath: /iommu@f,e0000000/sbus@f,e0001000/espdma@f,400000/esp@f,800000/sd@0,0
mainbus0 (root): SUNW,SPARCstation-10
cpu0 at mainbus0: mid 8: TMS390Z50 v0 or TMS390Z55 @ 40 MHz, on-chip FPU
cpu0: physical 20K instruction (64 b/l), 16K data (32 b/l): cache enabled
cpu1 at mainbus0: mid 10: TMS390Z50 v0 or TMS390Z55 @ 40 MHz, on-chip FPU
cpu1: physical 20K instruction (64 b/l), 16K data (32 b/l): cache enabled
obio0 at mainbus0
clock0 at obio0 slot 0 offset 0x200000: mk48t08: hostid 72337954
timer0 at obio0 slot 0 offset 0x300000 delay constant 18
zs0 at obio0 slot 0 offset 0x100000 level 12 softpri 6
zstty0 at zs0 channel 0
zstty1 at zs0 channel 1
zs1 at obio0 slot 0 offset 0x0 level 12 softpri 6
kbd0 at zs1 channel 0: baud rate 1200 (console input)
ms0 at zs1 channel 1: baud rate 1200
fdc0 at obio0 slot 0 offset 0x700000 level 11 softpri 4: chip 82077
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
auxreg0 at obio0 slot 0 offset 0x800000
power0 at obio0 slot 0 offset 0xa01000 level 2
iommu0 at mainbus0 ioaddr 0xe0000000: version 0x3/0x0, page-size 4096, range 
64MB
sbus0 at iommu0: clock = 20 MHz
dma0 at sbus0 slot 15 offset 0x400000: dma rev 2
esp0 at dma0 slot 15 offset 0x800000 level 4: ESP200, 40MHz, SCSI ID 7
scsibus0 at esp0: 8 targets, 8 luns per target
ledma0 at sbus0 slot 15 offset 0x400010: dma rev 2
le0 at ledma0 slot 15 offset 0xc00000 level 6: address 08:00:20:1f:0b:55
le0: 8 receive buffers, 2 transmit buffers
SUNW,bpp at sbus0 slot 15 offset 0x4800000 level 2 (ipl 3) not configured
SUNW,DBRIe at sbus0 slot 15 offset 0x8010000 level 9 not configured
cgsix0 at sbus0 slot 1 offset 0x0 level 9: SUNW,501-1481, 1152 x 900, rev 1 
(console)
cgsix0: attached to /dev/fb
eccmemctl0 at mainbus0: version 0x0/0x1
scsibus0: waiting 2 seconds for devices to settle...
sd0 at scsibus0 target 0 lun 0: <QUANTUM, EMPIRE_2100S, 100E> SCSI2 0/direct 
fixed
sd0: 2006 MB, 3053 cyl, 12 head, 112 sec, 512 bytes/sect x 4108600 sectors
sd0: sync (100.0ns offset 15), 8-bit (10.000MB/s) transfers, tagged queueing
sd1 at scsibus0 target 1 lun 0: <CONNER, CP30540  SUN0535, B0BB> SCSI2 0/direct 
fixed
sd1: 520 MB, 2242 cyl, 6 head, 79 sec, 512 bytes/sect x 1065912 sectors
sd1: sync (100.0ns offset 15), 8-bit (10.000MB/s) transfers, tagged queueing
root on sd0a dumps on sd0b
cpu0: booting secondary processors: cpu1
raise_ipi_wait_and_unlock(cpu0): couldn't ping cpu1
init: copying out path `/sbin/init' 11
le0: controller failed to initialize
ledma0: error: csr=a0460012<ERR,DRAINING=0,IEN,DSBL_WR_INVAL,TP>
le0: controller failed to initialize
ledma0: error: csr=a0060012<ERR,DRAINING=0,IEN,DSBL_WR_INVAL>