Subject: PCMCIA wdc autoconfiguration problem
To: None <tech-kern@netbsd.org>
From: Tad Hunt <tad@entrisphere.com>
List: tech-kern
Date: 07/02/2001 14:40:41
I've got an IBM 340MB microdrive, which frequently doesn't autoconfigure
properly:

	pcic0 at mainbus0
	pcic0: controller 0 (Cirrus PD672X) has sockets A and B
	pcmcia0 at pcic0 controller 0 socket 0
	pcmcia1 at pcic0 controller 0 socket 1

	wdc0 at pcmcia1 function 0 port 0x15000400-0x1500040f
	wd0 at wdc0 channel 0 drive 0: <ST506>
	wd0: drive supports 1-sector pio transfers, chs addressing
	wd0: 69632 KB, 1024 cyl, 8 head, 17 sec, 512 bytes/sect x 139264 sectors

Here's what it looks like when it does configure properly:

	...
	wd0 at wdc0 channel 0 drive 0: <IBM-DMDM-10340>
	wd0: drive supports 16-sector pio transfers, lba addressing
	wd0: 342 MB, 695 cyl, 16 head, 63 sec, 512 bytes/sect x 700560 sectors

As near as I can figure, it seems to be a timing related problem.  I found
a bunch of articles on google mentioning this specific bad geometry, but
they were all in foreign languages which I am unable to read.

Has anyone else seen this behavior?

-Tad