lkml.org 
[lkml]   [1999]   [May]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectIDE patch: "DeviceFault" errors
Hi.

Somehow, this functionality got lost (or was never there)
in the IDE driver. I have a drive which never recovers
from problems without this patch. Please apply to whatever
the next release will be.

The patch only kicks in on "DeviceFault" errors (formerly called
the "werr" bit, status 0x20), we already have a mechanism to ignore
this bit in cases where it (already) rarely is misreported ("nowerr").

Cheers
--
mlord@pobox.com--- linux-2.2.7/drivers/block/ide.c.227 Tue Mar 23 19:28:21 1999
+++ linux/drivers/block/ide.c Fri Apr 30 09:25:23 1999
@@ -813,7 +813,7 @@
ide_end_drive_cmd(drive, stat, err);
return;
}
- if (stat & BUSY_STAT) { /* other bits are useless when BUSY */
+ if (stat & BUSY_STAT || ((stat & WRERR_STAT) && !drive->nowerr)) { /* other bits are useless when BUSY */
rq->errors |= ERROR_RESET;
} else {
if (drive->media == ide_disk && (stat & ERR_STAT)) {
\
 
 \ /
  Last update: 2005-03-22 13:51    [W:0.269 / U:0.028 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site