ata mode at startup
Alexey Shuvaev
shuvaev at physik.uni-wuerzburg.de
Fri May 23 15:21:01 UTC 2008
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.
More information about the freebsd-current
mailing list