Subject: Re: 1.5.2 hangs on iBook2 when mounting cdrom
To: None <port-macppc@netbsd.org>
From: None <dbj@netbsd.org>
List: port-macppc
Date: 12/11/2001 16:32:12
I have a 500 Mhz dual usb ibook with the combo dvd/cd-rw drive.
Both the 20011111-1.5Y snapshot and -current sources from the
20011210 tarballs exhibit the same behavior which prevents
me from using the CD drive.

Accessing the cd drive with either the disklabel or mount command
results in the following console message and then a hung system:

 # disklabel cd0
 wdc:0:0:1: lost interrupt
          type: atapi tc_bcount: 32 tc_skip: 0

I can access wd0 fine and have been able to install over the
network interface and use the rest of the system normally.

I have included the dmesg output below taken from
booting the 20011111-1.5Y snapshot.

Darrin

: Subject: Re: 1.5.2 hangs on iBook2 when mounting cdrom
: To: Laurent de Segur <ldesegur@mac.com>
: From: Nathan J. Williams <nathanw@wasabisystems.com>
: List: port-macppc
: Date: 12/07/2001 13:09:01 
: 
: Laurent de Segur <ldesegur@mac.com> writes:
: 
: > The machine is the iBook2001 first gen (500/66) and before it dies the
: > kernel spits a message stating that it missed an interrupt. That can't
: > be good.
: 
: This is the ATA timing issue in wdc_obio.c that was fixed by Manuel
: Bouyer in August (rev 1.16 of wdc_obio.c is the crucial one). 
: 
: > Has anyone seen that? Is the snapshot dated 111101 works better? I am
: > going to try that after. Thanks for letting me know,
: 
: This should work fine in the 11 November snapshot, yes.
: 
:         - Nathan

NetBSD 1.5Y (GENERIC) #1: Sun Nov 11 07:48:50 UTC 2001
    root@cube:/usr/obj/amd/celeron/root/local1/src/src/sys/arch/macppc/compile/GENERIC
total memory = 384 MB
avail memory = 343 MB
using 2048 buffers containing 19760 KB of memory
mainbus0 (root)
cpu0 at mainbus0: 750 (Revision 2215), ID 0 (primary)
cpu0: HID0 8090c0a4<EMCP,DOZE,DPM,ICE,DCE,SGE,BTIC,BHT>
cpu0: 256KB backside cache
uninorth0 at mainbus0
pci0 at uninorth0 bus 0
pci0: i/o space, memory space enabled
pchb0 at pci0 dev 11 function 0
pchb0: Apple Computer Pangea AGP Interface (rev. 0x00)
ofb0 at pci0 dev 16 function 0: ATI Technologies Mobility M3 (AGP)
ofb0: 1024 x 768, 8bpp
wsdisplay0 at ofb0: console (std, vt100 emulation)
uninorth1 at mainbus0
pci1 at uninorth1 bus 0
pci1: i/o space, memory space enabled
pchb1 at pci1 dev 11 function 0
pchb1: Apple Computer Pangea Host-PCI Bridge (rev. 0x00)
obio0 at pci1 dev 23 function 0: addr 0x80000000
zsc0 at obio0 offset 0x13000: 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: 3 targets
aed0 at adb0 addr 0: ADB Event device
akbd0 at adb0 addr 2: PowerBook G3 keyboard
wskbd0 at akbd0: console keyboard, using wsdisplay0
ams0 at adb0 addr 3: EMP trackpad <tpad> 2-button, 400 dpi
wsmouse0 at ams0
abtn0 at adb0 addr 7: brightness/volume button
battery at obio0 offset 0x0 not configured
backlight at obio0 offset 0xf300 not configured
wdc0 at obio0 offset 0x1f000 irq 19: DMA transfer
atapibus0 at wdc0 channel 0: 2 targets
cd0 at atapibus0 drive 1: <TOSHIBA DVD-ROM SD-R2002, , 1B27> type 5 cdrom removable
cd0: drive supports PIO mode 4, DMA mode 2
wd0 at wdc0 channel 0 drive 0: <IC25N030ATDA04-0>
wd0: drive supports 16-sector PIO transfers, LBA addressing
wd0: 28615 MB, 16383 cyl, 16 head, 63 sec, 512 bytes/sect x 58605120 sectors
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
ata4 conf = 0x1c9328ca, cyc = 4 (25 ns), act = 14 (100 ns), inact = 6
wd0(wdc0:0:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 4 (Ultra/66) (using DMA data transfers)
cd0(wdc0:0:1): using PIO mode 4, DMA mode 2 (using DMA data transfers)
wi0 at obio0 offset 0x30000 irq 57: 802.11 address 00:30:65:09:c2:e6
wi0: using Lucent chip or unknown chip
ohci0 at pci1 dev 24 function 0: Apple Computer Pangea USB Controller (rev. 0x00)
ohci0: interrupting at irq 27
ohci0: OHCI version 1.0
usb0 at ohci0: USB revision 1.0
uhub0 at usb0
uhub0: Apple Computer OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
ohci1 at pci1 dev 25 function 0: Apple Computer Pangea USB Controller (rev. 0x00)
ohci1: interrupting at irq 28
ohci1: OHCI version 1.0
usb1 at ohci1: USB revision 1.0
uhub1 at usb1
uhub1: Apple Computer OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uninorth2 at mainbus0
pci2 at uninorth2 bus 0
pci2: i/o space, memory space enabled
pchb2 at pci2 dev 11 function 0
pchb2: Apple Computer Pangea Host-PCI Bridge (rev. 0x00)
fwohci0 at pci2 dev 14 function 0: Apple Computer Pangea Firewire (rev. 0x00)
fwohci0: interrupting at irq 40
fwohci0: OHCI 1.0, 00:03:93:ff:fe:3d:98:1e, 400Mb/s, 2048 max_rec, 8 iso_ctx
gm0 at pci2 dev 15 function 0: Ethernet address 00:03:93:3d:98:1e
gm0: interrupting at irq 41
bmtphy0 at gm0 phy 0: BCM5221 10/100 media interface, rev. 3
bmtphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
fw0 at fwohci0: 00:03:93:ff:fe:3d:98:1e:0a:02:20:00:00:00:00:00
boot device: wd0
root on wd0a dumps on wd0b
root file system type: ffs