Subject: kern/25710: wd0 over pciide downgrades from Ultra/100 to Ultra/33 on bootup
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <ckaiser@floodgap.com>
List: netbsd-bugs
Date: 05/26/2004 04:39:02
>Number:         25710
>Category:       kern
>Synopsis:       wd0 over pciide downgrades from Ultra/100 to Ultra/33 on bootup
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed May 26 04:40:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Cameron Kaiser
>Release:        1.6.2
>Organization:
>Environment:
NetBSD xx.floodgap.com 1.6.2 NetBSD 1.6.2 (XX_4) #1: Tue May  4 06:51:59 PDT 2004     xx@xx.floodgap.com:/usr/src/sys/arch/macppc/compile/XX_4 macppc
>Description:
Power Macintosh 7300 with 512MB RAM, Sonnet G3/500 and a Sonnet Tempo Trio ATA/133 USB/FireWire/ATA card using a Promise U133/ATA controller connected to an ATA/100 Western Digital 40GB drive. I have been unable to get the kernel to drive the controller at the full ATA/133 or even ATA/100; it persistently complains about a transfer error and downgrades to Ultra/33, at which point it appears to work normally but not at the full ATA speed capable. No SCSI drives except for the internal CD-ROM installed.

Relevant lines from kernel config file:
pciide* at pci? dev ? function ?
wd*     at pciide? channel ? drive ? flags 0x0000

dmesg with downgrading message follows:

total memory = 512 MB
avail memory = 465 MB
using 2048 buffers containing 26316 KB of memory
mainbus0 (root)
cpu0 at mainbus0: 750 (Revision 3.0), ID 0 (primary)
cpu0: HID0 8290c0a4<EMCP,ECLK,DOZE,DPM,ICE,DCE,SGE,BTIC,BHT>
cpu0: 500.00 MHz
cpu0: 1MB backside cache
bandit0 at mainbus0
pci0 at bandit0 bus 0
pci0: i/o space, memory space enabled
pchb0 at pci0 dev 11 function 0
pchb0: Apple Computer Bandit Host-PCI Bridge (rev. 0x03)
rtk0 at pci0 dev 13 function 0: D-Link Systems DFE 530TX+
rtk0: interrupting at irq 23
rtk0: Ethernet address 00:40:05:0a:d7:93
ukphy0 at rtk0 phy 7: Generic IEEE 802.3u media interface
ukphy0: OUI 0x000000, model 0x0000, rev. 0
ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
ppb0 at pci0 dev 15 function 0: unknown vendor 0x1668 product 0x0100 (rev. 0x11)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled
ohci0 at pci1 dev 0 function 0: NEC USB Host Controller (rev. 0x41)
ohci0: interrupting at irq 25
ohci0: OHCI version 1.0
usb0 at ohci0: USB revision 1.0
uhub0 at usb0
uhub0: NEC OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 3 ports with 3 removable, self powered
ohci1 at pci1 dev 0 function 1: NEC USB Host Controller (rev. 0x41)
ohci1: interrupting at irq 25
ohci1: OHCI version 1.0
usb1 at ohci1: USB revision 1.0
uhub1 at usb1
uhub1: NEC OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
NEC USB Host Controller (USB serial bus, interface 0x20, revision 0x02) at pci1 dev 0 function 2 not configured
fwohci0 at pci1 dev 1 function 0: Lucent Technologies product 0x5811 (rev. 0x04)
fwohci0: interrupting at irq 25
fwohci0: OHCI 1.0, 00:30:93:01:00:00:01:34, 400Mb/s, 1024 max_rec, 8 iso_ctx
pciide0 at pci1 dev 2 function 0: Promise Ultra133/ATA Bus Master IDE Accelerator (rev. 0x02)
pciide0: bus-master DMA support present
pciide0: primary channel configured to native-PCI mode
pciide0: using irq 25 for native-PCI interrupt
wd0 at pciide0 channel 0 drive 0: <WDC WD400JB-00ENA0>
wd0: drive supports 16-sector PIO transfers, LBA addressing
wd0: 38166 MB, 16383 cyl, 16 head, 63 sec, 512 bytes/sect x 78165360 sectors
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5 (Ultra/100) (using DMA data transfers)
pciide0: secondary channel configured to native-PCI mode
obio0 at pci0 dev 16 function 0: addr 0xf3000000
esp0 at obio0 offset 0x10000 irq 12: NCR53C94, 25MHz, SCSI ID 7
scsibus0 at esp0: 8 targets, 8 luns per target
mc0 at obio0 offset 0x11000: irq 14,2,3: address 00:05:02:a8:e4:22
zsc0 at obio0 offset 0x13000: irq 15,16
zstty0 at zsc0 channel 0
zstty1 at zsc0 channel 1
awacs at obio0 offset 0x14000 not configured
swim3 at obio0 offset 0x15000 not configured
adb0 at obio0 offset 0x16000 irq 18: 1 targets
aed0 at adb0 addr 0: ADB Event device
akbd0 at adb0 addr 2: extended keyboard
wskbd0 at akbd0: console keyboard
mesh0 at obio0 offset 0x18000 irq 13: 50MHz, SCSI ID 7
scsibus1 at mesh0: 8 targets, 8 luns per target
nvram0 at obio0 offset 0x1d000
bandit1 at mainbus0
pci2 at bandit1 bus 2
pci2: i/o space, memory space enabled
ofb0 at pci2 dev 11 function 0: Apple Computer Control
ofb0: 640 x 480, 8bpp
wsdisplay0 at ofb0 kbdmux 1: console (std, vt100 emulation), using wskbd0
wsmux1: connecting to wsdisplay0
scsibus0: waiting 2 seconds for devices to settle...
cd0 at scsibus0 target 4 lun 0: <MATSHITA, CD-ROM CR-8012, 1.0f> SCSI2 5/cdrom removable
cd0: sync (200.0ns offset 8), 8-bit (5.000MB/s) transfers
scsibus1: waiting 2 seconds for devices to settle...
fw at fwohci0 not configured
boot device: <unknown>
root on wd0a dumps on wd0b
wd0: transfer error, downgrading to Ultra-DMA mode 2
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA data transfers)
wd0c: error reading fsbn 0 (wd0 bn 0; cn 0 tn 0 sn 0), retrying
wd0: (aborted command, interface CRC error)
wd0: soft error (corrected)

>How-To-Repeat:
Boot the machine ;)
>Fix:
None yet. I tried changing flags on the drive, and adding a flags 0x0001 to the wd* line, and neither seemed to make a difference.
>Release-Note:
>Audit-Trail:
>Unformatted: