NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

port-macppc/39176: ppcoea-renovation merge broke wdc1 on Mac mini



>Number:         39176
>Category:       port-macppc
>Synopsis:       ppcoea-renovation merge broke wdc1 on Mac mini
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    port-macppc-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jul 20 23:40:00 +0000 2008
>Originator:     Krister Walfridsson
>Release:        NetBSD-current
>Organization:
        
>Environment:
        
        
>Description:
My old mac Mini has problems with interrups on wdc1.  The problem started
when the ppcoea-renovation was merged.

The merge did change the dmesg output for the wdc0 in a way that
that may be relevant:

--- dmesg-before        Mon Jul 21 01:18:36 2008
+++ dmesg-after Mon Jul 21 01:18:36 2008
@@ -4,12 +4,13 @@
 Copyright (c) 1982, 1986, 1989, 1991, 1993
     The Regents of the University of California.  All rights reserved.
 
-NetBSD 4.99.34 (GENERIC) #0: Sun Jul 20 18:33:25 CEST 2008
-       cato@pc5:/usr/local/tmp/200710172100/src/sys/arch/macppc/compile/GENERIC
+NetBSD 4.99.34 (GENERIC) #0: Sun Jul 20 18:33:27 CEST 2008
+       cato@pc5:/usr/local/tmp/200710172200/src/sys/arch/macppc/compile/GENERIC
 total memory = 512 MB
 avail memory = 487 MB
 timecounter: Timecounters tick every 10.000 msec
-init_interrupt: found OpenPIC @ pa 0x80040000, 0x80040000
+found openpic PIC at 80040000
+OpenPIC Version 1.2: Supports 4 CPUs and 64 interrupt sources.
 mainbus0 (root)
 cpu0 at mainbus0: 7447A (Revision 0.2), ID 0 (primary)
 cpu0: HID0 8450c0bc<EMCP,EICE,NAP,DPM,ICE,DCE,SGE,BTIC,FBIOB,ABE,BHT>, 
powersave: 1
@@ -148,12 +149,15 @@
 zstty0 at zsc0 channel 0
 zstty1 at zsc0 channel 1
 snapper0 at obio0 offset 0x10000: irq 30,1,2
-adb0 at obio0 offset 0x16000 irq 47: pmu: failed to read prim-info
-apm0 at adb0: battery flags 0x0, 0% charged
+pmu0 at obio0 offset 0x16000 irq 47:  rev. 85
+pmu0: initializing IIC bus
+pmu0: initializing RTC
+pmu0: power-mgt not configured
+pmu0: pmu-pwm-fans not configured
 ki2c1 at obio0
 iic1 at ki2c1: I2C bus
 cereal at ki2c1 address 0x1c0 not configured
-wdc0 at obio0 offset 0x20000 irq 24: DMA transfer
+wdc0 at obio0 offset 0x20000 irq 24, level triggered: DMA transfer
 atabus0 at wdc0 channel 0
 snapper0: software codec
 audio0 at snapper0: full duplex
@@ -228,14 +232,65 @@
 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)
-boot device: gem0
-root on gem0
-nfs_boot: trying DHCP/BOOTP
 uhidev0 at uhub2 port 1 configuration 1 interface 0
 uhidev0: Sun Microsystems Type 6 USB keyboard, rev 1.00/1.02, addr 2, iclass 
3/1
 ukbd0 at uhidev0
