2000-01-27 22:39:53 +00:00
|
|
|
|
.\"
|
2003-11-04 13:16:07 +00:00
|
|
|
|
.\" Copyright (c) 2003 S<>ren Schmidt <sos@FreeBSD.org>
|
2000-01-27 22:39:53 +00:00
|
|
|
|
.\" All rights reserved.
|
|
|
|
|
.\"
|
|
|
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
|
|
|
.\" modification, are permitted provided that the following conditions
|
|
|
|
|
.\" are met:
|
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
2003-11-04 13:16:07 +00:00
|
|
|
|
.\" notice, this list of conditions and the following disclaimer,
|
|
|
|
|
.\" without modification, immediately at the beginning of the file.
|
2000-01-27 22:39:53 +00:00
|
|
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
|
|
|
.\" documentation and/or other materials provided with the distribution.
|
2003-11-04 13:16:07 +00:00
|
|
|
|
.\" 3. The name of the author may not be used to endorse or promote products
|
|
|
|
|
.\" derived from this software without specific prior written permission.
|
2000-01-27 22:39:53 +00:00
|
|
|
|
.\"
|
2003-11-04 13:16:07 +00:00
|
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
|
|
|
|
|
.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
|
|
|
|
.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
|
|
|
|
.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
|
|
|
.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
|
|
|
|
.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
|
|
|
.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
|
|
|
.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
|
|
|
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
|
|
|
|
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
2000-01-27 22:39:53 +00:00
|
|
|
|
.\"
|
|
|
|
|
.\" $FreeBSD$
|
|
|
|
|
.\"
|
2003-11-04 13:16:07 +00:00
|
|
|
|
.Dd November 4, 2003
|
2000-01-28 12:24:53 +00:00
|
|
|
|
.Dt ATA 4
|
2001-07-10 15:31:11 +00:00
|
|
|
|
.Os
|
2000-01-27 22:39:53 +00:00
|
|
|
|
.Sh NAME
|
2000-07-04 16:32:46 +00:00
|
|
|
|
.Nm ata ,
|
2003-11-04 13:16:07 +00:00
|
|
|
|
.Nm ar ,
|
2000-07-04 16:32:46 +00:00
|
|
|
|
.Nm acd ,
|
|
|
|
|
.Nm ad ,
|
|
|
|
|
.Nm afd ,
|
|
|
|
|
.Nm ast
|
2001-04-18 15:54:10 +00:00
|
|
|
|
.Nd generic ATA/ATAPI disk controller driver
|
2000-01-27 22:39:53 +00:00
|
|
|
|
.Sh SYNOPSIS
|
|
|
|
|
For ISA based ATA/ATAPI support:
|
|
|
|
|
.Cd device isa
|
2001-10-13 09:08:37 +00:00
|
|
|
|
.Cd device ata
|
|
|
|
|
.Pp
|
|
|
|
|
In
|
|
|
|
|
.Pa /boot/device.hints :
|
|
|
|
|
.Cd hint.ata.0.at="isa"
|
|
|
|
|
.Cd hint.ata.0.port="0x1f0"
|
|
|
|
|
.Cd hint.ata.0.irq="14"
|
|
|
|
|
.Cd hint.ata.1.at="isa"
|
|
|
|
|
.Cd hint.ata.1.port="0x170"
|
|
|
|
|
.Cd hint.ata.1.irq="15"
|
2000-01-27 22:39:53 +00:00
|
|
|
|
.Pp
|
2002-12-03 20:20:44 +00:00
|
|
|
|
For PC98 based ATA/ATAPI support:
|
|
|
|
|
.Cd device isa
|
|
|
|
|
.Cd device ata
|
|
|
|
|
.Pp
|
|
|
|
|
In
|
|
|
|
|
.Pa /boot/device.hints :
|
|
|
|
|
.Cd hint.atacbus.0.at="isa"
|
|
|
|
|
.Cd hint.atacbus.0.port="0x640"
|
|
|
|
|
.Cd hint.atacbus.0.irq="9"
|
|
|
|
|
.Pp
|
2000-01-27 22:39:53 +00:00
|
|
|
|
For PCI based ATA/ATAPI support:
|
|
|
|
|
.Cd device pci
|
|
|
|
|
.Cd device ata
|
|
|
|
|
.Pp
|
|
|
|
|
To support ATA compliant disk drives:
|
|
|
|
|
.Cd device atadisk
|
|
|
|
|
.Pp
|
2003-11-05 10:08:34 +00:00
|
|
|
|
To support ATA software RAID's:
|
2003-11-04 13:16:07 +00:00
|
|
|
|
.Cd device ataraid
|
|
|
|
|
.Pp
|
2003-11-05 10:08:34 +00:00
|
|
|
|
To support ATAPI CDROM, DVD and CD/DVD burner drives:
|
2000-01-27 22:39:53 +00:00
|
|
|
|
.Cd device atapicd
|
|
|
|
|
.Pp
|
2003-11-05 10:08:34 +00:00
|
|
|
|
To support ATAPI floppy drives:
|
2000-01-27 22:39:53 +00:00
|
|
|
|
.Cd device atapifd
|
|
|
|
|
.Pp
|
|
|
|
|
To support ATAPI tape drives:
|
|
|
|
|
.Cd device atapist
|
|
|
|
|
.Pp
|
2001-03-15 15:38:57 +00:00
|
|
|
|
The following tunables are setable from the loader:
|
2001-03-16 13:38:49 +00:00
|
|
|
|
.Bl -ohang
|
|
|
|
|
.It Va hw.ata.ata_dma
|
2001-09-27 07:26:16 +00:00
|
|
|
|
set to 1 for DMA access, 0 for PIO (default is DMA).
|
2001-03-16 13:38:49 +00:00
|
|
|
|
.It Va hw.ata.atapi_dma
|
2001-09-27 07:26:16 +00:00
|
|
|
|
set to 1 for DMA access, 0 for PIO (default is PIO).
|
2001-03-16 13:38:49 +00:00
|
|
|
|
.It Va hw.ata.wc
|
2002-10-16 13:37:33 +00:00
|
|
|
|
set to 1 to enable Write Caching, 0 to disable (default is enabled).
|
2003-11-05 10:08:34 +00:00
|
|
|
|
.Em WARNING :
|
|
|
|
|
can cause data loss on power failures.
|
2001-03-16 13:38:49 +00:00
|
|
|
|
.El
|
2000-01-27 22:39:53 +00:00
|
|
|
|
.Sh DESCRIPTION
|
2003-11-04 13:16:07 +00:00
|
|
|
|
The
|
|
|
|
|
.Nm
|
|
|
|
|
driver provides access to ATA (IDE) and SerialATA disk drives,
|
|
|
|
|
ATAPI CDROM/DVD drives, ZIP/LS120 ATAPI drives and ATAPI tape drives
|
2003-11-05 10:08:34 +00:00
|
|
|
|
connected to controllers according to the ATA/ATAPI standards.
|
2003-11-04 13:16:07 +00:00
|
|
|
|
.Pp
|
|
|
|
|
The currently supported ATA/SATA controller chips are:
|
|
|
|
|
.Pp
|
|
|
|
|
.Bl -tag -width "Silicon Image:" -compact
|
|
|
|
|
.It Acard:
|
|
|
|
|
ATP850P, ATP860A, ATP860R, ATP865A, ATP865R
|
|
|
|
|
.It ALI:
|
|
|
|
|
Aladdin (ALi5229) compatible chips.
|
|
|
|
|
.It AMD:
|
|
|
|
|
AMD756, AMD766, AMD768, AMD8111.
|
|
|
|
|
.It CMD:
|
|
|
|
|
CMD646, CMD648, CMD649.
|
|
|
|
|
.It Cyrix:
|
|
|
|
|
Cyrix 5530.
|
|
|
|
|
.It Cypress:
|
|
|
|
|
Cypress 82C693.
|
|
|
|
|
.It HighPoint:
|
|
|
|
|
HPT302, HPT366, HPT366, HPT368, HPT370, HPT371, HPT372, HPT374.
|
|
|
|
|
.It Intel:
|
|
|
|
|
PIIX, PIIX3, PIIX4, ICH, ICH0, ICH2, ICH3, ICH4, ICH5.
|
|
|
|
|
.It National:
|
|
|
|
|
SC1100.
|
|
|
|
|
.It nVidia:
|
|
|
|
|
nForce, nForce2, nForce3.
|
|
|
|
|
.It Promise:
|
|
|
|
|
PDC20246, PDC20262, PDC20263, PDC20265, PDC20267, PDC20268, PDC20269, PDC20270, PDC20271, PDC20275, PDC20276, PDC20277, PDC20318, PDC20319, PDC20371, PDC20375, PDC20376, PDC20377, PDC20378, PDC20379, PDC20617, PDC20618, PDC20619, PDC20620.
|
|
|
|
|
.It ServerWorks:
|
|
|
|
|
ROSB4, CSB5, CSB6.
|
|
|
|
|
.It Silicon Image:
|
|
|
|
|
SiI0680, SiI3112.
|
|
|
|
|
.It SiS:
|
|
|
|
|
SIS5513, SIS530, SIS540, SIS550, SIS620, SIS630, SIS630S, SIS633, SIS635, SIS730, SIS733, SIS735, SIS745, SIS961, SIS962, SIS963
|
|
|
|
|
.It VIA:
|
|
|
|
|
VT82C586, VT82C586B, VT82C596, VT82C596B, VT82C686, VT82C686A, VT82C686B, VT8231, VT8233, VT8233A, VT8233C, VT8235, VT8237.
|
2000-01-27 22:39:53 +00:00
|
|
|
|
.El
|
|
|
|
|
.Pp
|
2003-11-05 10:08:34 +00:00
|
|
|
|
Unknown ATA chipsets are supported in PIO modes, and if the standard
|
|
|
|
|
busmaster DMA registers are present and contain valid setup, DMA is
|
|
|
|
|
also enabled, although the max mode is limitted to UDMA33, as it is
|
2003-11-04 13:16:07 +00:00
|
|
|
|
not known what the chipset can do and how to program it.
|
2000-01-27 22:39:53 +00:00
|
|
|
|
.Pp
|
2000-12-14 11:52:05 +00:00
|
|
|
|
The
|
|
|
|
|
.Nm
|
2003-11-04 13:16:07 +00:00
|
|
|
|
driver can change the transfer mode and various other parameters
|
2003-11-05 10:08:34 +00:00
|
|
|
|
when the system is up and running.
|
|
|
|
|
See
|
2001-03-16 13:38:49 +00:00
|
|
|
|
.Xr atacontrol 8 .
|
2000-01-27 22:39:53 +00:00
|
|
|
|
.Pp
|
2003-11-04 13:16:07 +00:00
|
|
|
|
The
|
2003-11-05 10:08:34 +00:00
|
|
|
|
.nm
|
2003-11-04 13:16:07 +00:00
|
|
|
|
driver sets the maximum transfer mode supported by the hardware as default.
|
2002-11-29 11:39:20 +00:00
|
|
|
|
However the
|
2002-09-18 09:40:18 +00:00
|
|
|
|
.Nm
|
2003-11-04 13:16:07 +00:00
|
|
|
|
driver sometimes warns:
|
2003-11-05 10:08:34 +00:00
|
|
|
|
.Dq Sy "DMA limited to UDMA33, non-ATA66 cable or device".
|
2003-11-04 13:16:07 +00:00
|
|
|
|
This means that
|
|
|
|
|
the
|
2003-11-04 19:35:27 +00:00
|
|
|
|
.Nm
|
2003-11-05 10:08:34 +00:00
|
|
|
|
driver has detected that the required 80 conductor cable is not present
|
|
|
|
|
or could not be detected properly,
|
|
|
|
|
or that one of the devices on the channel only accepts up
|
2003-11-04 13:16:07 +00:00
|
|
|
|
to UDMA2/ATA33.
|
|
|
|
|
.Pp
|
2003-11-05 10:08:34 +00:00
|
|
|
|
ATAPI devices are set to PIO mode by default because severe DMA problems are
|
|
|
|
|
common even if the device capabilities indicate support.
|
2001-03-16 13:38:49 +00:00
|
|
|
|
You can always try to set DMA mode on an ATAPI device using
|
|
|
|
|
.Xr atacontrol 8 ,
|
2000-01-27 22:39:53 +00:00
|
|
|
|
but be aware that your hardware might
|
|
|
|
|
.Em not
|
2003-11-04 13:16:07 +00:00
|
|
|
|
support it and can potentially
|
2000-01-27 22:39:53 +00:00
|
|
|
|
.Em hang
|
2003-11-04 13:16:07 +00:00
|
|
|
|
the entire system causing data loss.
|
2000-01-27 22:39:53 +00:00
|
|
|
|
.Sh FILES
|
2002-11-29 11:39:20 +00:00
|
|
|
|
.Bl -tag -width ".Pa /sys/i386/conf/GENERIC" -compact
|
2000-01-27 22:39:53 +00:00
|
|
|
|
.It Pa /dev/ad*
|
|
|
|
|
ATA disk device nodes
|
2003-11-04 13:16:07 +00:00
|
|
|
|
.It Pa /dev/ar*
|
|
|
|
|
ATA RAID device nodes
|
2000-01-27 22:39:53 +00:00
|
|
|
|
.It Pa /dev/acd*
|
|
|
|
|
ATAPI CD-ROM device nodes
|
|
|
|
|
.It Pa /dev/afd*
|
|
|
|
|
ATAPI floppy drive device nodes
|
|
|
|
|
.It Pa /dev/ast*
|
|
|
|
|
ATAPI tape drive device nodes
|
|
|
|
|
.It Pa /sys/i386/conf/GENERIC
|
2000-12-14 11:52:05 +00:00
|
|
|
|
sample generic kernel config file for
|
|
|
|
|
.Nm
|
|
|
|
|
based systems
|
2000-01-27 22:39:53 +00:00
|
|
|
|
.El
|
|
|
|
|
.Sh NOTES
|
2003-11-04 13:16:07 +00:00
|
|
|
|
Please remember that in order to use UDMA4/ATA66 and above modes you
|
|
|
|
|
.Em must
|
2003-11-04 19:35:27 +00:00
|
|
|
|
use 80 conductor cables.
|
2003-11-05 10:08:34 +00:00
|
|
|
|
Please assure that ribbon cables are no longer than 45cm.
|
|
|
|
|
In case of rounded ATA cables, the length depends on the
|
2003-11-04 19:35:27 +00:00
|
|
|
|
quality of the cables.
|
2003-11-05 10:08:34 +00:00
|
|
|
|
SATA cables can be up to 1m long according to the specification.
|
2003-11-04 13:16:07 +00:00
|
|
|
|
.Pp
|
|
|
|
|
Static device numbering
|
2000-04-03 13:07:33 +00:00
|
|
|
|
(enabled with the
|
|
|
|
|
.Dv ATA_STATIC_ID
|
|
|
|
|
kernel option)
|
|
|
|
|
reserves a number for each possibly connected disk,
|
2003-11-04 19:35:27 +00:00
|
|
|
|
even when not present.
|
|
|
|
|
This is usefull in hotswap senarios
|
2003-11-05 10:08:34 +00:00
|
|
|
|
where disks should always show up as the same numbered device,
|
2003-11-04 13:16:07 +00:00
|
|
|
|
and not depend on attach order.
|
2000-04-03 13:07:33 +00:00
|
|
|
|
.Pp
|
2001-03-16 13:38:49 +00:00
|
|
|
|
.Sh SEE ALSO
|
2001-04-04 10:39:06 +00:00
|
|
|
|
.Xr atacontrol 8 ,
|
2001-03-26 19:49:39 +00:00
|
|
|
|
.Xr burncd 8
|
2000-12-14 11:52:05 +00:00
|
|
|
|
.Sh HISTORY
|
|
|
|
|
The
|
|
|
|
|
.Nm
|
|
|
|
|
driver first appeared in
|
|
|
|
|
.Fx 4.0 .
|
2003-11-05 10:08:34 +00:00
|
|
|
|
.Sh AUTHORS
|
2000-11-14 13:09:12 +00:00
|
|
|
|
.An S\(/oren Schmidt
|
2000-03-24 01:49:46 +00:00
|
|
|
|
.Aq sos@FreeBSD.org .
|