Re: IDE, putting HD to sleep causes "lost interrupt"

Mark Lord (mlord@pobox.com)
Wed, 31 Jul 2002 08:18:35 -0400


Well, the answer is very simple, then: DON'T DO THAT.

When an ATA (IDE) drive is put to sleep (-Y),
it *requires* a reset to revive it for any future commands.

The IDE driver doesn't know about the -Y, so it just attempts
I/O a few times before digging out the BIG hammer and doing a reset.

All is well.

-- 
Mark Lord
Real-Time Remedies Inc.
mlord@pobox.com

Mukesh Rajan wrote: > > hi, > > things work perfectly fine on my desktop. but on my laptop (toshiba > satellite) if i try, > > %hdparm -Y /dev/hda <--- put to sleep followed by > %hdparm -C /dev/hda <--- query status > > gives me > > hda: lost interrupt > hda: timeout waiting for DMA > ide_dmaproc: chipset supported ide_dma_timeout func only: 14 > hda: irq timeout: status=0x50 { DriveReady SeekComplete } > hda: timeout waiting for DMA > ide_dmaproc: chipset supported ide_dma_timeout func only: 14 > hda: irq timeout: status=0x50 { DriveReady SeekComplete } > hda: lost interrupt > hda: timeout waiting for DMA > ide_dmaproc: chipset supported ide_dma_timeout func only: 14 > hda: irq timeout: status=0x50 { DriveReady SeekComplete } > hda: timeout waiting for DMA > ide_dmaproc: chipset supported ide_dma_timeout func only: 14 > hda: irq timeout: status=0x50 { DriveReady SeekComplete } > hda: DMA disabled > ide0: reset: success > > if i try the above from X, the machine freezes and i need to do hard > reboot. > > the boot message regarding ide are as follows > > boot messages > ------------- > Uniform Multi-Platform E-IDE driver Revision: 6.31 > ide: Assuming 33MHz system bus speed for PIO modes; override with > idebus=xx > ALI15X3: IDE controller on PCI bus 00 dev 20 > PCI: No IRQ known for interrupt pin A of device 00:04.0. Please try using > pci=biosirq. > ALI15X3: chipset revision 195 > ALI15X3: not 100% native mode: will probe irqs later > ide0: BM-DMA at 0xeff0-0xeff7, BIOS settings: hda:DMA, hdb:pio > ide1: BM-DMA at 0xeff8-0xefff, BIOS settings: hdc:DMA, hdd:pio > hda: TOSHIBA MK2018GAP, ATA DISK drive > > the closest i think i got to on google is the following but there are no > answers > > http://mail.nl.linux.org/kernelnewbies/2001-01/msg00064.html > > please help. > > - mukesh - 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/