summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>2000-11-26 04:59:18 +0000
committerchristos <christos@NetBSD.org>2000-11-26 04:59:18 +0000
commit12269bd46c4628d2a2511d2eac42eeb05ff787ce (patch)
tree4ba1f0f49a6ad22ba2c51b52c8c10515e8d0a3dc /sys/dev
parent484693d99338f75d4b1137435e340df7ee46dcf9 (diff)
Don't try to use ultra-dma on sis chips with revision 0xd0. It loses
immediately with a lost interrupt on udma mode 2, downgrades to mode 1 at which point it silently corrupts data on high disk activity. This happens on two out of 3 machines I own that exhibit high disk activity.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/pciide.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/pciide.c b/sys/dev/pci/pciide.c
index 9c5a9ad815e..e71961e01df 100644
--- a/sys/dev/pci/pciide.c
+++ b/sys/dev/pci/pciide.c
@@ -1,4 +1,4 @@
-/* $NetBSD: pciide.c,v 1.93 2000/11/19 15:32:24 bouyer Exp $ */
+/* $NetBSD: pciide.c,v 1.94 2000/11/26 04:59:18 christos Exp $ */
/*
@@ -2561,7 +2561,7 @@ sis_chip_map(sc, pa)
if (sc->sc_dma_ok) {
sc->sc_wdcdev.cap |= WDC_CAPABILITY_DMA | WDC_CAPABILITY_IRQACK;
sc->sc_wdcdev.irqack = pciide_irqack;
- if (rev >= 0xd0)
+ if (rev > 0xd0)
sc->sc_wdcdev.cap |= WDC_CAPABILITY_UDMA;
}