Subject: kern/6417: New IDE code doesn't work with very old drive
To: None <gnats-bugs@gnats.netbsd.org>
From: Dave Huang <khym@bga.com>
List: netbsd-bugs
Date: 11/09/1998 17:40:05
>Number:         6417
>Category:       kern
>Synopsis:       New IDE code doesn't work with very old drive
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    kern-bug-people (Kernel Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Nov  9 15:50:02 1998
>Last-Modified:
>Originator:     Dave Huang
>Organization:
Name: Dave Huang     |   Mammal, mammal / their names are called /
INet: khym@bga.com   |   they raise a paw / the bat, the cat /
FurryMUCK: Dahan     |   dolphin and dog / koala bear and hog -- TMBG
Dahan: Hani G Y+C 23 Y++ L+++ W- C++ T++ A+ E+ S++ V++ F- Q+++ P+ B+ PA+ PL++
>Release:        NetBSD-current as of November 9, 1998
>Environment:
System: NetBSD sloth.metonymy.com 1.3H NetBSD 1.3H (SLOTH) #177: Mon Nov 9 15:06:08 CST 1998 khym@dahan.metonymy.com:/usr/src.local/sys/arch/i386/compile/SLOTH i386


>Description:
	I have a 386 with an old (circa 1990) 100MB Microscience drive.
The new IDE code thinks it can do PIO mode 7, DMA mode 4, but I doubt if
it does either. Accesses to the drive fail with:
wdc0:0:1: not ready, st=0xff, err=0x00
wdc0 channel 0: reset failed for drive 1
wd1e: device timeout reading fsbn 208 of 208-209 (wd1 bn 208; cn 0 tn 5 sn 33), retrying
wdc0:0:1: not ready, st=0xff, err=0x00
wdc0 channel 0: reset failed for drive 1
wd1e: device timeout reading fsbn 208 of 208-209 (wd1 bn 208; cn 0 tn 5 sn 33), retrying

dmesg | grep ^wd shows:

wdc0 at isa0 port 0x1f0-0x1f7 irq 14
wd0 at wdc0 channel 0 drive 0: <QUANTUM LP120A GM120A01X>
wd0: using 8-sector pio transfers, chs mode
wd0 116MB, 901 cyl, 5 head, 53 sec, 512 bytes/sect x 238765 sectors
wd1 at wdc0 channel 0 drive 1: <MICROSCIENCE>
wd1: using 1-sector pio transfers, chs mode
wd1 102MB, 855 cyl, 7 head, 35 sec, 512 bytes/sect x 209475 sectors
wd1: PIO mode 7, DMA mode 4
>How-To-Repeat:
	Try to use very old (pre-ATA?) drive with the new IDE code.
>Fix:
>Audit-Trail:
>Unformatted: