Date: Fri, 22 Sep 2000 21:10:01 -0700 (PDT) From: John Saunders <john@nlc.net.au> To: freebsd-bugs@FreeBSD.org Subject: Re: kern/21410: ATA driver problems when UDMA66 is used with wrong cable Message-ID: <200009230410.VAA14904@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/21410; it has been noted by GNATS.
From: John Saunders <john@nlc.net.au>
To: Soren Schmidt <sos@freebsd.dk>
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: kern/21410: ATA driver problems when UDMA66 is used with wrong
cable
Date: Sat, 23 Sep 2000 15:09:03 +1100 (EST)
On Wed, 20 Sep 2000, Soren Schmidt wrote:
> It seems john@nlc.net.au wrote:
> >
> > In the situation where a UDMA66 controller is available but the drive is
> > connected with the old style 33MHz cable, the BIOS detects that an 80
> > pin cable is not present. However the ATA driver tries to negotiate
> > UDMA66 mode then fails with some nasty error messages, then drops to
> > PIO mode.
> >
> > Sep 19 20:57:26 pacer /kernel: ad0: UDMA ICRC READ ERROR blk# 0 retrying
> > Sep 19 20:57:26 pacer last message repeated 2 times
> > Sep 19 20:57:26 pacer /kernel: ad0: UDMA ICRC READ ERROR blk# 0ata0-master: WARNING: WAIT_READY active=ATA_ACTIVE_ATA
> > Sep 19 20:57:27 pacer /kernel: falling back to PIO mode
>
> What did the driver say it set the drive to ??
It seems to think that UDMA=4 is supported, although the BIOS printed a
message about the 80 conductor cable not installed. So there must be some
working mechanism to detect this.
> Verbose boot dmesg please!!
You got it :-)
Copyright (c) 1992-2000 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD 4.1-STABLE #0: Tue Sep 19 22:45:06 EST 2000
root@pacer.pakprotector.com:/usr/src/sys/compile/PACER
Calibrating clock(s) ... TSC clock: 700018855 Hz, i8254 clock: 1193171 Hz
CLK_USE_I8254_CALIBRATION not specified - using default frequency
Timecounter "i8254" frequency 1193182 Hz
CPU: AMD Duron(tm) Processor (700.02-MHz 686-class CPU)
Origin = "AuthenticAMD" Id = 0x630 Stepping = 0
Features=0x183f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR>
AMD Features=0xc0440000<<b18>,AMIE,DSP,3DNow!>
Data TLB: 24 entries, fully associative
Instruction TLB: 16 entries, fully associative
L1 data cache: 64 kbytes, 64 bytes/line, 1 lines/tag, 2-way associative
L1 instruction cache: 64 kbytes, 64 bytes/line, 1 lines/tag, 2-way associative
L2 internal cache: 1 kbytes, 64 bytes/line, 1 lines/tag, 8-way associative
real memory = 536805376 (524224K bytes)
Physical memory chunk(s):
0x00001000 - 0x0009efff, 647168 bytes (158 pages)
0x00332000 - 0x1ffe7fff, 533422080 bytes (130230 pages)
avail memory = 519393280 (507220K bytes)
bios32: Found BIOS32 Service Directory header at 0xc00faf90
bios32: Entry = 0xfb400 (c00fb400) Rev = 0 Len = 1
pcibios: PCI BIOS entry at 0xb430
pnpbios: Found PnP BIOS data at 0xc00fbf00
pnpbios: Entry = f0000:bf30 Rev = 1.0
Other BIOS signatures found:
ACPI: 000f7ad0
Preloaded elf kernel "kernel" at 0xc0319000.
Pentium Pro MTRR support enabled
pci_open(1): mode 1 addr port (0x0cf8) is 0x80003840
pci_open(1a): mode1res=0x80000000 (0x80000000)
pci_cfgcheck: device 0 [class=060000] [hdr=00] is there (id=03051106)
pcib-: pcib0 exists, using next available unit number
apm0: <APM BIOS> on motherboard
apm: found APM BIOS v1.2, connected at v1.2
npx0: <math processor> on motherboard
npx0: INT 16 interface
pci_open(1): mode 1 addr port (0x0cf8) is 0x00000000
pci_open(1a): mode1res=0x80000000 (0x80000000)
pci_cfgcheck: device 0 [class=060000] [hdr=00] is there (id=03051106)
pcib0: <Host to PCI bridge> on motherboard
found-> vendor=0x1106, dev=0x0305, revid=0x02
class=06-00-00, hdrtype=0x00, mfdev=0
subordinatebus=0 secondarybus=0
map[10]: type 1, range 32, base d0000000, size 26
found-> vendor=0x1106, dev=0x8305, revid=0x00
class=06-04-00, hdrtype=0x01, mfdev=0
subordinatebus=1 secondarybus=1
found-> vendor=0x1106, dev=0x0686, revid=0x22
class=06-01-00, hdrtype=0x00, mfdev=1
subordinatebus=0 secondarybus=0
found-> vendor=0x1106, dev=0x0571, revid=0x10
class=01-01-8a, hdrtype=0x00, mfdev=0
subordinatebus=0 secondarybus=0
map[20]: type 1, range 32, base 0000c000, size 4
found-> vendor=0x1106, dev=0x3038, revid=0x10
class=0c-03-00, hdrtype=0x00, mfdev=0
subordinatebus=0 secondarybus=0
intpin=d, irq=11
map[20]: type 1, range 32, base 0000c400, size 5
found-> vendor=0x1106, dev=0x3038, revid=0x10
class=0c-03-00, hdrtype=0x00, mfdev=0
subordinatebus=0 secondarybus=0
intpin=d, irq=11
map[20]: type 1, range 32, base 0000c800, size 5
found-> vendor=0x1106, dev=0x3057, revid=0x30
class=06-00-00, hdrtype=0x00, mfdev=0
subordinatebus=0 secondarybus=0
found-> vendor=0x1000, dev=0x000f, revid=0x03
class=01-00-00, hdrtype=0x00, mfdev=0
subordinatebus=0 secondarybus=0
intpin=a, irq=11
map[10]: type 1, range 32, base 0000cc00, size 8
map[14]: type 1, range 32, base d9000000, size 8
map[18]: type 1, range 32, base d9001000, size 12
found-> vendor=0x10ec, dev=0x8029, revid=0x00
class=02-00-00, hdrtype=0x00, mfdev=0
subordinatebus=0 secondarybus=0
intpin=a, irq=9
map[10]: type 1, range 32, base 0000d000, size 5
found-> vendor=0x121a, dev=0x0001, revid=0x02
class=04-00-00, hdrtype=0x00, mfdev=0
subordinatebus=0 secondarybus=0
map[10]: type 1, range 32, base d8000000, size 24
found-> vendor=0x1103, dev=0x0004, revid=0x03
class=01-80-00, hdrtype=0x00, mfdev=0
subordinatebus=0 secondarybus=0
intpin=a, irq=10
map[10]: type 1, range 32, base 0000d400, size 3
map[14]: type 1, range 32, base 0000d800, size 2
map[18]: type 1, range 32, base 0000dc00, size 3
map[1c]: type 1, range 32, base 0000e000, size 2
map[20]: type 1, range 32, base 0000e400, size 8
pci0: <PCI bus> on pcib0
pcib2: <VIA 8363 (Apollo KT133) PCI-PCI (AGP) bridge> at device 1.0 on pci0
found-> vendor=0x10de, dev=0x0020, revid=0x04
class=03-00-00, hdrtype=0x00, mfdev=0
subordinatebus=0 secondarybus=0
intpin=a, irq=11
map[10]: type 1, range 32, base d4000000, size 24
map[14]: type 1, range 32, base d6000000, size 24
pci1: <PCI bus> on pcib2
pci1: <NVidia Riva TNT graphics accelerator> (vendor=0x10de, dev=0x0020) at 0.0 irq 11
isab0: <VIA 82C686 PCI-ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <VIA 82C686 ATA66 controller> port 0xc000-0xc00f at device 7.1 on pci0
ata0: iobase=0x01f0 altiobase=0x03f6 bmaddr=0xc000
ata0: mask=03 status0=50 status1=00
ata0: mask=03 status0=50 status1=00
ata0: devices = 0x1
ata0: at 0x1f0 irq 14 on atapci0
ata1: iobase=0x0170 altiobase=0x0376 bmaddr=0xc008
ata1: mask=03 status0=50 status1=50
ata1: mask=03 status0=50 status1=00
ata1: devices = 0x9
ata1: at 0x170 irq 15 on atapci0
pci0: <VIA 83C572 USB controller> (vendor=0x1106, dev=0x3038) at 7.2 irq 11
pci0: <VIA 83C572 USB controller> (vendor=0x1106, dev=0x3038) at 7.3 irq 11
sym0: <875> port 0xcc00-0xccff mem 0xd9001000-0xd9001fff,0xd9000000-0xd90000ff irq 11 at device 11.0 on pci0
sym0: Symbios NVRAM, ID 7, Fast-20, SE, parity checking
sym0: open drain IRQ line driver, using on-chip SRAM
sym0: using LOAD/STORE-based firmware.
sym0: initial SCNTL3/DMODE/DCNTL/CTEST3/4/5 = (hex) 05/46/80/00/00/24
sym0: final SCNTL3/DMODE/DCNTL/CTEST3/4/5 = (hex) 05/46/80/01/08/24
sym0: SCAN FOR LUNS disabled for targets 0 1 2 3 4 5 6 8 9 10 11 12 13 14 15.
sym0: Delay (GEN=11): 293 msec, 30335 KHz
sym0: Delay (GEN=11): 262 msec, 33924 KHz
sym0: Delay (GEN=11): 262 msec, 33924 KHz
sym0: enabling clock multiplier
sym0: Downloading SCSI SCRIPTS.
ed0: <NE2000 PCI Ethernet (RealTek 8029)> port 0xd000-0xd01f irq 9 at device 13.0 on pci0
bpf: ed0 attached
ed0: address 00:00:e8:60:eb:b4, type NE2000 (16 bit)
pci0: <3Dfx Voodoo graphics accelerator> (vendor=0x121a, dev=0x0001) at 15.0
atapci1: <HighPoint HPT370 ATA100 controller> port 0xe400-0xe4ff,0xe000-0xe003,0xdc00-0xdc07,0xd800-0xd803,0xd400-0xd407 irq 10 at device 19.0 on pci0
ata-: ata2 exists, using next available unit number
ata2: iobase=0xd400 altiobase=0xd800 bmaddr=0xe400
ata2: mask=03 status0=20 status1=30
ata2: mask=03 status0=20 status1=30
ata2: devices = 0x0
ata2: at 0xd400 on atapci1
ata3: iobase=0xdc00 altiobase=0xe000 bmaddr=0xe408
ata3: mask=03 status0=20 status1=30
ata3: mask=03 status0=20 status1=30
ata3: devices = 0x0
ata3: at 0xdc00 on atapci1
using shared irq10.
pci_open(1): mode 1 addr port (0x0cf8) is 0x00000000
pci_open(1a): mode1res=0x80000000 (0x80000000)
pci_cfgcheck: device 0 [class=060000] [hdr=00] is there (id=03051106)
pci-: pci1 exists, using next available unit number
pcib1: <Host to PCI bridge> on motherboard
pci2: <PCI bus> on pcib1
Trying Read_Port at 203
Trying Read_Port at 243
CTL0045: start dependant
CTL0045: adding irq mask 0x20
CTL0045: adding dma mask 0x2
CTL0045: adding dma mask 0x20
CTL0045: adding io range 0x220-0x22f, size=0x10, align=0x1
CTL0045: adding io range 0x330-0x331, size=0x2, align=0x1
CTL0045: adding io range 0x388-0x38b, size=0x4, align=0x1
CTL0045: start dependant
CTL0045: adding irq mask 0x6a0
CTL0045: adding dma mask 0xb
CTL0045: adding dma mask 0xe0
CTL0045: adding io range 0x220-0x28f, size=0x10, align=0x20
CTL0045: adding io range 0x300-0x331, size=0x2, align=0x30
CTL0045: adding io range 0x388-0x38b, size=0x4, align=0x1
CTL0045: start dependant
CTL0045: adding irq mask 0x6a0
CTL0045: adding dma mask 0xb
CTL0045: adding dma mask 0xe0
CTL0045: adding io range 0x220-0x28f, size=0x10, align=0x20
CTL0045: adding io range 0x300-0x331, size=0x2, align=0x30
CTL0045: start dependant
CTL0045: adding irq mask 0x6a0
CTL0045: adding dma mask 0xb
CTL0045: adding dma mask 0xe0
CTL0045: adding io range 0x220-0x28f, size=0x10, align=0x20
CTL0045: start dependant
CTL0045: adding irq mask 0x6a0
CTL0045: adding dma mask 0xb
CTL0045: adding io range 0x220-0x28f, size=0x10, align=0x20
CTL0045: adding io range 0x300-0x331, size=0x2, align=0x30
CTL0045: adding io range 0x388-0x38b, size=0x4, align=0x1
CTL0045: start dependant
CTL0045: adding irq mask 0x6a0
CTL0045: adding dma mask 0xb
CTL0045: adding io range 0x220-0x28f, size=0x10, align=0x20
CTL0045: adding io range 0x300-0x331, size=0x2, align=0x30
CTL0045: start dependant
CTL0045: adding irq mask 0x6a0
CTL0045: adding dma mask 0xb
CTL0045: adding io range 0x220-0x28f, size=0x10, align=0x20
CTL0045: start dependant
isa0: too many dependant configs (8)
CTL7002: start dependant
CTL7002: adding io range 0x200-0x207, size=0x8, align=0x1
CTL7002: start dependant
CTL7002: adding io range 0x200-0x20f, size=0x8, align=0x8
CTL7002: end dependant
CTL0022: start dependant
CTL0022: adding io range 0x620-0x623, size=0x4, align=0x1
CTL0022: start dependant
CTL0022: adding io range 0x620-0x683, size=0x4, align=0x20
CTL0022: end dependant
isa0: unexpected small tag 14
isa_probe_children: disabling PnP devices
isa_probe_children: probing non-PnP devices
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
atkbd: the current kbd controller command byte 0047
atkbd: keyboard ID 0x41ab (2)
kbdc: RESET_KBD return code:00fa
kbdc: RESET_KBD status:00aa
kbd0: atkbd0, AT 101/102 (2), config:0x0, flags:0x3d0000
psm0: current command byte:0047
kbdc: TEST_AUX_PORT status:0000
kbdc: RESET_AUX return code:00fa
kbdc: RESET_AUX status:00aa
kbdc: RESET_AUX ID:0000
psm: status 00 02 64
psm: status 00 00 64
psm: status 00 03 64
psm: status 00 03 64
psm: data 08 00 00
psm: data 08 00 00
psm: status 00 02 64
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: model IntelliMouse, device ID 3-00, 3 buttons
psm0: config:00000000, flags:00000000, packet size:4
psm0: syncmask:08, syncbits:08
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
fb0: vga0, vga, type:VGA (5), flags:0x7007f
fb0: port:0x3c0-0x3df, crtc:0x3d4, mem:0xa0000 0x20000
fb0: init mode:24, bios mode:3, current mode:24
fb0: window:0xc00b8000 size:32k gran:32k, buf:0 size:32k
VGA parameters upon power-up
50 18 10 00 00 00 03 00 02 67 5f 4f 50 82 55 81
bf 1f 00 4f 0e 0f 00 00 07 80 9c 8e 8f 28 1f 96
b9 a3 ff 00 01 02 03 04 05 14 07 38 39 3a 3b 3c
3d 3e 3f 0c 00 0f 08 00 00 00 00 00 10 0e 00 ff
VGA parameters in BIOS for mode 24
50 18 10 00 10 00 03 00 02 67 5f 4f 50 82 55 81
bf 1f 00 4f 0d 0e 00 00 00 00 9c 8e 8f 28 1f 96
b9 a3 ff 00 01 02 03 04 05 14 07 38 39 3a 3b 3c
3d 3e 3f 0c 00 0f 08 00 00 00 00 00 10 0e 00 ff
EGA/VGA parameters to be used for mode 24
50 18 10 00 10 00 03 00 02 67 5f 4f 50 82 55 81
bf 1f 00 4f 0d 0e 00 00 00 00 9c 8e 8f 28 1f 96
b9 a3 ff 00 01 02 03 04 05 14 07 38 39 3a 3b 3c
3d 3e 3f 0c 00 0f 08 00 00 00 00 00 10 0e 00 ff
sc0: <System console> on isa0
sc0: VGA <12 virtual consoles, flags=0x200>
sc0: fb0, kbd0, terminal emulator: sc (syscons terminal)
sio0: irq maps: 0x2821 0x2831 0x2821 0x2821
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A
sio1: irq maps: 0x2821 0x2829 0x2821 0x2821
sio1 at port 0x2f8-0x2ff irq 3 on isa0
sio1: type 16550A
ppc0: parallel port found at 0x378
ppc0: using extended I/O port range
ppc0: ECP SPP ECP+EPP SPP
ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/8 bytes threshold
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
plip0: <PLIP network interface> on ppbus0
bpf: lp0 attached
ppi0: <Parallel I/O> on ppbus0
fdc0: <NEC 72065B or clone> at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
isa_probe_children: probing PnP devices
sbc1: <Creative SB AWE64> at port 0x220-0x22f,0x330-0x331,0x388-0x38b irq 5 drq 1,5 on isa0
sbc1: setting card to irq 5, drq 1, 5
pcm0: <SB DSP 4.16> on sbc1
pcm: setmap 6000, 2000; 0xd2e28000 -> 6000
pcm: setmap 8000, 2000; 0xd2e2a000 -> 8000
unknown0: <Game> at port 0x200-0x207 on isa0
unknown1: <WaveTable> at port 0x620-0x623 on isa0
BIOS Geometries:
0:0340ef3f 0..832=833 cylinders, 0..239=240 heads, 1..63=63 sectors
1:03fffe3f 0..1023=1024 cylinders, 0..254=255 heads, 1..63=63 sectors
0 accounted for
Device configuration finished.
IP packet filtering initialized, divert enabled, rule-based forwarding enabled, default to accept, logging limited to 100 packets/entry by default
bpf: faith0 attached
bpf: gif0 attached
bpf: gif1 attached
bpf: gif2 attached
bpf: gif3 attached
bpf: lo0 attached
bpf: ppp0 attached
new masks: bio 68c440, tty 6310ba, net 6712ba
Linux-ELF exec handler installed
ata0-master: success setting UDMA4 on VIA chip
ad0: <QUANTUM FIREBALL CX13.0A/A3F.0B00> ATA-4 disk at ata0 as master
ad0: 12416MB (25429824 sectors), 25228 cyls, 16 heads, 63 S/T, 512 B/S
ad0: 16 secs/int, 1 depth queue, UDMA66
ad0: piomode=4 dmamode=2 udmamode=4 cblid=1
Creating DISK ad0
Creating DISK wd0
ata1-master: success setting UDMA2 on VIA chip
ad1: <QUANTUM FIREBALL SE6.4A/API.0A00> ATA-3 disk at ata1 as master
ad1: 6149MB (12594960 sectors), 13328 cyls, 15 heads, 63 S/T, 512 B/S
ad1: 16 secs/int, 1 depth queue, UDMA33
ad1: piomode=4 dmamode=2 udmamode=2 cblid=0
Creating DISK ad1
Creating DISK wd1
ata1-slave: piomode=4 dmamode=2 udmamode=2 dmaflag=1
ata1-slave: success setting UDMA2 on VIA chip
acd0: <Pioneer DVD-ROM ATAPIModel DVD-103S 0116/E1.16> DVD-ROM drive at ata1 as slave
acd0: 512KB buffer, UDMA33
acd0: Reads: CD-R, CD-RW, CD-DA stream, DVD-ROM, DVD-R
acd0: Audio: play, 256 volume levels
acd0: Mechanism: ejectable tray
acd0: Medium: CD-ROM 120mm data disc loaded, unlocked
Waiting 3 seconds for SCSI devices to settle
(noperiph:sym0:0:-1:-1): SCSI BUS reset delivered.
sym0: enabling clock multiplier
sym0: Downloading SCSI SCRIPTS.
Creating DISK da0
Creating DISK cd0
pass0 at sym0 bus 0 target 0 lun 0
pass0: <DEC RZ26 (C) DEC T386> Fixed Direct Access SCSI-2 device
pass0: Serial Number PCB=412230788528(ZG30788528 ); HDA=0000031435351611
pass0: 10.000MB/s transfers (10.000MHz, offset 15), Tagged Queueing Enabled
pass1 at sym0 bus 0 target 1 lun 0
pass1: <RICOH MP6200S 2.40> Removable CD-ROM SCSI-2 device
pass1: Serial Number 3
pass1: 3.300MB/s transfers
da0 at sym0 bus 0 target 0 lun 0
da0: <DEC RZ26 (C) DEC T386> Fixed Direct Access SCSI-2 device
da0: Serial Number PCB=412230788528(ZG30788528 ); HDA=0000031435351611
da0: 10.000MB/s transfers (10.000MHz, offset 15), Tagged Queueing Enabled
da0: 1001MB (2050860 512 byte sectors: 64H 32S/T 1001C)
Mounting root from ufs:/dev/ad1s1a
(cd0:sym0:0:1:0): READ CD RECORDED CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0
(cd0:sym0:0:1:0): NOT READY asc:3a,0
(cd0:sym0:0:1:0): Medium not present
cd0 at sym0 bus 0 target 1 lun 0
cd0: <RICOH MP6200S 2.40> Removable CD-ROM SCSI-2 device
cd0: Serial Number 3
cd0: 3.300MB/s transfers
cd0: Attempt to query device size failed: NOT READY, Medium not present
ad1s1: type 0xa5, start 63, end = 10506509, size 10506447 : OK
ad1s2: type 0xa5, start 10506510, end = 12594959, size 2088450 : OK
start_init: trying /sbin/init
ad0: UDMA ICRC READ ERROR blk# 0 retrying
ad0: UDMA ICRC READ ERROR blk# 0 retrying
ad0: UDMA ICRC READ ERROR blk# 0 retrying
ad0: UDMA ICRC READ ERROR blk# 0ata0-master: WARNING: WAIT_READY active=ATA_ACTIVE_ATA
ata0-master: success setting PIO4 on generic chip
falling back to PIO mode
ad0s1: type 0xc, start 63, end = 25414829, size 25414767 : OK
splash: image decoder found: green_saver
-- +------------------------------------------------------------+
. | John Saunders - mailto:john@nlc.net.au (EMail) |
,--_|\ | - http://www.nlc.net.au/ (WWW) |
/ Oz \ | - 1800-445-100 or 04-1822-3814 (Phone) |
\_,--\_/ | NORTHLINK COMMUNICATIONS P/L - Supplying a professional, |
v | and above all friendly, internet connection service. |
+------------------------------------------------------------+
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200009230410.VAA14904>