-wskbd1 at ukbd0 mux 1
-wskbd1: connecting to wsdisplay0
+wskbd0 at ukbd0 mux 1
+wskbd0: connecting to wsdisplay0
+wdc1:0:0: lost interrupt
+       type: ata tc_bcount: 512 tc_skip: 0
+wdc1:0:0: intr with DRQ (st=0x58)
+wd0c: device timeout reading fsbn 0 (wd0 bn 0; cn 0 tn 0 sn 0), retrying
+wdc1:0:0: lost interrupt
+       type: ata tc_bcount: 512 tc_skip: 0
+wdc1:0:0: intr with DRQ (st=0x58)
+wd0c: device timeout reading fsbn 0 (wd0 bn 0; cn 0 tn 0 sn 0), retrying
+wdc1:0:0: lost interrupt
+       type: ata tc_bcount: 512 tc_skip: 0
+wdc1:0:0: intr with DRQ (st=0x58)
+wd0c: device timeout reading fsbn 0 (wd0 bn 0; cn 0 tn 0 sn 0), retrying
+wdc1:0:0: lost interrupt
+       type: ata tc_bcount: 512 tc_skip: 0
+wdc1:0:0: intr with DRQ (st=0x58)
+wd0c: device timeout reading fsbn 0 (wd0 bn 0; cn 0 tn 0 sn 0), retrying
+wd0: soft error (corrected)
+wdc1:0:0: lost interrupt
+       type: ata tc_bcount: 512 tc_skip: 0
+wdc1:0:0: intr with DRQ (st=0x58)
+wd0c: device timeout reading fsbn 0 (wd0 bn 0; cn 0 tn 0 sn 0), retrying
+wdc1:0:0: lost interrupt
+       type: ata tc_bcount: 512 tc_skip: 0
+wdc1:0:0: intr with DRQ (st=0x58)
+wd0c: device timeout reading fsbn 0 (wd0 bn 0; cn 0 tn 0 sn 0), retrying
+wdc1:0:0: lost interrupt
+       type: ata tc_bcount: 512 tc_skip: 0
+wdc1:0:0: intr with DRQ (st=0x58)
+wd0c: device timeout reading fsbn 0 (wd0 bn 0; cn 0 tn 0 sn 0), retrying
+wdc1:0:0: lost interrupt
+       type: ata tc_bcount: 512 tc_skip: 0
+wdc1:0:0: intr with DRQ (st=0x58)
+wd0c: device timeout reading fsbn 0 (wd0 bn 0; cn 0 tn 0 sn 0), retrying
+wd0: soft error (corrected)
+wdc1:0:0: lost interrupt
+       type: ata tc_bcount: 16384 tc_skip: 0
+wdc1:0:0: intr with DRQ (st=0x58)
+wd0c: device timeout reading fsbn 1 of 1-32 (wd0 bn 1; cn 0 tn 0 sn 1), 
retrying
+wdc1:0:0: lost interrupt
+       type: ata tc_bcount: 16384 tc_skip: 0
+wdc1:0:0: intr with DRQ (st=0x58)
+wd0c: device timeout reading fsbn 1 of 1-32 (wd0 bn 1; cn 0 tn 0 sn 1), 
retrying
+wdc1:0:0: lost interrupt
+       type: ata tc_bcount: 16384 tc_skip: 0
+wdc1:0:0: intr with DRQ (st=0x58)
+wd0c: device timeout reading fsbn 1 of 1-32 (wd0 bn 1; cn 0 tn 0 sn 1), 
retrying
+wdc1:0:0: lost interrupt
+       type: ata tc_bcount: 16384 tc_skip: 0
+wdc1:0:0: intr with DRQ (st=0x58)
+wd0c: device timeout reading fsbn 1 of 1-32 (wd0 bn 1; cn 0 tn 0 sn 1), 
retrying
+wd0: soft error (corrected)
+boot device: gem0
+root on gem0
+nfs_boot: trying DHCP/BOOTP
 nfs_boot: DHCP next-server: 171.16.4.140
 nfs_boot: my_name=macppc
 nfs_boot: my_domain=kwa



Here is the full dmesg (after the ppcoea-renovation merge):

Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
    2006, 2007
    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.34 (GENERIC) #0: Sun Jul 20 18:33:27 CEST 2008
        cato@pc5:/usr/local/tmp/200710172200/src/sys/arch/macppc/compile/GENERIC
