1.\" $NetBSD: viaide.4,v 1.9 2007/08/31 01:39:46 xtraeme Exp $ 2.\" 3.\" Copyright (c) 2003 Manuel Bouyer. 4.\" 5.\" Redistribution and use in source and binary forms, with or without 6.\" modification, are permitted provided that the following conditions 7.\" are met: 8.\" 1. Redistributions of source code must retain the above copyright 9.\" notice, this list of conditions and the following disclaimer. 10.\" 2. Redistributions in binary form must reproduce the above copyright 11.\" notice, this list of conditions and the following disclaimer in the 12.\" documentation and/or other materials provided with the distribution. 13.\" 3. All advertising materials mentioning features or use of this software 14.\" must display the following acknowledgement: 15.\" This product includes software developed by Manuel Bouyer. 16.\" 4. The name of the author may not be used to endorse or promote products 17.\" derived from this software without specific prior written permission. 18.\" 19.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 20.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 21.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 22.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 23.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 24.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27.\" INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 28.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29.\" 30.Dd August 31, 2007 31.Dt VIAIDE 4 32.Os 33.Sh NAME 34.Nm viaide 35.Nd AMD, NVIDIA and VIA IDE disk controllers driver 36.Sh SYNOPSIS 37.Cd "viaide* at pci? dev ? function ? flags 0x0000" 38.Cd "options PCIIDE_AMD756_ENABLEDMA" 39.Sh DESCRIPTION 40The 41.Nm 42driver supports the following IDE controllers 43and provides the interface with the hardware for the 44.Ic ata 45driver: 46.Bl -dash -compact -offset indent 47.It 48Advanced Micro Devices AMD-756, 766, 768 and CS5536 IDE Controllers 49.It 50NVIDIA nForce, nForce2, nForce2 400, nForce3, nForce3 250, 51nForce4, MCP04, MCP55, MCP61, MCP65, MCP67 IDE and SATA Controllers. 52.It 53VIA Technologies VT82C586, VT82C586A, VT82C596A, VT82C686A, VT8233A, 54VT8235, VT8237/VT8237R IDE Controllers, VT6421 Serial RAID Controller and 55CX700 IDE Controller. 56.El 57.Pp 58The 0x0002 flag forces the 59.Nm 60driver to disable DMA on chipsets for which DMA would normally be 61enabled. 62This can be used as a debugging aid, or to work around 63problems where the IDE controller is wired up to the system incorrectly. 64.Sh SEE ALSO 65.Xr ata 4 , 66.Xr atapi 4 , 67.Xr intro 4 , 68.Xr pci 4 , 69.Xr pciide 4 , 70.Xr wd 4 , 71.Xr wdc 4 72.Sh NOTES 73Drives on the VT6421 Serial RAID Controller can only be accessed 74after they have been configured into RAID or JBOD sets via its 75BIOS. 76It is also inaptly named as it has both SATA and PATA interfaces. 77.Sh BUGS 78The AMD756 chip revision D2 has a bug affecting DMA (but not Ultra-DMA) 79modes. 80The workaround documented by AMD is to not use DMA on any drive which 81does not support Ultra-DMA modes. 82This does not appear to be necessary on all drives, the 83PCIIDE_AMD756_ENABLEDMA option can be used to force multiword DMA 84on the buggy revisions. 85Multiword DMA can eventually be disabled on a 86per-drive basis with config flags, see 87.Xr wd 4 . 88The bug, if triggered, will cause a total system hang. 89.Pp 90The timings used for the PIO and DMA modes for controllers listed above 91are for a PCI bus running at 30 or 33 MHz. 92This driver may not work properly on overclocked systems. 93