Re: ide problem - is this a known problem, or is the disk dead?

From: Protasevich, Natalie (Natalie.Protasevich@UNISYS.com)
Date: Mon Jun 02 2003 - 13:05:33 EST


On Sul, 2003-06-01 at 23:28, Robert Murray wrote:
> Jun 1 06:28:00 r2d2 kernel: hdc: dma_timer_expiry: dma status == 0x21
> Jun 1 06:28:10 r2d2 kernel: hdc: timeout waiting for DMA
> Jun 1 06:28:10 r2d2 kernel: hdc: timeout waiting for DMA
> Jun 1 06:28:10 r2d2 kernel: hdc: (__ide_dma_test_irq) called while not
waiting
> Jun 1 06:28:10 r2d2 kernel: hdc: status timeout: status=0xd0 { Busy }
> Jun 1 06:28:10 r2d2 kernel:
> Jun 1 06:28:10 r2d2 kernel: hdc: drive not ready for command
> Jun 1 06:28:40 r2d2 kernel: ide1: reset timed-out, status=0xd0
> Jun 1 06:28:40 r2d2 kernel: hdc: status timeout: status=0xd0 { Busy }
> Jun 1 06:29:11 r2d2 kernel:

I had exact same problem when I had both SCSI and IDE drives on my system
(and boot drive was SCSI). If you check out file drivers/ide/ide-geometry.c,
the potential hazard is spelled out in the comment:
/*
 * I did this, but it doesnt work - there is no reasonable way to find the
 * correspondence between the BIOS numbering of the disks and the Linux
 * numbering. -aeb
 *
 * The code below is bad. One of the problems is that drives 1 and 2
 * may be SCSI disks (even when IDE disks are present), so that
 * the geometry we read here from BIOS is attributed to the wrong disks.
 * Consequently, also the former "drive->present = 1" below was a mistake.
 *
 * Eventually the entire routine below should be removed.
 *
 */
 void probe_cmos_for_drives (ide_hwif_t *hwif)
 {
        ...
... and it was removed in 2.5. I avoided this by just "return"-ing from this
routine.

--Natalie

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Jun 07 2003 - 22:00:17 EST