1.\" 2.\" Device driver optimized for the Symbios/LSI 53C896/53C895A/53C1010 3.\" PCI SCSI controllers. 4.\" 5.\" Copyright (C) 1999-2000 Gerard Roudier <groudier@club-internet.fr> 6.\" 7.\" This driver also supports the following Symbios/LSI PCI SCSI chips: 8.\" 53C810A, 53C825A, 53C860, 53C875, 53C876, 53C885, 53C895, 9.\" 53C810, 53C815, 53C825 and the 53C1510D is 53C8XX mode. 10.\" 11.\" 12.\" This driver for FreeBSD-CAM is derived from the Linux sym53c8xx driver. 13.\" Copyright (C) 1998-1999 Gerard Roudier 14.\" 15.\" The sym53c8xx driver is derived from the ncr53c8xx driver that had been 16.\" a port of the FreeBSD ncr driver to Linux-1.2.13. 17.\" 18.\" The original ncr driver has been written for 386bsd and FreeBSD by 19.\" Wolfgang Stanglmeier <wolf@cologne.de> 20.\" Stefan Esser <se@mi.Uni-Koeln.de> 21.\" Copyright (C) 1994 Wolfgang Stanglmeier 22.\" 23.\" The initialization code, and part of the code that addresses 24.\" FreeBSD-CAM services is based on the aic7xxx driver for FreeBSD-CAM 25.\" written by Justin T. Gibbs. 26.\" 27.\" Other major contributions: 28.\" 29.\" NVRAM detection and reading. 30.\" Copyright (C) 1997 Richard Waltham <dormouse@farsrobt.demon.co.uk> 31.\" 32.\" ---------------------------------------------------------------------------- 33.\" 34.\" Redistribution and use in source and binary forms, with or without 35.\" modification, are permitted provided that the following conditions 36.\" are met: 37.\" 1. Redistributions of source code must retain the above copyright 38.\" notice, this list of conditions and the following disclaimer. 39.\" 2. Redistributions in binary form must reproduce the above copyright 40.\" notice, this list of conditions and the following disclaimer in the 41.\" documentation and/or other materials provided with the distribution. 42.\" 3. The name of the author may not be used to endorse or promote products 43.\" derived from this software without specific prior written permission. 44.\" 45.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND 46.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 47.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 48.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR 49.\" ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 50.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 51.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 52.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 53.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 54.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 55.\" SUCH DAMAGE. 56.\" 57.\" $FreeBSD: src/share/man/man4/sym.4,v 1.5.2.7 2001/10/01 13:07:23 dd Exp $ 58.\" $DragonFly: src/share/man/man4/sym.4,v 1.2 2003/06/17 04:36:59 dillon Exp $ 59.\" 60.Dd January 12, 2000 61.Dt SYM 4 62.Os 63.Sh NAME 64.Nm sym 65.Nd NCR/Symbios/LSI Logic 53C8XX PCI SCSI host adapter driver 66.Sh SYNOPSIS 67For any number of cards: 68.Cd device sym 69.Pp 70To disable PCI parity checking (needed for broken bridges) 71.Cd options SYM_SETUP_PCI_PARITY=<boolean> 72.Pp 73To control driver probing against HVD buses 74.Cd options SYM_SETUP_SCSI_DIFF=<bit combination> 75.Pp 76To control chip attachment balancing between the ncr driver and this driver 77.Cd options SYM_SETUP_LP_PROBE_MAP=<bit combination> 78.Sh DESCRIPTION 79This driver provides support for the Symbios/LSI Logic 80.Tn 53C810 , 81.Tn 53C815 , 82.Tn 53C825 , 83.Tn 53C810A , 84.Tn 53C825A , 85.Tn 53C860 , 86.Tn 53C875 , 87.Tn 53C876 , 88.Tn 53C895 , 89.Tn 53C895A , 90.Tn 53C896 , 91.Tn 53C897 , 92.Tn 53C1510D , 93and 94.Tn 53C1010 95PCI SCSI controllers. 96.Pp 97Driver features include support for wide SCSI busses and fast10, fast20, 98fast40 and fast80-dt synchronous data transfers depending on controller 99capabilities. 100It also provides generic SCSI features such as tagged command 101queueing and auto-request sense. 102This driver is configured by default 103for a maximum of 446 outstanding commands per bus, 8 LUNs per target 104and 64 tagged tasks per LUN. 105These numbers are not so much limited by design 106as they are considered reasonable values for current SCSI technology. 107These values can be increased by changing appropriate 108constants in driver header files (not recommended). 109.Pp 110This driver supports the entire Symbios 53C8XX family of PCI SCSI 111controllers. 112It also offers the advantage of architectural improvements available 113only with newer chips. 114.Pp 115.Nm 116notably handles phase mismatch from SCRIPTS for the 53C896, 53C895A, 117and 53C1010 cores. 118As a result, it guarantees that no more than 1 interrupt 119per IO completion is delivered to the CPU, and that the SCRIPTS processor 120is never stalled waiting for CPU attention in normal situations. 121.Pp 122.Nm 123also uses LOAD/STORE SCRIPTS instructions for chips that support it. 124Only the early 810, 815 and 825 NCR chips do not support LOAD/STORE. 125Use of LOAD/STORE instead of MEMORY MOVE allows SCRIPTS to access IO 126registers internal to the chip (no external PCI cycles). 127As a result, the driver guarantees that no PCI self-mastering will occur 128for chips that support LOAD/STORE. 129.Pp 130LOAD/STORE instructions are also faster than MEMORY MOVE because 131they do not involve the chip DMA FIFO and are coded on 2 DWORDs 132instead of 3. 133.Pp 134For the early NCR 810, 815 and 825 chips, the driver uses a separate 135SCRIPTS set that uses MEMORY MOVE instructions for data movements. 136This is because LOAD/STORE are not supported by these chips. 137.Pp 138HVD/LVD capable controllers (895, 895A, 896, and 897) report 139the actual bus mode in the STEST4 chip IO registers. 140This feature 141allows the driver to safely probe against bus mode and to set up the chip 142accordingly. 143By default the driver only supports HVD for these chips. 144For other chips that can support HVD but not LVD, the driver has to probe 145implementation dependent registers (GPIO) in order to detect HVD bus mode. 146Only HVD implementations that conform with Symbios Logic recommendations can 147be detected by the driver. 148When the 149.Ar SYM_SETUP_SCSI_DIFF 150kernel option is assigned 151a value of 1, the driver will also probe against HVD for 825a, 875, 876 and 152885 chips, assuming Symbios Logic compatible implementation of HVD. 153.Pp 154When the 155.Ar SYM_SETUP_PCI_PARITY 156is assigned a value of 0, the 157driver will not enable PCI parity checking for 53C8XX devices. 158PCI parity 159checking should not be an option for PCI SCSI controllers, but some 160systems have been reported to fail using 53C8XX chips, due to spurious or 161permanent PCI parity errors detected. 162This option is supplied for 163convenience but it is neither recommended nor supported. 164.Pp 165The generic 166.Xr ncr 4 167driver also supports SYM53C8XX based PCI SCSI controllers, 168except for the SYM53C1010, which is only supported by the 169.Nm 170driver. 171.Pp 172By default, when both the 173.Xr ncr 4 174and 175.Nm 176drivers are configured, the 177.Nm 178driver takes precedence over the 179.Xr ncr 4 180driver. 181The user can indicate a balancing of chip types between the two drivers 182by defining the 183.Ar SYM_SETUP_LP_PROBE_MAP 184kernel configuration option as follows: 185.Bl -column "0x40" 186.It Em "Bit Devices to be attached by ncr instead" 187.It "0x01 53C810a, 53C860" 188.It "0x02 53C825a, 53C875, 53C876, 53C885, 53C895" 189.It "0x04 53C895a, 53C896, 53C897, 53C1510d" 190.It "0x40 53C810, 53C815, 53C825" 191.El 192.Pp 193For example, if 194.Ar SYM_SETUP_LP_PROBE_MAP 195is supplied with the value 0x41, the 196.Xr ncr 4 197driver will attach to 53C810, 53C815, 53C825, 53C810a, and 53C860 based 198controllers, 199and the 200.Nm 201driver will attach to all other 53C8XX based controllers. 202.Pp 203When only the 204.Nm 205driver is configured, the 206.Ar SYM_SETUP_LP_PROBE_MAP 207option has no effect. 208Thus, in this case, the 209.Nm 210driver will attach all 53C8XX based controllers present in the system. 211.Pp 212This driver offers other options 213that are not currently exported to the user. 214They are defined and documented in the 215.Pa sym_conf.h 216driver file. 217Changing these options is not recommended unless absolutely necessary. 218Some of these 219options are planned to be exported through 220.Xr sysctl 3 221or an equivalent mechanism 222in a future driver releases and therefore, 223no compatibility is guaranteed. 224.Pp 225At initialization, the driver tries to detect and read user settings from 226controller NVRAM. 227The Symbios/Logic NVRAM layout and the Tekram NVRAM 228layout are currently supported. 229If the reading of the NVRAM succeeds, the 230following settings are taken into account and reported to CAM: 231.Pp 232.Bl -column "SCSI parity checking" "Symbios" 233.It Em "Host settings Symbios Tekram" 234.It "SCSI parity checking Y N" 235.It "Host SCSI ident Y Y" 236.It "Verbose messages Y N" 237.It "Scan targets hi-lo Y N" 238.It "Avoid SCSI bus reset Y N" 239.El 240.Bl -column "Synchronous period" "Symbios" 241.It Em "Device settings Symbios Tekram" 242.It "Synchronous period Y Y" 243.It "SCSI bus width Y Y" 244.It "Queue tag enable Y Y" 245.It "Number of tags NA Y" 246.It "Disconnect enable Y Y" 247.It "Scan at boot time Y N" 248.It "Scan LUN Y N" 249.El 250.Pp 251Devices that are configured as disabled for 'scan' in the NVRAM are not 252reported to CAM at system start-up. 253They can be discovered later using 254the 255.Ql camcontrol rescan 256command. 257.Pp 258The table below summarizes the main features and capabilities of the 259NCR/Symbios/LSI Logic 53C8XX family of PCI SCSI controllers. 260.Pp 261.Bl -column sym53c1510d "80MHz" "Width" "SRAM" "PCI64" 262.It Em "Chip Sync Width SRAM PCI64 Supported" 263.It "sym53c810 10MHz 8Bit N N Y" 264.It "sym53c810a 10MHz 8Bit N N Y" 265.It "sym53c815 10MHz 8Bit N N Y" 266.It "sym53c825 10MHz 16Bit N N Y" 267.It "sym53c825a 10MHz 16Bit 4KB N Y" 268.It "sym53c860 20MHz 8Bit N N Y" 269.It "sym53c875 20MHz 16Bit 4KB N Y" 270.It "sym53c876 20MHz 16Bit 4KB N Y" 271.It "sym53c885 20MHz 16Bit 4KB N Y" 272.It "sym53c895 40MHz 16Bit 4KB N Y" 273.It "sym53c895A 40MHz 16Bit 8KB N Y" 274.It "sym53c896 40MHz 16Bit 8KB Y Y" 275.It "sym53c897 40MHz 16Bit 8KB Y Y" 276.It "sym53c1510D 40MHz 16Bit 4KB Y Y" 277.It "sym53c1010 80MHz 16Bit 8KB Y Y" 278.El 279.Sh BUGS 280No known bugs. 281.Sh SEE ALSO 282.Xr cd 4 , 283.Xr da 4 , 284.Xr ncr 4 , 285.Xr sa 4 , 286.Xr scsi 4 , 287.Xr camcontrol 8 288.Sh AUTHORS 289.An -nosplit 290The 291.Nm 292driver was written by 293.An Gerard Roudier 294and is derived from the 295Linux sym53c8xx driver from the same author. 296The sym53c8xx driver is derived from the ncr53c8xx driver, 297which was ported from the 298.Fx 299.Xr ncr 4 300driver to Linux-1.2.13. 301The original 302.Xr ncr 4 303driver was written for 304.Bx 386 305and 306.Fx 307by 308.An Wolfgang Stanglmeier 309and 310.An Stefan Esser . 311.Sh HISTORY 312The 313.Nm 314driver appeared in 315.Fx 4.0 . 316