The following reply was made to PR kern/54289; it has been noted by GNATS.
From: "John D. Baker" <jdbaker%consolidated.net@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc:
Subject: Re: kern/54289: wd1 fails to be identified properly
Date: Sun, 23 Jun 2019 23:43:12 -0500 (CDT)
On Sun, 23 Jun 2019, John D. Baker wrote:
> See below the corresponding patch for -current:
[snip]
> I have not compiled this yet, let alone run it. Hope to do so soon.
I have now compiled and run it. It does not appear to help. On cold
boot (powerup), it happened to work properly (wd0 and cd0). On subsequent
reboots ('shutdown -r now'), it would alternately fail, then work, then
fail again.
[...]
ahcisata0 port 1: device present, speed: 3.0Gb/s
ahcisata0 port 2: device present, speed: 1.5Gb/s
ahcisata0 port 1: error 0x8000000 sending FIS, t 31
autoconfiguration error: ahcisata0 port 1: clearing WDCTL_RST failed for drive 0
[...]
atabus2: Unrecognized signature 0x00000001 on port 0. Assuming it's a disk.
wd0 at atabus1 drive 0
wd0: <WDC WD6400AAKS-65A7B2>
wd0: drive supports 16-sector PIO transfers, LBA48 addressing
wd0: 596 GB, 1240341 cyl, 16 head, 63 sec, 512 bytes/sect x 1250263728 sectors
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133), NCQ (3
2 tags)
wd0(ahcisata0:1:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133) (
using DMA), NCQ (31 tags)
wd1 at atabus2 drive 0
ahcisata0 port 2: error 0x8000000 sending FIS, t 31
autoconfiguration error: ahcisata0 port 2: clearing WDCTL_RST failed for drive 0
[...]
wd1: autoconfiguration error: IDENTIFY failed
wd1: fixing 0 sector size
wd1: secperunit and ncylinders are zero
wd1(ahcisata0:2:0): using PIO mode 0
Again, on my system the spurious 'wd1' should be atapibus0 and cd0.
Perhaps the new "timeout" message addition will provide a clue?
--
|/"\ John D. Baker, KN5UKS NetBSD Darwin/MacOS X
|\ / jdbaker[snail]consolidated[flyspeck]net OpenBSD FreeBSD
| X No HTML/proprietary data in email. BSD just sits there and works!
|/ \ GPGkeyID: D703 4A7E 479F 63F8 D3F4 BD99 9572 8F23 E4AD 1645