Re: ata mode at startup

From: Alexey Shuvaev <shuvaev_at_physik.uni-wuerzburg.de>
Date: Fri, 23 May 2008 17:20:56 +0200
On Fri, May 23, 2008 at 03:56:35PM +0200, phoemix_at_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.
Received on Fri May 23 2008 - 13:21:01 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:31 UTC