NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: kern/52126 (mvsata Marvell 88SX6081 panics on boot)
The following reply was made to PR kern/52126; it has been noted by GNATS.
From: mlelstv%serpens.de@localhost (Michael van Elst)
To: gnats-bugs%netbsd.org@localhost
Cc:
Subject: Re: kern/52126 (mvsata Marvell 88SX6081 panics on boot)
Date: Fri, 1 Nov 2019 18:44:03 -0000 (UTC)
prlw1%cam.ac.uk@localhost (Patrick Welche) writes:
> Any idea where the status values in
> __wdcwait: timeout (time=1001), status d0 error 0 (mask 0x40 bits 0x40)
>
> are defined?
That's the hex value of the status register. See sys/dev/ata/atareg.h.
0xd0 = WDCS_BSY | WDCS_DRDY | WDCS_DSC;
The timeout happens because the drive never cleared the busy flag,
the code waits for (mask | WDCS_BSY) == bits.
The names are ancient, in ATA speak WDCS_DSC is the DF (Device Fault) flag
that says that a command couldn't be completed (in contrast to a command
that is completed with or without an error). There are special modes
where the DF flag and others get repurposed to signal other conditions,
but that's not relevant here.
--
--
Michael van Elst
Internet: mlelstv%serpens.de@localhost
"A potential Snark may lurk in every tree."
Home |
Main Index |
Thread Index |
Old Index