Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 May 2008 17:20:56 +0200
From:      "Alexey Shuvaev" <shuvaev@physik.uni-wuerzburg.de>
To:        phoemix@harmless.hu
Cc:        freebsd-current@freebsd.org
Subject:   Re: ata mode at startup
Message-ID:  <20080523152056.GA14884@wep4017.physik.uni-wuerzburg.de>
In-Reply-To: <20080523155635.054f5ec4@twoflower.in.publishing.hu>
References:  <20080523155635.054f5ec4@twoflower.in.publishing.hu>

next in thread | previous in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080523152056.GA14884>