From owner-freebsd-questions@FreeBSD.ORG Fri Feb 1 17:36:23 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5E15D16A46D for ; Fri, 1 Feb 2008 17:36:23 +0000 (UTC) (envelope-from xfb52@dial.pipex.com) Received: from mk-outboundfilter-2.mail.uk.tiscali.com (mk-outboundfilter-2.mail.uk.tiscali.com [212.74.114.38]) by mx1.freebsd.org (Postfix) with ESMTP id F0EDE13C465 for ; Fri, 1 Feb 2008 17:36:22 +0000 (UTC) (envelope-from xfb52@dial.pipex.com) X-Trace: 21676495/mk-outboundfilter-2.mail.uk.tiscali.com/PIPEX/$MX-ACCEPTED/pipex-infrastructure/62.241.162.32 X-SBRS: None X-RemoteIP: 62.241.162.32 X-IP-MAIL-FROM: xfb52@dial.pipex.com X-IP-BHB: Once X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ao8CAE3nokc+8aIg/2dsb2JhbACucA X-IP-Direction: IN Received: from ranger.systems.pipex.net ([62.241.162.32]) by smtp.pipex.tiscali.co.uk with ESMTP; 01 Feb 2008 17:36:21 +0000 Received: from [192.168.23.2] (62-31-10-181.cable.ubr05.edin.blueyonder.co.uk [62.31.10.181]) by ranger.systems.pipex.net (Postfix) with ESMTP id C70C7E00008A; Fri, 1 Feb 2008 17:36:20 +0000 (GMT) Message-ID: <47A35894.4090101@dial.pipex.com> Date: Fri, 01 Feb 2008 17:36:20 +0000 From: Alex Zbyslaw User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-GB; rv:1.7.13) Gecko/20061205 X-Accept-Language: en MIME-Version: 1.0 To: darryl@osborne-ind.com References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: SATA question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Feb 2008 17:36:23 -0000 Darryl Hoar wrote: >>Well, >>maybe I spoke to soon. While looking at dmesg in prep for doing >>a custom kernel for my new server, I noticed an oddity. >> >>ad4 - DMA limited to UDMA33, device found non-ata66 cable. >>ad4 - >> >>Is this telling me the system recognized my >>160GB 7.2K RPM Serial ATA 3Gbps 3.5-in Cabled Hard Drive as >>a UDMA33 ? >> >> >> >atapci0: port >0xecb0-0xecb7,0xeca0-0xeca >3,0xecb8-0xecbf,0xeca4-0xeca7,0xece0-0xecef mem 0xefdfe000-0xefdfffff irq 6 >at d >evice 14.0 on pci3 >ata2: on atapci0 >ata3: on atapci0 > >atapci1: port >0x1f0-0x1f7,0x3f6,0x170-0x >177,0x376,0x8c0-0x8cf at device 2.1 on pci0 >ata0: on atapci1 >ata1: on atapci1 > >acd0: CDRW at ata0-master UDMA33 >ad4: DMA limited to UDMA33, device found non-ATA66 cable >ad4: 152587MB at ata2-master UDMA33 >ad6: DMA limited to UDMA33, device found non-ATA66 cable >ad6: 152587MB at ata3-master UDMA33 > >This is the copied relevant portions of demsg's output. I have only used >pciconf to >list devices, so am basically unfamilar with it. > >So, how do I get the system to recognize the drives as SATA ? > > I think you are placing a lot of faith in an error message and that your drives *may* be being recognised as SATA drives with just something spurious (in the driver) causing this message to appear. It looks like the same chipset is providing both IDE/UDMA and SATA, so maybe the driver is trying them as IDE first, producing the error messages, then finding they are SATA after all. Just a guess Have you tried any basic disk benchmarks? Even a diskinfo -t should show you the kind of throughput your are getting, or something like dd bs=64k if=/dev/zero of=/some/file/on/the/disk count=10000 That takes ~10 secs on my machine. If your performance is better than UDMA33 then you could just ignore the message or file an informational PR (if there isn't one already). Don't forget to be careful about bits/sec versus bytes/sec UDMA 33 is 33MB/s which is 33*1000*1000 bytes but 8 times as many bits, which some applications report. Having failed to get a definitive answer here you could also try the driver maintainer whom I believe to be sos@freebsd.org. Confirm that from the manpage and don't forget to mention the version of FreeBSD you have (6.3?) See also this thread: http://www.mail-archive.com/freebsd-hardware@freebsd.org/msg01706.html hth, --Alex On a random SATA150 disk I get ~60017191 bytes/sec for a dd, which ~= 60000 kbytes/sec from diskinfo and ~= 60MB/s or twice UDMA33. I believe that to be about par for a modern SATA disk.