~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/Documentation/scsi/sym53c8xx_2.rst

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /Documentation/scsi/sym53c8xx_2.rst (Version linux-6.12-rc7) and /Documentation/scsi/sym53c8xx_2.rst (Version linux-6.2.16)


  1 .. SPDX-License-Identifier: GPL-2.0                 1 .. SPDX-License-Identifier: GPL-2.0
  2                                                     2 
  3 ============                                   !!   3 =========================================
  4 SYM-2 driver                                   !!   4 The Linux SYM-2 driver documentation file
  5 ============                                   !!   5 =========================================
  6                                                     6 
  7 Written by Gerard Roudier <groudier@free.fr>         7 Written by Gerard Roudier <groudier@free.fr>
  8                                                     8 
  9 21 Rue Carnot                                       9 21 Rue Carnot
 10                                                    10 
 11 95170 DEUIL LA BARRE - FRANCE                      11 95170 DEUIL LA BARRE - FRANCE
 12                                                    12 
 13 Updated by Matthew Wilcox <matthew@wil.cx>          13 Updated by Matthew Wilcox <matthew@wil.cx>
 14                                                    14 
 15 2004-10-09                                         15 2004-10-09
 16                                                    16 
 17 .. Contents                                        17 .. Contents
 18                                                    18 
 19    1.  Introduction                                19    1.  Introduction
 20    2.  Supported chips and SCSI features           20    2.  Supported chips and SCSI features
 21    3.  Advantages of this driver for newer chi     21    3.  Advantages of this driver for newer chips.
 22          3.1 Optimized SCSI SCRIPTS                22          3.1 Optimized SCSI SCRIPTS
 23          3.2 New features appeared with the SY     23          3.2 New features appeared with the SYM53C896
 24    4.  Memory mapped I/O versus normal I/O         24    4.  Memory mapped I/O versus normal I/O
 25    5.  Tagged command queueing                     25    5.  Tagged command queueing
 26    6.  Parity checking                             26    6.  Parity checking
 27    7.  Profiling information                       27    7.  Profiling information
 28    8.  Control commands                            28    8.  Control commands
 29          8.1  Set minimum synchronous period       29          8.1  Set minimum synchronous period
 30          8.2  Set wide size                        30          8.2  Set wide size
 31          8.3  Set maximum number of concurrent     31          8.3  Set maximum number of concurrent tagged commands
 32          8.4  Set debug mode                       32          8.4  Set debug mode
 33          8.5  Set flag (no_disc)                   33          8.5  Set flag (no_disc)
 34          8.6  Set verbose level                    34          8.6  Set verbose level
 35          8.7  Reset all logical units of a tar     35          8.7  Reset all logical units of a target
 36          8.8  Abort all tasks of all logical u     36          8.8  Abort all tasks of all logical units of a target
 37    9.  Configuration parameters                    37    9.  Configuration parameters
 38    10. Boot setup commands                         38    10. Boot setup commands
 39          10.1 Syntax                               39          10.1 Syntax
 40          10.2 Available arguments                  40          10.2 Available arguments
 41                 10.2.1  Default number of tagg     41                 10.2.1  Default number of tagged commands
 42                 10.2.2  Burst max                  42                 10.2.2  Burst max
 43                 10.2.3  LED support                43                 10.2.3  LED support
 44                 10.2.4  Differential mode          44                 10.2.4  Differential mode
 45                 10.2.5  IRQ mode                   45                 10.2.5  IRQ mode
 46                 10.2.6  Check SCSI BUS             46                 10.2.6  Check SCSI BUS
 47                 10.2.7  Suggest a default SCSI     47                 10.2.7  Suggest a default SCSI id for hosts
 48                 10.2.8  Verbosity level            48                 10.2.8  Verbosity level
 49                 10.2.9  Debug mode                 49                 10.2.9  Debug mode
 50                 10.2.10 Settle delay               50                 10.2.10 Settle delay
 51                 10.2.11 Serial NVRAM               51                 10.2.11 Serial NVRAM
 52                 10.2.12 Exclude a host from be     52                 10.2.12 Exclude a host from being attached
 53          10.3 Converting from old options          53          10.3 Converting from old options
 54          10.4 SCSI BUS checking boot option        54          10.4 SCSI BUS checking boot option
 55    11. SCSI problem troubleshooting                55    11. SCSI problem troubleshooting
 56          15.1 Problem tracking                     56          15.1 Problem tracking
 57          15.2 Understanding hardware error rep     57          15.2 Understanding hardware error reports
 58    12. Serial NVRAM support (by Richard Waltha     58    12. Serial NVRAM support (by Richard Waltham)
 59          17.1 Features                             59          17.1 Features
 60          17.2 Symbios NVRAM layout                 60          17.2 Symbios NVRAM layout
 61          17.3 Tekram  NVRAM layout                 61          17.3 Tekram  NVRAM layout
 62                                                    62 
 63                                                    63 
 64 1. Introduction                                    64 1. Introduction
 65 ===============                                    65 ===============
 66                                                    66 
 67 This driver supports the whole SYM53C8XX famil     67 This driver supports the whole SYM53C8XX family of PCI-SCSI controllers.
 68 It also support the subset of LSI53C10XX PCI-S     68 It also support the subset of LSI53C10XX PCI-SCSI controllers that are based
 69 on the SYM53C8XX SCRIPTS language.                 69 on the SYM53C8XX SCRIPTS language.
 70                                                    70 
 71 It replaces the sym53c8xx+ncr53c8xx driver bun     71 It replaces the sym53c8xx+ncr53c8xx driver bundle and shares its core code
 72 with the FreeBSD SYM-2 driver. The 'glue' that     72 with the FreeBSD SYM-2 driver. The 'glue' that allows this driver to work
 73 under Linux is contained in 2 files named sym_     73 under Linux is contained in 2 files named sym_glue.h and sym_glue.c.
 74 Other drivers files are intended not to depend     74 Other drivers files are intended not to depend on the Operating System
 75 on which the driver is used.                       75 on which the driver is used.
 76                                                    76 
 77 The history of this driver can be summarized a     77 The history of this driver can be summarized as follows:
 78                                                    78 
 79 1993: ncr driver written for 386bsd and FreeBS     79 1993: ncr driver written for 386bsd and FreeBSD by:
 80                                                    80 
 81           - Wolfgang Stanglmeier        <wolf@c     81           - Wolfgang Stanglmeier        <wolf@cologne.de>
 82           - Stefan Esser                <se@mi.     82           - Stefan Esser                <se@mi.Uni-Koeln.de>
 83                                                    83 
 84 1996: port of the ncr driver to Linux-1.2.13 a     84 1996: port of the ncr driver to Linux-1.2.13 and rename it ncr53c8xx.
 85                                                    85 
 86           - Gerard Roudier                         86           - Gerard Roudier
 87                                                    87 
 88 1998: new sym53c8xx driver for Linux based on      88 1998: new sym53c8xx driver for Linux based on LOAD/STORE instruction and that
 89       adds full support for the 896 but drops      89       adds full support for the 896 but drops support for early NCR devices.
 90                                                    90 
 91           - Gerard Roudier                         91           - Gerard Roudier
 92                                                    92 
 93 1999: port of the sym53c8xx driver to FreeBSD      93 1999: port of the sym53c8xx driver to FreeBSD and support for the LSI53C1010
 94       33 MHz and 66MHz Ultra-3 controllers. Th     94       33 MHz and 66MHz Ultra-3 controllers. The new driver is named 'sym'.
 95                                                    95 
 96           - Gerard Roudier                         96           - Gerard Roudier
 97                                                    97 
 98 2000: Add support for early NCR devices to Fre     98 2000: Add support for early NCR devices to FreeBSD 'sym' driver.
 99       Break the driver into several sources an     99       Break the driver into several sources and separate the OS glue
100       code from the core code that can be shar    100       code from the core code that can be shared among different O/Ses.
101       Write a glue code for Linux.                101       Write a glue code for Linux.
102                                                   102 
103           - Gerard Roudier                        103           - Gerard Roudier
104                                                   104 
105 2004: Remove FreeBSD compatibility code.  Remo    105 2004: Remove FreeBSD compatibility code.  Remove support for versions of
106       Linux before 2.6.  Start using Linux fac    106       Linux before 2.6.  Start using Linux facilities.
107                                                   107 
108 This README file addresses the Linux version o    108 This README file addresses the Linux version of the driver. Under FreeBSD,
109 the driver documentation is the sym.8 man page    109 the driver documentation is the sym.8 man page.
110                                                   110 
111 Information about new chips is available at LS    111 Information about new chips is available at LSILOGIC web server:
112                                                   112 
113           http://www.lsilogic.com/                113           http://www.lsilogic.com/
114                                                   114 
115 SCSI standard documentations are available at     115 SCSI standard documentations are available at T10 site:
116                                                   116 
117           http://www.t10.org/                     117           http://www.t10.org/
118                                                   118 
119 Useful SCSI tools written by Eric Youngdale ar    119 Useful SCSI tools written by Eric Youngdale are part of most Linux
120 distributions:                                    120 distributions:
121                                                   121 
122    ============ ==========================        122    ============ ==========================
123    scsiinfo     command line tool                 123    scsiinfo     command line tool
124    scsi-config  TCL/Tk tool using scsiinfo        124    scsi-config  TCL/Tk tool using scsiinfo
125    ============ ==========================        125    ============ ==========================
126                                                   126 
127 2. Supported chips and SCSI features              127 2. Supported chips and SCSI features
128 ====================================              128 ====================================
129                                                   129 
130 The following features are supported for all c    130 The following features are supported for all chips:
131                                                   131 
132         - Synchronous negotiation                 132         - Synchronous negotiation
133         - Disconnection                           133         - Disconnection
134         - Tagged command queuing                  134         - Tagged command queuing
135         - SCSI parity checking                    135         - SCSI parity checking
136         - PCI Master parity checking              136         - PCI Master parity checking
137                                                   137 
138 Other features depends on chip capabilities.      138 Other features depends on chip capabilities.
139                                                   139 
140 The driver notably uses optimized SCRIPTS for     140 The driver notably uses optimized SCRIPTS for devices that support
141 LOAD/STORE and handles PHASE MISMATCH from SCR    141 LOAD/STORE and handles PHASE MISMATCH from SCRIPTS for devices that
142 support the corresponding feature.                142 support the corresponding feature.
143                                                   143 
144 The following table shows some characteristics    144 The following table shows some characteristics of the chip family.
145                                                   145 
146 +--------+-----------+-----+-----------+------    146 +--------+-----------+-----+-----------+------------+------------+---------+
147 |        |           |     |           |          147 |        |           |     |           |            |Load/store  |Hardware |
148 |        |On board   |     |           |          148 |        |On board   |     |           |            |scripts     |phase    |
149 |Chip    |SDMS BIOS  |Wide |SCSI std.  | Max.     149 |Chip    |SDMS BIOS  |Wide |SCSI std.  | Max. sync  |            |mismatch |
150 +--------+-----------+-----+-----------+------    150 +--------+-----------+-----+-----------+------------+------------+---------+
151 |810     |     N     |  N  | FAST10    | 10 MB    151 |810     |     N     |  N  | FAST10    | 10 MB/s    |      N     |    N    |
152 +--------+-----------+-----+-----------+------    152 +--------+-----------+-----+-----------+------------+------------+---------+
153 |810A    |     N     |  N  | FAST10    | 10 MB    153 |810A    |     N     |  N  | FAST10    | 10 MB/s    |      Y     |    N    |
154 +--------+-----------+-----+-----------+------    154 +--------+-----------+-----+-----------+------------+------------+---------+
155 |815     |     Y     |  N  | FAST10    | 10 MB    155 |815     |     Y     |  N  | FAST10    | 10 MB/s    |      N     |    N    |
156 +--------+-----------+-----+-----------+------    156 +--------+-----------+-----+-----------+------------+------------+---------+
157 |825     |     Y     |  Y  | FAST10    | 20 MB    157 |825     |     Y     |  Y  | FAST10    | 20 MB/s    |      N     |    N    |
158 +--------+-----------+-----+-----------+------    158 +--------+-----------+-----+-----------+------------+------------+---------+
159 |825A    |     Y     |  Y  | FAST10    | 20 MB    159 |825A    |     Y     |  Y  | FAST10    | 20 MB/s    |      Y     |    N    |
160 +--------+-----------+-----+-----------+------    160 +--------+-----------+-----+-----------+------------+------------+---------+
161 |860     |     N     |  N  | FAST20    | 20 MB    161 |860     |     N     |  N  | FAST20    | 20 MB/s    |      Y     |    N    |
162 +--------+-----------+-----+-----------+------    162 +--------+-----------+-----+-----------+------------+------------+---------+
163 |875     |     Y     |  Y  | FAST20    | 40 MB    163 |875     |     Y     |  Y  | FAST20    | 40 MB/s    |      Y     |    N    |
164 +--------+-----------+-----+-----------+------    164 +--------+-----------+-----+-----------+------------+------------+---------+
165 |875A    |     Y     |  Y  | FAST20    | 40 MB    165 |875A    |     Y     |  Y  | FAST20    | 40 MB/s    |      Y     |    Y    |
166 +--------+-----------+-----+-----------+------    166 +--------+-----------+-----+-----------+------------+------------+---------+
167 |876     |     Y     |  Y  | FAST20    | 40 MB    167 |876     |     Y     |  Y  | FAST20    | 40 MB/s    |      Y     |    N    |
168 +--------+-----------+-----+-----------+------    168 +--------+-----------+-----+-----------+------------+------------+---------+
169 |895     |     Y     |  Y  | FAST40    | 80 MB    169 |895     |     Y     |  Y  | FAST40    | 80 MB/s    |      Y     |    N    |
170 +--------+-----------+-----+-----------+------    170 +--------+-----------+-----+-----------+------------+------------+---------+
171 |895A    |     Y     |  Y  | FAST40    | 80 MB    171 |895A    |     Y     |  Y  | FAST40    | 80 MB/s    |      Y     |    Y    |
172 +--------+-----------+-----+-----------+------    172 +--------+-----------+-----+-----------+------------+------------+---------+
173 |896     |     Y     |  Y  | FAST40    | 80 MB    173 |896     |     Y     |  Y  | FAST40    | 80 MB/s    |      Y     |    Y    |
174 +--------+-----------+-----+-----------+------    174 +--------+-----------+-----+-----------+------------+------------+---------+
175 |897     |     Y     |  Y  | FAST40    | 80 MB    175 |897     |     Y     |  Y  | FAST40    | 80 MB/s    |      Y     |    Y    |
176 +--------+-----------+-----+-----------+------    176 +--------+-----------+-----+-----------+------------+------------+---------+
177 |1510D   |     Y     |  Y  | FAST40    | 80 MB    177 |1510D   |     Y     |  Y  | FAST40    | 80 MB/s    |      Y     |    Y    |
178 +--------+-----------+-----+-----------+------    178 +--------+-----------+-----+-----------+------------+------------+---------+
179 |1010    |     Y     |  Y  | FAST80    |160 MB    179 |1010    |     Y     |  Y  | FAST80    |160 MB/s    |      Y     |    Y    |
180 +--------+-----------+-----+-----------+------    180 +--------+-----------+-----+-----------+------------+------------+---------+
181 |1010_66 |     Y     |  Y  | FAST80    |160 MB    181 |1010_66 |     Y     |  Y  | FAST80    |160 MB/s    |      Y     |    Y    |
182 |[1]_    |           |     |           |          182 |[1]_    |           |     |           |            |            |         |
183 +--------+-----------+-----+-----------+------    183 +--------+-----------+-----+-----------+------------+------------+---------+
184                                                   184 
185 .. [1] Chip supports 33MHz and 66MHz PCI bus c    185 .. [1] Chip supports 33MHz and 66MHz PCI bus clock.
186                                                   186 
187                                                   187 
188 Summary of other supported features:              188 Summary of other supported features:
189                                                   189 
190 :Module:                allow to load the driv    190 :Module:                allow to load the driver
191 :Memory mapped I/O:     increases performance     191 :Memory mapped I/O:     increases performance
192 :Control commands:      write operations to th    192 :Control commands:      write operations to the proc SCSI file system
193 :Debugging information: written to syslog (exp    193 :Debugging information: written to syslog (expert only)
194 :Serial NVRAM:          Symbios and Tekram for    194 :Serial NVRAM:          Symbios and Tekram formats
195                                                   195 
196 - Scatter / gather                                196 - Scatter / gather
197 - Shared interrupt                                197 - Shared interrupt
198 - Boot setup commands                             198 - Boot setup commands
199                                                   199 
200                                                   200 
201 3. Advantages of this driver for newer chips.     201 3. Advantages of this driver for newer chips.
202 =============================================     202 =============================================
203                                                   203 
204 3.1 Optimized SCSI SCRIPTS                        204 3.1 Optimized SCSI SCRIPTS
205 --------------------------                        205 --------------------------
206                                                   206 
207 All chips except the 810, 815 and 825, support    207 All chips except the 810, 815 and 825, support new SCSI SCRIPTS instructions
208 named LOAD and STORE that allow to move up to     208 named LOAD and STORE that allow to move up to 1 DWORD from/to an IO register
209 to/from memory much faster that the MOVE MEMOR    209 to/from memory much faster that the MOVE MEMORY instruction that is supported
210 by the 53c7xx and 53c8xx family.                  210 by the 53c7xx and 53c8xx family.
211                                                   211 
212 The LOAD/STORE instructions support absolute a    212 The LOAD/STORE instructions support absolute and DSA relative addressing
213 modes. The SCSI SCRIPTS had been entirely rewr    213 modes. The SCSI SCRIPTS had been entirely rewritten using LOAD/STORE instead
214 of MOVE MEMORY instructions.                      214 of MOVE MEMORY instructions.
215                                                   215 
216 Due to the lack of LOAD/STORE SCRIPTS instruct    216 Due to the lack of LOAD/STORE SCRIPTS instructions by earlier chips, this
217 driver also incorporates a different SCRIPTS s    217 driver also incorporates a different SCRIPTS set based on MEMORY MOVE, in
218 order to provide support for the entire SYM53C    218 order to provide support for the entire SYM53C8XX chips family.
219                                                   219 
220 3.2 New features appeared with the SYM53C896      220 3.2 New features appeared with the SYM53C896
221 --------------------------------------------      221 --------------------------------------------
222                                                   222 
223 Newer chips (see above) allows handling of the    223 Newer chips (see above) allows handling of the phase mismatch context from
224 SCRIPTS (avoids the phase mismatch interrupt t    224 SCRIPTS (avoids the phase mismatch interrupt that stops the SCSI processor
225 until the C code has saved the context of the     225 until the C code has saved the context of the transfer).
226                                                   226 
227 The 896 and 1010 chips support 64 bit PCI tran    227 The 896 and 1010 chips support 64 bit PCI transactions and addressing,
228 while the 895A supports 32 bit PCI transaction    228 while the 895A supports 32 bit PCI transactions and 64 bit addressing.
229 The SCRIPTS processor of these chips is not tr    229 The SCRIPTS processor of these chips is not true 64 bit, but uses segment
230 registers for bit 32-63. Another interesting f    230 registers for bit 32-63. Another interesting feature is that LOAD/STORE
231 instructions that address the on-chip RAM (8k)    231 instructions that address the on-chip RAM (8k) remain internal to the chip.
232                                                   232 
233 4. Memory mapped I/O versus normal I/O            233 4. Memory mapped I/O versus normal I/O
234 ======================================            234 ======================================
235                                                   235 
236 Memory mapped I/O has less latency than normal    236 Memory mapped I/O has less latency than normal I/O and is the recommended
237 way for doing IO with PCI devices. Memory mapp    237 way for doing IO with PCI devices. Memory mapped I/O seems to work fine on
238 most hardware configurations, but some poorly     238 most hardware configurations, but some poorly designed chipsets may break
239 this feature. A configuration option is provid    239 this feature. A configuration option is provided for normal I/O to be
240 used but the driver defaults to MMIO.             240 used but the driver defaults to MMIO.
241                                                   241 
242 5. Tagged command queueing                        242 5. Tagged command queueing
243 ==========================                        243 ==========================
244                                                   244 
245 Queuing more than 1 command at a time to a dev    245 Queuing more than 1 command at a time to a device allows it to perform
246 optimizations based on actual head positions a    246 optimizations based on actual head positions and its mechanical
247 characteristics. This feature may also reduce     247 characteristics. This feature may also reduce average command latency.
248 In order to really gain advantage of this feat    248 In order to really gain advantage of this feature, devices must have
249 a reasonable cache size (No miracle is to be e    249 a reasonable cache size (No miracle is to be expected for a low-end
250 hard disk with 128 KB or less).                   250 hard disk with 128 KB or less).
251                                                   251 
252 Some known old SCSI devices do not properly su    252 Some known old SCSI devices do not properly support tagged command queuing.
253 Generally, firmware revisions that fix this ki    253 Generally, firmware revisions that fix this kind of problems are available
254 at respective vendor web/ftp sites.               254 at respective vendor web/ftp sites.
255                                                   255 
256 All I can say is that I never have had problem    256 All I can say is that I never have had problem with tagged queuing using
257 this driver and its predecessors. Hard disks t    257 this driver and its predecessors. Hard disks that behaved correctly for
258 me using tagged commands are the following:       258 me using tagged commands are the following:
259                                                   259 
260 - IBM S12 0662                                    260 - IBM S12 0662
261 - Conner 1080S                                    261 - Conner 1080S
262 - Quantum Atlas I                                 262 - Quantum Atlas I
263 - Quantum Atlas II                                263 - Quantum Atlas II
264 - Seagate Cheetah I                               264 - Seagate Cheetah I
265 - Quantum Viking II                               265 - Quantum Viking II
266 - IBM DRVS                                        266 - IBM DRVS
267 - Quantum Atlas IV                                267 - Quantum Atlas IV
268 - Seagate Cheetah II                              268 - Seagate Cheetah II
269                                                   269 
270 If your controller has NVRAM, you can configur    270 If your controller has NVRAM, you can configure this feature per target
271 from the user setup tool. The Tekram Setup pro    271 from the user setup tool. The Tekram Setup program allows to tune the
272 maximum number of queued commands up to 32. Th    272 maximum number of queued commands up to 32. The Symbios Setup only allows
273 to enable or disable this feature.                273 to enable or disable this feature.
274                                                   274 
275 The maximum number of simultaneous tagged comm    275 The maximum number of simultaneous tagged commands queued to a device
276 is currently set to 16 by default.  This value    276 is currently set to 16 by default.  This value is suitable for most SCSI
277 disks.  With large SCSI disks (>= 2GB, cache >    277 disks.  With large SCSI disks (>= 2GB, cache >= 512KB, average seek time
278 <= 10 ms), using a larger value may give bette    278 <= 10 ms), using a larger value may give better performances.
279                                                   279 
280 This driver supports up to 255 commands per de    280 This driver supports up to 255 commands per device, and but using more than
281 64 is generally not worth-while, unless you ar    281 64 is generally not worth-while, unless you are using a very large disk or
282 disk arrays. It is noticeable that most of rec    282 disk arrays. It is noticeable that most of recent hard disks seem not to
283 accept more than 64 simultaneous commands. So,    283 accept more than 64 simultaneous commands. So, using more than 64 queued
284 commands is probably just resource wasting.       284 commands is probably just resource wasting.
285                                                   285 
286 If your controller does not have NVRAM or if i    286 If your controller does not have NVRAM or if it is managed by the SDMS
287 BIOS/SETUP, you can configure tagged queueing     287 BIOS/SETUP, you can configure tagged queueing feature and device queue
288 depths from the boot command-line. For example    288 depths from the boot command-line. For example::
289                                                   289 
290   sym53c8xx=tags:4/t2t3q15-t4q7/t1u0q32           290   sym53c8xx=tags:4/t2t3q15-t4q7/t1u0q32
291                                                   291 
292 will set tagged commands queue depths as follo    292 will set tagged commands queue depths as follow:
293                                                   293 
294 - target 2  all luns  on controller 0 --> 15      294 - target 2  all luns  on controller 0 --> 15
295 - target 3  all luns  on controller 0 --> 15      295 - target 3  all luns  on controller 0 --> 15
296 - target 4  all luns  on controller 0 -->  7      296 - target 4  all luns  on controller 0 -->  7
297 - target 1  lun 0     on controller 1 --> 32      297 - target 1  lun 0     on controller 1 --> 32
298 - all other target/lun                -->  4      298 - all other target/lun                -->  4
299                                                   299 
300 In some special conditions, some SCSI disk fir    300 In some special conditions, some SCSI disk firmwares may return a
301 QUEUE FULL status for a SCSI command. This beh    301 QUEUE FULL status for a SCSI command. This behaviour is managed by the
302 driver using the following heuristic:             302 driver using the following heuristic:
303                                                   303 
304 - Each time a QUEUE FULL status is returned, t    304 - Each time a QUEUE FULL status is returned, tagged queue depth is reduced
305   to the actual number of disconnected command    305   to the actual number of disconnected commands.
306                                                   306 
307 - Every 200 successfully completed SCSI comman    307 - Every 200 successfully completed SCSI commands, if allowed by the
308   current limit, the maximum number of queueab    308   current limit, the maximum number of queueable commands is incremented.
309                                                   309 
310 Since QUEUE FULL status reception and handling    310 Since QUEUE FULL status reception and handling is resource wasting, the
311 driver notifies by default this problem to use    311 driver notifies by default this problem to user by indicating the actual
312 number of commands used and their status, as w    312 number of commands used and their status, as well as its decision on the
313 device queue depth change.                        313 device queue depth change.
314 The heuristic used by the driver in handling Q    314 The heuristic used by the driver in handling QUEUE FULL ensures that the
315 impact on performances is not too bad. You can    315 impact on performances is not too bad. You can get rid of the messages by
316 setting verbose level to zero, as follow:         316 setting verbose level to zero, as follow:
317                                                   317 
318 1st method:                                       318 1st method:
319             boot your system using 'sym53c8xx=    319             boot your system using 'sym53c8xx=verb:0' option.
320 2nd method:                                       320 2nd method:
321             apply "setverbose 0" control comma    321             apply "setverbose 0" control command to the proc fs entry
322             corresponding to your controller a    322             corresponding to your controller after boot-up.
323                                                   323 
324 6. Parity checking                                324 6. Parity checking
325 ==================                                325 ==================
326                                                   326 
327 The driver supports SCSI parity checking and P    327 The driver supports SCSI parity checking and PCI bus master parity
328 checking.  These features must be enabled in o    328 checking.  These features must be enabled in order to ensure safe
329 data transfers.  Some flawed devices or mother    329 data transfers.  Some flawed devices or mother boards may have problems
330 with parity.  The options to defeat parity che    330 with parity.  The options to defeat parity checking have been removed
331 from the driver.                                  331 from the driver.
332                                                   332 
333 7. Profiling information                          333 7. Profiling information
334 ========================                          334 ========================
335                                                   335 
336 This driver does not provide profiling informa    336 This driver does not provide profiling information as did its predecessors.
337 This feature was not this useful and added com    337 This feature was not this useful and added complexity to the code.
338 As the driver code got more complex, I have de    338 As the driver code got more complex, I have decided to remove everything
339 that didn't seem actually useful.                 339 that didn't seem actually useful.
340                                                   340 
341 8. Control commands                               341 8. Control commands
342 ===================                               342 ===================
343                                                   343 
344 Control commands can be sent to the driver wit    344 Control commands can be sent to the driver with write operations to
345 the proc SCSI file system. The generic command    345 the proc SCSI file system. The generic command syntax is the
346 following::                                       346 following::
347                                                   347 
348       echo "<verb> <parameters>" >/proc/scsi/s    348       echo "<verb> <parameters>" >/proc/scsi/sym53c8xx/0
349       (assumes controller number is 0)            349       (assumes controller number is 0)
350                                                   350 
351 Using "all" for "<target>" parameter with the     351 Using "all" for "<target>" parameter with the commands below will
352 apply to all targets of the SCSI chain (except    352 apply to all targets of the SCSI chain (except the controller).
353                                                   353 
354 Available commands:                               354 Available commands:
355                                                   355 
356 8.1 Set minimum synchronous period factor         356 8.1 Set minimum synchronous period factor
357 -----------------------------------------         357 -----------------------------------------
358                                                   358 
359     setsync <target> <period factor>              359     setsync <target> <period factor>
360                                                   360 
361     :target:   target number                      361     :target:   target number
362     :period:   minimum synchronous period.        362     :period:   minimum synchronous period.
363                Maximum speed = 1000/(4*period     363                Maximum speed = 1000/(4*period factor) except for special
364                cases below.                       364                cases below.
365                                                   365 
366     Specify a period of 0, to force asynchrono    366     Specify a period of 0, to force asynchronous transfer mode.
367                                                   367 
368      -  9 means 12.5 nano-seconds synchronous     368      -  9 means 12.5 nano-seconds synchronous period
369      - 10 means 25 nano-seconds synchronous pe    369      - 10 means 25 nano-seconds synchronous period
370      - 11 means 30 nano-seconds synchronous pe    370      - 11 means 30 nano-seconds synchronous period
371      - 12 means 50 nano-seconds synchronous pe    371      - 12 means 50 nano-seconds synchronous period
372                                                   372 
373 8.2 Set wide size                                 373 8.2 Set wide size
374 -----------------                                 374 -----------------
375                                                   375 
376     setwide <target> <size>                       376     setwide <target> <size>
377                                                   377 
378     :target:   target number                      378     :target:   target number
379     :size:     0=8 bits, 1=16bits                 379     :size:     0=8 bits, 1=16bits
380                                                   380 
381 8.3 Set maximum number of concurrent tagged co    381 8.3 Set maximum number of concurrent tagged commands
382 ----------------------------------------------    382 ----------------------------------------------------
383                                                   383 
384     settags <target> <tags>                       384     settags <target> <tags>
385                                                   385 
386     :target:   target number                      386     :target:   target number
387     :tags:     number of concurrent tagged com    387     :tags:     number of concurrent tagged commands
388                must not be greater than config    388                must not be greater than configured (default: 16)
389                                                   389 
390 8.4 Set debug mode                                390 8.4 Set debug mode
391 ------------------                                391 ------------------
392                                                   392 
393     setdebug <list of debug flags>                393     setdebug <list of debug flags>
394                                                   394 
395     Available debug flags:                        395     Available debug flags:
396                                                   396 
397         ======== =============================    397         ======== ========================================================
398         alloc    print info about memory alloc    398         alloc    print info about memory allocations (ccb, lcb)
399         queue    print info about insertions i    399         queue    print info about insertions into the command start queue
400         result   print sense data on CHECK CON    400         result   print sense data on CHECK CONDITION status
401         scatter  print info about the scatter     401         scatter  print info about the scatter process
402         scripts  print info about the script b    402         scripts  print info about the script binding process
403         tiny     print minimal debugging infor    403         tiny     print minimal debugging information
404         timing   print timing information of t    404         timing   print timing information of the NCR chip
405         nego     print information about SCSI     405         nego     print information about SCSI negotiations
406         phase    print information on script i    406         phase    print information on script interruptions
407         ======== =============================    407         ======== ========================================================
408                                                   408 
409     Use "setdebug" with no argument to reset d    409     Use "setdebug" with no argument to reset debug flags.
410                                                   410 
411                                                   411 
412 8.5 Set flag (no_disc)                            412 8.5 Set flag (no_disc)
413 ----------------------                            413 ----------------------
414                                                   414 
415     setflag <target> <flag>                       415     setflag <target> <flag>
416                                                   416 
417     :target:    target number                     417     :target:    target number
418                                                   418 
419     For the moment, only one flag is available    419     For the moment, only one flag is available:
420                                                   420 
421         no_disc:   not allow target to disconn    421         no_disc:   not allow target to disconnect.
422                                                   422 
423     Do not specify any flag in order to reset     423     Do not specify any flag in order to reset the flag. For example:
424                                                   424 
425     setflag 4                                     425     setflag 4
426       will reset no_disc flag for target 4, so    426       will reset no_disc flag for target 4, so will allow it disconnections.
427     setflag all                                   427     setflag all
428       will allow disconnection for all devices    428       will allow disconnection for all devices on the SCSI bus.
429                                                   429 
430                                                   430 
431 8.6 Set verbose level                             431 8.6 Set verbose level
432 ---------------------                             432 ---------------------
433                                                   433 
434     setverbose #level                             434     setverbose #level
435                                                   435 
436     The driver default verbose level is 1. Thi    436     The driver default verbose level is 1. This command allows to change
437     th driver verbose level after boot-up.        437     th driver verbose level after boot-up.
438                                                   438 
439 8.7 Reset all logical units of a target           439 8.7 Reset all logical units of a target
440 ---------------------------------------           440 ---------------------------------------
441                                                   441 
442     resetdev <target>                             442     resetdev <target>
443                                                   443 
444     :target:    target number                     444     :target:    target number
445                                                   445 
446     The driver will try to send a BUS DEVICE R    446     The driver will try to send a BUS DEVICE RESET message to the target.
447                                                   447 
448 8.8 Abort all tasks of all logical units of a     448 8.8 Abort all tasks of all logical units of a target
449 ----------------------------------------------    449 ----------------------------------------------------
450                                                   450 
451     cleardev <target>                             451     cleardev <target>
452                                                   452 
453     :target:    target number                     453     :target:    target number
454                                                   454 
455     The driver will try to send a ABORT messag    455     The driver will try to send a ABORT message to all the logical units
456     of the target.                                456     of the target.
457                                                   457 
458                                                   458 
459 9. Configuration parameters                       459 9. Configuration parameters
460 ===========================                       460 ===========================
461                                                   461 
462 Under kernel configuration tools (make menucon    462 Under kernel configuration tools (make menuconfig, for example), it is
463 possible to change some default driver configu    463 possible to change some default driver configuration parameters.
464 If the firmware of all your devices is perfect    464 If the firmware of all your devices is perfect enough, all the
465 features supported by the driver can be enable    465 features supported by the driver can be enabled at start-up. However,
466 if only one has a flaw for some SCSI feature,     466 if only one has a flaw for some SCSI feature, you can disable the
467 support by the driver of this feature at linux    467 support by the driver of this feature at linux start-up and enable
468 this feature after boot-up only for devices th    468 this feature after boot-up only for devices that support it safely.
469                                                   469 
470 Configuration parameters:                         470 Configuration parameters:
471                                                   471 
472 Use normal IO                         (default    472 Use normal IO                         (default answer: n)
473     Answer "y" if you suspect your mother boar    473     Answer "y" if you suspect your mother board to not allow memory mapped I/O.
474     May slow down performance a little.           474     May slow down performance a little.
475                                                   475 
476 Default tagged command queue depth    (default    476 Default tagged command queue depth    (default answer: 16)
477     Entering 0 defaults to tagged commands not    477     Entering 0 defaults to tagged commands not being used.
478     This parameter can be specified from the b    478     This parameter can be specified from the boot command line.
479                                                   479 
480 Maximum number of queued commands     (default    480 Maximum number of queued commands     (default answer: 32)
481     This option allows you to specify the maxi    481     This option allows you to specify the maximum number of tagged commands
482     that can be queued to a device. The maximu    482     that can be queued to a device. The maximum supported value is 255.
483                                                   483 
484 Synchronous transfers frequency       (default    484 Synchronous transfers frequency       (default answer: 80)
485     This option allows you to specify the freq    485     This option allows you to specify the frequency in MHz the driver
486     will use at boot time for synchronous data    486     will use at boot time for synchronous data transfer negotiations.
487     0 means "asynchronous data transfers".        487     0 means "asynchronous data transfers".
488                                                   488 
489 10. Boot setup commands                           489 10. Boot setup commands
490 =======================                           490 =======================
491                                                   491 
492 10.1 Syntax                                       492 10.1 Syntax
493 -----------                                       493 -----------
494                                                   494 
495 Setup commands can be passed to the driver eit    495 Setup commands can be passed to the driver either at boot time or as
496 parameters to modprobe, as described in Docume    496 parameters to modprobe, as described in Documentation/admin-guide/kernel-parameters.rst
497                                                   497 
498 Example of boot setup command under lilo promp    498 Example of boot setup command under lilo prompt::
499                                                   499 
500     lilo: linux root=/dev/sda2 sym53c8xx.cmd_p    500     lilo: linux root=/dev/sda2 sym53c8xx.cmd_per_lun=4 sym53c8xx.sync=10 sym53c8xx.debug=0x200
501                                                   501 
502 - enable tagged commands, up to 4 tagged comma    502 - enable tagged commands, up to 4 tagged commands queued.
503 - set synchronous negotiation speed to 10 Mega    503 - set synchronous negotiation speed to 10 Mega-transfers / second.
504 - set DEBUG_NEGO flag.                            504 - set DEBUG_NEGO flag.
505                                                   505 
506 The following command will install the driver     506 The following command will install the driver module with the same
507 options as above::                                507 options as above::
508                                                   508 
509     modprobe sym53c8xx cmd_per_lun=4 sync=10 d    509     modprobe sym53c8xx cmd_per_lun=4 sync=10 debug=0x200
510                                                   510 
511 10.2 Available arguments                          511 10.2 Available arguments
512 ------------------------                          512 ------------------------
513                                                   513 
514 10.2.1  Default number of tagged commands         514 10.2.1  Default number of tagged commands
515 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^         515 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
516         - cmd_per_lun=0 (or cmd_per_lun=1) tag    516         - cmd_per_lun=0 (or cmd_per_lun=1) tagged command queuing disabled
517         - cmd_per_lun=#tags (#tags > 1) tagged    517         - cmd_per_lun=#tags (#tags > 1) tagged command queuing enabled
518                                                   518 
519   #tags will be truncated to the max queued co    519   #tags will be truncated to the max queued commands configuration parameter.
520                                                   520 
521 10.2.2 Burst max                                  521 10.2.2 Burst max
522 ^^^^^^^^^^^^^^^^                                  522 ^^^^^^^^^^^^^^^^
523                                                   523 
524         ========== ===========================    524         ========== ======================================================
525         burst=0    burst disabled                 525         burst=0    burst disabled
526         burst=255  get burst length from initi    526         burst=255  get burst length from initial IO register settings.
527         burst=#x   burst enabled (1<<#x burst     527         burst=#x   burst enabled (1<<#x burst transfers max)
528                                                   528 
529                    #x is an integer value whic    529                    #x is an integer value which is log base 2 of the burst
530                    transfers max.                 530                    transfers max.
531         ========== ===========================    531         ========== ======================================================
532                                                   532 
533   By default the driver uses the maximum value    533   By default the driver uses the maximum value supported by the chip.
534                                                   534 
535 10.2.3 LED support                                535 10.2.3 LED support
536 ^^^^^^^^^^^^^^^^^^                                536 ^^^^^^^^^^^^^^^^^^
537                                                   537 
538         =====      ===================            538         =====      ===================
539         led=1      enable  LED support            539         led=1      enable  LED support
540         led=0      disable LED support            540         led=0      disable LED support
541         =====      ===================            541         =====      ===================
542                                                   542 
543   Do not enable LED support if your scsi board    543   Do not enable LED support if your scsi board does not use SDMS BIOS.
544   (See 'Configuration parameters')                544   (See 'Configuration parameters')
545                                                   545 
546 10.2.4 Differential mode                          546 10.2.4 Differential mode
547 ^^^^^^^^^^^^^^^^^^^^^^^^                          547 ^^^^^^^^^^^^^^^^^^^^^^^^
548                                                   548 
549         ======  ==============================    549         ======  =================================
550         diff=0  never set up diff mode            550         diff=0  never set up diff mode
551         diff=1  set up diff mode if BIOS set i    551         diff=1  set up diff mode if BIOS set it
552         diff=2  always set up diff mode           552         diff=2  always set up diff mode
553         diff=3  set diff mode if GPIO3 is not     553         diff=3  set diff mode if GPIO3 is not set
554         ======  ==============================    554         ======  =================================
555                                                   555 
556 10.2.5 IRQ mode                                   556 10.2.5 IRQ mode
557 ^^^^^^^^^^^^^^^                                   557 ^^^^^^^^^^^^^^^
558                                                   558 
559         ======     ===========================    559         ======     ================================================
560         irqm=0     always open drain              560         irqm=0     always open drain
561         irqm=1     same as initial settings (a    561         irqm=1     same as initial settings (assumed BIOS settings)
562         irqm=2     always totem pole              562         irqm=2     always totem pole
563         ======     ===========================    563         ======     ================================================
564                                                   564 
565 10.2.6 Check SCSI BUS                             565 10.2.6 Check SCSI BUS
566 ^^^^^^^^^^^^^^^^^^^^^                             566 ^^^^^^^^^^^^^^^^^^^^^
567                                                   567 
568         buschk=<option bits>                      568         buschk=<option bits>
569                                                   569 
570     Available option bits:                        570     Available option bits:
571                                                   571 
572         ===    ===============================    572         ===    ================================================
573         0x0    No check.                          573         0x0    No check.
574         0x1    Check and do not attach the con    574         0x1    Check and do not attach the controller on error.
575         0x2    Check and just warn on error.      575         0x2    Check and just warn on error.
576         ===    ===============================    576         ===    ================================================
577                                                   577 
578 10.2.7 Suggest a default SCSI id for hosts        578 10.2.7 Suggest a default SCSI id for hosts
579 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^        579 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
580                                                   580 
581         ==========      ======================    581         ==========      ==========================================
582         hostid=255      no id suggested.          582         hostid=255      no id suggested.
583         hostid=#x       (0 < x < 7) x suggeste    583         hostid=#x       (0 < x < 7) x suggested for hosts SCSI id.
584         ==========      ======================    584         ==========      ==========================================
585                                                   585 
586     If a host SCSI id is available from the NV    586     If a host SCSI id is available from the NVRAM, the driver will ignore
587     any value suggested as boot option. Otherw    587     any value suggested as boot option. Otherwise, if a suggested value
588     different from 255 has been supplied, it w    588     different from 255 has been supplied, it will use it. Otherwise, it will
589     try to deduce the value previously set in     589     try to deduce the value previously set in the hardware and use value
590     7 if the hardware value is zero.              590     7 if the hardware value is zero.
591                                                   591 
592 10.2.8  Verbosity level                           592 10.2.8  Verbosity level
593 ^^^^^^^^^^^^^^^^^^^^^^^                           593 ^^^^^^^^^^^^^^^^^^^^^^^
594                                                   594 
595         ======     ========                       595         ======     ========
596         verb=0     minimal                        596         verb=0     minimal
597         verb=1     normal                         597         verb=1     normal
598         verb=2     too much                       598         verb=2     too much
599         ======     ========                       599         ======     ========
600                                                   600 
601 10.2.9 Debug mode                                 601 10.2.9 Debug mode
602 ^^^^^^^^^^^^^^^^^                                 602 ^^^^^^^^^^^^^^^^^
603                                                   603 
604         =========   ==========================    604         =========   ====================================
605         debug=0     clear debug flags             605         debug=0     clear debug flags
606         debug=#x    set debug flags               606         debug=#x    set debug flags
607                                                   607 
608                     #x is an integer value com    608                     #x is an integer value combining the
609                     following power-of-2 value    609                     following power-of-2 values:
610                                                   610 
611                     =============  ======         611                     =============  ======
612                     DEBUG_ALLOC       0x1         612                     DEBUG_ALLOC       0x1
613                     DEBUG_PHASE       0x2         613                     DEBUG_PHASE       0x2
614                     DEBUG_POLL        0x4         614                     DEBUG_POLL        0x4
615                     DEBUG_QUEUE       0x8         615                     DEBUG_QUEUE       0x8
616                     DEBUG_RESULT     0x10         616                     DEBUG_RESULT     0x10
617                     DEBUG_SCATTER    0x20         617                     DEBUG_SCATTER    0x20
618                     DEBUG_SCRIPT     0x40         618                     DEBUG_SCRIPT     0x40
619                     DEBUG_TINY       0x80         619                     DEBUG_TINY       0x80
620                     DEBUG_TIMING    0x100         620                     DEBUG_TIMING    0x100
621                     DEBUG_NEGO      0x200         621                     DEBUG_NEGO      0x200
622                     DEBUG_TAGS      0x400         622                     DEBUG_TAGS      0x400
623                     DEBUG_FREEZE    0x800         623                     DEBUG_FREEZE    0x800
624                     DEBUG_RESTART  0x1000         624                     DEBUG_RESTART  0x1000
625                     =============  ======         625                     =============  ======
626         =========   ==========================    626         =========   ====================================
627                                                   627 
628   You can play safely with DEBUG_NEGO. However    628   You can play safely with DEBUG_NEGO. However, some of these flags may
629   generate bunches of syslog messages.            629   generate bunches of syslog messages.
630                                                   630 
631 10.2.10 Settle delay                              631 10.2.10 Settle delay
632 ^^^^^^^^^^^^^^^^^^^^                              632 ^^^^^^^^^^^^^^^^^^^^
633                                                   633 
634         ========        ===================       634         ========        ===================
635         settle=n        delay for n seconds       635         settle=n        delay for n seconds
636         ========        ===================       636         ========        ===================
637                                                   637 
638   After a bus reset, the driver will delay for    638   After a bus reset, the driver will delay for n seconds before talking
639   to any device on the bus.  The default is 3     639   to any device on the bus.  The default is 3 seconds and safe mode will
640   default it to 10.                               640   default it to 10.
641                                                   641 
642 10.2.11 Serial NVRAM                              642 10.2.11 Serial NVRAM
643 ^^^^^^^^^^^^^^^^^^^^                              643 ^^^^^^^^^^^^^^^^^^^^
644                                                   644 
645         .. Note:: option not currently impleme    645         .. Note:: option not currently implemented.
646                                                   646 
647         =======     ==========================    647         =======     =========================================
648         nvram=n     do not look for serial NVR    648         nvram=n     do not look for serial NVRAM
649         nvram=y     test controllers for onboa    649         nvram=y     test controllers for onboard serial NVRAM
650         =======     ==========================    650         =======     =========================================
651                                                   651 
652         (alternate binary form)                   652         (alternate binary form)
653                                                   653 
654         nvram=<bits options>                      654         nvram=<bits options>
655                                                   655 
656         ====   ===============================    656         ====   =================================================================
657         0x01   look for NVRAM  (equivalent to     657         0x01   look for NVRAM  (equivalent to nvram=y)
658         0x02   ignore NVRAM "Synchronous negot    658         0x02   ignore NVRAM "Synchronous negotiation" parameters for all devices
659         0x04   ignore NVRAM "Wide negotiation"    659         0x04   ignore NVRAM "Wide negotiation"  parameter for all devices
660         0x08   ignore NVRAM "Scan at boot time    660         0x08   ignore NVRAM "Scan at boot time" parameter for all devices
661         0x80   also attach controllers set to     661         0x80   also attach controllers set to OFF in the NVRAM (sym53c8xx only)
662         ====   ===============================    662         ====   =================================================================
663                                                   663 
664 10.2.12 Exclude a host from being attached        664 10.2.12 Exclude a host from being attached
665 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^        665 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
666                                                   666 
667         excl=<io_address>,...                     667         excl=<io_address>,...
668                                                   668 
669     Prevent host at a given io address from be    669     Prevent host at a given io address from being attached.
670     For example 'excl=0xb400,0xc000' indicate     670     For example 'excl=0xb400,0xc000' indicate to the
671     driver not to attach hosts at address 0xb4    671     driver not to attach hosts at address 0xb400 and 0xc000.
672                                                   672 
673 10.3 Converting from old style options            673 10.3 Converting from old style options
674 --------------------------------------            674 --------------------------------------
675                                                   675 
676 Previously, the sym2 driver accepted arguments    676 Previously, the sym2 driver accepted arguments of the form::
677                                                   677 
678         sym53c8xx=tags:4,sync:10,debug:0x200      678         sym53c8xx=tags:4,sync:10,debug:0x200
679                                                   679 
680 As a result of the new module parameters, this    680 As a result of the new module parameters, this is no longer available.
681 Most of the options have remained the same, bu    681 Most of the options have remained the same, but tags has become
682 cmd_per_lun to reflect its different purposes.    682 cmd_per_lun to reflect its different purposes.  The sample above would
683 be specified as::                                 683 be specified as::
684                                                   684 
685         modprobe sym53c8xx cmd_per_lun=4 sync=    685         modprobe sym53c8xx cmd_per_lun=4 sync=10 debug=0x200
686                                                   686 
687 or on the kernel boot line as::                   687 or on the kernel boot line as::
688                                                   688 
689         sym53c8xx.cmd_per_lun=4 sym53c8xx.sync    689         sym53c8xx.cmd_per_lun=4 sym53c8xx.sync=10 sym53c8xx.debug=0x200
690                                                   690 
691 10.4 SCSI BUS checking boot option                691 10.4 SCSI BUS checking boot option
692 ----------------------------------                692 ----------------------------------
693                                                   693 
694 When this option is set to a non-zero value, t    694 When this option is set to a non-zero value, the driver checks SCSI lines
695 logic state, 100 micro-seconds after having as    695 logic state, 100 micro-seconds after having asserted the SCSI RESET line.
696 The driver just reads SCSI lines and checks al    696 The driver just reads SCSI lines and checks all lines read FALSE except RESET.
697 Since SCSI devices shall release the BUS at mo    697 Since SCSI devices shall release the BUS at most 800 nano-seconds after SCSI
698 RESET has been asserted, any signal to TRUE ma    698 RESET has been asserted, any signal to TRUE may indicate a SCSI BUS problem.
699 Unfortunately, the following common SCSI BUS p    699 Unfortunately, the following common SCSI BUS problems are not detected:
700                                                   700 
701 - Only 1 terminator installed.                    701 - Only 1 terminator installed.
702 - Misplaced terminators.                          702 - Misplaced terminators.
703 - Bad quality terminators.                        703 - Bad quality terminators.
704                                                   704 
705 On the other hand, either bad cabling, broken     705 On the other hand, either bad cabling, broken devices, not conformant
706 devices, ... may cause a SCSI signal to be wro !! 706 devices, ... may cause a SCSI signal to be wrong when te driver reads it.
707                                                   707 
708 15. SCSI problem troubleshooting                  708 15. SCSI problem troubleshooting
709 ================================                  709 ================================
710                                                   710 
711 15.1 Problem tracking                             711 15.1 Problem tracking
712 ---------------------                             712 ---------------------
713                                                   713 
714 Most SCSI problems are due to a non conformant    714 Most SCSI problems are due to a non conformant SCSI bus or too buggy
715 devices.  If unfortunately you have SCSI probl    715 devices.  If unfortunately you have SCSI problems, you can check the
716 following things:                                 716 following things:
717                                                   717 
718 - SCSI bus cables                                 718 - SCSI bus cables
719 - terminations at both end of the SCSI chain      719 - terminations at both end of the SCSI chain
720 - linux syslog messages (some of them may help    720 - linux syslog messages (some of them may help you)
721                                                   721 
722 If you do not find the source of problems, you    722 If you do not find the source of problems, you can configure the
723 driver or devices in the NVRAM with minimal fe    723 driver or devices in the NVRAM with minimal features.
724                                                   724 
725 - only asynchronous data transfers                725 - only asynchronous data transfers
726 - tagged commands disabled                        726 - tagged commands disabled
727 - disconnections not allowed                      727 - disconnections not allowed
728                                                   728 
729 Now, if your SCSI bus is ok, your system has e    729 Now, if your SCSI bus is ok, your system has every chance to work
730 with this safe configuration but performances     730 with this safe configuration but performances will not be optimal.
731                                                   731 
732 If it still fails, then you can send your prob    732 If it still fails, then you can send your problem description to
733 appropriate mailing lists or news-groups.  Sen    733 appropriate mailing lists or news-groups.  Send me a copy in order to
734 be sure I will receive it.  Obviously, a bug i    734 be sure I will receive it.  Obviously, a bug in the driver code is
735 possible.                                         735 possible.
736                                                   736 
737   My current email address: Gerard Roudier <gro    737   My current email address: Gerard Roudier <groudier@free.fr>
738                                                   738 
739 Allowing disconnections is important if you us    739 Allowing disconnections is important if you use several devices on
740 your SCSI bus but often causes problems with b    740 your SCSI bus but often causes problems with buggy devices.
741 Synchronous data transfers increases throughpu    741 Synchronous data transfers increases throughput of fast devices like
742 hard disks.  Good SCSI hard disks with a large    742 hard disks.  Good SCSI hard disks with a large cache gain advantage of
743 tagged commands queuing.                          743 tagged commands queuing.
744                                                   744 
745 15.2 Understanding hardware error reports         745 15.2 Understanding hardware error reports
746 -----------------------------------------         746 -----------------------------------------
747                                                   747 
748 When the driver detects an unexpected error co    748 When the driver detects an unexpected error condition, it may display a
749 message of the following pattern::                749 message of the following pattern::
750                                                   750 
751     sym0:1: ERROR (0:48) (1-21-65) (f/95/0) @     751     sym0:1: ERROR (0:48) (1-21-65) (f/95/0) @ (script 7c0:19000000).
752     sym0: script cmd = 19000000                   752     sym0: script cmd = 19000000
753     sym0: regdump: da 10 80 95 47 0f 01 07 75     753     sym0: regdump: da 10 80 95 47 0f 01 07 75 01 81 21 80 01 09 00.
754                                                   754 
755 Some fields in such a message may help you und    755 Some fields in such a message may help you understand the cause of the
756 problem, as follows::                             756 problem, as follows::
757                                                   757 
758     sym0:1: ERROR (0:48) (1-21-65) (f/95/0) @     758     sym0:1: ERROR (0:48) (1-21-65) (f/95/0) @ (script 7c0:19000000).
759     .....A.........B.C....D.E..F....G.H..I....    759     .....A.........B.C....D.E..F....G.H..I.......J.....K...L.......
760                                                   760 
761 Field A : target number.                          761 Field A : target number.
762   SCSI ID of the device the controller was tal    762   SCSI ID of the device the controller was talking with at the moment the
763   error occurs.                                   763   error occurs.
764                                                   764 
765 Field B : DSTAT io register (DMA STATUS)          765 Field B : DSTAT io register (DMA STATUS)
766   ========   =================================    766   ========   =============================================================
767   Bit 0x40   MDPE Master Data Parity Error        767   Bit 0x40   MDPE Master Data Parity Error
768              Data parity error detected on the    768              Data parity error detected on the PCI BUS.
769   Bit 0x20   BF   Bus Fault                       769   Bit 0x20   BF   Bus Fault
770              PCI bus fault condition detected     770              PCI bus fault condition detected
771   Bit 0x01   IID  Illegal Instruction Detected    771   Bit 0x01   IID  Illegal Instruction Detected
772              Set by the chip when it detects a    772              Set by the chip when it detects an Illegal Instruction format
773              on some condition that makes an i    773              on some condition that makes an instruction illegal.
774   Bit 0x80   DFE Dma Fifo Empty                   774   Bit 0x80   DFE Dma Fifo Empty
775              Pure status bit that does not ind    775              Pure status bit that does not indicate an error.
776   ========   =================================    776   ========   =============================================================
777                                                   777 
778   If the reported DSTAT value contains a combi    778   If the reported DSTAT value contains a combination of MDPE (0x40),
779   BF (0x20), then the cause may be likely due     779   BF (0x20), then the cause may be likely due to a PCI BUS problem.
780                                                   780 
781 Field C : SIST io register (SCSI Interrupt Sta    781 Field C : SIST io register (SCSI Interrupt Status)
782   ========   =================================    782   ========   ==================================================================
783   Bit 0x08   SGE  SCSI GROSS ERROR                783   Bit 0x08   SGE  SCSI GROSS ERROR
784              Indicates that the chip detected     784              Indicates that the chip detected a severe error condition
785              on the SCSI BUS that prevents the    785              on the SCSI BUS that prevents the SCSI protocol from functioning
786              properly.                            786              properly.
787   Bit 0x04   UDC  Unexpected Disconnection        787   Bit 0x04   UDC  Unexpected Disconnection
788              Indicates that the device release    788              Indicates that the device released the SCSI BUS when the chip
789              was not expecting this to happen.    789              was not expecting this to happen. A device may behave so to
790              indicate the SCSI initiator that     790              indicate the SCSI initiator that an error condition not reportable              using the SCSI protocol has occurred.
791   Bit 0x02   RST  SCSI BUS Reset                  791   Bit 0x02   RST  SCSI BUS Reset
792              Generally SCSI targets do not res    792              Generally SCSI targets do not reset the SCSI BUS, although any
793              device on the BUS can reset it at    793              device on the BUS can reset it at any time.
794   Bit 0x01   PAR  Parity                          794   Bit 0x01   PAR  Parity
795              SCSI parity error detected.          795              SCSI parity error detected.
796   ========   =================================    796   ========   ==================================================================
797                                                   797 
798   On a faulty SCSI BUS, any error condition am    798   On a faulty SCSI BUS, any error condition among SGE (0x08), UDC (0x04) and
799   PAR (0x01) may be detected by the chip. If y    799   PAR (0x01) may be detected by the chip. If your SCSI system sometimes
800   encounters such error conditions, especially    800   encounters such error conditions, especially SCSI GROSS ERROR, then a SCSI
801   BUS problem is likely the cause of these err    801   BUS problem is likely the cause of these errors.
802                                                   802 
803 For fields D,E,F,G and H, you may look into th    803 For fields D,E,F,G and H, you may look into the sym53c8xx_defs.h file
804 that contains some minimal comments on IO regi    804 that contains some minimal comments on IO register bits.
805                                                   805 
806 Field D : SOCL  Scsi Output Control Latch         806 Field D : SOCL  Scsi Output Control Latch
807           This register reflects the state of     807           This register reflects the state of the SCSI control lines the
808           chip want to drive or compare agains    808           chip want to drive or compare against.
809 Field E : SBCL  Scsi Bus Control Lines            809 Field E : SBCL  Scsi Bus Control Lines
810           Actual value of control lines on the    810           Actual value of control lines on the SCSI BUS.
811 Field F : SBDL  Scsi Bus Data Lines               811 Field F : SBDL  Scsi Bus Data Lines
812           Actual value of data lines on the SC    812           Actual value of data lines on the SCSI BUS.
813 Field G : SXFER  SCSI Transfer                    813 Field G : SXFER  SCSI Transfer
814           Contains the setting of the Synchron    814           Contains the setting of the Synchronous Period for output and
815           the current Synchronous offset (offs    815           the current Synchronous offset (offset 0 means asynchronous).
816 Field H : SCNTL3 Scsi Control Register 3          816 Field H : SCNTL3 Scsi Control Register 3
817           Contains the setting of timing value    817           Contains the setting of timing values for both asynchronous and
818           synchronous data transfers.             818           synchronous data transfers.
819 Field I : SCNTL4 Scsi Control Register 4          819 Field I : SCNTL4 Scsi Control Register 4
820           Only meaningful for 53C1010 Ultra3 c    820           Only meaningful for 53C1010 Ultra3 controllers.
821                                                   821 
822 Understanding Fields J, K, L and dumps require    822 Understanding Fields J, K, L and dumps requires to have good knowledge of
823 SCSI standards, chip cores functionnals and in    823 SCSI standards, chip cores functionnals and internal driver data structures.
824 You are not required to decode and understand     824 You are not required to decode and understand them, unless you want to help
825 maintain the driver code.                         825 maintain the driver code.
826                                                   826 
827 17. Serial NVRAM (added by Richard Waltham: do    827 17. Serial NVRAM (added by Richard Waltham: dormouse@farsrobt.demon.co.uk)
828 ==============================================    828 ==========================================================================
829                                                   829 
830 17.1 Features                                     830 17.1 Features
831 -------------                                     831 -------------
832                                                   832 
833 Enabling serial NVRAM support enables detectio    833 Enabling serial NVRAM support enables detection of the serial NVRAM included
834 on Symbios and some Symbios compatible host ad    834 on Symbios and some Symbios compatible host adaptors, and Tekram boards. The
835 serial NVRAM is used by Symbios and Tekram to     835 serial NVRAM is used by Symbios and Tekram to hold set up parameters for the
836 host adaptor and its attached drives.             836 host adaptor and its attached drives.
837                                                   837 
838 The Symbios NVRAM also holds data on the boot     838 The Symbios NVRAM also holds data on the boot order of host adaptors in a
839 system with more than one host adaptor.  This     839 system with more than one host adaptor.  This information is no longer used
840 as it's fundamentally incompatible with the ho    840 as it's fundamentally incompatible with the hotplug PCI model.
841                                                   841 
842 Tekram boards using Symbios chips, DC390W/F/U,    842 Tekram boards using Symbios chips, DC390W/F/U, which have NVRAM are detected
843 and this is used to distinguish between Symbio    843 and this is used to distinguish between Symbios compatible and Tekram host
844 adaptors. This is used to disable the Symbios     844 adaptors. This is used to disable the Symbios compatible "diff" setting
845 incorrectly set on Tekram boards if the CONFIG    845 incorrectly set on Tekram boards if the CONFIG_SCSI_53C8XX_SYMBIOS_COMPAT
846 configuration parameter is set enabling both S    846 configuration parameter is set enabling both Symbios and Tekram boards to be
847 used together with the Symbios cards using all    847 used together with the Symbios cards using all their features, including
848 "diff" support. ("led pin" support for Symbios    848 "diff" support. ("led pin" support for Symbios compatible cards can remain
849 enabled when using Tekram cards. It does nothi    849 enabled when using Tekram cards. It does nothing useful for Tekram host
850 adaptors but does not cause problems either.)     850 adaptors but does not cause problems either.)
851                                                   851 
852 The parameters the driver is able to get from     852 The parameters the driver is able to get from the NVRAM depend on the
853 data format used, as follow:                      853 data format used, as follow:
854                                                   854 
855 +-------------------------------+-------------    855 +-------------------------------+------------------+--------------+
856 |                               |Tekram format    856 |                               |Tekram format     |Symbios format|
857 +-------------------------------+-------------    857 +-------------------------------+------------------+--------------+
858 |General and host parameters    |                 858 |General and host parameters    |                  |              |
859 +-------------------------------+-------------    859 +-------------------------------+------------------+--------------+
860 |  * Boot order                 |        N        860 |  * Boot order                 |        N         |       Y      |
861 +-------------------------------+-------------    861 +-------------------------------+------------------+--------------+
862 |  * Host SCSI ID               |        Y        862 |  * Host SCSI ID               |        Y         |       Y      |
863 +-------------------------------+-------------    863 +-------------------------------+------------------+--------------+
864 |  * SCSI parity checking       |        Y        864 |  * SCSI parity checking       |        Y         |       Y      |
865 +-------------------------------+-------------    865 +-------------------------------+------------------+--------------+
866 |  * Verbose boot messages      |        N        866 |  * Verbose boot messages      |        N         |       Y      |
867 +-------------------------------+-------------    867 +-------------------------------+------------------+--------------+
868 |SCSI devices parameters                          868 |SCSI devices parameters                                          |
869 +-------------------------------+-------------    869 +-------------------------------+------------------+--------------+
870 |  * Synchronous transfer speed |        Y        870 |  * Synchronous transfer speed |        Y         |       Y      |
871 +-------------------------------+-------------    871 +-------------------------------+------------------+--------------+
872 |  * Wide 16 / Narrow           |        Y        872 |  * Wide 16 / Narrow           |        Y         |       Y      |
873 +-------------------------------+-------------    873 +-------------------------------+------------------+--------------+
874 |  * Tagged Command Queuing     |        Y        874 |  * Tagged Command Queuing     |        Y         |       Y      |
875 |    enabled                    |                 875 |    enabled                    |                  |              |
876 +-------------------------------+-------------    876 +-------------------------------+------------------+--------------+
877 |  * Disconnections enabled     |        Y        877 |  * Disconnections enabled     |        Y         |       Y      |
878 +-------------------------------+-------------    878 +-------------------------------+------------------+--------------+
879 |  * Scan at boot time          |        N        879 |  * Scan at boot time          |        N         |       Y      |
880 +-------------------------------+-------------    880 +-------------------------------+------------------+--------------+
881                                                   881 
882                                                   882 
883 In order to speed up the system boot, for each    883 In order to speed up the system boot, for each device configured without
884 the "scan at boot time" option, the driver for    884 the "scan at boot time" option, the driver forces an error on the
885 first TEST UNIT READY command received for thi    885 first TEST UNIT READY command received for this device.
886                                                   886 
887                                                   887 
888 17.2 Symbios NVRAM layout                         888 17.2 Symbios NVRAM layout
889 -------------------------                         889 -------------------------
890                                                   890 
891 typical data at NVRAM address 0x100 (53c810a N    891 typical data at NVRAM address 0x100 (53c810a NVRAM)::
892                                                   892 
893     00 00                                         893     00 00
894     64 01                                         894     64 01
895     8e 0b                                         895     8e 0b
896                                                   896 
897     00 30 00 00 00 00 07 00 00 00 00 00 00 00     897     00 30 00 00 00 00 07 00 00 00 00 00 00 00 07 04 10 04 00 00
898                                                   898 
899     04 00 0f 00 00 10 00 50 00 00 01 00 00 62     899     04 00 0f 00 00 10 00 50 00 00 01 00 00 62
900     04 00 03 00 00 10 00 58 00 00 01 00 00 63     900     04 00 03 00 00 10 00 58 00 00 01 00 00 63
901     04 00 01 00 00 10 00 48 00 00 01 00 00 61     901     04 00 01 00 00 10 00 48 00 00 01 00 00 61
902     00 00 00 00 00 00 00 00 00 00 00 00 00 00     902     00 00 00 00 00 00 00 00 00 00 00 00 00 00
903                                                   903 
904     0f 00 08 08 64 00 0a 00                       904     0f 00 08 08 64 00 0a 00
905     0f 00 08 08 64 00 0a 00                       905     0f 00 08 08 64 00 0a 00
906     0f 00 08 08 64 00 0a 00                       906     0f 00 08 08 64 00 0a 00
907     0f 00 08 08 64 00 0a 00                       907     0f 00 08 08 64 00 0a 00
908     0f 00 08 08 64 00 0a 00                       908     0f 00 08 08 64 00 0a 00
909     0f 00 08 08 64 00 0a 00                       909     0f 00 08 08 64 00 0a 00
910     0f 00 08 08 64 00 0a 00                       910     0f 00 08 08 64 00 0a 00
911     0f 00 08 08 64 00 0a 00                       911     0f 00 08 08 64 00 0a 00
912                                                   912 
913     0f 00 08 08 64 00 0a 00                       913     0f 00 08 08 64 00 0a 00
914     0f 00 08 08 64 00 0a 00                       914     0f 00 08 08 64 00 0a 00
915     0f 00 08 08 64 00 0a 00                       915     0f 00 08 08 64 00 0a 00
916     0f 00 08 08 64 00 0a 00                       916     0f 00 08 08 64 00 0a 00
917     0f 00 08 08 64 00 0a 00                       917     0f 00 08 08 64 00 0a 00
918     0f 00 08 08 64 00 0a 00                       918     0f 00 08 08 64 00 0a 00
919     0f 00 08 08 64 00 0a 00                       919     0f 00 08 08 64 00 0a 00
920     0f 00 08 08 64 00 0a 00                       920     0f 00 08 08 64 00 0a 00
921                                                   921 
922     00 00 00 00 00 00 00 00                       922     00 00 00 00 00 00 00 00
923     00 00 00 00 00 00 00 00                       923     00 00 00 00 00 00 00 00
924     00 00 00 00 00 00 00 00                       924     00 00 00 00 00 00 00 00
925     00 00 00 00 00 00 00 00                       925     00 00 00 00 00 00 00 00
926     00 00 00 00 00 00 00 00                       926     00 00 00 00 00 00 00 00
927     00 00 00 00 00 00 00 00                       927     00 00 00 00 00 00 00 00
928     00 00 00 00 00 00 00 00                       928     00 00 00 00 00 00 00 00
929     00 00 00 00 00 00 00 00                       929     00 00 00 00 00 00 00 00
930                                                   930 
931     00 00 00 00 00 00 00 00                       931     00 00 00 00 00 00 00 00
932     00 00 00 00 00 00 00 00                       932     00 00 00 00 00 00 00 00
933     00 00 00 00 00 00 00 00                       933     00 00 00 00 00 00 00 00
934     00 00 00 00 00 00 00 00                       934     00 00 00 00 00 00 00 00
935     00 00 00 00 00 00 00 00                       935     00 00 00 00 00 00 00 00
936     00 00 00 00 00 00 00 00                       936     00 00 00 00 00 00 00 00
937     00 00 00 00 00 00 00 00                       937     00 00 00 00 00 00 00 00
938     00 00 00 00 00 00 00 00                       938     00 00 00 00 00 00 00 00
939                                                   939 
940     00 00 00 00 00 00 00 00                       940     00 00 00 00 00 00 00 00
941     00 00 00 00 00 00 00 00                       941     00 00 00 00 00 00 00 00
942     00 00 00 00 00 00 00 00                       942     00 00 00 00 00 00 00 00
943                                                   943 
944     fe fe                                         944     fe fe
945     00 00                                         945     00 00
946     00 00                                         946     00 00
947                                                   947 
948 NVRAM layout details                              948 NVRAM layout details
949                                                   949 
950 ============= =================                   950 ============= =================
951 NVRAM Address                                     951 NVRAM Address
952 ============= =================                   952 ============= =================
953 0x000-0x0ff   not used                            953 0x000-0x0ff   not used
954 0x100-0x26f   initialised data                    954 0x100-0x26f   initialised data
955 0x270-0x7ff   not used                            955 0x270-0x7ff   not used
956 ============= =================                   956 ============= =================
957                                                   957 
958 general layout::                                  958 general layout::
959                                                   959 
960         header  -   6 bytes,                      960         header  -   6 bytes,
961         data    - 356 bytes (checksum is byte     961         data    - 356 bytes (checksum is byte sum of this data)
962         trailer -   6 bytes                       962         trailer -   6 bytes
963                   ---                             963                   ---
964         total     368 bytes                       964         total     368 bytes
965                                                   965 
966 data area layout::                                966 data area layout::
967                                                   967 
968         controller set up  -  20 bytes            968         controller set up  -  20 bytes
969         boot configuration -  56 bytes (4x14 b    969         boot configuration -  56 bytes (4x14 bytes)
970         device set up      - 128 bytes (16x8 b    970         device set up      - 128 bytes (16x8 bytes)
971         unused (spare?)    - 152 bytes (19x8 b    971         unused (spare?)    - 152 bytes (19x8 bytes)
972                              ---                  972                              ---
973         total                356 bytes            973         total                356 bytes
974                                                   974 
975 header::                                          975 header::
976                                                   976 
977     00 00   - ?? start marker                     977     00 00   - ?? start marker
978     64 01   - byte count (lsb/msb excludes hea    978     64 01   - byte count (lsb/msb excludes header/trailer)
979     8e 0b   - checksum (lsb/msb excludes heade    979     8e 0b   - checksum (lsb/msb excludes header/trailer)
980                                                   980 
981 controller set up::                               981 controller set up::
982                                                   982 
983     00 30 00 00 00 00 07 00 00 00 00 00 00 00     983     00 30 00 00 00 00 07 00 00 00 00 00 00 00 07 04 10 04 00 00
984                     |     |           |     |     984                     |     |           |     |
985                     |     |           |      -    985                     |     |           |      -- host ID
986                     |     |           |           986                     |     |           |
987                     |     |            --Remov    987                     |     |            --Removable Media Support
988                     |     |               0x00    988                     |     |               0x00 = none
989                     |     |               0x01    989                     |     |               0x01 = Bootable Device
990                     |     |               0x02    990                     |     |               0x02 = All with Media
991                     |     |                       991                     |     |
992                     |      --flag bits 2          992                     |      --flag bits 2
993                     |        0x00000001= scan     993                     |        0x00000001= scan order hi->low
994                     |            (default 0x00    994                     |            (default 0x00 - scan low->hi)
995                         --flag bits 1             995                         --flag bits 1
996                         0x00000001 scam enable    996                         0x00000001 scam enable
997                         0x00000010 parity enab    997                         0x00000010 parity enable
998                         0x00000100 verbose boo    998                         0x00000100 verbose boot msgs
999                                                   999 
1000 remaining bytes unknown - they do not appear     1000 remaining bytes unknown - they do not appear to change in my
1001 current set up for any of the controllers.       1001 current set up for any of the controllers.
1002                                                  1002 
1003 default set up is identical for 53c810a and 5    1003 default set up is identical for 53c810a and 53c875 NVRAM
1004 (Removable Media added Symbios BIOS version 4    1004 (Removable Media added Symbios BIOS version 4.09)
1005                                                  1005 
1006 boot configuration                               1006 boot configuration
1007                                                  1007 
1008 boot order set by order of the devices in thi    1008 boot order set by order of the devices in this table::
1009                                                  1009 
1010     04 00 0f 00 00 10 00 50 00 00 01 00 00 62    1010     04 00 0f 00 00 10 00 50 00 00 01 00 00 62 -- 1st controller
1011     04 00 03 00 00 10 00 58 00 00 01 00 00 63    1011     04 00 03 00 00 10 00 58 00 00 01 00 00 63    2nd controller
1012     04 00 01 00 00 10 00 48 00 00 01 00 00 61    1012     04 00 01 00 00 10 00 48 00 00 01 00 00 61    3rd controller
1013     00 00 00 00 00 00 00 00 00 00 00 00 00 00    1013     00 00 00 00 00 00 00 00 00 00 00 00 00 00    4th controller
1014         |  |  |  |     |        |     |  |       1014         |  |  |  |     |        |     |  |
1015         |  |  |  |     |        |      ---- P    1015         |  |  |  |     |        |      ---- PCI io port adr
1016         |  |  |  |     |         --0x01 init/    1016         |  |  |  |     |         --0x01 init/scan at boot time
1017         |  |  |  |      --PCI device/function    1017         |  |  |  |      --PCI device/function number (0xdddddfff)
1018         |  |   ----- ?? PCI vendor ID (lsb/ms    1018         |  |   ----- ?? PCI vendor ID (lsb/msb)
1019             ----PCI device ID (lsb/msb)          1019             ----PCI device ID (lsb/msb)
1020                                                  1020 
1021 ?? use of this data is a guess but seems reas    1021 ?? use of this data is a guess but seems reasonable
1022                                                  1022 
1023 remaining bytes unknown - they do not appear     1023 remaining bytes unknown - they do not appear to change in my
1024 current set up                                   1024 current set up
1025                                                  1025 
1026 default set up is identical for 53c810a and 5    1026 default set up is identical for 53c810a and 53c875 NVRAM
1027                                                  1027 
1028 device set up (up to 16 devices - includes co    1028 device set up (up to 16 devices - includes controller)::
1029                                                  1029 
1030     0f 00 08 08 64 00 0a 00 - id 0               1030     0f 00 08 08 64 00 0a 00 - id 0
1031     0f 00 08 08 64 00 0a 00                      1031     0f 00 08 08 64 00 0a 00
1032     0f 00 08 08 64 00 0a 00                      1032     0f 00 08 08 64 00 0a 00
1033     0f 00 08 08 64 00 0a 00                      1033     0f 00 08 08 64 00 0a 00
1034     0f 00 08 08 64 00 0a 00                      1034     0f 00 08 08 64 00 0a 00
1035     0f 00 08 08 64 00 0a 00                      1035     0f 00 08 08 64 00 0a 00
1036     0f 00 08 08 64 00 0a 00                      1036     0f 00 08 08 64 00 0a 00
1037     0f 00 08 08 64 00 0a 00                      1037     0f 00 08 08 64 00 0a 00
1038                                                  1038 
1039     0f 00 08 08 64 00 0a 00                      1039     0f 00 08 08 64 00 0a 00
1040     0f 00 08 08 64 00 0a 00                      1040     0f 00 08 08 64 00 0a 00
1041     0f 00 08 08 64 00 0a 00                      1041     0f 00 08 08 64 00 0a 00
1042     0f 00 08 08 64 00 0a 00                      1042     0f 00 08 08 64 00 0a 00
1043     0f 00 08 08 64 00 0a 00                      1043     0f 00 08 08 64 00 0a 00
1044     0f 00 08 08 64 00 0a 00                      1044     0f 00 08 08 64 00 0a 00
1045     0f 00 08 08 64 00 0a 00                      1045     0f 00 08 08 64 00 0a 00
1046     0f 00 08 08 64 00 0a 00 - id 15              1046     0f 00 08 08 64 00 0a 00 - id 15
1047     |     |  |  |     |  |                       1047     |     |  |  |     |  |
1048     |     |  |  |      ----timeout (lsb/msb)     1048     |     |  |  |      ----timeout (lsb/msb)
1049     |     |  |   --synch period (0x?? 40 Mtra    1049     |     |  |   --synch period (0x?? 40 Mtrans/sec- fast 40) (probably 0x28)
1050     |     |  |                  (0x30 20 Mtra    1050     |     |  |                  (0x30 20 Mtrans/sec- fast 20)
1051     |     |  |                  (0x64 10 Mtra    1051     |     |  |                  (0x64 10 Mtrans/sec- fast )
1052     |     |  |                  (0xc8  5 Mtra    1052     |     |  |                  (0xc8  5 Mtrans/sec)
1053     |     |  |                  (0x00  asynch    1053     |     |  |                  (0x00  asynchronous)
1054     |     |   -- ?? max sync offset (0x08 in     1054     |     |   -- ?? max sync offset (0x08 in NVRAM on 53c810a)
1055     |     |                         (0x10 in     1055     |     |                         (0x10 in NVRAM on 53c875)
1056     |      --device bus width (0x08 narrow)      1056     |      --device bus width (0x08 narrow)
1057     |                         (0x10 16 bit wi    1057     |                         (0x10 16 bit wide)
1058     --flag bits                                  1058     --flag bits
1059         0x00000001 - disconnect enabled          1059         0x00000001 - disconnect enabled
1060         0x00000010 - scan at boot time           1060         0x00000010 - scan at boot time
1061         0x00000100 - scan luns                   1061         0x00000100 - scan luns
1062         0x00001000 - queue tags enabled          1062         0x00001000 - queue tags enabled
1063                                                  1063 
1064 remaining bytes unknown - they do not appear     1064 remaining bytes unknown - they do not appear to change in my
1065 current set up                                   1065 current set up
1066                                                  1066 
1067 ?? use of this data is a guess but seems reas    1067 ?? use of this data is a guess but seems reasonable
1068 (but it could be max bus width)                  1068 (but it could be max bus width)
1069                                                  1069 
1070 default set up for 53c810a NVRAM                 1070 default set up for 53c810a NVRAM
1071 default set up for 53c875 NVRAM                  1071 default set up for 53c875 NVRAM
1072                                                  1072 
1073                                 - bus width      1073                                 - bus width     - 0x10
1074                                 - sync offset    1074                                 - sync offset ? - 0x10
1075                                 - sync period    1075                                 - sync period   - 0x30
1076                                                  1076 
1077 ?? spare device space (32 bit bus ??)::          1077 ?? spare device space (32 bit bus ??)::
1078                                                  1078 
1079     00 00 00 00 00 00 00 00  (19x8bytes)         1079     00 00 00 00 00 00 00 00  (19x8bytes)
1080     .                                            1080     .
1081     .                                            1081     .
1082     00 00 00 00 00 00 00 00                      1082     00 00 00 00 00 00 00 00
1083                                                  1083 
1084 default set up is identical for 53c810a and 5    1084 default set up is identical for 53c810a and 53c875 NVRAM
1085                                                  1085 
1086 trailer::                                        1086 trailer::
1087                                                  1087 
1088     fe fe   - ? end marker ?                     1088     fe fe   - ? end marker ?
1089     00 00                                        1089     00 00
1090     00 00                                        1090     00 00
1091                                                  1091 
1092 default set up is identical for 53c810a and 5    1092 default set up is identical for 53c810a and 53c875 NVRAM
1093                                                  1093 
1094 17.3 Tekram NVRAM layout                         1094 17.3 Tekram NVRAM layout
1095 ------------------------                         1095 ------------------------
1096                                                  1096 
1097 nvram 64x16 (1024 bit)                           1097 nvram 64x16 (1024 bit)
1098                                                  1098 
1099 Drive settings::                                 1099 Drive settings::
1100                                                  1100 
1101     Drive ID 0-15 (addr 0x0yyyy0 = device set    1101     Drive ID 0-15 (addr 0x0yyyy0 = device setup, yyyy = ID)
1102                 (addr 0x0yyyy1 = 0x0000)         1102                 (addr 0x0yyyy1 = 0x0000)
1103                                                  1103 
1104         x x x x  x x x x  x x x x  x x x x       1104         x x x x  x x x x  x x x x  x x x x
1105                 | | |      | |  | | | |          1105                 | | |      | |  | | | |
1106                 | | |      | |  | | |  -----     1106                 | | |      | |  | | |  ----- parity check   0 - off
1107                 | | |      | |  | | |            1107                 | | |      | |  | | |                       1 - on
1108                 | | |      | |  | | |            1108                 | | |      | |  | | |
1109                 | | |      | |  | |  -------     1109                 | | |      | |  | |  ------- sync neg       0 - off
1110                 | | |      | |  | |              1110                 | | |      | |  | |                         1 - on
1111                 | | |      | |  | |              1111                 | | |      | |  | |
1112                 | | |      | |  |  ---------     1112                 | | |      | |  |  --------- disconnect     0 - off
1113                 | | |      | |  |                1113                 | | |      | |  |                           1 - on
1114                 | | |      | |  |                1114                 | | |      | |  |
1115                 | | |      | |   -----------     1115                 | | |      | |   ----------- start cmd      0 - off
1116                 | | |      | |                   1116                 | | |      | |                              1 - on
1117                 | | |      | |                   1117                 | | |      | |
1118                 | | |      |  --------------     1118                 | | |      |  -------------- tagged cmds    0 - off
1119                 | | |      |                     1119                 | | |      |                                1 - on
1120                 | | |      |                     1120                 | | |      |
1121                 | | |       ----------------     1121                 | | |       ---------------- wide neg       0 - off
1122                 | | |                            1122                 | | |                                       1 - on
1123                 | | |                            1123                 | | |
1124                     -------------------------    1124                     --------------------------- sync rate      0 - 10.0 Mtrans/sec
1125                                                  1125                                                             1 -  8.0
1126                                                  1126                                                             2 -  6.6
1127                                                  1127                                                             3 -  5.7
1128                                                  1128                                                             4 -  5.0
1129                                                  1129                                                             5 -  4.0
1130                                                  1130                                                             6 -  3.0
1131                                                  1131                                                             7 -  2.0
1132                                                  1132                                                             7 -  2.0
1133                                                  1133                                                             8 - 20.0
1134                                                  1134                                                             9 - 16.7
1135                                                  1135                                                             a - 13.9
1136                                                  1136                                                             b - 11.9
1137                                                  1137 
1138 Global settings                                  1138 Global settings
1139                                                  1139 
1140 Host flags 0 (addr 0x100000, 32)::               1140 Host flags 0 (addr 0x100000, 32)::
1141                                                  1141 
1142     x x x x  x x x x  x x x x  x x x x           1142     x x x x  x x x x  x x x x  x x x x
1143     | | | |  | | | |           | | | |           1143     | | | |  | | | |           | | | |
1144     | | | |  | | | |            ----------- h    1144     | | | |  | | | |            ----------- host ID    0x00 - 0x0f
1145     | | | |  | | | |                             1145     | | | |  | | | |
1146     | | | |  | | |  ----------------------- s    1146     | | | |  | | |  ----------------------- support for    0 - off
1147     | | | |  | | |                          >    1147     | | | |  | | |                          > 2 drives     1 - on
1148     | | | |  | | |                               1148     | | | |  | | |
1149     | | | |  | |  ------------------------- s    1149     | | | |  | |  ------------------------- support drives 0 - off
1150     | | | |  | |                            >    1150     | | | |  | |                            > 1Gbytes      1 - on
1151     | | | |  | |                                 1151     | | | |  | |
1152     | | | |  |  --------------------------- b    1152     | | | |  |  --------------------------- bus reset on   0 - off
1153     | | | |  |                                   1153     | | | |  |                                power on     1 - on
1154     | | | |  |                                   1154     | | | |  |
1155     | | | |   ----------------------------- a    1155     | | | |   ----------------------------- active neg     0 - off
1156     | | | |                                      1156     | | | |                                                1 - on
1157     | | | |                                      1157     | | | |
1158     | | |  -------------------------------- i    1158     | | |  -------------------------------- imm seek       0 - off
1159     | | |                                        1159     | | |                                                  1 - on
1160     | | |                                        1160     | | |
1161     | |  ---------------------------------- s    1161     | |  ---------------------------------- scan luns      0 - off
1162     | |                                          1162     | |                                                    1 - on
1163     | |                                          1163     | |
1164      -------------------------------------- r    1164      -------------------------------------- removable      0 - disable
1165                                             a    1165                                             as BIOS dev    1 - boot device
1166                                                  1166                                                            2 - all
1167                                                  1167 
1168 Host flags 1 (addr 0x100001, 33)::               1168 Host flags 1 (addr 0x100001, 33)::
1169                                                  1169 
1170     x x x x  x x x x  x x x x  x x x x           1170     x x x x  x x x x  x x x x  x x x x
1171                | | |             | | |           1171                | | |             | | |
1172                | | |              --------- b    1172                | | |              --------- boot delay     0 -   3 sec
1173                | | |                             1173                | | |                                       1 -   5
1174                | | |                             1174                | | |                                       2 -  10
1175                | | |                             1175                | | |                                       3 -  20
1176                | | |                             1176                | | |                                       4 -  30
1177                | | |                             1177                | | |                                       5 -  60
1178                | | |                             1178                | | |                                       6 - 120
1179                | | |                             1179                | | |
1180                 --------------------------- m    1180                 --------------------------- max tag cmds   0 -  2
1181                                                  1181                                                            1 -  4
1182                                                  1182                                                            2 -  8
1183                                                  1183                                                            3 - 16
1184                                                  1184                                                            4 - 32
1185                                                  1185 
1186 Host flags 2 (addr 0x100010, 34)::               1186 Host flags 2 (addr 0x100010, 34)::
1187                                                  1187 
1188     x x x x  x x x x  x x x x  x x x x           1188     x x x x  x x x x  x x x x  x x x x
1189                                      |           1189                                      |
1190                                       ----- F    1190                                       ----- F2/F6 enable   0 - off ???
1191                                                  1191                                                            1 - on  ???
1192                                                  1192 
1193 checksum (addr 0x111111)                         1193 checksum (addr 0x111111)
1194                                                  1194 
1195 checksum = 0x1234 - (sum addr 0-63)              1195 checksum = 0x1234 - (sum addr 0-63)
1196                                                  1196 
1197 ---------------------------------------------    1197 ----------------------------------------------------------------------------
1198                                                  1198 
1199 default nvram data::                             1199 default nvram data::
1200                                                  1200 
1201     0x0037 0x0000 0x0037 0x0000 0x0037 0x0000    1201     0x0037 0x0000 0x0037 0x0000 0x0037 0x0000 0x0037 0x0000
1202     0x0037 0x0000 0x0037 0x0000 0x0037 0x0000    1202     0x0037 0x0000 0x0037 0x0000 0x0037 0x0000 0x0037 0x0000
1203     0x0037 0x0000 0x0037 0x0000 0x0037 0x0000    1203     0x0037 0x0000 0x0037 0x0000 0x0037 0x0000 0x0037 0x0000
1204     0x0037 0x0000 0x0037 0x0000 0x0037 0x0000    1204     0x0037 0x0000 0x0037 0x0000 0x0037 0x0000 0x0037 0x0000
1205                                                  1205 
1206     0x0f07 0x0400 0x0001 0x0000 0x0000 0x0000    1206     0x0f07 0x0400 0x0001 0x0000 0x0000 0x0000 0x0000 0x0000
1207     0x0000 0x0000 0x0000 0x0000 0x0000 0x0000    1207     0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
1208     0x0000 0x0000 0x0000 0x0000 0x0000 0x0000    1208     0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
1209     0x0000 0x0000 0x0000 0x0000 0x0000 0x0000    1209     0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0xfbbc
                                                      

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php