Subject: Re: Long delays during bootup in -current
To: Manuel Bouyer <bouyer@antioche.eu.org>
From: Sanjay Lal <sanjayl@kymasys.com>
List: port-macppc
Date: 10/08/2006 16:28:15
Please see my comments inline...

On Oct 8, 2006, at 3:33 PM, Manuel Bouyer wrote:

> On Sun, Oct 08, 2006 at 08:12:20AM -0700, Sanjay Lal wrote:
>> I'm seeing long delays during bootup of the INSTALL kernel in -
>> current. This is on a PowerPC Mac mini.
>>
>> timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
>> timecounter: selected timecounter "clockinterrupt" frequency 100 Hz
>> quality 0
>> timecounter: Timecounter "mftb" frequency 41600661 Hz quality 0
>> timecounter: selected timecounter "mftb" frequency 41600661 Hz  
>> quality 0
>> md0: internal 2048 KB image area
>> Kernelized RAIDframe activated
>>
>> <<<<<<<<<LONG DELAY>>>>>>>>>>>>>>>>>
>
> How much long ? maybe 30s ?

More like ~90 secs.

>
>>
>> atapibus0 at atabus1: 2 targets
>
> Is there an atabus0 ? To what is it attached ? Is there any drive  
> attached
> to atabus0 ?

Yep, there is a atabus0, it is attached to wdc0 which is attached to  
obio0. Here is the entire dmesg:

Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,  
2005, 2006
     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 4.99.3 (INSTALL) #0: Sun Oct  8 07:31:08 PDT 2006
	sanjayl@kyma-serv1.kymasys.com:/home/sanjayl/WORKSPACE/kyma/netbsd- 
