From owner-freebsd-hardware@FreeBSD.ORG Fri Jan 2 18:22:32 2004 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D3CAF16A4CE for ; Fri, 2 Jan 2004 18:22:32 -0800 (PST) Received: from smtp.covadmail.net (mx05.covadmail.net [63.65.120.65]) by mx1.FreeBSD.org (Postfix) with SMTP id 4CA8443D49 for ; Fri, 2 Jan 2004 18:22:31 -0800 (PST) (envelope-from strick@covad.net) Received: (covad.net 8957 invoked from network); 3 Jan 2004 02:22:25 -0000 Received: from unknown (HELO covad.net) (strick@covad.net@67.101.99.81) by sun-qmail10 with SMTP; 3 Jan 2004 02:22:25 -0000 Message-ID: <3FF62760.1030302@covad.net> Date: Fri, 02 Jan 2004 18:22:24 -0800 From: Dan Strick User-Agent: Mozilla/5.0 (X11; U; Linux i386; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 X-Accept-Language: en-us, en MIME-Version: 1.0 To: d.ortiz@in.ilimit.es, freebsd-hardware@freebsd.org, strick@covad.net Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: atacontrol/udma X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Jan 2004 02:22:33 -0000 On Fri, 2 Jan 2004, Daniel Ortiz wrote: >> > I've a 'tyan i875p (s5102)' motherboard (with SATA 150), with a FreeBSD > 4.9-STABLE installed, the kernel detects the hardware fine. > The cable it's a fully working serial ata cable. > > ... > > But atacontrol always says me that it uses UDMA33 instead of SATA-150 or > other (I can't set UDMA66/100/133/150), in bios I tried to use legacy, > combined and enhaced modes but always work in UDMA33. > > ad0: DMA limited to UDMA33, non-ATA66 cable or device > ad1: DMA limited to UDMA33, non-ATA66 cable or device > > Iozone, bonnie and bonnie++ always report a maximum transfer of > 32MB/Sec. > > The question is: How I can set the transfer to any other UDMA? FreeBSD > detects ther hardware but I can't use that features without ATAng? Any > patch/solution/idea? >> The 4.9-STABLE driver does not particularly understand Serial ATA, but this is not a problem here. If the driver configures your SATA drive for any kind of dma (e.g. UDMA33), your particular SATA controller (on the ICH5 chip in the Intel 875P cpu support chipset) will do dma at SATA150 dma rates. I don't know why your I/O benchmarks report only 32 MB/sec. Perhaps this is natural for these benchmarks and your particular drives. You might try "dd if=/dev/ad0 of=/dev/null bs=128k" while running "iostat 5". (The 128k buffer size may be necessary.) I get about 56 MB/sec even though the driver thinks it has configured the drive for UDMA33. Dan Strick strick@covad.net