From owner-freebsd-current@FreeBSD.ORG Fri May 23 15:21:01 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8B14A106567E for ; Fri, 23 May 2008 15:21:01 +0000 (UTC) (envelope-from shuvaev@physik.uni-wuerzburg.de) Received: from mailrelay.rz.uni-wuerzburg.de (wrzx28.rz.uni-wuerzburg.de [132.187.3.28]) by mx1.freebsd.org (Postfix) with ESMTP id 11F228FC27 for ; Fri, 23 May 2008 15:21:00 +0000 (UTC) (envelope-from shuvaev@physik.uni-wuerzburg.de) Received: from virusscan.mail (localhost [127.0.0.1]) by mailrelay.mail (Postfix) with ESMTP id 2E6B0A069A; Fri, 23 May 2008 17:20:59 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by virusscan.mail (Postfix) with ESMTP id 21447A0699; Fri, 23 May 2008 17:20:59 +0200 (CEST) Received: from mail.physik.uni-wuerzburg.de (wthp192.physik.uni-wuerzburg.de [132.187.40.192]) by mailmaster.uni-wuerzburg.de (Postfix) with ESMTP id ECA8BA068D; Fri, 23 May 2008 17:20:57 +0200 (CEST) Received: from wep4017.physik.uni-wuerzburg.de ([132.187.37.17]) by mail.physik.uni-wuerzburg.de (Lotus Domino Release 8.0.1HF110) with ESMTP id 2008052317205686-44943 ; Fri, 23 May 2008 17:20:56 +0200 Received: by wep4017.physik.uni-wuerzburg.de (sSMTP sendmail emulation); Fri, 23 May 2008 17:20:56 +0200 From: "Alexey Shuvaev" Date: Fri, 23 May 2008 17:20:56 +0200 To: phoemix@harmless.hu Message-ID: <20080523152056.GA14884@wep4017.physik.uni-wuerzburg.de> Mail-Followup-To: phoemix@harmless.hu, freebsd-current@freebsd.org References: <20080523155635.054f5ec4@twoflower.in.publishing.hu> MIME-Version: 1.0 In-Reply-To: <20080523155635.054f5ec4@twoflower.in.publishing.hu> Organization: Universitaet Wuerzburg User-Agent: Mutt/1.5.17 (2007-11-01) X-MIMETrack: Itemize by SMTP Server on domino1/uni-wuerzburg(Release 8.0.1HF110 | April 11, 2008) at 05/23/2008 05:20:56 PM, Serialize by Router on domino1/uni-wuerzburg(Release 8.0.1HF110 | April 11, 2008) at 05/23/2008 05:20:58 PM, Serialize complete at 05/23/2008 05:20:58 PM Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Virus-Scanned: by amavisd-new at uni-wuerzburg.de Cc: freebsd-current@freebsd.org Subject: Re: ata mode at startup X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 May 2008 15:21:01 -0000 On Fri, May 23, 2008 at 03:56:35PM +0200, phoemix@harmless.hu wrote: > Hello, > > As known, FreeBSD sets the highest supported ATA mode, but sometimes it's > inproper, since the disk fails to work in this mode. This will be obsolate by > recent SATA drives, but PATA is still in use :) > > I've though of the possibility of adding an "atamodetab" rc script, with which > the administrator could specify the disk modes to set on startup. > > I've already got a sketch for this script that I use, but I'd like to ask, does > it worth the effort working on it a bit more, and adding it to the core OS? I > think this would be a quite useful feature to have. > Hello! I think such a thing should be set much earlier than in rc script, somewhere in loader.conf(5) and it is already done. >From ata(4): [snip] The following tunables are settable from the loader: hw.ata.ata_dma set to 1 for DMA access, 0 for PIO (default is DMA). hw.ata.atapi_dma set to 1 for DMA access, 0 for PIO (default is DMA). [snip] Alexey.