total memory = 512 MB
avail memory = 487 MB
timecounter: Timecounters tick every 10.000 msec
found openpic PIC at 80040000
OpenPIC Version 1.2: Supports 4 CPUs and 64 interrupt sources.
mainbus0 (root)
cpu0 at mainbus0: 7447A (Revision 0.2), ID 0 (primary)
cpu0: HID0 8450c0bc<EMCP,EICE,NAP,DPM,ICE,DCE,SGE,BTIC,FBIOB,ABE,BHT>, 
powersave: 1
cpu0: 1250.00 MHz, 512KB L2 cache
uni_n0 at mainbus0 address 0xf8000000
hw-clock at uni_n0 not configured
ki2c0 at uni_n0 address 0xf8001000
iic0 at ki2c0: I2C bus
cereal at ki2c0 address 0x1c0 not configured
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 UniNorth AGP Bridge (rev. 0x00)
radeonfb0 at pci0 dev 16 function 0: ATI Technologies Radeon 9200 5962
radeonfb0: Video BIOS not present
radeonfb0: No video BIOS, using default clocks
radeonfb0: refclk = 27.000 MHz, refdiv = 12 minpll = 125000, maxpll = 350000
radeonfb0: using static EDID
max_dotclock according to supported modes: 108000
Vendor: [GVC] 
Product: [06E9] 
Serial number: 01000000
Manufactured 1998 Week 44
EDID Version 1.1
EDID Comment: 
Video Input: 68
        Analog
        -0.7, 0.0V
        Seperate syncs
Gamma: 0.24
Max Size: 32 cm x 24 cm
Features: e8
        DPMS standby
        DPMS suspend
        DPMS active-off
        RGB
Chroma Info:
        Red X: 0.625
        Red Y: 0.625
        Grn X: 0.309
        Grn Y: 0.591
        Blu X: 0.150
        Blu Y: 0.065
        Wht X: 0.281
        Wht Y: 0.310
Range:
        Horizontal: 28 - 70 kHz
        Vertical: 40 - 120 Hz
        Max Dot Clock: 108 MHz
Video modes:
        1024x768 @ 70Hz
        1024x768 @ 60Hz
        1024x768 @ 43Hz
        800x600 @ 72Hz
        800x600 @ 60Hz
        800x600 @ 56Hz
        640x480 @ 73Hz
        640x480 @ 60Hz
        640x480 @ 70Hz
        640x480 @ 70Hz
        640x480 @ 84Hz
        640x480 @ 84Hz
        1280x960 @ 60Hz
        1024x768 @ 87Hz
        640x350 @ 70Hz
        640x350 @ 70Hz
        1024x768 @ 72Hz
Preferred mode: 640x350 @ 70Hz
radeonfb0: using static EDID
max_dotclock according to supported modes: 108000
Vendor: [GVC] 
Product: [06E9] 
Serial number: 01000000
Manufactured 1998 Week 44
EDID Version 1.1
EDID Comment: 
Video Input: 68
        Analog
        -0.7, 0.0V
        Seperate syncs
Gamma: 0.24
Max Size: 32 cm x 24 cm
Features: e8
        DPMS standby
        DPMS suspend
        DPMS active-off
        RGB
Chroma Info:
        Red X: 0.625
        Red Y: 0.625
        Grn X: 0.309
        Grn Y: 0.591
        Blu X: 0.150
        Blu Y: 0.065
        Wht X: 0.281
        Wht Y: 0.310
Range:
        Horizontal: 28 - 70 kHz
        Vertical: 40 - 120 Hz
        Max Dot Clock: 108 MHz
Video modes:
        1024x768 @ 70Hz
        1024x768 @ 60Hz
        1024x768 @ 43Hz
        800x600 @ 72Hz
        800x600 @ 60Hz
        800x600 @ 56Hz
        640x480 @ 73Hz
        640x480 @ 60Hz
        640x480 @ 70Hz
        640x480 @ 70Hz
        640x480 @ 84Hz
        640x480 @ 84Hz
        1280x960 @ 60Hz
        1024x768 @ 87Hz
        640x350 @ 70Hz
        640x350 @ 70Hz
        1024x768 @ 72Hz
