Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Aug 2000 10:32:36 +0100 (IST)
From:      "Steve O'Hara-Smith" <steveo@eircom.net>
To:        freebsd-stable@freebsd.org
Cc:        sos@freebsd.org
Subject:   SiS 5595 - can do UDMA-66. patch for test.
Message-ID:  <XFMail.000811103236.steveo@eircom.net>

next in thread | raw e-mail | index | archive | help
        Hi,

        I have a box with a SiS 5595 which is recognised as a 5591. As far as I
can tell the only difference is that 5595 does UDMA66. The (very simple)
patch below trys for UDMA66 on a 5591 and (with mine at least) gets it (the
improvement is not subtle). The patch is against -stable a while ago, I've been
soaking it ever since.

Index: dev/ata/ata-dma.c
===================================================================
RCS file: /home/ncvs/src/sys/dev/ata/ata-dma.c,v
retrieving revision 1.35.2.2
diff -u -r1.35.2.2 ata-dma.c
--- dev/ata/ata-dma.c   2000/06/11 17:02:46     1.35.2.2
+++ dev/ata/ata-dma.c   2000/08/01 21:25:32
@@ -377,6 +377,19 @@
        break;
 
     case 0x55131039:   /* SiS 5591 */
+       if (udmamode >= 4) {
+           error = ata_command(scp, device, ATA_C_SETFEATURES, 0, 0, 0,
+                               ATA_UDMA4, ATA_C_F_SETXFER, ATA_WAIT_READY);
+           if (bootverbose)
+               ata_printf(scp, device,
+                          "%s setting up UDMA4 mode on SiS chip\n",
+                          (error) ? "failed" : "success");
+           if (!error) {
+               pci_write_config(parent, 0x40 + (devno << 1), 0xa301, 2);
+               scp->mode[ATA_DEV(device)] = ATA_UDMA4;
+               return;
+           }
+       }
        if (udmamode >= 2) {
            error = ata_command(scp, device, ATA_C_SETFEATURES, 0, 0, 0,
                                ATA_UDMA2, ATA_C_F_SETXFER, ATA_WAIT_READY);



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.000811103236.steveo>