current/src/sys/arch/macppc/compile/INSTALL
total memory = 512 MB
avail memory = 490 MB
timecounter: Timecounters tick every 10.000 msec
init_interrupt: found OpenPIC @ pa 0x80040000, 0x80040000
mainbus0 (root)
cpu0 at mainbus0: 7447A (Revision 1.5), ID 0 (primary)
cpu0: HID0  
8450c0bc<EMCP,EICE,NAP,DPM,ICE,DCE,SGE,BTIC,FBIOB,ABE,BHT>, powersave: 1
cpu0: 1500.01 MHz, 512KB L2 cache
uninorth0 at mainbus0
pci0 at uninorth0 bus 0
pci0: i/o space, memory space enabled
pchb0 at pci0 dev 11 function 0
pchb0: vendor 0x106b product 0x0034 (rev. 0x00)
ofb0 at pci0 dev 16 function 0: vendor 0x1002 product 0x5962
ofb0: 1280 x 1024, 8bpp
wsdisplay0 at ofb0 kbdmux 1: console (std, vt100 emulation)
wsmux1: connecting to wsdisplay0
uninorth1 at mainbus0
pci1 at uninorth1 bus 0
pci1: i/o space, memory space enabled
pchb1 at pci1 dev 11 function 0
pchb1: vendor 0x106b product 0x0035 (rev. 0x00)
vendor 0x14e4 product 0x4318 (miscellaneous network, revision 0x02)  
at pci1 dev 18 function 0 not configured
obio0 at pci1 dev 23 function 0: addr 0x80000000
zsc0 at obio0: irq 22,23
zstty0 at zsc0 channel 0
zstty1 at zsc0 channel 1
i2s at obio0 offset 0x10000 not configured
adb0 at obio0 offset 0x16000 irq 47: pm_adb_op: timeout. command = 0x0
pmu: failed to read prim-info
0 targets
wdc0 at obio0 offset 0x20000 irq 24: DMA transfer
atabus0 at wdc0 channel 0
ohci0 at pci1 dev 24 function 0: vendor 0x106b product 0x003f (rev.  
0x00)
ohci0: can't map mem space
ohci1 at pci1 dev 25 function 0: vendor 0x106b product 0x003f (rev.  
0x00)
ohci1: can't map mem space
ohci2 at pci1 dev 26 function 0: vendor 0x106b product 0x003f (rev.  
0x00)
ohci2: interrupting at irq 29
ohci2: OHCI version 1.0, legacy support
usb0 at ohci2: USB revision 1.0
uhub0 at usb0
uhub0: vendor 0x106b OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
ohci3 at pci1 dev 27 function 0: vendor 0x1033 product 0x0035 (rev.  
0x43)
ohci3: interrupting at irq 63
ohci3: OHCI version 1.0
usb1 at ohci3: USB revision 1.0
uhub1 at usb1
uhub1: vendor 0x1033 OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 3 ports with 3 removable, self powered
ohci4 at pci1 dev 27 function 1: vendor 0x1033 product 0x0035 (rev.  
0x43)
ohci4: interrupting at irq 63
ohci4: OHCI version 1.0
usb2 at ohci4: USB revision 1.0
uhub2 at usb2
uhub2: vendor 0x1033 OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
vendor 0x1033 product 0x00e0 (USB serial bus, interface 0x20,  
revision 0x04) at pci1 dev 27 function 2 not configured
uninorth2 at mainbus0
pci2 at uninorth2 bus 0
pci2: i/o space, memory space enabled
pchb2 at pci2 dev 11 function 0
pchb2: vendor 0x106b product 0x0036 (rev. 0x00)
wdc1 at pci2 dev 13 function 0: interrupting at irq 39
atabus1 at wdc1 channel 0
vendor 0x106b product 0x0031 (Firewire serial bus, interface 0x10,  
revision 0x81) at pci2 dev 14 function 0 not configured
gem0 at pci2 dev 15 function 0: vendor 0x106b product 0x0032 (rev. 0x80)
gem0: interrupting at irq 41
gem0: Ethernet address 00:11:24:d1:c7:b8, 10KB RX fifo, 4KB TX fifo
bmtphy0 at gem0 phy 0: BCM5221 10/100 media interface, rev. 4
bmtphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
timecounter: selected timecounter "clockinterrupt" frequency 100 Hz  
quality 0
timecounter: Timecounter "mftb" frequency 41600661 Hz quality 0
timecounter: selected timecounter "mftb" frequency 41600661 Hz quality 0
md0: internal 2048 KB image area
Kernelized RAIDframe activated
atapibus0 at atabus1: 2 targets
cd0 at atapibus0 drive 1: <MATSHITACD-RW  CW-8124, , DACD> cdrom  
removable
cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
wd0 at atabus1 drive 0: <Hitachi HTS541080G9AT00>
wd0: drive supports 16-sector PIO transfers, LBA48 addressing
wd0: 76319 MB, 155061 cyl, 16 head, 63 sec, 512 bytes/sect x  
156301488 sectors
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
wd0(wdc1:0:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/ 
100) (using DMA)
cd0(wdc1:0:1): using PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/ 
33) (using DMA)
uhidev0 at uhub1 port 1 configuration 1 interface 0
uhidev0: Logitech USB Receiver, rev 1.10/17.00, addr 2, iclass 3/1
uhidev1 at uhub0 port 1 configuration 1 interface 0
uhidev1: vendor 0x05ac product 0x1000, rev 2.00/19.65, addr 2, iclass  
3/1
ukbd0 at uhidev0
wskbd1 at ukbd0 mux 1
wskbd1: connecting to wsdisplay0
uhidev2 at uhub1 port 1 configuration 1 interface 1ukbd1 at uhidev1
wskbd2 at ukbd1 mux 1
wskbd2: connecting to wsdisplay0
uhidev3 at uhub0 port 1 configuration 1 interface 1
uhidev3: vendor 0x05ac product 0x1000, rev 2.00/19.65, addr 2, iclass  
3/1

uhidev2: Logitech USB Receiver, rev 1.10/17.00, addr 2, iclass 3/1
uhid at uhidev3 not configured
uhidev2: 4 report ids
uhid at uhidev2 reportid 1 not configured
uhid at uhidev2 reportid 2 not configured
uhid at uhidev2 reportid 3 not configured
uhid at uhidev2 reportid 4 not configured



Thanks,
Sanjay

>
> -- 
> Manuel Bouyer <bouyer@antioche.eu.org>
>      NetBSD: 26 ans d'experience feront toujours la difference
> --
>