Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 09 Jan 2008 11:38:10 +0300
From:      "Andrey V. Elsukov" <bu7cher@yandex.ru>
To:        Wildes Miranda <gowmo@yahoo.com.br>
Cc:        freebsd-current@freebsd.org, Xin LI <delphij@FreeBSD.org>, =?KOI8-R?Q?S=3Fren_Schmidt?= <sos@FreeBSD.org>
Subject:   Re: ATI SB600/700/800 tester wanted
Message-ID:  <478487F2.9000907@yandex.ru>
In-Reply-To: <474808.60103.qm@web33608.mail.mud.yahoo.com>
References:  <474808.60103.qm@web33608.mail.mud.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
--------------030003030603090103020403
Content-Type: text/plain; charset=KOI8-R; format=flowed
Content-Transfer-Encoding: 7bit

Wildes Miranda wrote:
>> There was a lot of fixes and changes.
>> And now it mostly doesn't needed. Do you have some
>> troubles?
> 
> Yes, i think. I haven't the option to set AHCI on the
> BIOS as you  suggested, and my trouble is that sata
> disk just operate on UDMA33 mode.
> i wish to use this box for java development, with many
> disk access on compilation process and tomcat
> environment. I think that this box will be more fast
> with max mode allowed by disk controller.

Hi,

please, try attached patch (not tested).

-- 
WBR, Andrey V. Elsukov

--------------030003030603090103020403
Content-Type: text/plain;
 name="ati.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="ati.diff"

Index: src/sys/dev/ata/ata-chipset.c
===================================================================
RCS file: /ncvs/src/sys/dev/ata/ata-chipset.c,v
retrieving revision 1.202.2.5
diff -u -b -r1.202.2.5 ata-chipset.c
--- src/sys/dev/ata/ata-chipset.c	9 Dec 2007 19:26:56 -0000	1.202.2.5
+++ src/sys/dev/ata/ata-chipset.c	9 Jan 2008 08:34:51 -0000
@@ -1346,7 +1346,9 @@
      { ATA_ATI_IXP400_S1, 0x00, SIIMEMIO, 0, ATA_SA150, "IXP400" },
      { ATA_ATI_IXP400_S2, 0x00, SIIMEMIO, 0, ATA_SA150, "IXP400" },
      { ATA_ATI_IXP600,    0x00, 0,        0, ATA_UDMA6, "IXP600" },
+     { ATA_ATI_IXP600_S1, 0x00, 0,        0, ATA_SA300, "IXP600" },
      { ATA_ATI_IXP700,    0x00, 0,        0, ATA_UDMA6, "IXP700" },
+     { ATA_ATI_IXP700_S1, 0x00, 0,        0, ATA_SA300, "IXP700" },
      { 0, 0, 0, 0, 0, 0}};
 
     if (!(ctlr->chip = ata_match_chip(dev, ids)))
@@ -1370,6 +1372,11 @@
     if (ata_setup_interrupt(dev))
 	return ENXIO;
 
+    /* try to use AHCI */
+    if (ctlr->chip->max_dma > ATA_SA150 &&
+	ata_ahci_chipinit(dev) != ENXIO)
+	return 0;
+
     /* IXP600 & IXP700 only have 1 PATA channel */
     if ((ctlr->chip->chipid == ATA_ATI_IXP600) ||
 	(ctlr->chip->chipid == ATA_ATI_IXP700))
Index: src/sys/dev/ata/ata-pci.h
===================================================================
RCS file: /ncvs/src/sys/dev/ata/ata-pci.h,v
retrieving revision 1.81.2.1
diff -u -b -r1.81.2.1 ata-pci.h
--- src/sys/dev/ata/ata-pci.h	21 Nov 2007 21:15:00 -0000	1.81.2.1
+++ src/sys/dev/ata/ata-pci.h	9 Jan 2008 08:34:51 -0000
@@ -104,7 +104,9 @@
 #define ATA_ATI_IXP400_S1       0x43791002
 #define ATA_ATI_IXP400_S2       0x437a1002
 #define ATA_ATI_IXP600          0x438c1002
+#define ATA_ATI_IXP600_S1       0x43801002
 #define ATA_ATI_IXP700          0x439c1002
+#define ATA_ATI_IXP700_S1       0x43901002
 
 #define ATA_CENATEK_ID          0x16ca
 #define ATA_CENATEK_ROCKET      0x000116ca

--------------030003030603090103020403--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?478487F2.9000907>