Subject: 2.0 beta kernel trouble
To: None <port-macppc@netbsd.org>
From: Erik Hanspers <erik@univits.com>
List: port-macppc
Date: 07/08/2004 11:06:28
Hello all,

I've been trying to get the netbsd-2-0 kernel running on my beige G3 
currently running netbsd-1-6, but I am unable to get the kernel to 
complete the boot process.

The last thing printed to the console is
"scsibus0: waiting 2 seconds for devices to settle..."
and after that the machine just hangs until I power it off.

I added a couple of debug printouts in sys/dev/scsipi/scsiconf.c to see 
how far I get after that console message and noticed that the tsleep 
call just after it never returns.

Checking why that would be so I debugged the timer in 
sys/kern/kern_timeout.c which the tsleep call uses to awake after its 
timeout (of 2 secs).
When the boot process hangs it seems that callout_hardclock() repeatedly 
reports that it wants the softclock interrupt to be triggerred, but the 
softclock() routine is never invoked.

Looking at the manpage callout(9) it is suggested that this happens if 
the interrupt level never drops low enough to let softclock interrupts 
through.

However, here I find myself clueless as to what could be causing this 
behaviour or even how to start debugging it.

I have tried all this on a netbsd-2-0 kernel built from sources checked 
out this monday (5/7).

So is there anyone out there who knows what may be causing my problems?
All thoughts and suggestions appreciated!


dmesg from the currently running 1.6 system:

NetBSD 1.6 (GENERIC) #0: Sun Sep  8 22:04:33 UTC 2002

autobuild@tgm.daemon.org:/autobuild/macppc/OBJ/autobuild/src/sys/arch/macppc/compile/GENERIC
total memory = 65536 KB
avail memory = 53392 KB
using 844 buffers containing 3376 KB of memory
mainbus0 (root)
cpu0 at mainbus0: 750 (Revision 2.2), ID 0 (primary)
cpu0: HID0 8290c0a4<EMCP,ECLK,DOZE,DPM,ICE,DCE,SGE,BTIC,BHT>
cpu0: 237.29 MHz
cpu0: 512KB backside cache
grackle0 at mainbus0
pci0 at grackle0 bus 0
pci0: i/o space, memory space enabled
pchb0 at pci0 dev 0 function 0
pchb0: Motorola MPC106 "Grackle" Host Bridge (rev. 0x40)
Intersil Intersil PRISM2.5 Mini-PCI WLAN (miscellaneous network, 
revision 0x01) at pci0 dev 14 function 0 not configured
obio0 at pci0 dev 16 function 0: addr 0xf3000000
mesh0 at obio0 offset 0x10000 irq 12: 50MHz, SCSI ID 7
scsibus0 at mesh0: 8 targets, 8 luns per target
bm0 at obio0 offset 0x11000 irq 42,33: address 00:05:02:81:12:3b
zsc0 at obio0 offset 0x13000: irq 15,16
zstty0 at zsc0 channel 0
zstty1 at zsc0 channel 1
davbus at obio0 offset 0x14000 not configured
swim3 at obio0 offset 0x15000 not configured
nvram0 at obio0 offset 0x60000
wdc0 at obio0 offset 0x20000 irq 13: DMA transfer
wd0 at wdc0 channel 0 drive 0: <IBM-DTLA-307030>
wd0: drive supports 16-sector PIO transfers, LBA addressing
wd0: 29314 MB, 16383 cyl, 16 head, 63 sec, 512 bytes/sect x 60036480 sectors
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
wd0(wdc0:0:0): using PIO mode 4, DMA mode 2 (using DMA data transfers)
wdc1 at obio0 offset 0x21000 irq 14: DMA transfer
atapibus0 at wdc1 channel 0: 2 targets
cd0 at atapibus0 drive 0: <MATSHITA CR-585, , ZS20> type 5 cdrom removable
cd0: drive supports PIO mode 3, DMA mode 1
cd0(wdc1:0:0): using PIO mode 3, DMA mode 1 (using DMA data transfers)
adb0 at obio0 offset 0x16000 irq 18: 2 targets
aed0 at adb0 addr 0: ADB Event device
akbd0 at adb0 addr 2: extended keyboard (ISO layout)
wskbd0 at akbd0: console keyboard
ams0 at adb0 addr 3: EMP mouse <@200> 1-button, 200 dpi
wsmouse0 at ams0 mux 0
ofb0 at pci0 dev 18 function 0: ATI Technologies 3D Rage I/II
ofb0: 1280 x 1024, 8bpp
wsdisplay0 at ofb0 kbdmux 1: console (std, vt100 emulation), using wskbd0
wsmux1: connecting to wsdisplay0
scsibus0: waiting 2 seconds for devices to settle...
boot device: wd0
root on wd0a dumps on wd0b
wd0: transfer error, downgrading to PIO mode 4
wd0(wdc0:0:0): using PIO mode 4
wd0c: error reading fsbn 0 (wd0 bn 0; cn 0 tn 0 sn 0), retrying
wd0: (aborted command, bad block detected)
wd0: soft error (corrected)
root file system type: ffs