Mercurial > illumos > illumos-gate
changeset 977:26353dbbdadf
6202121 x86 ata:obsolete error message "bad block detected" for ATA-4 and more recent disks
author | dq159996 |
---|---|
date | Tue, 22 Nov 2005 18:33:39 -0800 |
parents | 969cfc4f574f |
children | 276670f0fee7 |
files | usr/src/uts/common/io/dktp/dcdev/dadk.c usr/src/uts/common/sys/dktp/dadkio.h |
diffstat | 2 files changed, 9 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/usr/src/uts/common/io/dktp/dcdev/dadk.c Tue Nov 22 18:32:11 2005 -0800 +++ b/usr/src/uts/common/io/dktp/dcdev/dadk.c Tue Nov 22 18:33:39 2005 -0800 @@ -186,7 +186,8 @@ "\023unit attention", /* DERR_UNIT_ATTN */ "\024data protection", /* DERR_DATA_PROT */ "\025miscompare", /* DERR_MISCOMPARE */ - "\026reserved", /* DERR_RESV */ + "\026ICRC error during UDMA", /* DERR_ICRC */ + "\027reserved", /* DERR_RESV */ NULL }; @@ -1185,7 +1186,8 @@ {COMMAND_DONE, GDA_FATAL}, /* 19 DERR_UNIT_ATTN */ {COMMAND_DONE_ERROR, GDA_FATAL}, /* 20 DERR_DATA_PROT */ {COMMAND_DONE_ERROR, GDA_FATAL}, /* 21 DERR_MISCOMPARE */ - {COMMAND_DONE_ERROR, GDA_FATAL}, /* 22 DERR_RESV */ + {QUE_COMMAND, GDA_RETRYABLE}, /* 22 DERR_ICRC */ + {COMMAND_DONE_ERROR, GDA_FATAL}, /* 23 DERR_RESV */ }; static int @@ -1265,6 +1267,7 @@ case DERR_HARD: rwcmdp->status.status = DADKIO_STAT_HARDWARE_ERROR; break; + case DERR_ICRC: default: rwcmdp->status.status = DADKIO_STAT_NOT_SUPPORTED; }
--- a/usr/src/uts/common/sys/dktp/dadkio.h Tue Nov 22 18:32:11 2005 -0800 +++ b/usr/src/uts/common/sys/dktp/dadkio.h Tue Nov 22 18:33:39 2005 -0800 @@ -124,7 +124,10 @@ #define DERR_UNIT_ATTN 19 /* Unit attention */ #define DERR_DATA_PROT 20 /* Data protection */ #define DERR_MISCOMP 21 /* Miscompare */ -#define DERR_RESV 22 /* Reserved */ +#define DERR_ICRC 22 /* Interface CRC error -- new driver */ + /* error code in ATA-4 and newer */ +#define DERR_RESV 23 /* Reserved */ + struct dadkio_derr { int d_action; int d_severity;