Bug 80031
Summary: | libata handles ATA_UNC but does not handle ATA_AMNF. Is this intentional or a bug? | ||
---|---|---|---|
Product: | IO/Storage | Reporter: | Alexey Asemov (alex) |
Component: | Serial ATA | Assignee: | Tejun Heo (tj) |
Status: | RESOLVED CODE_FIX | ||
Severity: | normal | CC: | alan, alex, andrey_utkin |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | latest | Subsystem: | |
Regression: | No | Bisected commit-id: | |
Attachments: | Proposed patch to handle AMNF |
Description
Alexey Asemov
2014-07-11 17:57:53 UTC
AMNF bit is not mentioned at all in latest release of ATA specs, so recent drives are not supposed to indicate it, and developers can be unaware of this bit if they don't check deprecated documentation versions. BTW I also don't see checks for "ABRT" bit. Cannot say if it is really needed, i'm not a pro on kernal ATA management. Please go on with submission of a patch. Created attachment 142751 [details]
Proposed patch to handle AMNF
libata-eh.c should handle AMNF error condition (error byte bit 0, usually
code 0x01) in libata-eh.c along with UNC as a media error so SCSI stack
can handle it properly (translation code 0x01 is already present in
libata-scsi.c) but was never passed down due to lack of handling in EH.
Must be tested though to ensure it does not break something, if AMNF is currently undocumented. I don't think someone will break the compatibility though using AMNF because many software and even BIOS'es will break then. Ok, have you posted it? To: Tejun Heo <tj@kernel.org> (supporter:SERIAL ATA (SATA)...) linux-ide@vger.kernel.org (open list:SERIAL ATA (SATA)...) linux-kernel@vger.kernel.org (open list) Do I need to mail it now to the addresses above? Yes, preferrably in the way the command "git send-email" does. Mailed it. |