summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Cappuccio <chris@cvs.openbsd.org>2002-02-16 08:18:58 +0000
committerChris Cappuccio <chris@cvs.openbsd.org>2002-02-16 08:18:58 +0000
commitb8770c1f3f63e8df8aa4ad8bcbf33cf555e3c86c (patch)
tree5841759c8a3140bc5bbe41e685cb05493dfdd68e
parentb212379bf2aba7859e669624947eafeab0dc1287 (diff)
Disable udma5 on the HPT370 for now. The silent data corruption disappears
at udma4.
-rw-r--r--sys/dev/pci/pciide.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/sys/dev/pci/pciide.c b/sys/dev/pci/pciide.c
index 215605f3ab0..f875c3ad59f 100644
--- a/sys/dev/pci/pciide.c
+++ b/sys/dev/pci/pciide.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pciide.c,v 1.77 2002/02/10 04:29:32 chris Exp $ */
+/* $OpenBSD: pciide.c,v 1.78 2002/02/16 08:18:57 chris Exp $ */
/* $NetBSD: pciide.c,v 1.127 2001/08/03 01:31:08 tsutsui Exp $ */
/*
@@ -3477,7 +3477,13 @@ hpt_chip_map(sc, pa)
sc->sc_wdcdev.nchannels = 1;
} else {
sc->sc_wdcdev.nchannels = 2;
- sc->sc_wdcdev.UDMA_cap = 5;
+ /*
+ * XXX disable udma5 for now.
+ */
+ if (revision == HPT370_REV)
+ sc->sc_wdcdev.UDMA_cap = 4;
+ else
+ sc->sc_wdcdev.UDMA_cap = 5;
}
for (i = 0; i < sc->sc_wdcdev.nchannels; i++) {
cp = &sc->pciide_channels[i];