[PATCH] Lost interrupt with HPT372A patch

From: Rex Tsai (chihchun@kalug.linux.org.tw)
Date: Wed Apr 10 2002 - 20:15:54 EST


Hi, I have a HighPoint RocketRAID 133 host adapter
with HPT372A chipset. (firmware revision is 2.31)

When booting with 2.4.19-pre5-ac3, I get "hde lost interrupt".
My HD drive is

  hde: ST380021A, ATA DISK drive
  hde: 156301488 sectors (80026 MB) w/2048KiB Cache, CHS=155061/16/63

The patch below turned out the problem.

--- linux/drivers/ide/hpt366.c.old Thu Apr 11 08:50:45 2002
+++ linux/drivers/ide/hpt366.c Thu Apr 11 08:57:18 2002
@@ -1326,7 +1326,11 @@
        int adjust, i;
        u16 freq;
        u32 pll;
- byte reg5bh;
+ byte reg5bh, reg5ah;
+
+ /* turn on interrupts */
+ pci_read_config_byte(dev, 0x5a, &reg5ah);
+ pci_write_config_byte(dev, 0x5a, ( reg5ah & ~0x10));

        /*
         * default to pci clock. make sure MA15/16 are set to output
-Rex

-
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 : Mon Apr 15 2002 - 22:00:17 EST