From owner-freebsd-stable@FreeBSD.ORG Mon Nov 3 01:42:05 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8142816A4CE for ; Mon, 3 Nov 2003 01:42:05 -0800 (PST) Received: from cray.e-card.bg (mjak.e-card.bg [212.91.167.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id ABA8B43FAF for ; Mon, 3 Nov 2003 01:42:02 -0800 (PST) (envelope-from altares@cray.e-card.bg) Received: from cray.e-card.bg (localhost [127.0.0.1]) by cray.e-card.bg (8.12.9/8.12.9) with ESMTP id hA39g0NX021967; Mon, 3 Nov 2003 11:42:00 +0200 (EET) (envelope-from altares@cray.e-card.bg) Received: (from altares@localhost) by cray.e-card.bg (8.12.9/8.12.9/Submit) id hA39ft1d021966; Mon, 3 Nov 2003 11:41:55 +0200 (EET) Date: Mon, 3 Nov 2003 11:41:55 +0200 From: Rumen Telbizov To: Soren Schmidt Message-ID: <20031103094155.GD20231@e-card.bg> References: <20031103085945.GA20231@e-card.bg> <200311030906.hA396MOg063940@spider.deepcore.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200311030906.hA396MOg063940@spider.deepcore.dk> User-Agent: Mutt/1.4.1i cc: stable@freebsd.org Subject: Re: FreeBSD and serial ata X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Nov 2003 09:42:05 -0000 Thanks for the fast reply Soren. I do appreciate it. On Mon, Nov 03, 2003 at 10:06:22AM +0100, Soren Schmidt wrote: > It seems Rumen Telbizov wrote: > > any answers the first time. > > > > I have P4P800-VM motherboard with serial ata > > controlers (ICH5) and serial ata discs. I managed > > to install FreeBSD 4.9-STABLE on this box when > > setting the IDE controller in legacy mode. > > Everything works normal except when booting, > > the drives are set into UDMA33 mode: > > > > atapci0: port > > 0xfc00-0xfc0f,0-0x3,0-0x7,0-0x3,0- > > 0x7 irq 0 at device 31.2 on pci0 > > ata0: at 0x1f0 irq 14 on atapci0 > > ata1: at 0x170 irq 15 on atapci0 > > > > ad0: DMA limited to UDMA33, non-ATA66 cable or device > > ad0: 76319MB [155061/16/63] at ata0-master UDMA33 > > ad1: DMA limited to UDMA33, non-ATA66 cable or device > > ad1: 76319MB [155061/16/63] at ata0-slave UDMA33 > > > > I read somewhere that this message is a hoax and that > > the drive should actually work in UDMA150. Is this my case? > > Yes, there are no "modes" on SATA (so far) its just SATA-150 in this > case and the drives (if true SATA drives not PATA with converters) > run SATA-150 over the inteface as soon as youselect any DMA mode. > Great! Yes my drives ARE Serial ata. I tested the speed by copying from one drive to the other and I have a rough estimation of 32MBytes/s transfer. (Softupdates enabled). bonnie++ reports ~ 55MBytes/s sequential read/write speed. > > I also checked the source of ata-dma.c: > > Here is the section. > > > > #if 1 > > if (udmamode > 2 && !atadev->param->hwres_cblid) { > > ata_prtdev(atadev,"DMA limited to UDMA33, non-ATA66 cable or device\n"); > > udmamode = 2; > > } > > #endif > > > > > > Maybe this should sound like: > > if ( (udmamode > 2) && (udmamode < 5) && (!atadev->param->hwres_cblid) ) { > > ata_prtdev(atadev,"DMA limited to UDMA33, non-ATA66 cable or device\n"); > > udmamode = 2; > > } > > > > All comments are wellcome. > > That wont work.. > > The problem here is that -stable's ATA driver doesn't have the infrastructure > to handle SATA properly, so what you have here is a crude hack to get some > controllers working, but you will have to live with the fallout above... Yeah I know this is an ugly patch. I just thought it might be usefull to make the OS stop weeping nothing else. Anyway. What exactly do you mean by saying that -stable's ATA driver doesn't have the infrastructure to handle SATA properly? How do my controlers work now? Because of the legacy support in the BIOS? If the controler is in legacy mode does it work with the full speed as if it were in native (enhanced) mode? Thank you. Rumen Telbizov