patch for review: ATI SB600 SATA AHCI

Torfinn Ingolfsen torfinn.ingolfsen at broadpark.no
Sun Jan 20 12:27:36 PST 2008


Hello,

On Sun, 20 Jan 2008 04:13:34 +0100
Volker <volker at vwsoft.com> wrote:

> 6715b notebook using ATI SB-600 chipset. With stock kernel, the ATA

I have a machine with an Asus M2A-VM HDMI motherboard[1], which also
have this chipset.

> My patch has been tested on RELENG_7 as of 2008-01-19. Please review,
> check and test if possible. Should work on 8-CURRENT, too.

I had to hand apply part of the patch (probably a whitespace problem
when I copied it from the mail), but it built fine.

>From dmesg, before the patch:
atapci0: <ATI ATA controller> port 0xfc00-0xfc07,0xf800-0xf803,0xf400-0xf407,0xf000-0xf003,0xec00-0xec0f mem 0xfe02f000-0xfe02f3ff irq 22 at device 18.0 on pci0
atapci0: [ITHREAD]
ata2: <ATA channel 0> on atapci0
ata2: [ITHREAD]
ata3: <ATA channel 1> on atapci0
ata3: [ITHREAD]
atapci1: <ATI IXP600 UDMA133 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xe400-0xe40f at device 20.1 on pci0
ata0: <ATA channel 0> on atapci1
ata0: [ITHREAD]
acd0: DVDR <Optiarc DVD RW AD-5170A/1.12> at ata0-master UDMA66
ad4: 476940MB <SAMSUNG HD501LJ CR100-12> at ata2-master UDMA33

>From dmesg, after the patch:
tapci0: <ATI IXP600 SATA300 controller> port 0xfc00-0xfc07,0xf800-0xf803,0xf400-0xf407,0xf000-0xf003,0xec00-0xec0f mem 0xfe02f000-0xfe02f3ff irq 22 at device 18.0 on pci0
atapci0: [ITHREAD]
atapci0: AHCI Version 01.10 controller with 4 ports detected
ata2: <ATA channel 0> on atapci0
ata2: [ITHREAD]
ata3: <ATA channel 1> on atapci0
ata3: [ITHREAD]
ata4: <ATA channel 2> on atapci0
ata4: [ITHREAD]
ata5: <ATA channel 3> on atapci0
ata5: [ITHREAD]
atapci1: <ATI IXP600 UDMA133 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xe400-0xe40f at device 20.1 on pci0
ata0: <ATA channel 0> on atapci1
ata0: [ITHREAD]
acd0: DVDR <Optiarc DVD RW AD-5170A/1.12> at ata0-master UDMA66
ad4: 476940MB <SAMSUNG HD501LJ CR100-12> at ata2-master SATA300

I haven't done any tests to see if it changes performance in any way, at least it reports SATA 300:
root at kg-vm# atacontrol mode ad4
current mode = SATA300

This is on:
root at kg-vm# uname -a
FreeBSD kg-vm.kg4.no 7.0-PRERELEASE FreeBSD 7.0-PRERELEASE #4: Sun Jan 20 19:27:36 CET 2008     root at kg-vm.kg4.no:/usr/obj/usr/src/sys/GENERIC  amd64


References:
1) info about my machine http://tingox.googlepages.com/asus_m2a-vm_hdmi
-- 
Regards,
Torfinn Ingolfsen



More information about the freebsd-stable mailing list