Messages in this thread Patches in this message |  | | From | Christian Bornträger <> | Subject | Re: ide drive problem? RFC | Date | Fri, 28 Sep 2001 17:48:18 +0200 |
| |
> > > hde: dma_intr: status=0x51 { DriveReady SeekComplete Error } > > > hde: dma_intr: error=0x84 { DriveStatusError BadCRC } > > > > Hmmm, I get this message as well about once a day (though it seems it > > could not cause any damage ... yet ...) > > BadCRC is a transmission error on the IDE cable. It will be retried so > it isnt a problem.
I read this error message very often in the LKML. Why not making the error message more detailed, pointing to a FAQ entry or an help file or a hint to check the IDE cable?
As a aimple example, I made a patch against 2.4.9-ac14.
diff -ur linux/drivers/ide/ide.c linux-new/drivers/ide/ide.c --- linux/drivers/ide/ide.c Thu Sep 27 17:53:09 2001 +++ linux-new/drivers/ide/ide.c Fri Sep 28 17:26:16 2001 @@ -910,7 +910,8 @@ if (drive->media == ide_disk) { printk(" { "); if (err & ABRT_ERR) printk("DriveStatusError "); - if (err & ICRC_ERR) printk("%s", (err & ABRT_ERR) ? "BadCRC " : "BadSector "); + if (err & ICRC_ERR) printk("%s", (err & ABRT_ERR) ? "BadCRC.\ +Please check your IDE-cable." : "BadSector "); if (err & ECC_ERR) printk("UncorrectableError "); if (err & ID_ERR) printk("SectorIdNotFound "); if (err & TRK0_ERR) printk("TrackZeroNotFound ");
diff -ur linux/drivers/ide/ide.c linux-new/drivers/ide/ide.c --- linux/drivers/ide/ide.c Thu Sep 27 17:53:09 2001 +++ linux-new/drivers/ide/ide.c Fri Sep 28 17:26:16 2001 @@ -910,7 +910,8 @@ if (drive->media == ide_disk) { printk(" { "); if (err & ABRT_ERR) printk("DriveStatusError "); - if (err & ICRC_ERR) printk("%s", (err & ABRT_ERR) ? "BadCRC " : "BadSector "); + if (err & ICRC_ERR) printk("%s", (err & ABRT_ERR) ? "BadCRC.\ +Please check your IDE-cable." : "BadSector "); if (err & ECC_ERR) printk("UncorrectableError "); if (err & ID_ERR) printk("SectorIdNotFound "); if (err & TRK0_ERR) printk("TrackZeroNotFound "); |  |