--=_courier-6667-1052921891-0001-2
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
> I'm seeing it too, only with recent kernels.
Exactly like me.
Someone suggested Bartlomiej Zolnierkiewicz's patch.
Try this on for size. I haven't tested it yet, but please give it a shot.
Regards,
Maciej
# Fix masked_irq arg handling for ide_do_request().
# Solves "hdx: lost interrupt" bug.
#
# Bartlomiej Zolnierkiewicz <bzolnier@elka.pw.edu.pl>
--- linux-2.5.68-bk6/drivers/ide/ide-io.c Fri Apr 25 16:08:53 2003
+++ linux/drivers/ide/ide-io.c Fri Apr 25 16:13:37 2003
@@ -850,14 +850,14 @@
* happens anyway when any interrupt comes in, IDE or otherwise
* -- the kernel masks the IRQ while it is being handled.
*/
- if (hwif->irq != masked_irq)
+ if (masked_irq != IDE_NO_IRQ && hwif->irq != masked_irq)
disable_irq_nosync(hwif->irq);
spin_unlock(&ide_lock);
local_irq_enable();
/* allow other IRQs while we start this request */
startstop = start_request(drive, rq);
spin_lock_irq(&ide_lock);
- if (hwif->irq != masked_irq)
+ if (masked_irq != IDE_NO_IRQ && hwif->irq != masked_irq)
enable_irq(hwif->irq);
if (startstop == ide_released)
goto queue_next;
--=_courier-6667-1052921891-0001-2
Content-Type: text/plain; name="masked_irq.diff"; charset=iso-8859-1
Content-Transfer-Encoding: base64
Content-ID: <Pine.LNX.4.51.0305141613150.22227@dns.toxicfilms.tv>
Content-Description: masked_irq.diff
Content-Disposition: attachment; filename="masked_irq.diff"
IyBGaXggbWFza2VkX2lycSBhcmcgaGFuZGxpbmcgZm9yIGlkZV9kb19yZXF1
ZXN0KCkuDQojIFNvbHZlcyAiaGR4OiBsb3N0IGludGVycnVwdCIgYnVnLg0K
Iw0KIyBCYXJ0bG9taWVqIFpvbG5pZXJraWV3aWN6IDxiem9sbmllckBlbGth
LnB3LmVkdS5wbD4NCg0KLS0tIGxpbnV4LTIuNS42OC1iazYvZHJpdmVycy9p
ZGUvaWRlLWlvLmMJRnJpIEFwciAyNSAxNj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