Preferred mode: 640x350 @ 70Hz
radeonfb0: 64 MB aperture at 0x98000000, 64 KB registers at 0x90000000
radeonfb0: display 0: initial virtual resolution 1280x960 at 32 bpp
radeonfb0: port 0: physical 640x350 70Hz
radeonfb0: port 1: physical 640x350 70Hz
init engine
wsdisplay0 at radeonfb0 kbdmux 1: console (fb, vt100 emulation)
wsmux1: connecting to wsdisplay0
direct rendering for radeonfb0 unsupported
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 UniNorth Host-PCI Bridge (rev. 0x00)
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
snapper0 at obio0 offset 0x10000: irq 30,1,2
pmu0 at obio0 offset 0x16000 irq 47:  rev. 85
pmu0: initializing IIC bus
pmu0: initializing RTC
pmu0: power-mgt not configured
pmu0: pmu-pwm-fans not configured
ki2c1 at obio0
iic1 at ki2c1: I2C bus
cereal at ki2c1 address 0x1c0 not configured
wdc0 at obio0 offset 0x20000 irq 24, level triggered: DMA transfer
atabus0 at wdc0 channel 0
snapper0: software codec
audio0 at snapper0: full duplex
ohci0 at pci1 dev 24 function 0: Apple Computer Intrepid USB Controller (rev. 
0x00)
ohci0: can't map mem space
ohci1 at pci1 dev 25 function 0: Apple Computer Intrepid USB Controller (rev. 
0x00)
ohci1: can't map mem space
ohci2 at pci1 dev 26 function 0: Apple Computer Intrepid USB Controller (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: Apple Computer 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: NEC USB Host Controller (rev. 0x43)
ohci3: interrupting at irq 63
ohci3: OHCI version 1.0
usb1 at ohci3: USB revision 1.0
uhub1 at usb1
uhub1: NEC 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: NEC USB Host Controller (rev. 0x43)
ohci4: interrupting at irq 63
ohci4: OHCI version 1.0
usb2 at ohci4: USB revision 1.0
uhub2 at usb2
uhub2: NEC OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
ehci0 at pci1 dev 27 function 2: NEC USB Host Controller (rev. 0x04)
ehci0: interrupting at irq 63
ehci0: BIOS has given up ownership
ehci0: EHCI version 1.0
ehci0: companion controllers, 3 ports each: ohci3 ohci4
usb3 at ehci0: USB revision 2.0
uhub3 at usb3
uhub3: NEC EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub3: 5 ports with 5 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 UniNorth Host-PCI Bridge (rev. 0x00)
wdc1 at pci2 dev 13 function 0: interrupting at irq 39
atabus1 at wdc1 channel 0
fwohci0 at pci2 dev 14 function 0: Apple Computer UniNorth Firewire (rev. 0x81)
fwohci0: interrupting at irq 40
fwohci0: OHCI version 1.10 (ROM=0)
fwohci0: No. of Isochronous channels is 8.
fwohci0: EUI64 00:11:24:ff:fe:75:1b:a6
fwohci0: Phy 1394a available S400, 2 ports.
fwohci0: Link S400, max_rec 2048 bytes.
ieee1394if0 at fwohci0: IEEE1394 bus
fwip0 at ieee1394if0: IP over IEEE1394
fwohci0: Initiate bus reset
gem0 at pci2 dev 15 function 0: Apple Computer GMAC Ethernet (rev. 0x80)
gem0: interrupting at irq 41
gem0: Ethernet address 00:11:24:75:1b:a6, 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: Timecounter "mftb" frequency 41620997 Hz quality 100
fwohci0: node_id=0xc800ffc0, gen=2, CYCLEMASTER mode
ieee1394if0: 1 nodes, maxhop <= 0, cable IRM = 0 (me)
ieee1394if0: bus manager 0 (me)
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: <ST940110A>
wd0: drive supports 16-sector PIO transfers, LBA48 addressing
wd0: 38154 MB, 77520 cyl, 16 head, 63 sec, 512 bytes/sect x 78140160 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 uhub2 port 1 configuration 1 interface 0
uhidev0: Sun Microsystems Type 6 USB keyboard, rev 1.00/1.02, addr 2, iclass 3/1
ukbd0 at uhidev0
wskbd0 at ukbd0 mux 1
wskbd0: connecting to wsdisplay0
wdc1:0:0: lost interrupt
        type: ata tc_bcount: 512 tc_skip: 0
wdc1:0:0: intr with DRQ (st=0x58)
wd0c: device timeout reading fsbn 0 (wd0 bn 0; cn 0 tn 0 sn 0), retrying
wdc1:0:0: lost interrupt
        type: ata tc_bcount: 512 tc_skip: 0
wdc1:0:0: intr with DRQ (st=0x58)
wd0c: device timeout reading fsbn 0 (wd0 bn 0; cn 0 tn 0 sn 0), retrying
wdc1:0:0: lost interrupt
        type: ata tc_bcount: 512 tc_skip: 0
wdc1:0:0: intr with DRQ (st=0x58)
wd0c: device timeout reading fsbn 0 (wd0 bn 0; cn 0 tn 0 sn 0), retrying
wdc1:0:0: lost interrupt
        type: ata tc_bcount: 512 tc_skip: 0
wdc1:0:0: intr with DRQ (st=0x58)
wd0c: device timeout reading fsbn 0 (wd0 bn 0; cn 0 tn 0 sn 0), retrying
wd0: soft error (corrected)
wdc1:0:0: lost interrupt
        type: ata tc_bcount: 512 tc_skip: 0
wdc1:0:0: intr with DRQ (st=0x58)
wd0c: device timeout reading fsbn 0 (wd0 bn 0; cn 0 tn 0 sn 0), retrying
wdc1:0:0: lost interrupt
        type: ata tc_bcount: 512 tc_skip: 0
wdc1:0:0: intr with DRQ (st=0x58)
wd0c: device timeout reading fsbn 0 (wd0 bn 0; cn 0 tn 0 sn 0), retrying
wdc1:0:0: lost interrupt
        type: ata tc_bcount: 512 tc_skip: 0
wdc1:0:0: intr with DRQ (st=0x58)
wd0c: device timeout reading fsbn 0 (wd0 bn 0; cn 0 tn 0 sn 0), retrying
wdc1:0:0: lost interrupt
        type: ata tc_bcount: 512 tc_skip: 0
wdc1:0:0: intr with DRQ (st=0x58)
wd0c: device timeout reading fsbn 0 (wd0 bn 0; cn 0 tn 0 sn 0), retrying
wd0: soft error (corrected)
wdc1:0:0: lost interrupt
        type: ata tc_bcount: 16384 tc_skip: 0
wdc1:0:0: intr with DRQ (st=0x58)
wd0c: device timeout reading fsbn 1 of 1-32 (wd0 bn 1; cn 0 tn 0 sn 1), retrying
wdc1:0:0: lost interrupt
        type: ata tc_bcount: 16384 tc_skip: 0
wdc1:0:0: intr with DRQ (st=0x58)
wd0c: device timeout reading fsbn 1 of 1-32 (wd0 bn 1; cn 0 tn 0 sn 1), retrying
wdc1:0:0: lost interrupt
        type: ata tc_bcount: 16384 tc_skip: 0
wdc1:0:0: intr with DRQ (st=0x58)
wd0c: device timeout reading fsbn 1 of 1-32 (wd0 bn 1; cn 0 tn 0 sn 1), retrying
wdc1:0:0: lost interrupt
        type: ata tc_bcount: 16384 tc_skip: 0
wdc1:0:0: intr with DRQ (st=0x58)
wd0c: device timeout reading fsbn 1 of 1-32 (wd0 bn 1; cn 0 tn 0 sn 1), retrying
wd0: soft error (corrected)
boot device: gem0
root on gem0
nfs_boot: trying DHCP/BOOTP
nfs_boot: DHCP next-server: 171.16.4.140
nfs_boot: my_name=macppc
nfs_boot: my_domain=kwa
nfs_boot: my_addr=171.16.4.161
nfs_boot: my_mask=255.255.255.0
nfs_boot: gateway=171.16.4.173
root on 171.16.4.140:/diskless/macppc-current
root file system type: nfs
>How-To-Repeat:
        
>Fix:
        

>Unformatted:
        
        


Home | Main Index | Thread Index | Old Index