Remove the ATA_ENABLE_ATAPI_DMA, ATA_ENABLE_WC and ATA_ENABLE_TAGS

options, add the tuneables for this purpose.
This commit is contained in:
sos 2001-03-15 15:38:57 +00:00
parent d1f1e527e1
commit 1d97203ee4

View File

@ -1,6 +1,6 @@
.\"
.\" Copyright (c) 2000 Jeroen Ruigrok van der Werven
.\" Copyright (c) 2000 Søren Schmidt
.\" Copyright (c) 2000,2001 Søren Schmidt
.\" All rights reserved.
.\"
.\" Redistribution and use in source and binary forms, with or without
@ -60,20 +60,20 @@ such as the ZIP and LS120:
To support ATAPI tape drives:
.Cd device atapist
.Pp
To enable static controller and device numbering
(see the
.Sx NOTES
section below):
.Cd options ATA_STATIC_ID
The following tunables are setable from the loader:
.Cd hw.ata.ata_dma
set to 1 for DMA access 0 for PIO (default is DMA).
.Pp
To enable DMA on an ATAPI device:
.Cd options ATA_ENABLE_ATAPI_DMA
.Cd hw.ata.atapi_dma
set to 1 for DMA access 0 for PIO (default is PIO).
.Pp
To enable Tagged Queuing support (only IBM DPTA and DTLA drives support that)
.Cd options ATA_ENABLE_TAGS
.Cd hw.ata.wc
set to 1 to enable Write Caching (default is disabled)
(WARNING might cause data loss on power failures)
.Pp
To enable write caching (WARNING might cause data loss on power failures)
.Cd options ATA_ENABLE_WC
.Cd hw.ata.tags
set to 1 to enable Tagged Queuing support (default is disabled)
(only IBM DPTA and DTLA drives support that)
.Pp
.Sh DESCRIPTION
This driver provides access to disk drives, ATAPI CD-ROM and DVD drives,
@ -137,39 +137,19 @@ All unknown chipsets can be supported at the maximum speed of 16 MB/sec.
The
.Nm
driver also allows for changes to the transfer mode of the devices
at a later time when the system is up and running.
at a later time when the system is up and running, see atacontrol(8).
.Pp
The driver attempts to set the maximum performance transfer mode on your disk
drives by selecting the highest possible DMA mode.
ATAPI devices are left in PIO mode because DMA problems are common despite the
device specifications.
You can always try to set DMA mode on an ATAPI device using the sysctl
method described here,
You can always try to set DMA mode on an ATAPI device using atacontrol(8),
but be aware that your hardware might
.Em not
support it and can
.Em hang
the system.
.Pp
To see the devices' current access modes, use the command line:
.Pp
.Dl sysctl hw.atamodes
.Pp
which results in the modes of the devices being displayed as a string
like this:
.Pp
.Dl hw.atamodes: dma,pio,---,pio,dma,---,dma,---, (--- = no device)
.Pp
This means that ata0-master is in DMA mode,
ata0-slave is in PIO mode,
and so forth.
You can set the mode with sysctl -w and a string like the above,
for example:
.Pp
.Dl sysctl -w hw.atamodes=pio,pio,---,dma,pio,---,dma,---,
.Pp
The new modes are set as soon as the sysctl command returns.
.Pp
.Sh FILES
.Bl -tag -width "/sys/i386/conf/GENERIC " -compact
.It Pa /dev/ad*