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$
|
|
|
|
|
.\"
|
2005-12-28 09:35:29 +00:00
|
|
|
|
.Dd December 28, 2005
|
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
|
2003-12-11 21:54:26 +00:00
|
|
|
|
The following tunables are settable 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
|
2004-12-21 19:41:21 +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.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 :
|
2005-07-29 10:47:46 +00:00
|
|
|
|
can cause data loss on power failures and crashes.
|
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
|
2004-06-16 08:33:57 +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:
|
2005-08-16 14:28:03 +00:00
|
|
|
|
ATP850P, ATP860A, ATP860R, ATP865A, ATP865R.
|
2003-11-04 13:16:07 +00:00
|
|
|
|
.It ALI:
|
2005-08-16 14:28:03 +00:00
|
|
|
|
M5229, M5281, M5287, M5289.
|
2003-11-04 13:16:07 +00:00
|
|
|
|
.It AMD:
|
|
|
|
|
AMD756, AMD766, AMD768, AMD8111.
|
2005-10-13 18:28:26 +00:00
|
|
|
|
.It ATI:
|
|
|
|
|
IXP200, IXP300, IXP400.
|
2003-11-04 13:16:07 +00:00
|
|
|
|
.It CMD:
|
2005-08-15 15:07:47 +00:00
|
|
|
|
CMD646, CMD646U2, CMD648, CMD649.
|
2003-11-04 13:16:07 +00:00
|
|
|
|
.It Cypress:
|
|
|
|
|
Cypress 82C693.
|
2004-01-26 07:21:28 +00:00
|
|
|
|
.It Cyrix:
|
|
|
|
|
Cyrix 5530.
|
2003-11-04 13:16:07 +00:00
|
|
|
|
.It HighPoint:
|
2005-08-15 15:07:47 +00:00
|
|
|
|
HPT302, HPT366, HPT368, HPT370, HPT371, HPT372, HPT372N, HPT374.
|
2003-11-04 13:16:07 +00:00
|
|
|
|
.It Intel:
|
2005-08-15 15:07:47 +00:00
|
|
|
|
6300ESB, 31244, PIIX, PIIX3, PIIX4, ICH, ICH0, ICH2, ICH3, ICH4, ICH5, ICH6, ICH7.
|
2005-03-23 08:58:51 +00:00
|
|
|
|
.It ITE:
|
2005-08-05 14:07:39 +00:00
|
|
|
|
IT8211F, IT8212F.
|
2005-12-28 09:35:29 +00:00
|
|
|
|
.It Marvell
|
|
|
|
|
88SX5040, 88SX5041, 88SX5080, 88SX5081, 88SX6041, 88SX6081.
|
2003-11-04 13:16:07 +00:00
|
|
|
|
.It National:
|
|
|
|
|
SC1100.
|
|
|
|
|
.It nVidia:
|
2005-08-15 15:07:47 +00:00
|
|
|
|
nForce, nForce2, nForce2 MCP, nForce3, nForce3 MCP, nForce3 Pro, nForce4.
|
2003-11-04 13:16:07 +00:00
|
|
|
|
.It Promise:
|
2005-08-30 07:03:03 +00:00
|
|
|
|
PDC20246, PDC20262, PDC20263, PDC20265, PDC20267, PDC20268, PDC20269, PDC20270, PDC20271, PDC20275, PDC20276, PDC20277, PDC20318, PDC20319, PDC20371, PDC20375, PDC20376, PDC20377, PDC20378, PDC20379, PDC20571, PDC20575, PDC20579, PDC20580, PDC20617, PDC20618, PDC20619, PDC20620, PDC20621, PDC20622, PDC40518, PDC40519, PDC40718, PDC40719.
|
2003-11-04 13:16:07 +00:00
|
|
|
|
.It ServerWorks:
|
|
|
|
|
ROSB4, CSB5, CSB6.
|
|
|
|
|
.It Silicon Image:
|
2004-02-25 13:48:48 +00:00
|
|
|
|
SiI0680, SiI3112, SiI3114, SiI3512.
|
2003-11-04 13:16:07 +00:00
|
|
|
|
.It SiS:
|
2005-08-16 14:28:03 +00:00
|
|
|
|
SIS180, SIS181, SIS182, SIS5513, SIS530, SIS540, SIS550, SIS620, SIS630, SIS630S, SIS633, SIS635, SIS730, SIS733, SIS735, SIS745, SIS961, SIS962, SIS963, SIS964, SIS965.
|
2003-11-04 13:16:07 +00:00
|
|
|
|
.It VIA:
|
2005-12-14 21:10:59 +00:00
|
|
|
|
VT6410, VT6420, VT6421, VT82C586, VT82C586B, VT82C596, VT82C596B, VT82C686, VT82C686A, VT82C686B, VT8231, VT8233, VT8233A, VT8233C, VT8235, VT8237, VT8251.
|
2000-01-27 22:39:53 +00:00
|
|
|
|
.El
|
|
|
|
|
.Pp
|
2004-06-16 08:33:57 +00:00
|
|
|
|
Unknown ATA chipsets are supported in PIO modes, and if the standard
|
2003-11-05 10:08:34 +00:00
|
|
|
|
busmaster DMA registers are present and contain valid setup, DMA is
|
2004-06-21 17:42:49 +00:00
|
|
|
|
also enabled, although the max mode is limited 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
|
2004-06-16 08:33:57 +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,
|
2004-06-16 08:33:57 +00:00
|
|
|
|
or that one of the devices on the channel only accepts up
|
2003-11-04 13:16:07 +00:00
|
|
|
|
to UDMA2/ATA33.
|
|
|
|
|
.Pp
|
2004-12-21 20:02:50 +00:00
|
|
|
|
Unknown ATAPI devices are initialized to DMA mode if the
|
|
|
|
|
.Va hw.ata.atapi_dma
|
|
|
|
|
tunable is set to 1 and they support at least UDMA33 transfers.
|
|
|
|
|
Otherwise they are set to PIO mode because severe DMA problems are
|
2003-11-05 10:08:34 +00:00
|
|
|
|
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.
|
2004-06-21 17:42:49 +00:00
|
|
|
|
This is useful in hotswap scenarios
|
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.
|
2001-03-16 13:38:49 +00:00
|
|
|
|
.Sh SEE ALSO
|
2005-04-16 12:43:17 +00:00
|
|
|
|
.Xr ataraid 4 ,
|
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 .
|