Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pci Don't try to use ultra-dma on sis chips with rev...



details:   https://anonhg.NetBSD.org/src/rev/07e9c621244f
branches:  trunk
changeset: 499660:07e9c621244f
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Nov 26 04:59:18 2000 +0000

description:
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:

 sys/dev/pci/pciide.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r cbf6e7ef1c80 -r 07e9c621244f sys/dev/pci/pciide.c
--- a/sys/dev/pci/pciide.c      Sun Nov 26 04:59:03 2000 +0000
+++ b/sys/dev/pci/pciide.c      Sun Nov 26 04:59:18 2000 +0000
@@ -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 @@
        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;
        }
 



Home | Main Index | Thread Index | Old Index