Subject: pciide question: wd0 as wd2 (Promise Ultra100)
To: None <tech-kern@netbsd.org, port-i386@netbsd.org>
From: Teemu Rinta-aho <teemu@rinta-aho.org>
List: tech-kern
Date: 12/15/2002 17:00:24
Hi,

I am running NetBSD/i386 1.6_STABLE on an Asus A7V
motherboard which has an integrated Promise Ultra100
ATA. BIOS has been the latest there is, for months.

The problem is that everything is working close
to perfect, but sometimes the disk (Seagate ATA IV)
which should be recognized as wd0, gets recognized
as wd2. After that the kernel has hard time trying
to find the root partition as there is no wd0a.
And then comes the familiar lost interrupt messages
on the screen...

Now, in wdX, where is this variable X mapped to
a number?

I should get:

wd0 at pciide1 channel 0 drive 0: <ST360021A>
wd0(pciide1:0:0): using PIO mode 4, Ultra-DMA mode 5 (Ultra/100) (using
DMA data transfers)

I *sometimes* get something like this:

wd2 at pciide1 channel 0 drive 0: <ST360021A>
wd2(pciide1:0:0): using PIO mode 4, Ultra-DMA mode 5 (Ultra/100) (using
DMA data transfers)

I compiled a new kernel yesterday, and everything
seemed to work fine, after reboots and poweroffs.
Now this morning when the power had been off for
a while, the error occurred again. But after that
I have not been able to reproduce the error although
I have tried to reboot and poweroff the machine
several times.

I know, I could config kernel with "wd0 at pciide1 .."
etc. but it would leave the mystery unsolved and
a possible bug unfixed.. :-) I might also be able
to close a couple of bugreports.

Please, cc: me as I don't subscribe.

BR,
Teemu