1 .. SPDX-License-Identifier: GPL-2.0 1 .. SPDX-License-Identifier: GPL-2.0 2 2 3 =========================== !! 3 ================================================= 4 NCR53C8XX/SYM53C8XX drivers !! 4 The Linux NCR53C8XX/SYM53C8XX drivers README 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 29 May 1999 13 29 May 1999 14 14 15 .. Contents: 15 .. Contents: 16 16 17 1. Introduction 17 1. Introduction 18 2. Supported chips and SCSI features 18 2. Supported chips and SCSI features 19 3. Advantages of the enhanced 896 driver 19 3. Advantages of the enhanced 896 driver 20 3.1 Optimized SCSI SCRIPTS 20 3.1 Optimized SCSI SCRIPTS 21 3.2 New features of the SYM53C896 (64 21 3.2 New features of the SYM53C896 (64 bit PCI dual LVD SCSI controller) 22 4. Memory mapped I/O versus normal I/O 22 4. Memory mapped I/O versus normal I/O 23 5. Tagged command queueing 23 5. Tagged command queueing 24 6. Parity checking 24 6. Parity checking 25 7. Profiling information 25 7. Profiling information 26 8. Control commands 26 8. Control commands 27 8.1 Set minimum synchronous period 27 8.1 Set minimum synchronous period 28 8.2 Set wide size 28 8.2 Set wide size 29 8.3 Set maximum number of concurrent 29 8.3 Set maximum number of concurrent tagged commands 30 8.4 Set order type for tagged comman 30 8.4 Set order type for tagged command 31 8.5 Set debug mode 31 8.5 Set debug mode 32 8.6 Clear profile counters 32 8.6 Clear profile counters 33 8.7 Set flag (no_disc) 33 8.7 Set flag (no_disc) 34 8.8 Set verbose level 34 8.8 Set verbose level 35 8.9 Reset all logical units of a tar 35 8.9 Reset all logical units of a target 36 8.10 Abort all tasks of all logical u 36 8.10 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 Master parity checking 41 10.2.1 Master parity checking 42 10.2.2 Scsi parity checking 42 10.2.2 Scsi parity checking 43 10.2.3 Scsi disconnections 43 10.2.3 Scsi disconnections 44 10.2.4 Special features 44 10.2.4 Special features 45 10.2.5 Ultra SCSI support 45 10.2.5 Ultra SCSI support 46 10.2.6 Default number of tagg 46 10.2.6 Default number of tagged commands 47 10.2.7 Default synchronous pe 47 10.2.7 Default synchronous period factor 48 10.2.8 Negotiate synchronous 48 10.2.8 Negotiate synchronous with all devices 49 10.2.9 Verbosity level 49 10.2.9 Verbosity level 50 10.2.10 Debug mode 50 10.2.10 Debug mode 51 10.2.11 Burst max 51 10.2.11 Burst max 52 10.2.12 LED support 52 10.2.12 LED support 53 10.2.13 Max wide 53 10.2.13 Max wide 54 10.2.14 Differential mode 54 10.2.14 Differential mode 55 10.2.15 IRQ mode 55 10.2.15 IRQ mode 56 10.2.16 Reverse probe 56 10.2.16 Reverse probe 57 10.2.17 Fix up PCI configurati 57 10.2.17 Fix up PCI configuration space 58 10.2.18 Serial NVRAM 58 10.2.18 Serial NVRAM 59 10.2.19 Check SCSI BUS 59 10.2.19 Check SCSI BUS 60 10.2.20 Exclude a host from be 60 10.2.20 Exclude a host from being attached 61 10.2.21 Suggest a default SCSI 61 10.2.21 Suggest a default SCSI id for hosts 62 10.2.22 Enable use of IMMEDIAT 62 10.2.22 Enable use of IMMEDIATE ARBITRATION 63 10.3 Advised boot setup commands 63 10.3 Advised boot setup commands 64 10.4 PCI configuration fix-up boot op 64 10.4 PCI configuration fix-up boot option 65 10.5 Serial NVRAM support boot option 65 10.5 Serial NVRAM support boot option 66 10.6 SCSI BUS checking boot option 66 10.6 SCSI BUS checking boot option 67 10.7 IMMEDIATE ARBITRATION boot optio 67 10.7 IMMEDIATE ARBITRATION boot option 68 11. Some constants and flags of the ncr53c8 68 11. Some constants and flags of the ncr53c8xx.h header file 69 12. Installation 69 12. Installation 70 13. Architecture dependent features 70 13. Architecture dependent features 71 14. Known problems 71 14. Known problems 72 14.1 Tagged commands with Iomega Jaz 72 14.1 Tagged commands with Iomega Jaz device 73 14.2 Device names change when another 73 14.2 Device names change when another controller is added 74 14.3 Using only 8 bit devices with a 74 14.3 Using only 8 bit devices with a WIDE SCSI controller. 75 14.4 Possible data corruption during 75 14.4 Possible data corruption during a Memory Write and Invalidate 76 14.5 IRQ sharing problems 76 14.5 IRQ sharing problems 77 15. SCSI problem troubleshooting 77 15. SCSI problem troubleshooting 78 15.1 Problem tracking 78 15.1 Problem tracking 79 15.2 Understanding hardware error rep 79 15.2 Understanding hardware error reports 80 16. Synchronous transfer negotiation tables 80 16. Synchronous transfer negotiation tables 81 16.1 Synchronous timings for 53C875 a 81 16.1 Synchronous timings for 53C875 and 53C860 Ultra-SCSI controllers 82 16.2 Synchronous timings for fast SCS 82 16.2 Synchronous timings for fast SCSI-2 53C8XX controllers 83 17. Serial NVRAM support (by Richard Waltha 83 17. Serial NVRAM support (by Richard Waltham) 84 17.1 Features 84 17.1 Features 85 17.2 Symbios NVRAM layout 85 17.2 Symbios NVRAM layout 86 17.3 Tekram NVRAM layout 86 17.3 Tekram NVRAM layout 87 18. Support for Big Endian 87 18. Support for Big Endian 88 18.1 Big Endian CPU 88 18.1 Big Endian CPU 89 18.2 NCR chip in Big Endian mode of o 89 18.2 NCR chip in Big Endian mode of operations 90 90 91 1. Introduction 91 1. Introduction 92 =============== 92 =============== 93 93 94 The initial Linux ncr53c8xx driver has been a 94 The initial Linux ncr53c8xx driver has been a port of the ncr driver from 95 FreeBSD that has been achieved in November 199 95 FreeBSD that has been achieved in November 1995 by: 96 96 97 - Gerard Roudier <groudier 97 - Gerard Roudier <groudier@free.fr> 98 98 99 The original driver has been written for 386bs 99 The original driver has been written for 386bsd and FreeBSD by: 100 100 101 - Wolfgang Stanglmeier <wolf@col 101 - Wolfgang Stanglmeier <wolf@cologne.de> 102 - Stefan Esser <se@mi.Un 102 - Stefan Esser <se@mi.Uni-Koeln.de> 103 103 104 It is now available as a bundle of 2 drivers: 104 It is now available as a bundle of 2 drivers: 105 105 106 - ncr53c8xx generic driver that supports all t 106 - ncr53c8xx generic driver that supports all the SYM53C8XX family including 107 the earliest 810 rev. 1, the latest 896 (2 c 107 the earliest 810 rev. 1, the latest 896 (2 channel LVD SCSI controller) and 108 the new 895A (1 channel LVD SCSI controller) 108 the new 895A (1 channel LVD SCSI controller). 109 - sym53c8xx enhanced driver (a.k.a. 896 driver 109 - sym53c8xx enhanced driver (a.k.a. 896 drivers) that drops support of oldest 110 chips in order to gain advantage of new feat 110 chips in order to gain advantage of new features, as LOAD/STORE instructions 111 available since the 810A and hardware phase 111 available since the 810A and hardware phase mismatch available with the 112 896 and the 895A. 112 896 and the 895A. 113 113 114 You can find technical information about the N 114 You can find technical information about the NCR 8xx family in the 115 PCI-HOWTO written by Michael Will and in the S 115 PCI-HOWTO written by Michael Will and in the SCSI-HOWTO written by 116 Drew Eckhardt. 116 Drew Eckhardt. 117 117 118 Information about new chips is available at LS 118 Information about new chips is available at LSILOGIC web server: 119 119 120 - http://www.lsilogic.com/ 120 - http://www.lsilogic.com/ 121 121 122 SCSI standard documentations are available at 122 SCSI standard documentations are available at SYMBIOS ftp server: 123 123 124 - ftp://ftp.symbios.com/ 124 - ftp://ftp.symbios.com/ 125 125 126 Useful SCSI tools written by Eric Youngdale ar 126 Useful SCSI tools written by Eric Youngdale are available at tsx-11: 127 127 128 - ftp://tsx-11.mit.edu/pub/linux/ALP 128 - ftp://tsx-11.mit.edu/pub/linux/ALPHA/scsi/scsiinfo-X.Y.tar.gz 129 - ftp://tsx-11.mit.edu/pub/linux/ALP 129 - ftp://tsx-11.mit.edu/pub/linux/ALPHA/scsi/scsidev-X.Y.tar.gz 130 130 131 These tools are not ALPHA but quite clean and 131 These tools are not ALPHA but quite clean and work quite well. 132 It is essential you have the 'scsiinfo' packag 132 It is essential you have the 'scsiinfo' package. 133 133 134 This short documentation describes the feature 134 This short documentation describes the features of the generic and enhanced 135 drivers, configuration parameters and control 135 drivers, configuration parameters and control commands available through 136 the proc SCSI file system read / write operati 136 the proc SCSI file system read / write operations. 137 137 138 This driver has been tested OK with linux/i386 138 This driver has been tested OK with linux/i386, Linux/Alpha and Linux/PPC. 139 139 140 Latest driver version and patches are availabl 140 Latest driver version and patches are available at: 141 141 142 - ftp://ftp.tux.org/pub/people/gerar 142 - ftp://ftp.tux.org/pub/people/gerard-roudier 143 143 144 or 144 or 145 145 146 - ftp://ftp.symbios.com/mirror/ftp.t 146 - ftp://ftp.symbios.com/mirror/ftp.tux.org/pub/tux/roudier/drivers 147 147 148 I am not a native speaker of English and there 148 I am not a native speaker of English and there are probably lots of 149 mistakes in this README file. Any help will be 149 mistakes in this README file. Any help will be welcome. 150 150 151 151 152 2. Supported chips and SCSI features 152 2. Supported chips and SCSI features 153 ==================================== 153 ==================================== 154 154 155 The following features are supported for all c 155 The following features are supported for all chips: 156 156 157 - Synchronous negotiation 157 - Synchronous negotiation 158 - Disconnection 158 - Disconnection 159 - Tagged command queuing 159 - Tagged command queuing 160 - SCSI parity checking 160 - SCSI parity checking 161 - Master parity checking 161 - Master parity checking 162 162 163 "Wide negotiation" is supported for chips that 163 "Wide negotiation" is supported for chips that allow it. The 164 following table shows some characteristics of 164 following table shows some characteristics of NCR 8xx family chips 165 and what drivers support them. 165 and what drivers support them. 166 166 167 +--------+-----------+-----+-----------+------ 167 +--------+-----------+-----+-----------+------------+------------+------------+ 168 | | | | | 168 | | | | | |Supported by|Supported by| 169 | |On board | | | 169 | |On board | | | |the generic |the enhanced| 170 |Chip |SDMS BIOS |Wide |SCSI std. | Max. 170 |Chip |SDMS BIOS |Wide |SCSI std. | Max. sync |driver |driver | 171 +--------+-----------+-----+-----------+------ 171 +--------+-----------+-----+-----------+------------+------------+------------+ 172 |810 | N | N | FAST10 | 10 MB 172 |810 | N | N | FAST10 | 10 MB/s | Y | N | 173 +--------+-----------+-----+-----------+------ 173 +--------+-----------+-----+-----------+------------+------------+------------+ 174 |810A | N | N | FAST10 | 10 MB 174 |810A | N | N | FAST10 | 10 MB/s | Y | Y | 175 +--------+-----------+-----+-----------+------ 175 +--------+-----------+-----+-----------+------------+------------+------------+ 176 |815 | Y | N | FAST10 | 10 MB 176 |815 | Y | N | FAST10 | 10 MB/s | Y | N | 177 +--------+-----------+-----+-----------+------ 177 +--------+-----------+-----+-----------+------------+------------+------------+ 178 |825 | Y | Y | FAST10 | 20 MB 178 |825 | Y | Y | FAST10 | 20 MB/s | Y | N | 179 +--------+-----------+-----+-----------+------ 179 +--------+-----------+-----+-----------+------------+------------+------------+ 180 |825A | Y | Y | FAST10 | 20 MB 180 |825A | Y | Y | FAST10 | 20 MB/s | Y | Y | 181 +--------+-----------+-----+-----------+------ 181 +--------+-----------+-----+-----------+------------+------------+------------+ 182 |860 | N | N | FAST20 | 20 MB 182 |860 | N | N | FAST20 | 20 MB/s | Y | Y | 183 +--------+-----------+-----+-----------+------ 183 +--------+-----------+-----+-----------+------------+------------+------------+ 184 |875 | Y | Y | FAST20 | 40 MB 184 |875 | Y | Y | FAST20 | 40 MB/s | Y | Y | 185 +--------+-----------+-----+-----------+------ 185 +--------+-----------+-----+-----------+------------+------------+------------+ 186 |876 | Y | Y | FAST20 | 40 MB 186 |876 | Y | Y | FAST20 | 40 MB/s | Y | Y | 187 +--------+-----------+-----+-----------+------ 187 +--------+-----------+-----+-----------+------------+------------+------------+ 188 |895 | Y | Y | FAST40 | 80 MB 188 |895 | Y | Y | FAST40 | 80 MB/s | Y | Y | 189 +--------+-----------+-----+-----------+------ 189 +--------+-----------+-----+-----------+------------+------------+------------+ 190 |895A | Y | Y | FAST40 | 80 MB 190 |895A | Y | Y | FAST40 | 80 MB/s | Y | Y | 191 +--------+-----------+-----+-----------+------ 191 +--------+-----------+-----+-----------+------------+------------+------------+ 192 |896 | Y | Y | FAST40 | 80 MB 192 |896 | Y | Y | FAST40 | 80 MB/s | Y | Y | 193 +--------+-----------+-----+-----------+------ 193 +--------+-----------+-----+-----------+------------+------------+------------+ 194 |897 | Y | Y | FAST40 | 80 MB 194 |897 | Y | Y | FAST40 | 80 MB/s | Y | Y | 195 +--------+-----------+-----+-----------+------ 195 +--------+-----------+-----+-----------+------------+------------+------------+ 196 |1510D | Y | Y | FAST40 | 80 MB 196 |1510D | Y | Y | FAST40 | 80 MB/s | Y | Y | 197 +--------+-----------+-----+-----------+------ 197 +--------+-----------+-----+-----------+------------+------------+------------+ 198 |1010 | Y | Y | FAST80 |160 MB 198 |1010 | Y | Y | FAST80 |160 MB/s | N | Y | 199 +--------+-----------+-----+-----------+------ 199 +--------+-----------+-----+-----------+------------+------------+------------+ 200 |1010_66 | Y | Y | FAST80 |160 MB 200 |1010_66 | Y | Y | FAST80 |160 MB/s | N | Y | 201 |[1]_ | | | | 201 |[1]_ | | | | | | | 202 +--------+-----------+-----+-----------+------ 202 +--------+-----------+-----+-----------+------------+------------+------------+ 203 203 204 .. [1] Chip supports 33MHz and 66MHz PCI buses 204 .. [1] Chip supports 33MHz and 66MHz PCI buses. 205 205 206 206 207 Summary of other supported features: 207 Summary of other supported features: 208 208 209 :Module: allow to load the driv 209 :Module: allow to load the driver 210 :Memory mapped I/O: increases performance 210 :Memory mapped I/O: increases performance 211 :Profiling information: read operations from t 211 :Profiling information: read operations from the proc SCSI file system 212 :Control commands: write operations to th 212 :Control commands: write operations to the proc SCSI file system 213 :Debugging information: written to syslog (exp 213 :Debugging information: written to syslog (expert only) 214 :Serial NVRAM: Symbios and Tekram for 214 :Serial NVRAM: Symbios and Tekram formats 215 215 216 - Scatter / gather 216 - Scatter / gather 217 - Shared interrupt 217 - Shared interrupt 218 - Boot setup commands 218 - Boot setup commands 219 219 220 220 221 3. Advantages of the enhanced 896 driver 221 3. Advantages of the enhanced 896 driver 222 ======================================== 222 ======================================== 223 223 224 3.1 Optimized SCSI SCRIPTS 224 3.1 Optimized SCSI SCRIPTS 225 -------------------------- 225 -------------------------- 226 226 227 The 810A, 825A, 875, 895, 896 and 895A support 227 The 810A, 825A, 875, 895, 896 and 895A support new SCSI SCRIPTS instructions 228 named LOAD and STORE that allow to move up to 228 named LOAD and STORE that allow to move up to 1 DWORD from/to an IO register 229 to/from memory much faster that the MOVE MEMOR 229 to/from memory much faster that the MOVE MEMORY instruction that is supported 230 by the 53c7xx and 53c8xx family. 230 by the 53c7xx and 53c8xx family. 231 The LOAD/STORE instructions support absolute a 231 The LOAD/STORE instructions support absolute and DSA relative addressing 232 modes. The SCSI SCRIPTS had been entirely rew 232 modes. The SCSI SCRIPTS had been entirely rewritten using LOAD/STORE instead 233 of MOVE MEMORY instructions. 233 of MOVE MEMORY instructions. 234 234 235 3.2 New features of the SYM53C896 (64 bit PCI 235 3.2 New features of the SYM53C896 (64 bit PCI dual LVD SCSI controller) 236 ---------------------------------------------- 236 ----------------------------------------------------------------------- 237 237 238 The 896 and the 895A allows handling of the ph 238 The 896 and the 895A allows handling of the phase mismatch context from 239 SCRIPTS (avoids the phase mismatch interrupt t 239 SCRIPTS (avoids the phase mismatch interrupt that stops the SCSI processor 240 until the C code has saved the context of the 240 until the C code has saved the context of the transfer). 241 Implementing this without using LOAD/STORE ins 241 Implementing this without using LOAD/STORE instructions would be painful 242 and I didn't even want to try it. 242 and I didn't even want to try it. 243 243 244 The 896 chip supports 64 bit PCI transactions 244 The 896 chip supports 64 bit PCI transactions and addressing, while the 245 895A supports 32 bit PCI transactions and 64 b 245 895A supports 32 bit PCI transactions and 64 bit addressing. 246 The SCRIPTS processor of these chips is not tr 246 The SCRIPTS processor of these chips is not true 64 bit, but uses segment 247 registers for bit 32-63. Another interesting f 247 registers for bit 32-63. Another interesting feature is that LOAD/STORE 248 instructions that address the on-chip RAM (8k) 248 instructions that address the on-chip RAM (8k) remain internal to the chip. 249 249 250 Due to the use of LOAD/STORE SCRIPTS instructi 250 Due to the use of LOAD/STORE SCRIPTS instructions, this driver does not 251 support the following chips: 251 support the following chips: 252 252 253 - SYM53C810 revision < 0x10 (16) 253 - SYM53C810 revision < 0x10 (16) 254 - SYM53C815 all revisions 254 - SYM53C815 all revisions 255 - SYM53C825 revision < 0x10 (16) 255 - SYM53C825 revision < 0x10 (16) 256 256 257 4. Memory mapped I/O versus normal I/O 257 4. Memory mapped I/O versus normal I/O 258 ====================================== 258 ====================================== 259 259 260 Memory mapped I/O has less latency than normal 260 Memory mapped I/O has less latency than normal I/O. Since 261 linux-1.3.x, memory mapped I/O is used rather 261 linux-1.3.x, memory mapped I/O is used rather than normal I/O. Memory 262 mapped I/O seems to work fine on most hardware 262 mapped I/O seems to work fine on most hardware configurations, but 263 some poorly designed motherboards may break th 263 some poorly designed motherboards may break this feature. 264 264 265 The configuration option CONFIG_SCSI_NCR53C8XX 265 The configuration option CONFIG_SCSI_NCR53C8XX_IOMAPPED forces the 266 driver to use normal I/O in all cases. 266 driver to use normal I/O in all cases. 267 267 268 268 269 5. Tagged command queueing 269 5. Tagged command queueing 270 ========================== 270 ========================== 271 271 272 Queuing more than 1 command at a time to a dev 272 Queuing more than 1 command at a time to a device allows it to perform 273 optimizations based on actual head positions a 273 optimizations based on actual head positions and its mechanical 274 characteristics. This feature may also reduce 274 characteristics. This feature may also reduce average command latency. 275 In order to really gain advantage of this feat 275 In order to really gain advantage of this feature, devices must have 276 a reasonable cache size (No miracle is to be e 276 a reasonable cache size (No miracle is to be expected for a low-end 277 hard disk with 128 KB or less). 277 hard disk with 128 KB or less). 278 Some known SCSI devices do not properly suppor 278 Some known SCSI devices do not properly support tagged command queuing. 279 Generally, firmware revisions that fix this ki 279 Generally, firmware revisions that fix this kind of problems are available 280 at respective vendor web/ftp sites. 280 at respective vendor web/ftp sites. 281 All I can say is that the hard disks I use on 281 All I can say is that the hard disks I use on my machines behave well with 282 this driver with tagged command queuing enable 282 this driver with tagged command queuing enabled: 283 283 284 - IBM S12 0662 284 - IBM S12 0662 285 - Conner 1080S 285 - Conner 1080S 286 - Quantum Atlas I 286 - Quantum Atlas I 287 - Quantum Atlas II 287 - Quantum Atlas II 288 288 289 If your controller has NVRAM, you can configur 289 If your controller has NVRAM, you can configure this feature per target 290 from the user setup tool. The Tekram Setup pro 290 from the user setup tool. The Tekram Setup program allows to tune the 291 maximum number of queued commands up to 32. Th 291 maximum number of queued commands up to 32. The Symbios Setup only allows 292 to enable or disable this feature. 292 to enable or disable this feature. 293 293 294 The maximum number of simultaneous tagged comm 294 The maximum number of simultaneous tagged commands queued to a device 295 is currently set to 8 by default. This value 295 is currently set to 8 by default. This value is suitable for most SCSI 296 disks. With large SCSI disks (>= 2GB, cache > 296 disks. With large SCSI disks (>= 2GB, cache >= 512KB, average seek time 297 <= 10 ms), using a larger value may give bette 297 <= 10 ms), using a larger value may give better performances. 298 298 299 The sym53c8xx driver supports up to 255 comman 299 The sym53c8xx driver supports up to 255 commands per device, and the 300 generic ncr53c8xx driver supports up to 64, bu 300 generic ncr53c8xx driver supports up to 64, but using more than 32 is 301 generally not worth-while, unless you are usin 301 generally not worth-while, unless you are using a very large disk or disk 302 array. It is noticeable that most of recent ha 302 array. It is noticeable that most of recent hard disks seem not to accept 303 more than 64 simultaneous commands. So, using 303 more than 64 simultaneous commands. So, using more than 64 queued commands 304 is probably just resource wasting. 304 is probably just resource wasting. 305 305 306 If your controller does not have NVRAM or if i 306 If your controller does not have NVRAM or if it is managed by the SDMS 307 BIOS/SETUP, you can configure tagged queueing 307 BIOS/SETUP, you can configure tagged queueing feature and device queue 308 depths from the boot command-line. For example 308 depths from the boot command-line. For example:: 309 309 310 ncr53c8xx=tags:4/t2t3q15-t4q7/t1u0q32 310 ncr53c8xx=tags:4/t2t3q15-t4q7/t1u0q32 311 311 312 will set tagged commands queue depths as follo 312 will set tagged commands queue depths as follow: 313 313 314 - target 2 all luns on controller 0 --> 15 314 - target 2 all luns on controller 0 --> 15 315 - target 3 all luns on controller 0 --> 15 315 - target 3 all luns on controller 0 --> 15 316 - target 4 all luns on controller 0 --> 7 316 - target 4 all luns on controller 0 --> 7 317 - target 1 lun 0 on controller 1 --> 32 317 - target 1 lun 0 on controller 1 --> 32 318 - all other target/lun --> 4 318 - all other target/lun --> 4 319 319 320 In some special conditions, some SCSI disk fir 320 In some special conditions, some SCSI disk firmwares may return a 321 QUEUE FULL status for a SCSI command. This beh 321 QUEUE FULL status for a SCSI command. This behaviour is managed by the 322 driver using the following heuristic: 322 driver using the following heuristic: 323 323 324 - Each time a QUEUE FULL status is returned, t 324 - Each time a QUEUE FULL status is returned, tagged queue depth is reduced 325 to the actual number of disconnected command 325 to the actual number of disconnected commands. 326 326 327 - Every 1000 successfully completed SCSI comma 327 - Every 1000 successfully completed SCSI commands, if allowed by the 328 current limit, the maximum number of queueab 328 current limit, the maximum number of queueable commands is incremented. 329 329 330 Since QUEUE FULL status reception and handling 330 Since QUEUE FULL status reception and handling is resource wasting, the 331 driver notifies by default this problem to use 331 driver notifies by default this problem to user by indicating the actual 332 number of commands used and their status, as w 332 number of commands used and their status, as well as its decision on the 333 device queue depth change. 333 device queue depth change. 334 The heuristic used by the driver in handling Q 334 The heuristic used by the driver in handling QUEUE FULL ensures that the 335 impact on performances is not too bad. You can 335 impact on performances is not too bad. You can get rid of the messages by 336 setting verbose level to zero, as follow: 336 setting verbose level to zero, as follow: 337 337 338 1st method: 338 1st method: 339 boot your system using 'ncr53c8xx= 339 boot your system using 'ncr53c8xx=verb:0' option. 340 340 341 2nd method: 341 2nd method: 342 apply "setverbose 0" control comma 342 apply "setverbose 0" control command to the proc fs entry 343 corresponding to your controller a 343 corresponding to your controller after boot-up. 344 344 345 6. Parity checking 345 6. Parity checking 346 ================== 346 ================== 347 347 348 The driver supports SCSI parity checking and P 348 The driver supports SCSI parity checking and PCI bus master parity 349 checking. These features must be enabled in o 349 checking. These features must be enabled in order to ensure safe data 350 transfers. However, some flawed devices or mo 350 transfers. However, some flawed devices or mother boards will have 351 problems with parity. You can disable either P 351 problems with parity. You can disable either PCI parity or SCSI parity 352 checking by entering appropriate options from 352 checking by entering appropriate options from the boot command line. 353 (See 10: Boot setup commands). 353 (See 10: Boot setup commands). 354 354 355 7. Profiling information 355 7. Profiling information 356 ======================== 356 ======================== 357 357 358 Profiling information is available through the 358 Profiling information is available through the proc SCSI file system. 359 Since gathering profiling information may impa 359 Since gathering profiling information may impact performances, this 360 feature is disabled by default and requires a 360 feature is disabled by default and requires a compilation configuration 361 option to be set to Y. 361 option to be set to Y. 362 362 363 The device associated with a host has the foll 363 The device associated with a host has the following pathname:: 364 364 365 /proc/scsi/ncr53c8xx/N (N=0,1,2 365 /proc/scsi/ncr53c8xx/N (N=0,1,2 ....) 366 366 367 Generally, only 1 board is used on hardware co 367 Generally, only 1 board is used on hardware configuration, and that device is:: 368 368 369 /proc/scsi/ncr53c8xx/0 369 /proc/scsi/ncr53c8xx/0 370 370 371 However, if the driver has been made as module 371 However, if the driver has been made as module, the number of the 372 hosts is incremented each time the driver is l 372 hosts is incremented each time the driver is loaded. 373 373 374 In order to display profiling information, jus 374 In order to display profiling information, just enter:: 375 375 376 cat /proc/scsi/ncr53c8xx/0 376 cat /proc/scsi/ncr53c8xx/0 377 377 378 and you will get something like the following 378 and you will get something like the following text:: 379 379 380 General information: 380 General information: 381 Chip NCR53C810, device id 0x1, revision id 381 Chip NCR53C810, device id 0x1, revision id 0x2 382 IO port address 0x6000, IRQ number 10 382 IO port address 0x6000, IRQ number 10 383 Using memory mapped IO at virtual address 383 Using memory mapped IO at virtual address 0x282c000 384 Synchronous transfer period 25, max comman 384 Synchronous transfer period 25, max commands per lun 4 385 Profiling information: 385 Profiling information: 386 num_trans = 18014 386 num_trans = 18014 387 num_kbytes = 671314 387 num_kbytes = 671314 388 num_disc = 25763 388 num_disc = 25763 389 num_break = 1673 389 num_break = 1673 390 num_int = 1685 390 num_int = 1685 391 num_fly = 18038 391 num_fly = 18038 392 ms_setup = 4940 392 ms_setup = 4940 393 ms_data = 369940 393 ms_data = 369940 394 ms_disc = 183090 394 ms_disc = 183090 395 ms_post = 1320 395 ms_post = 1320 396 396 397 General information is easy to understand. The 397 General information is easy to understand. The device ID and the 398 revision ID identify the SCSI chip as follows: 398 revision ID identify the SCSI chip as follows: 399 399 400 ======= ============= =========== 400 ======= ============= =========== 401 Chip Device id Revision Id 401 Chip Device id Revision Id 402 ======= ============= =========== 402 ======= ============= =========== 403 810 0x1 < 0x10 403 810 0x1 < 0x10 404 810A 0x1 >= 0x10 404 810A 0x1 >= 0x10 405 815 0x4 405 815 0x4 406 825 0x3 < 0x10 406 825 0x3 < 0x10 407 860 0x6 407 860 0x6 408 825A 0x3 >= 0x10 408 825A 0x3 >= 0x10 409 875 0xf 409 875 0xf 410 895 0xc 410 895 0xc 411 ======= ============= =========== 411 ======= ============= =========== 412 412 413 The profiling information is updated upon comp 413 The profiling information is updated upon completion of SCSI commands. 414 A data structure is allocated and zeroed when 414 A data structure is allocated and zeroed when the host adapter is 415 attached. So, if the driver is a module, the p 415 attached. So, if the driver is a module, the profile counters are 416 cleared each time the driver is loaded. The " 416 cleared each time the driver is loaded. The "clearprof" command 417 allows you to clear these counters at any time 417 allows you to clear these counters at any time. 418 418 419 The following counters are available: 419 The following counters are available: 420 420 421 ("num" prefix means "number of", 421 ("num" prefix means "number of", 422 "ms" means milli-seconds) 422 "ms" means milli-seconds) 423 423 424 num_trans 424 num_trans 425 Number of completed commands 425 Number of completed commands 426 Example above: 18014 completed command 426 Example above: 18014 completed commands 427 427 428 num_kbytes 428 num_kbytes 429 Number of kbytes transferred 429 Number of kbytes transferred 430 Example above: 671 MB transferred 430 Example above: 671 MB transferred 431 431 432 num_disc 432 num_disc 433 Number of SCSI disconnections 433 Number of SCSI disconnections 434 Example above: 25763 SCSI disconnectio 434 Example above: 25763 SCSI disconnections 435 435 436 num_break 436 num_break 437 number of script interruptions (phase 437 number of script interruptions (phase mismatch) 438 Example above: 1673 script interruptio 438 Example above: 1673 script interruptions 439 439 440 num_int 440 num_int 441 Number of interrupts other than "on th 441 Number of interrupts other than "on the fly" 442 Example above: 1685 interruptions not 442 Example above: 1685 interruptions not "on the fly" 443 443 444 num_fly 444 num_fly 445 Number of interrupts "on the fly" 445 Number of interrupts "on the fly" 446 Example above: 18038 interruptions "on 446 Example above: 18038 interruptions "on the fly" 447 447 448 ms_setup 448 ms_setup 449 Elapsed time for SCSI commands setups 449 Elapsed time for SCSI commands setups 450 Example above: 4.94 seconds 450 Example above: 4.94 seconds 451 451 452 ms_data 452 ms_data 453 Elapsed time for data transfers 453 Elapsed time for data transfers 454 Example above: 369.94 seconds spent fo 454 Example above: 369.94 seconds spent for data transfer 455 455 456 ms_disc 456 ms_disc 457 Elapsed time for SCSI disconnections 457 Elapsed time for SCSI disconnections 458 Example above: 183.09 seconds spent di 458 Example above: 183.09 seconds spent disconnected 459 459 460 ms_post 460 ms_post 461 Elapsed time for command post processi 461 Elapsed time for command post processing 462 (time from SCSI status get to command 462 (time from SCSI status get to command completion call) 463 Example above: 1.32 seconds spent for 463 Example above: 1.32 seconds spent for post processing 464 464 465 Due to the 1/100 second tick of the system clo 465 Due to the 1/100 second tick of the system clock, "ms_post" time may 466 be wrong. 466 be wrong. 467 467 468 In the example above, we got 18038 interrupts 468 In the example above, we got 18038 interrupts "on the fly" and only 469 1673 script breaks generally due to disconnect 469 1673 script breaks generally due to disconnections inside a segment 470 of the scatter list. 470 of the scatter list. 471 471 472 472 473 8. Control commands 473 8. Control commands 474 =================== 474 =================== 475 475 476 Control commands can be sent to the driver wit 476 Control commands can be sent to the driver with write operations to 477 the proc SCSI file system. The generic command 477 the proc SCSI file system. The generic command syntax is the 478 following:: 478 following:: 479 479 480 echo "<verb> <parameters>" >/proc/scsi/n 480 echo "<verb> <parameters>" >/proc/scsi/ncr53c8xx/0 481 (assumes controller number is 0) 481 (assumes controller number is 0) 482 482 483 Using "all" for "<target>" parameter with the 483 Using "all" for "<target>" parameter with the commands below will 484 apply to all targets of the SCSI chain (except 484 apply to all targets of the SCSI chain (except the controller). 485 485 486 Available commands: 486 Available commands: 487 487 488 8.1 Set minimum synchronous period factor 488 8.1 Set minimum synchronous period factor 489 ----------------------------------------- 489 ----------------------------------------- 490 490 491 setsync <target> <period factor> 491 setsync <target> <period factor> 492 492 493 :target: target number 493 :target: target number 494 :period: minimum synchronous period. 494 :period: minimum synchronous period. 495 Maximum speed = 1000/(4*period 495 Maximum speed = 1000/(4*period factor) except for special 496 cases below. 496 cases below. 497 497 498 Specify a period of 255, to force asynchro 498 Specify a period of 255, to force asynchronous transfer mode. 499 499 500 - 10 means 25 nano-seconds synchronous p 500 - 10 means 25 nano-seconds synchronous period 501 - 11 means 30 nano-seconds synchronous p 501 - 11 means 30 nano-seconds synchronous period 502 - 12 means 50 nano-seconds synchronous p 502 - 12 means 50 nano-seconds synchronous period 503 503 504 8.2 Set wide size 504 8.2 Set wide size 505 ----------------- 505 ----------------- 506 506 507 setwide <target> <size> 507 setwide <target> <size> 508 508 509 :target: target number 509 :target: target number 510 :size: 0=8 bits, 1=16bits 510 :size: 0=8 bits, 1=16bits 511 511 512 8.3 Set maximum number of concurrent tagged co 512 8.3 Set maximum number of concurrent tagged commands 513 ---------------------------------------------- 513 ---------------------------------------------------- 514 514 515 settags <target> <tags> 515 settags <target> <tags> 516 516 517 :target: target number 517 :target: target number 518 :tags: number of concurrent tagged com 518 :tags: number of concurrent tagged commands 519 must not be greater than SCSI_N 519 must not be greater than SCSI_NCR_MAX_TAGS (default: 8) 520 520 521 8.4 Set order type for tagged command 521 8.4 Set order type for tagged command 522 ------------------------------------- 522 ------------------------------------- 523 523 524 setorder <order> 524 setorder <order> 525 525 526 :order: 3 possible values: 526 :order: 3 possible values: 527 527 528 simple: 528 simple: 529 use SIMPLE TAG for all 529 use SIMPLE TAG for all operations (read and write) 530 530 531 ordered: 531 ordered: 532 use ORDERED TAG for al 532 use ORDERED TAG for all operations 533 533 534 default: 534 default: 535 use default tag type, 535 use default tag type, 536 SIMPLE TAG for read 536 SIMPLE TAG for read operations 537 ORDERED TAG for write 537 ORDERED TAG for write operations 538 538 539 539 540 8.5 Set debug mode 540 8.5 Set debug mode 541 ------------------ 541 ------------------ 542 542 543 setdebug <list of debug flags> 543 setdebug <list of debug flags> 544 544 545 Available debug flags: 545 Available debug flags: 546 546 547 ======== ============================= 547 ======== ======================================================== 548 alloc print info about memory alloc 548 alloc print info about memory allocations (ccb, lcb) 549 queue print info about insertions i 549 queue print info about insertions into the command start queue 550 result print sense data on CHECK CON 550 result print sense data on CHECK CONDITION status 551 scatter print info about the scatter 551 scatter print info about the scatter process 552 scripts print info about the script b 552 scripts print info about the script binding process 553 tiny print minimal debugging infor 553 tiny print minimal debugging information 554 timing print timing information of t 554 timing print timing information of the NCR chip 555 nego print information about SCSI 555 nego print information about SCSI negotiations 556 phase print information on script i 556 phase print information on script interruptions 557 ======== ============================= 557 ======== ======================================================== 558 558 559 Use "setdebug" with no argument to reset d 559 Use "setdebug" with no argument to reset debug flags. 560 560 561 561 562 8.6 Clear profile counters 562 8.6 Clear profile counters 563 -------------------------- 563 -------------------------- 564 564 565 clearprof 565 clearprof 566 566 567 The profile counters are automatically cle 567 The profile counters are automatically cleared when the amount of 568 data transferred reaches 1000 GB in order 568 data transferred reaches 1000 GB in order to avoid overflow. 569 The "clearprof" command allows you to clea 569 The "clearprof" command allows you to clear these counters at any time. 570 570 571 571 572 8.7 Set flag (no_disc) 572 8.7 Set flag (no_disc) 573 ---------------------- 573 ---------------------- 574 574 575 setflag <target> <flag> 575 setflag <target> <flag> 576 576 577 target: target number 577 target: target number 578 578 579 For the moment, only one flag is available 579 For the moment, only one flag is available: 580 580 581 no_disc: not allow target to disconn 581 no_disc: not allow target to disconnect. 582 582 583 Do not specify any flag in order to reset 583 Do not specify any flag in order to reset the flag. For example: 584 584 585 setflag 4 585 setflag 4 586 will reset no_disc flag for target 4, so 586 will reset no_disc flag for target 4, so will allow it disconnections. 587 587 588 setflag all 588 setflag all 589 will allow disconnection for all devices 589 will allow disconnection for all devices on the SCSI bus. 590 590 591 591 592 8.8 Set verbose level 592 8.8 Set verbose level 593 --------------------- 593 --------------------- 594 594 595 setverbose #level 595 setverbose #level 596 596 597 The driver default verbose level is 1. Thi 597 The driver default verbose level is 1. This command allows to change 598 th driver verbose level after boot-up. 598 th driver verbose level after boot-up. 599 599 600 8.9 Reset all logical units of a target 600 8.9 Reset all logical units of a target 601 --------------------------------------- 601 --------------------------------------- 602 602 603 resetdev <target> 603 resetdev <target> 604 604 605 :target: target number 605 :target: target number 606 606 607 The driver will try to send a BUS DEVICE R 607 The driver will try to send a BUS DEVICE RESET message to the target. 608 (Only supported by the SYM53C8XX driver an 608 (Only supported by the SYM53C8XX driver and provided for test purpose) 609 609 610 8.10 Abort all tasks of all logical units of a 610 8.10 Abort all tasks of all logical units of a target 611 ---------------------------------------------- 611 ----------------------------------------------------- 612 612 613 cleardev <target> 613 cleardev <target> 614 614 615 :target: target number 615 :target: target number 616 616 617 The driver will try to send a ABORT messag 617 The driver will try to send a ABORT message to all the logical units 618 of the target. 618 of the target. 619 619 620 (Only supported by the SYM53C8XX driver an 620 (Only supported by the SYM53C8XX driver and provided for test purpose) 621 621 622 622 623 9. Configuration parameters 623 9. Configuration parameters 624 =========================== 624 =========================== 625 625 626 If the firmware of all your devices is perfect 626 If the firmware of all your devices is perfect enough, all the 627 features supported by the driver can be enable 627 features supported by the driver can be enabled at start-up. However, 628 if only one has a flaw for some SCSI feature, 628 if only one has a flaw for some SCSI feature, you can disable the 629 support by the driver of this feature at linux 629 support by the driver of this feature at linux start-up and enable 630 this feature after boot-up only for devices th 630 this feature after boot-up only for devices that support it safely. 631 631 632 CONFIG_SCSI_NCR53C8XX_IOMAPPED (default 632 CONFIG_SCSI_NCR53C8XX_IOMAPPED (default answer: n) 633 Answer "y" if you suspect your mother boar 633 Answer "y" if you suspect your mother board to not allow memory mapped I/O. 634 634 635 May slow down performance a little. This 635 May slow down performance a little. This option is required by 636 Linux/PPC and is used no matter what you s 636 Linux/PPC and is used no matter what you select here. Linux/PPC 637 suffers no performance loss with this opti 637 suffers no performance loss with this option since all IO is memory 638 mapped anyway. 638 mapped anyway. 639 639 640 CONFIG_SCSI_NCR53C8XX_DEFAULT_TAGS (default 640 CONFIG_SCSI_NCR53C8XX_DEFAULT_TAGS (default answer: 8) 641 Default tagged command queue depth. 641 Default tagged command queue depth. 642 642 643 CONFIG_SCSI_NCR53C8XX_MAX_TAGS (defaul 643 CONFIG_SCSI_NCR53C8XX_MAX_TAGS (default answer: 8) 644 This option allows you to specify the maxi 644 This option allows you to specify the maximum number of tagged commands 645 that can be queued to a device. The maximu 645 that can be queued to a device. The maximum supported value is 32. 646 646 647 CONFIG_SCSI_NCR53C8XX_SYNC (default 647 CONFIG_SCSI_NCR53C8XX_SYNC (default answer: 5) 648 This option allows you to specify the freq 648 This option allows you to specify the frequency in MHz the driver 649 will use at boot time for synchronous data 649 will use at boot time for synchronous data transfer negotiations. 650 This frequency can be changed later with t 650 This frequency can be changed later with the "setsync" control command. 651 0 means "asynchronous data transfers". 651 0 means "asynchronous data transfers". 652 652 653 CONFIG_SCSI_NCR53C8XX_FORCE_SYNC_NEGO (default 653 CONFIG_SCSI_NCR53C8XX_FORCE_SYNC_NEGO (default answer: n) 654 Force synchronous negotiation for all SCSI 654 Force synchronous negotiation for all SCSI-2 devices. 655 655 656 Some SCSI-2 devices do not report this fea 656 Some SCSI-2 devices do not report this feature in byte 7 of inquiry 657 response but do support it properly (TAMAR 657 response but do support it properly (TAMARACK scanners for example). 658 658 659 CONFIG_SCSI_NCR53C8XX_NO_DISCONNECT (default 659 CONFIG_SCSI_NCR53C8XX_NO_DISCONNECT (default and only reasonable answer: n) 660 If you suspect a device of yours does not 660 If you suspect a device of yours does not properly support disconnections, 661 you can answer "y". Then, all SCSI devices 661 you can answer "y". Then, all SCSI devices will never disconnect the bus 662 even while performing long SCSI operations 662 even while performing long SCSI operations. 663 663 664 CONFIG_SCSI_NCR53C8XX_SYMBIOS_COMPAT 664 CONFIG_SCSI_NCR53C8XX_SYMBIOS_COMPAT 665 Genuine SYMBIOS boards use GPIO0 in output 665 Genuine SYMBIOS boards use GPIO0 in output for controller LED and GPIO3 666 bit as a flag indicating singled-ended/dif 666 bit as a flag indicating singled-ended/differential interface. 667 If all the boards of your system are genui 667 If all the boards of your system are genuine SYMBIOS boards or use 668 BIOS and drivers from SYMBIOS, you would w 668 BIOS and drivers from SYMBIOS, you would want to enable this option. 669 669 670 This option must NOT be enabled if your sy 670 This option must NOT be enabled if your system has at least one 53C8XX 671 based scsi board with a vendor-specific BI 671 based scsi board with a vendor-specific BIOS. 672 For example, Tekram DC-390/U, DC-390/W and 672 For example, Tekram DC-390/U, DC-390/W and DC-390/F scsi controllers 673 use a vendor-specific BIOS and are known t 673 use a vendor-specific BIOS and are known to not use SYMBIOS compatible 674 GPIO wiring. So, this option must not be e 674 GPIO wiring. So, this option must not be enabled if your system has 675 such a board installed. 675 such a board installed. 676 676 677 CONFIG_SCSI_NCR53C8XX_NVRAM_DETECT 677 CONFIG_SCSI_NCR53C8XX_NVRAM_DETECT 678 Enable support for reading the serial NVRA 678 Enable support for reading the serial NVRAM data on Symbios and 679 some Symbios compatible cards, and Tekram 679 some Symbios compatible cards, and Tekram DC390W/U/F cards. Useful for 680 systems with more than one Symbios compati 680 systems with more than one Symbios compatible controller where at least 681 one has a serial NVRAM, or for a system wi 681 one has a serial NVRAM, or for a system with a mixture of Symbios and 682 Tekram cards. Enables setting the boot ord 682 Tekram cards. Enables setting the boot order of host adaptors 683 to something other than the default order 683 to something other than the default order or "reverse probe" order. 684 Also enables Symbios and Tekram cards to b 684 Also enables Symbios and Tekram cards to be distinguished so 685 CONFIG_SCSI_NCR53C8XX_SYMBIOS_COMPAT may b 685 CONFIG_SCSI_NCR53C8XX_SYMBIOS_COMPAT may be set in a system with a 686 mixture of Symbios and Tekram cards so the 686 mixture of Symbios and Tekram cards so the Symbios cards can make use of 687 the full range of Symbios features, differ 687 the full range of Symbios features, differential, led pin, without 688 causing problems for the Tekram card(s). 688 causing problems for the Tekram card(s). 689 689 690 10. Boot setup commands 690 10. Boot setup commands 691 ======================= 691 ======================= 692 692 693 10.1 Syntax 693 10.1 Syntax 694 ----------- 694 ----------- 695 695 696 Setup commands can be passed to the driver eit 696 Setup commands can be passed to the driver either at boot time or as a 697 string variable using 'insmod'. 697 string variable using 'insmod'. 698 698 699 A boot setup command for the ncr53c8xx (sym53c 699 A boot setup command for the ncr53c8xx (sym53c8xx) driver begins with the 700 driver name "ncr53c8xx="(sym53c8xx). The kerne 700 driver name "ncr53c8xx="(sym53c8xx). The kernel syntax parser then expects 701 an optional list of integers separated with co 701 an optional list of integers separated with comma followed by an optional 702 list of comma-separated strings. Example of bo 702 list of comma-separated strings. Example of boot setup command under lilo 703 prompt:: 703 prompt:: 704 704 705 lilo: linux root=/dev/hda2 ncr53c8xx=tags: 705 lilo: linux root=/dev/hda2 ncr53c8xx=tags:4,sync:10,debug:0x200 706 706 707 - enable tagged commands, up to 4 tagged comma 707 - enable tagged commands, up to 4 tagged commands queued. 708 - set synchronous negotiation speed to 10 Mega 708 - set synchronous negotiation speed to 10 Mega-transfers / second. 709 - set DEBUG_NEGO flag. 709 - set DEBUG_NEGO flag. 710 710 711 Since comma seems not to be allowed when defin 711 Since comma seems not to be allowed when defining a string variable using 712 'insmod', the driver also accepts <space> as o 712 'insmod', the driver also accepts <space> as option separator. 713 The following command will install driver modu 713 The following command will install driver module with the same options as 714 above:: 714 above:: 715 715 716 insmod ncr53c8xx.o ncr53c8xx="tags:4 sync: 716 insmod ncr53c8xx.o ncr53c8xx="tags:4 sync:10 debug:0x200" 717 717 718 For the moment, the integer list of arguments 718 For the moment, the integer list of arguments is discarded by the driver. 719 It will be used in the future in order to allo 719 It will be used in the future in order to allow a per controller setup. 720 720 721 Each string argument must be specified as "key 721 Each string argument must be specified as "keyword:value". Only lower-case 722 characters and digits are allowed. 722 characters and digits are allowed. 723 723 724 In a system that contains multiple 53C8xx adap 724 In a system that contains multiple 53C8xx adapters insmod will install the 725 specified driver on each adapter. To exclude a 725 specified driver on each adapter. To exclude a chip use the 'excl' keyword. 726 726 727 The sequence of commands:: 727 The sequence of commands:: 728 728 729 insmod sym53c8xx sym53c8xx=excl:0x1400 729 insmod sym53c8xx sym53c8xx=excl:0x1400 730 insmod ncr53c8xx 730 insmod ncr53c8xx 731 731 732 installs the sym53c8xx driver on all adapters 732 installs the sym53c8xx driver on all adapters except the one at IO port 733 address 0x1400 and then installs the ncr53c8xx 733 address 0x1400 and then installs the ncr53c8xx driver to the adapter at IO 734 port address 0x1400. 734 port address 0x1400. 735 735 736 736 737 10.2 Available arguments 737 10.2 Available arguments 738 ------------------------ 738 ------------------------ 739 739 740 10.2.1 Master parity checking 740 10.2.1 Master parity checking 741 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 741 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 742 742 743 ====== ======== 743 ====== ======== 744 mpar:y enabled 744 mpar:y enabled 745 mpar:n disabled 745 mpar:n disabled 746 ====== ======== 746 ====== ======== 747 747 748 10.2.2 Scsi parity checking 748 10.2.2 Scsi parity checking 749 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 749 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 750 750 751 ====== ======== 751 ====== ======== 752 spar:y enabled 752 spar:y enabled 753 spar:n disabled 753 spar:n disabled 754 ====== ======== 754 ====== ======== 755 755 756 10.2.3 Scsi disconnections 756 10.2.3 Scsi disconnections 757 ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 757 ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 758 758 759 ====== ======== 759 ====== ======== 760 disc:y enabled 760 disc:y enabled 761 disc:n disabled 761 disc:n disabled 762 ====== ======== 762 ====== ======== 763 763 764 10.2.4 Special features 764 10.2.4 Special features 765 ^^^^^^^^^^^^^^^^^^^^^^^^ 765 ^^^^^^^^^^^^^^^^^^^^^^^^ 766 766 767 Only apply to 810A, 825A, 860, 875 and 895 767 Only apply to 810A, 825A, 860, 875 and 895 controllers. 768 Have no effect with other ones. 768 Have no effect with other ones. 769 769 770 ======= =========================== 770 ======= ================================================= 771 specf:y (or 1) enabled 771 specf:y (or 1) enabled 772 specf:n (or 0) disabled 772 specf:n (or 0) disabled 773 specf:3 enabled except Memor 773 specf:3 enabled except Memory Write And Invalidate 774 ======= =========================== 774 ======= ================================================= 775 775 776 The default driver setup is 'specf:3'. As a 776 The default driver setup is 'specf:3'. As a consequence, option 'specf:y' 777 must be specified in the boot setup command 777 must be specified in the boot setup command to enable Memory Write And 778 Invalidate. 778 Invalidate. 779 779 780 10.2.5 Ultra SCSI support 780 10.2.5 Ultra SCSI support 781 ^^^^^^^^^^^^^^^^^^^^^^^^^^ 781 ^^^^^^^^^^^^^^^^^^^^^^^^^^ 782 782 783 Only apply to 860, 875, 895, 895a, 896, 101 783 Only apply to 860, 875, 895, 895a, 896, 1010 and 1010_66 controllers. 784 Have no effect with other ones. 784 Have no effect with other ones. 785 785 786 ======= ======================== 786 ======= ======================== 787 ultra:n All ultra speeds enabled 787 ultra:n All ultra speeds enabled 788 ultra:2 Ultra2 enabled 788 ultra:2 Ultra2 enabled 789 ultra:1 Ultra enabled 789 ultra:1 Ultra enabled 790 ultra:0 Ultra speeds disabled 790 ultra:0 Ultra speeds disabled 791 ======= ======================== 791 ======= ======================== 792 792 793 10.2.6 Default number of tagged commands 793 10.2.6 Default number of tagged commands 794 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 794 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 795 795 796 ======================= ============== 796 ======================= =============================== 797 tags:0 (or tags:1 ) tagged command 797 tags:0 (or tags:1 ) tagged command queuing disabled 798 tags:#tags (#tags > 1) tagged command 798 tags:#tags (#tags > 1) tagged command queuing enabled 799 ======================= ============== 799 ======================= =============================== 800 800 801 #tags will be truncated to the max queued co 801 #tags will be truncated to the max queued commands configuration parameter. 802 This option also allows to specify a command 802 This option also allows to specify a command queue depth for each device 803 that support tagged command queueing. 803 that support tagged command queueing. 804 804 805 Example:: 805 Example:: 806 806 807 ncr53c8xx=tags:10/t2t3q16-t5q24/t1u2q32 807 ncr53c8xx=tags:10/t2t3q16-t5q24/t1u2q32 808 808 809 will set devices queue depth as follow: 809 will set devices queue depth as follow: 810 810 811 - controller #0 target #2 and target #3 811 - controller #0 target #2 and target #3 -> 16 commands, 812 - controller #0 target #5 812 - controller #0 target #5 -> 24 commands, 813 - controller #1 target #1 logical unit # 813 - controller #1 target #1 logical unit #2 -> 32 commands, 814 - all other logical units (all targets, 814 - all other logical units (all targets, all controllers) -> 10 commands. 815 815 816 10.2.7 Default synchronous period factor 816 10.2.7 Default synchronous period factor 817 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 817 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 818 818 819 ============ ================================= 819 ============ ======================================================== 820 sync:255 disabled (asynchronous transfer m 820 sync:255 disabled (asynchronous transfer mode) 821 sync:#factor 821 sync:#factor 822 ============ ================ 822 ============ ======================================= 823 #factor = 10 Ultra-2 SCSI 40 823 #factor = 10 Ultra-2 SCSI 40 Mega-transfers / second 824 #factor = 11 Ultra-2 SCSI 33 824 #factor = 11 Ultra-2 SCSI 33 Mega-transfers / second 825 #factor < 25 Ultra SCSI 20 825 #factor < 25 Ultra SCSI 20 Mega-transfers / second 826 #factor < 50 Fast SCSI-2 826 #factor < 50 Fast SCSI-2 827 ============ ================ 827 ============ ======================================= 828 ============ ================================= 828 ============ ======================================================== 829 829 830 In all cases, the driver will use the minimu 830 In all cases, the driver will use the minimum transfer period supported by 831 controllers according to NCR53C8XX chip type 831 controllers according to NCR53C8XX chip type. 832 832 833 10.2.8 Negotiate synchronous with all devices 833 10.2.8 Negotiate synchronous with all devices 834 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 834 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 835 (force sync nego) 835 (force sync nego) 836 836 837 ===== ========= 837 ===== ========= 838 fsn:y enabled 838 fsn:y enabled 839 fsn:n disabled 839 fsn:n disabled 840 ===== ========= 840 ===== ========= 841 841 842 10.2.9 Verbosity level 842 10.2.9 Verbosity level 843 ^^^^^^^^^^^^^^^^^^^^^^^ 843 ^^^^^^^^^^^^^^^^^^^^^^^ 844 844 845 ====== ========= 845 ====== ========= 846 verb:0 minimal 846 verb:0 minimal 847 verb:1 normal 847 verb:1 normal 848 verb:2 too much 848 verb:2 too much 849 ====== ========= 849 ====== ========= 850 850 851 10.2.10 Debug mode 851 10.2.10 Debug mode 852 ^^^^^^^^^^^^^^^^^^ 852 ^^^^^^^^^^^^^^^^^^ 853 853 854 ======== =================================== 854 ======== ================================================================== 855 debug:0 clear debug flags 855 debug:0 clear debug flags 856 debug:#x set debug flags 856 debug:#x set debug flags 857 857 858 #x is an integer value combining t 858 #x is an integer value combining the following power-of-2 values: 859 859 860 ============= ====== 860 ============= ====== 861 DEBUG_ALLOC 0x1 861 DEBUG_ALLOC 0x1 862 DEBUG_PHASE 0x2 862 DEBUG_PHASE 0x2 863 DEBUG_POLL 0x4 863 DEBUG_POLL 0x4 864 DEBUG_QUEUE 0x8 864 DEBUG_QUEUE 0x8 865 DEBUG_RESULT 0x10 865 DEBUG_RESULT 0x10 866 DEBUG_SCATTER 0x20 866 DEBUG_SCATTER 0x20 867 DEBUG_SCRIPT 0x40 867 DEBUG_SCRIPT 0x40 868 DEBUG_TINY 0x80 868 DEBUG_TINY 0x80 869 DEBUG_TIMING 0x100 869 DEBUG_TIMING 0x100 870 DEBUG_NEGO 0x200 870 DEBUG_NEGO 0x200 871 DEBUG_TAGS 0x400 871 DEBUG_TAGS 0x400 872 DEBUG_FREEZE 0x800 872 DEBUG_FREEZE 0x800 873 DEBUG_RESTART 0x1000 873 DEBUG_RESTART 0x1000 874 ============= ====== 874 ============= ====== 875 ======== =================================== 875 ======== ================================================================== 876 876 877 You can play safely with DEBUG_NEGO. However 877 You can play safely with DEBUG_NEGO. However, some of these flags may 878 generate bunches of syslog messages. 878 generate bunches of syslog messages. 879 879 880 10.2.11 Burst max 880 10.2.11 Burst max 881 ^^^^^^^^^^^^^^^^^ 881 ^^^^^^^^^^^^^^^^^ 882 882 883 ========= =================================== 883 ========= ================================================================== 884 burst:0 burst disabled 884 burst:0 burst disabled 885 burst:255 get burst length from initial IO re 885 burst:255 get burst length from initial IO register settings. 886 burst:#x burst enabled (1<<#x burst transfer 886 burst:#x burst enabled (1<<#x burst transfers max) 887 887 888 #x is an integer value which is log 888 #x is an integer value which is log base 2 of the burst transfers 889 max. 889 max. 890 890 891 The NCR53C875 and NCR53C825A suppor 891 The NCR53C875 and NCR53C825A support up to 128 burst transfers 892 (#x = 7). 892 (#x = 7). 893 893 894 Other chips only support up to 16 ( 894 Other chips only support up to 16 (#x = 4). 895 895 896 This is a maximum value. The driver 896 This is a maximum value. The driver set the burst length according 897 to chip and revision ids. By defaul 897 to chip and revision ids. By default the driver uses the maximum 898 value supported by the chip. 898 value supported by the chip. 899 ========= =================================== 899 ========= ================================================================== 900 900 901 10.2.12 LED support 901 10.2.12 LED support 902 ^^^^^^^^^^^^^^^^^^^ 902 ^^^^^^^^^^^^^^^^^^^ 903 903 904 ===== =================== 904 ===== =================== 905 led:1 enable LED support 905 led:1 enable LED support 906 led:0 disable LED support 906 led:0 disable LED support 907 ===== =================== 907 ===== =================== 908 908 909 Do not enable LED support if your scsi board 909 Do not enable LED support if your scsi board does not use SDMS BIOS. 910 (See 'Configuration parameters') 910 (See 'Configuration parameters') 911 911 912 10.2.13 Max wide 912 10.2.13 Max wide 913 ^^^^^^^^^^^^^^^^ 913 ^^^^^^^^^^^^^^^^ 914 914 915 ====== =================== 915 ====== =================== 916 wide:1 wide scsi enabled 916 wide:1 wide scsi enabled 917 wide:0 wide scsi disabled 917 wide:0 wide scsi disabled 918 ====== =================== 918 ====== =================== 919 919 920 Some scsi boards use a 875 (ultra wide) and 920 Some scsi boards use a 875 (ultra wide) and only supply narrow connectors. 921 If you have connected a wide device with a 5 921 If you have connected a wide device with a 50 pins to 68 pins cable 922 converter, any accepted wide negotiation wil 922 converter, any accepted wide negotiation will break further data transfers. 923 In such a case, using "wide:0" in the bootup 923 In such a case, using "wide:0" in the bootup command will be helpful. 924 924 925 10.2.14 Differential mode 925 10.2.14 Differential mode 926 ^^^^^^^^^^^^^^^^^^^^^^^^^ 926 ^^^^^^^^^^^^^^^^^^^^^^^^^ 927 927 928 ====== ============================== 928 ====== ================================= 929 diff:0 never set up diff mode 929 diff:0 never set up diff mode 930 diff:1 set up diff mode if BIOS set i 930 diff:1 set up diff mode if BIOS set it 931 diff:2 always set up diff mode 931 diff:2 always set up diff mode 932 diff:3 set diff mode if GPIO3 is not 932 diff:3 set diff mode if GPIO3 is not set 933 ====== ============================== 933 ====== ================================= 934 934 935 10.2.15 IRQ mode 935 10.2.15 IRQ mode 936 ^^^^^^^^^^^^^^^^ 936 ^^^^^^^^^^^^^^^^ 937 937 938 ========= =========================== 938 ========= ======================================================== 939 irqm:0 always open drain 939 irqm:0 always open drain 940 irqm:1 same as initial settings (a 940 irqm:1 same as initial settings (assumed BIOS settings) 941 irqm:2 always totem pole 941 irqm:2 always totem pole 942 irqm:0x10 driver will not use IRQF_SH 942 irqm:0x10 driver will not use IRQF_SHARED flag when requesting irq 943 ========= =========================== 943 ========= ======================================================== 944 944 945 (Bits 0x10 and 0x20 can be combined with h 945 (Bits 0x10 and 0x20 can be combined with hardware irq mode option) 946 946 947 10.2.16 Reverse probe 947 10.2.16 Reverse probe 948 ^^^^^^^^^^^^^^^^^^^^^ 948 ^^^^^^^^^^^^^^^^^^^^^ 949 949 950 ========= ========================== 950 ========= ======================================================== 951 revprob:n probe chip ids from the PC 951 revprob:n probe chip ids from the PCI configuration in this order: 952 810, 815, 820, 860, 875, 8 952 810, 815, 820, 860, 875, 885, 895, 896 953 revprob:y probe chip ids in the reve 953 revprob:y probe chip ids in the reverse order. 954 ========= ========================== 954 ========= ======================================================== 955 955 956 10.2.17 Fix up PCI configuration space 956 10.2.17 Fix up PCI configuration space 957 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 957 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 958 pcifix:<option bits> 958 pcifix:<option bits> 959 959 960 Available option bits: 960 Available option bits: 961 961 962 === =============================== 962 === =============================================================== 963 0x0 No attempt to fix PCI configura 963 0x0 No attempt to fix PCI configuration space registers values. 964 0x1 Set PCI cache-line size registe 964 0x1 Set PCI cache-line size register if not set. 965 0x2 Set write and invalidate bit in 965 0x2 Set write and invalidate bit in PCI command register. 966 0x4 Increase if necessary PCI laten 966 0x4 Increase if necessary PCI latency timer according to burst max. 967 === =============================== 967 === =============================================================== 968 968 969 Use 'pcifix:7' in order to allow the drive 969 Use 'pcifix:7' in order to allow the driver to fix up all PCI features. 970 970 971 10.2.18 Serial NVRAM 971 10.2.18 Serial NVRAM 972 ^^^^^^^^^^^^^^^^^^^^ 972 ^^^^^^^^^^^^^^^^^^^^ 973 973 974 ======= ========================== 974 ======= ========================================= 975 nvram:n do not look for serial NVR 975 nvram:n do not look for serial NVRAM 976 nvram:y test controllers for onboa 976 nvram:y test controllers for onboard serial NVRAM 977 ======= ========================== 977 ======= ========================================= 978 978 979 (alternate binary form) 979 (alternate binary form) 980 mvram=<bits options> 980 mvram=<bits options> 981 981 982 ==== =============================== 982 ==== ================================================================= 983 0x01 look for NVRAM (equivalent to 983 0x01 look for NVRAM (equivalent to nvram=y) 984 0x02 ignore NVRAM "Synchronous negot 984 0x02 ignore NVRAM "Synchronous negotiation" parameters for all devices 985 0x04 ignore NVRAM "Wide negotiation" 985 0x04 ignore NVRAM "Wide negotiation" parameter for all devices 986 0x08 ignore NVRAM "Scan at boot time 986 0x08 ignore NVRAM "Scan at boot time" parameter for all devices 987 0x80 also attach controllers set to 987 0x80 also attach controllers set to OFF in the NVRAM (sym53c8xx only) 988 ==== =============================== 988 ==== ================================================================= 989 989 990 10.2.19 Check SCSI BUS 990 10.2.19 Check SCSI BUS 991 ^^^^^^^^^^^^^^^^^^^^^^ 991 ^^^^^^^^^^^^^^^^^^^^^^ 992 992 993 buschk:<option bits> 993 buschk:<option bits> 994 994 995 Available option bits: 995 Available option bits: 996 996 997 ==== =============================== 997 ==== ================================================ 998 0x0: No check. 998 0x0: No check. 999 0x1: Check and do not attach the con 999 0x1: Check and do not attach the controller on error. 1000 0x2: Check and just warn on error. 1000 0x2: Check and just warn on error. 1001 0x4: Disable SCSI bus integrity che 1001 0x4: Disable SCSI bus integrity checking. 1002 ==== ============================== 1002 ==== ================================================ 1003 1003 1004 10.2.20 Exclude a host from being attached 1004 10.2.20 Exclude a host from being attached 1005 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1005 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1006 1006 1007 excl=<io_address> 1007 excl=<io_address> 1008 1008 1009 Prevent host at a given io address from b 1009 Prevent host at a given io address from being attached. 1010 For example 'ncr53c8xx=excl:0xb400,excl:0 1010 For example 'ncr53c8xx=excl:0xb400,excl:0xc000' indicate to the 1011 ncr53c8xx driver not to attach hosts at a 1011 ncr53c8xx driver not to attach hosts at address 0xb400 and 0xc000. 1012 1012 1013 10.2.21 Suggest a default SCSI id for hosts 1013 10.2.21 Suggest a default SCSI id for hosts 1014 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1014 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1015 1015 1016 ========== ===================== 1016 ========== ========================================== 1017 hostid:255 no id suggested. 1017 hostid:255 no id suggested. 1018 hostid:#x (0 < x < 7) x suggest 1018 hostid:#x (0 < x < 7) x suggested for hosts SCSI id. 1019 ========== ===================== 1019 ========== ========================================== 1020 1020 1021 If a host SCSI id is available from the N 1021 If a host SCSI id is available from the NVRAM, the driver will ignore 1022 any value suggested as boot option. Other 1022 any value suggested as boot option. Otherwise, if a suggested value 1023 different from 255 has been supplied, it 1023 different from 255 has been supplied, it will use it. Otherwise, it will 1024 try to deduce the value previously set in 1024 try to deduce the value previously set in the hardware and use value 1025 7 if the hardware value is zero. 1025 7 if the hardware value is zero. 1026 1026 1027 10.2.22 Enable use of IMMEDIATE ARBITRATION 1027 10.2.22 Enable use of IMMEDIATE ARBITRATION 1028 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1028 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1029 1029 1030 (only supported by the sym53c8xx driv 1030 (only supported by the sym53c8xx driver. See 10.7 for more details) 1031 1031 1032 ======= =================================== 1032 ======= ================================================================= 1033 iarb:0 do not use this feature. 1033 iarb:0 do not use this feature. 1034 iarb:#x use this feature according to bit f 1034 iarb:#x use this feature according to bit fields as follow: 1035 1035 1036 ========= ========================= 1036 ========= ======================================================= 1037 bit 0 (1) enable IARB each time the 1037 bit 0 (1) enable IARB each time the initiator has been reselected 1038 when it arbitrated for th 1038 when it arbitrated for the SCSI BUS. 1039 (#x >> 4) maximum number of success 1039 (#x >> 4) maximum number of successive settings of IARB if the 1040 initiator win arbitration 1040 initiator win arbitration and it has other commands 1041 to send to a device. 1041 to send to a device. 1042 ========= ========================= 1042 ========= ======================================================= 1043 ======= =================================== 1043 ======= ================================================================= 1044 1044 1045 Boot fail safe 1045 Boot fail safe 1046 safe:y load the following assumed fa 1046 safe:y load the following assumed fail safe initial setup 1047 1047 1048 ======================== ============= 1048 ======================== ====================== ========== 1049 master parity disabled 1049 master parity disabled mpar:n 1050 scsi parity enabled 1050 scsi parity enabled spar:y 1051 disconnections not allowed 1051 disconnections not allowed disc:n 1052 special features disabled 1052 special features disabled specf:n 1053 ultra scsi disabled 1053 ultra scsi disabled ultra:n 1054 force sync negotiation disabled 1054 force sync negotiation disabled fsn:n 1055 reverse probe disabled 1055 reverse probe disabled revprob:n 1056 PCI fix up disabled 1056 PCI fix up disabled pcifix:0 1057 serial NVRAM enabled 1057 serial NVRAM enabled nvram:y 1058 verbosity level 2 1058 verbosity level 2 verb:2 1059 tagged command queuing disabled 1059 tagged command queuing disabled tags:0 1060 synchronous negotiation disabled 1060 synchronous negotiation disabled sync:255 1061 debug flags none 1061 debug flags none debug:0 1062 burst length from BIOS set 1062 burst length from BIOS settings burst:255 1063 LED support disabled 1063 LED support disabled led:0 1064 wide support disabled 1064 wide support disabled wide:0 1065 settle time 10 seconds 1065 settle time 10 seconds settle:10 1066 differential support from BIOS set 1066 differential support from BIOS settings diff:1 1067 irq mode from BIOS set 1067 irq mode from BIOS settings irqm:1 1068 SCSI BUS check do not attach 1068 SCSI BUS check do not attach on error buschk:1 1069 immediate arbitration disabled 1069 immediate arbitration disabled iarb:0 1070 ======================== ============= 1070 ======================== ====================== ========== 1071 1071 1072 10.3 Advised boot setup commands 1072 10.3 Advised boot setup commands 1073 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1073 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1074 1074 1075 If the driver has been configured with defaul 1075 If the driver has been configured with default options, the equivalent 1076 boot setup is:: 1076 boot setup is:: 1077 1077 1078 ncr53c8xx=mpar:y,spar:y,disc:y,specf:3,fsn 1078 ncr53c8xx=mpar:y,spar:y,disc:y,specf:3,fsn:n,ultra:2,fsn:n,revprob:n,verb:1\ 1079 tags:0,sync:50,debug:0,burst:7,l 1079 tags:0,sync:50,debug:0,burst:7,led:0,wide:1,settle:2,diff:0,irqm:0 1080 1080 1081 For an installation diskette or a safe but no 1081 For an installation diskette or a safe but not fast system, 1082 boot setup can be:: 1082 boot setup can be:: 1083 1083 1084 ncr53c8xx=safe:y,mpar:y,disc:y 1084 ncr53c8xx=safe:y,mpar:y,disc:y 1085 ncr53c8xx=safe:y,disc:y 1085 ncr53c8xx=safe:y,disc:y 1086 ncr53c8xx=safe:y,mpar:y 1086 ncr53c8xx=safe:y,mpar:y 1087 ncr53c8xx=safe:y 1087 ncr53c8xx=safe:y 1088 1088 1089 My personal system works flawlessly with the 1089 My personal system works flawlessly with the following equivalent setup:: 1090 1090 1091 ncr53c8xx=mpar:y,spar:y,disc:y,specf:1,fsn 1091 ncr53c8xx=mpar:y,spar:y,disc:y,specf:1,fsn:n,ultra:2,fsn:n,revprob:n,verb:1\ 1092 tags:32,sync:12,debug:0,burst:7, 1092 tags:32,sync:12,debug:0,burst:7,led:1,wide:1,settle:2,diff:0,irqm:0 1093 1093 1094 The driver prints its actual setup when verbo 1094 The driver prints its actual setup when verbosity level is 2. You can try 1095 "ncr53c8xx=verb:2" to get the "static" setup 1095 "ncr53c8xx=verb:2" to get the "static" setup of the driver, or add "verb:2" 1096 to your boot setup command in order to check 1096 to your boot setup command in order to check the actual setup the driver is 1097 using. 1097 using. 1098 1098 1099 10.4 PCI configuration fix-up boot option 1099 10.4 PCI configuration fix-up boot option 1100 ----------------------------------------- 1100 ----------------------------------------- 1101 1101 1102 pcifix:<option bits> 1102 pcifix:<option bits> 1103 1103 1104 Available option bits: 1104 Available option bits: 1105 1105 1106 === ================================ 1106 === ===================================================== 1107 0x1 Set PCI cache-line size register 1107 0x1 Set PCI cache-line size register if not set. 1108 0x2 Set write and invalidate bit in 1108 0x2 Set write and invalidate bit in PCI command register. 1109 === ================================ 1109 === ===================================================== 1110 1110 1111 Use 'pcifix:3' in order to allow the driver t 1111 Use 'pcifix:3' in order to allow the driver to fix both PCI features. 1112 1112 1113 These options only apply to new SYMBIOS chips 1113 These options only apply to new SYMBIOS chips 810A, 825A, 860, 875 1114 and 895 and are only supported for Pentium an 1114 and 895 and are only supported for Pentium and 486 class processors. 1115 Recent SYMBIOS 53C8XX scsi processors are abl 1115 Recent SYMBIOS 53C8XX scsi processors are able to use PCI read multiple 1116 and PCI write and invalidate commands. These 1116 and PCI write and invalidate commands. These features require the 1117 cache line size register to be properly set i 1117 cache line size register to be properly set in the PCI configuration 1118 space of the chips. On the other hand, chips 1118 space of the chips. On the other hand, chips will use PCI write and 1119 invalidate commands only if the corresponding 1119 invalidate commands only if the corresponding bit is set to 1 in the 1120 PCI command register. 1120 PCI command register. 1121 1121 1122 Not all PCI bioses set the PCI cache line reg 1122 Not all PCI bioses set the PCI cache line register and the PCI write and 1123 invalidate bit in the PCI configuration space 1123 invalidate bit in the PCI configuration space of 53C8XX chips. 1124 Optimized PCI accesses may be broken for some 1124 Optimized PCI accesses may be broken for some PCI/memory controllers or 1125 make problems with some PCI boards. 1125 make problems with some PCI boards. 1126 1126 1127 This fix-up worked flawlessly on my previous 1127 This fix-up worked flawlessly on my previous system. 1128 (MB Triton HX / 53C875 / 53C810A) 1128 (MB Triton HX / 53C875 / 53C810A) 1129 I use these options at my own risks as you wi 1129 I use these options at my own risks as you will do if you decide to 1130 use them too. 1130 use them too. 1131 1131 1132 1132 1133 10.5 Serial NVRAM support boot option 1133 10.5 Serial NVRAM support boot option 1134 ------------------------------------- 1134 ------------------------------------- 1135 1135 1136 ======= ================================= 1136 ======= ========================================= 1137 nvram:n do not look for serial NVRAM 1137 nvram:n do not look for serial NVRAM 1138 nvram:y test controllers for onboard seri 1138 nvram:y test controllers for onboard serial NVRAM 1139 ======= ================================= 1139 ======= ========================================= 1140 1140 1141 This option can also been entered as an hexad 1141 This option can also been entered as an hexadecimal value that allows 1142 to control what information the driver will g 1142 to control what information the driver will get from the NVRAM and what 1143 information it will ignore. 1143 information it will ignore. 1144 For details see '17. Serial NVRAM support'. 1144 For details see '17. Serial NVRAM support'. 1145 1145 1146 When this option is enabled, the driver tries 1146 When this option is enabled, the driver tries to detect all boards using 1147 a Serial NVRAM. This memory is used to hold u 1147 a Serial NVRAM. This memory is used to hold user set up parameters. 1148 1148 1149 The parameters the driver is able to get from 1149 The parameters the driver is able to get from the NVRAM depend on the 1150 data format used, as follow: 1150 data format used, as follow: 1151 1151 1152 +-------------------------------+------------ 1152 +-------------------------------+------------------+--------------+ 1153 | |Tekram forma 1153 | |Tekram format |Symbios format| 1154 +-------------------------------+------------ 1154 +-------------------------------+------------------+--------------+ 1155 |General and host parameters | 1155 |General and host parameters | | | 1156 +-------------------------------+------------ 1156 +-------------------------------+------------------+--------------+ 1157 | * Boot order | N 1157 | * Boot order | N | Y | 1158 +-------------------------------+------------ 1158 +-------------------------------+------------------+--------------+ 1159 | * Host SCSI ID | Y 1159 | * Host SCSI ID | Y | Y | 1160 +-------------------------------+------------ 1160 +-------------------------------+------------------+--------------+ 1161 | * SCSI parity checking | Y 1161 | * SCSI parity checking | Y | Y | 1162 +-------------------------------+------------ 1162 +-------------------------------+------------------+--------------+ 1163 | * Verbose boot messages | N 1163 | * Verbose boot messages | N | Y | 1164 +-------------------------------+------------ 1164 +-------------------------------+------------------+--------------+ 1165 |SCSI devices parameters 1165 |SCSI devices parameters | 1166 +-------------------------------+------------ 1166 +-------------------------------+------------------+--------------+ 1167 | * Synchronous transfer speed | Y 1167 | * Synchronous transfer speed | Y | Y | 1168 +-------------------------------+------------ 1168 +-------------------------------+------------------+--------------+ 1169 | * Wide 16 / Narrow | Y 1169 | * Wide 16 / Narrow | Y | Y | 1170 +-------------------------------+------------ 1170 +-------------------------------+------------------+--------------+ 1171 | * Tagged Command Queuing | Y 1171 | * Tagged Command Queuing | Y | Y | 1172 | enabled | 1172 | enabled | | | 1173 +-------------------------------+------------ 1173 +-------------------------------+------------------+--------------+ 1174 | * Disconnections enabled | Y 1174 | * Disconnections enabled | Y | Y | 1175 +-------------------------------+------------ 1175 +-------------------------------+------------------+--------------+ 1176 | * Scan at boot time | N 1176 | * Scan at boot time | N | Y | 1177 +-------------------------------+------------ 1177 +-------------------------------+------------------+--------------+ 1178 1178 1179 In order to speed up the system boot, for eac 1179 In order to speed up the system boot, for each device configured without 1180 the "scan at boot time" option, the driver fo 1180 the "scan at boot time" option, the driver forces an error on the 1181 first TEST UNIT READY command received for th 1181 first TEST UNIT READY command received for this device. 1182 1182 1183 Some SDMS BIOS revisions seem to be unable to 1183 Some SDMS BIOS revisions seem to be unable to boot cleanly with very fast 1184 hard disks. In such a situation you cannot co 1184 hard disks. In such a situation you cannot configure the NVRAM with 1185 optimized parameters value. 1185 optimized parameters value. 1186 1186 1187 The 'nvram' boot option can be entered in hex 1187 The 'nvram' boot option can be entered in hexadecimal form in order 1188 to ignore some options configured in the NVRA 1188 to ignore some options configured in the NVRAM, as follow: 1189 1189 1190 mvram=<bits options> 1190 mvram=<bits options> 1191 1191 1192 ==== ================================ 1192 ==== ================================================================= 1193 0x01 look for NVRAM (equivalent to n 1193 0x01 look for NVRAM (equivalent to nvram=y) 1194 0x02 ignore NVRAM "Synchronous negoti 1194 0x02 ignore NVRAM "Synchronous negotiation" parameters for all devices 1195 0x04 ignore NVRAM "Wide negotiation" 1195 0x04 ignore NVRAM "Wide negotiation" parameter for all devices 1196 0x08 ignore NVRAM "Scan at boot time" 1196 0x08 ignore NVRAM "Scan at boot time" parameter for all devices 1197 0x80 also attach controllers set to O 1197 0x80 also attach controllers set to OFF in the NVRAM (sym53c8xx only) 1198 ==== ================================ 1198 ==== ================================================================= 1199 1199 1200 Option 0x80 is only supported by the sym53c8x 1200 Option 0x80 is only supported by the sym53c8xx driver and is disabled by 1201 default. Result is that, by default (option n 1201 default. Result is that, by default (option not set), the sym53c8xx driver 1202 will not attach controllers set to OFF in the 1202 will not attach controllers set to OFF in the NVRAM. 1203 1203 1204 The ncr53c8xx always tries to attach all the 1204 The ncr53c8xx always tries to attach all the controllers. Option 0x80 has 1205 not been added to the ncr53c8xx driver, since 1205 not been added to the ncr53c8xx driver, since it has been reported to 1206 confuse users who use this driver since a lon 1206 confuse users who use this driver since a long time. If you desire a 1207 controller not to be attached by the ncr53c8x 1207 controller not to be attached by the ncr53c8xx driver at Linux boot, you 1208 must use the 'excl' driver boot option. 1208 must use the 'excl' driver boot option. 1209 1209 1210 10.6 SCSI BUS checking boot option. 1210 10.6 SCSI BUS checking boot option. 1211 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1211 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1212 1212 1213 When this option is set to a non-zero value, 1213 When this option is set to a non-zero value, the driver checks SCSI lines 1214 logic state, 100 micro-seconds after having a 1214 logic state, 100 micro-seconds after having asserted the SCSI RESET line. 1215 The driver just reads SCSI lines and checks a 1215 The driver just reads SCSI lines and checks all lines read FALSE except RESET. 1216 Since SCSI devices shall release the BUS at m 1216 Since SCSI devices shall release the BUS at most 800 nano-seconds after SCSI 1217 RESET has been asserted, any signal to TRUE m 1217 RESET has been asserted, any signal to TRUE may indicate a SCSI BUS problem. 1218 Unfortunately, the following common SCSI BUS 1218 Unfortunately, the following common SCSI BUS problems are not detected: 1219 1219 1220 - Only 1 terminator installed. 1220 - Only 1 terminator installed. 1221 - Misplaced terminators. 1221 - Misplaced terminators. 1222 - Bad quality terminators. 1222 - Bad quality terminators. 1223 1223 1224 On the other hand, either bad cabling, broken 1224 On the other hand, either bad cabling, broken devices, not conformant 1225 devices, ... may cause a SCSI signal to be wr 1225 devices, ... may cause a SCSI signal to be wrong when the driver reads it. 1226 1226 1227 10.7 IMMEDIATE ARBITRATION boot option 1227 10.7 IMMEDIATE ARBITRATION boot option 1228 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1228 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1229 1229 1230 This option is only supported by the SYM53C8X 1230 This option is only supported by the SYM53C8XX driver (not by the NCR53C8XX). 1231 1231 1232 SYMBIOS 53C8XX chips are able to arbitrate fo 1232 SYMBIOS 53C8XX chips are able to arbitrate for the SCSI BUS as soon as they 1233 have detected an expected disconnection (BUS 1233 have detected an expected disconnection (BUS FREE PHASE). For this process 1234 to be started, bit 1 of SCNTL1 IO register mu 1234 to be started, bit 1 of SCNTL1 IO register must be set when the chip is 1235 connected to the SCSI BUS. 1235 connected to the SCSI BUS. 1236 1236 1237 When this feature has been enabled for the cu 1237 When this feature has been enabled for the current connection, the chip has 1238 every chance to win arbitration if only devic 1238 every chance to win arbitration if only devices with lower priority are 1239 competing for the SCSI BUS. By the way, when 1239 competing for the SCSI BUS. By the way, when the chip is using SCSI id 7, 1240 then it will for sure win the next SCSI BUS a 1240 then it will for sure win the next SCSI BUS arbitration. 1241 1241 1242 Since, there is no way to know what devices a 1242 Since, there is no way to know what devices are trying to arbitrate for the 1243 BUS, using this feature can be extremely unfa 1243 BUS, using this feature can be extremely unfair. So, you are not advised 1244 to enable it, or at most enable this feature 1244 to enable it, or at most enable this feature for the case the chip lost 1245 the previous arbitration (boot option 'iarb:1 1245 the previous arbitration (boot option 'iarb:1'). 1246 1246 1247 This feature has the following advantages: 1247 This feature has the following advantages: 1248 1248 1249 a) Allow the initiator with ID 7 to win arbit 1249 a) Allow the initiator with ID 7 to win arbitration when it wants so. 1250 b) Overlap at least 4 micro-seconds of arbitr 1250 b) Overlap at least 4 micro-seconds of arbitration time with the execution 1251 of SCRIPTS that deal with the end of the c 1251 of SCRIPTS that deal with the end of the current connection and that 1252 starts the next job. 1252 starts the next job. 1253 1253 1254 Hmmm... But (a) may just prevent other device 1254 Hmmm... But (a) may just prevent other devices from reselecting the initiator, 1255 and delay data transfers or status/completion 1255 and delay data transfers or status/completions, and (b) may just waste 1256 SCSI BUS bandwidth if the SCRIPTS execution l 1256 SCSI BUS bandwidth if the SCRIPTS execution lasts more than 4 micro-seconds. 1257 1257 1258 The use of IARB needs the SCSI_NCR_IARB_SUPPO 1258 The use of IARB needs the SCSI_NCR_IARB_SUPPORT option to have been defined 1259 at compile time and the 'iarb' boot option to 1259 at compile time and the 'iarb' boot option to have been set to a non zero 1260 value at boot time. It is not that useful for 1260 value at boot time. It is not that useful for real work, but can be used 1261 to stress SCSI devices or for some applicatio 1261 to stress SCSI devices or for some applications that can gain advantage of 1262 it. By the way, if you experience badnesses l 1262 it. By the way, if you experience badnesses like 'unexpected disconnections', 1263 'bad reselections', etc... when using IARB on 1263 'bad reselections', etc... when using IARB on heavy IO load, you should not 1264 be surprised, because force-feeding anything 1264 be surprised, because force-feeding anything and blocking its arse at the 1265 same time cannot work for a long time. :-)) 1265 same time cannot work for a long time. :-)) 1266 1266 1267 1267 1268 11. Some constants and flags of the ncr53c8xx 1268 11. Some constants and flags of the ncr53c8xx.h header file 1269 ============================================= 1269 =========================================================== 1270 1270 1271 Some of these are defined from the configurat 1271 Some of these are defined from the configuration parameters. To 1272 change other "defines", you must edit the hea 1272 change other "defines", you must edit the header file. Do that only 1273 if you know what you are doing. 1273 if you know what you are doing. 1274 1274 1275 SCSI_NCR_SETUP_SPECIAL_FEATURES (default: def 1275 SCSI_NCR_SETUP_SPECIAL_FEATURES (default: defined) 1276 If defined, the driver will enable so 1276 If defined, the driver will enable some special features according 1277 to chip and revision id. 1277 to chip and revision id. 1278 1278 1279 For 810A, 860, 825A, 875 and 895 scsi 1279 For 810A, 860, 825A, 875 and 895 scsi chips, this option enables 1280 support of features that reduce load 1280 support of features that reduce load of PCI bus and memory accesses 1281 during scsi transfer processing: bur 1281 during scsi transfer processing: burst op-code fetch, read multiple, 1282 read line, prefetch, cache line, writ 1282 read line, prefetch, cache line, write and invalidate, 1283 burst 128 (875 only), large dma fifo 1283 burst 128 (875 only), large dma fifo (875 only), offset 16 (875 only). 1284 Can be changed by the following boot 1284 Can be changed by the following boot setup command:: 1285 1285 1286 ncr53c8xx=specf:n 1286 ncr53c8xx=specf:n 1287 1287 1288 SCSI_NCR_IOMAPPED (default: not 1288 SCSI_NCR_IOMAPPED (default: not defined) 1289 If defined, normal I/O is forced. 1289 If defined, normal I/O is forced. 1290 1290 1291 SCSI_NCR_SHARE_IRQ (default: def 1291 SCSI_NCR_SHARE_IRQ (default: defined) 1292 If defined, request shared IRQ. 1292 If defined, request shared IRQ. 1293 1293 1294 SCSI_NCR_MAX_TAGS (default: 8) 1294 SCSI_NCR_MAX_TAGS (default: 8) 1295 Maximum number of simultaneous tagged 1295 Maximum number of simultaneous tagged commands to a device. 1296 1296 1297 Can be changed by "settags <target> < 1297 Can be changed by "settags <target> <maxtags>" 1298 1298 1299 SCSI_NCR_SETUP_DEFAULT_SYNC (default: 50) 1299 SCSI_NCR_SETUP_DEFAULT_SYNC (default: 50) 1300 Transfer period factor the driver wil 1300 Transfer period factor the driver will use at boot time for synchronous 1301 negotiation. 0 means asynchronous. 1301 negotiation. 0 means asynchronous. 1302 1302 1303 Can be changed by "setsync <target> < 1303 Can be changed by "setsync <target> <period factor>" 1304 1304 1305 SCSI_NCR_SETUP_DEFAULT_TAGS (default: 8) 1305 SCSI_NCR_SETUP_DEFAULT_TAGS (default: 8) 1306 Default number of simultaneous tagged 1306 Default number of simultaneous tagged commands to a device. 1307 1307 1308 < 1 means tagged command queuing disa 1308 < 1 means tagged command queuing disabled at start-up. 1309 1309 1310 SCSI_NCR_ALWAYS_SIMPLE_TAG (default: def 1310 SCSI_NCR_ALWAYS_SIMPLE_TAG (default: defined) 1311 Use SIMPLE TAG for read and write com 1311 Use SIMPLE TAG for read and write commands. 1312 1312 1313 Can be changed by "setorder <ordered| 1313 Can be changed by "setorder <ordered|simple|default>" 1314 1314 1315 SCSI_NCR_SETUP_DISCONNECTION (default: def 1315 SCSI_NCR_SETUP_DISCONNECTION (default: defined) 1316 If defined, targets are allowed to di 1316 If defined, targets are allowed to disconnect. 1317 1317 1318 SCSI_NCR_SETUP_FORCE_SYNC_NEGO (default: not 1318 SCSI_NCR_SETUP_FORCE_SYNC_NEGO (default: not defined) 1319 If defined, synchronous negotiation i 1319 If defined, synchronous negotiation is tried for all SCSI-2 devices. 1320 1320 1321 Can be changed by "setsync <target> < 1321 Can be changed by "setsync <target> <period>" 1322 1322 1323 SCSI_NCR_SETUP_MASTER_PARITY (default: def 1323 SCSI_NCR_SETUP_MASTER_PARITY (default: defined) 1324 If defined, master parity checking is 1324 If defined, master parity checking is enabled. 1325 1325 1326 SCSI_NCR_SETUP_SCSI_PARITY (default: def 1326 SCSI_NCR_SETUP_SCSI_PARITY (default: defined) 1327 If defined, SCSI parity checking is e 1327 If defined, SCSI parity checking is enabled. 1328 1328 1329 SCSI_NCR_PROFILE_SUPPORT (default: not 1329 SCSI_NCR_PROFILE_SUPPORT (default: not defined) 1330 If defined, profiling information is 1330 If defined, profiling information is gathered. 1331 1331 1332 SCSI_NCR_MAX_SCATTER (default: 128 1332 SCSI_NCR_MAX_SCATTER (default: 128) 1333 Scatter list size of the driver ccb. 1333 Scatter list size of the driver ccb. 1334 1334 1335 SCSI_NCR_MAX_TARGET (default: 16) 1335 SCSI_NCR_MAX_TARGET (default: 16) 1336 Max number of targets per host. 1336 Max number of targets per host. 1337 1337 1338 SCSI_NCR_MAX_HOST (default: 2) 1338 SCSI_NCR_MAX_HOST (default: 2) 1339 Max number of host controllers. 1339 Max number of host controllers. 1340 1340 1341 SCSI_NCR_SETTLE_TIME (default: 2) 1341 SCSI_NCR_SETTLE_TIME (default: 2) 1342 Number of seconds the driver will wai 1342 Number of seconds the driver will wait after reset. 1343 1343 1344 SCSI_NCR_TIMEOUT_ALERT (default: 3) 1344 SCSI_NCR_TIMEOUT_ALERT (default: 3) 1345 If a pending command will time out af 1345 If a pending command will time out after this amount of seconds, 1346 an ordered tag is used for the next c 1346 an ordered tag is used for the next command. 1347 1347 1348 Avoids timeouts for unordered tagged 1348 Avoids timeouts for unordered tagged commands. 1349 1349 1350 SCSI_NCR_CAN_QUEUE (default: 7*S 1350 SCSI_NCR_CAN_QUEUE (default: 7*SCSI_NCR_MAX_TAGS) 1351 Max number of commands that can be qu 1351 Max number of commands that can be queued to a host. 1352 1352 1353 SCSI_NCR_CMD_PER_LUN (default: SCS 1353 SCSI_NCR_CMD_PER_LUN (default: SCSI_NCR_MAX_TAGS) 1354 Max number of commands queued to a ho 1354 Max number of commands queued to a host for a device. 1355 1355 1356 SCSI_NCR_SG_TABLESIZE (default: SCS 1356 SCSI_NCR_SG_TABLESIZE (default: SCSI_NCR_MAX_SCATTER-1) 1357 Max size of the Linux scatter/gather 1357 Max size of the Linux scatter/gather list. 1358 1358 1359 SCSI_NCR_MAX_LUN (default: 8) 1359 SCSI_NCR_MAX_LUN (default: 8) 1360 Max number of LUNs per target. 1360 Max number of LUNs per target. 1361 1361 1362 1362 1363 12. Installation 1363 12. Installation 1364 ================ 1364 ================ 1365 1365 1366 This driver is part of the linux kernel distr 1366 This driver is part of the linux kernel distribution. 1367 Driver files are located in the sub-directory 1367 Driver files are located in the sub-directory "drivers/scsi" of the 1368 kernel source tree. 1368 kernel source tree. 1369 1369 1370 Driver files:: 1370 Driver files:: 1371 1371 1372 README.ncr53c8xx : this file 1372 README.ncr53c8xx : this file 1373 ChangeLog.ncr53c8xx : change log 1373 ChangeLog.ncr53c8xx : change log 1374 ncr53c8xx.h : definitions 1374 ncr53c8xx.h : definitions 1375 ncr53c8xx.c : the driver 1375 ncr53c8xx.c : the driver code 1376 1376 1377 New driver versions are made available separa 1377 New driver versions are made available separately in order to allow testing 1378 changes and new features prior to including t 1378 changes and new features prior to including them into the linux kernel 1379 distribution. The following URL provides info 1379 distribution. The following URL provides information on latest available 1380 patches: 1380 patches: 1381 1381 1382 ftp://ftp.tux.org/pub/people/gerard-rou 1382 ftp://ftp.tux.org/pub/people/gerard-roudier/README 1383 1383 1384 1384 1385 13. Architecture dependent features 1385 13. Architecture dependent features 1386 =================================== 1386 =================================== 1387 1387 1388 <Not yet written> 1388 <Not yet written> 1389 1389 1390 1390 1391 14. Known problems 1391 14. Known problems 1392 ================== 1392 ================== 1393 1393 1394 14.1 Tagged commands with Iomega Jaz device 1394 14.1 Tagged commands with Iomega Jaz device 1395 ------------------------------------------- 1395 ------------------------------------------- 1396 1396 1397 I have not tried this device, however it has 1397 I have not tried this device, however it has been reported to me the 1398 following: This device is capable of Tagged c 1398 following: This device is capable of Tagged command queuing. However 1399 while spinning up, it rejects Tagged commands 1399 while spinning up, it rejects Tagged commands. This behaviour is 1400 conforms to 6.8.2 of SCSI-2 specifications. T 1400 conforms to 6.8.2 of SCSI-2 specifications. The current behaviour of 1401 the driver in that situation is not satisfyin 1401 the driver in that situation is not satisfying. So do not enable 1402 Tagged command queuing for devices that are a 1402 Tagged command queuing for devices that are able to spin down. The 1403 other problem that may appear is timeouts. Th 1403 other problem that may appear is timeouts. The only way to avoid 1404 timeouts seems to edit linux/drivers/scsi/sd. 1404 timeouts seems to edit linux/drivers/scsi/sd.c and to increase the 1405 current timeout values. 1405 current timeout values. 1406 1406 1407 14.2 Device names change when another control 1407 14.2 Device names change when another controller is added 1408 --------------------------------------------- 1408 --------------------------------------------------------- 1409 1409 1410 When you add a new NCR53C8XX chip based contr 1410 When you add a new NCR53C8XX chip based controller to a system that already 1411 has one or more controllers of this family, i 1411 has one or more controllers of this family, it may happen that the order 1412 the driver registers them to the kernel cause 1412 the driver registers them to the kernel causes problems due to device 1413 name changes. 1413 name changes. 1414 When at least one controller uses NvRAM, SDMS 1414 When at least one controller uses NvRAM, SDMS BIOS version 4 allows you to 1415 define the order the BIOS will scan the scsi 1415 define the order the BIOS will scan the scsi boards. The driver attaches 1416 controllers according to BIOS information if 1416 controllers according to BIOS information if NvRAM detect option is set. 1417 1417 1418 If your controllers do not have NvRAM, you ca 1418 If your controllers do not have NvRAM, you can: 1419 1419 1420 - Ask the driver to probe chip ids in reverse 1420 - Ask the driver to probe chip ids in reverse order from the boot command 1421 line: ncr53c8xx=revprob:y 1421 line: ncr53c8xx=revprob:y 1422 - Make appropriate changes in the fstab. 1422 - Make appropriate changes in the fstab. 1423 - Use the 'scsidev' tool from Eric Youngdale. 1423 - Use the 'scsidev' tool from Eric Youngdale. 1424 1424 1425 14.3 Using only 8 bit devices with a WIDE SCS 1425 14.3 Using only 8 bit devices with a WIDE SCSI controller 1426 --------------------------------------------- 1426 --------------------------------------------------------- 1427 1427 1428 When only 8 bit NARROW devices are connected 1428 When only 8 bit NARROW devices are connected to a 16 bit WIDE SCSI controller, 1429 you must ensure that lines of the wide part o 1429 you must ensure that lines of the wide part of the SCSI BUS are pulled-up. 1430 This can be achieved by ENABLING the WIDE TER 1430 This can be achieved by ENABLING the WIDE TERMINATOR portion of the SCSI 1431 controller card. 1431 controller card. 1432 1432 1433 The TYAN 1365 documentation revision 1.2 is n 1433 The TYAN 1365 documentation revision 1.2 is not correct about such settings. 1434 (page 10, figure 3.3). 1434 (page 10, figure 3.3). 1435 1435 1436 14.4 Possible data corruption during a Memory 1436 14.4 Possible data corruption during a Memory Write and Invalidate 1437 --------------------------------------------- 1437 ------------------------------------------------------------------ 1438 1438 1439 This problem is described in SYMBIOS DEL 397, 1439 This problem is described in SYMBIOS DEL 397, Part Number 69-039241, ITEM 4. 1440 1440 1441 In some complex situations, 53C875 chips revi 1441 In some complex situations, 53C875 chips revision <= 3 may start a PCI 1442 Write and Invalidate Command at a not cache-l 1442 Write and Invalidate Command at a not cache-line-aligned 4 DWORDS boundary. 1443 This is only possible when Cache Line Size is 1443 This is only possible when Cache Line Size is 8 DWORDS or greater. 1444 Pentium systems use a 8 DWORDS cache line siz 1444 Pentium systems use a 8 DWORDS cache line size and so are concerned by 1445 this chip bug, unlike i486 systems that use a 1445 this chip bug, unlike i486 systems that use a 4 DWORDS cache line size. 1446 1446 1447 When this situation occurs, the chip may comp 1447 When this situation occurs, the chip may complete the Write and Invalidate 1448 command after having only filled part of the 1448 command after having only filled part of the last cache line involved in 1449 the transfer, leaving to data corruption the 1449 the transfer, leaving to data corruption the remainder of this cache line. 1450 1450 1451 Not using Write And Invalidate obviously gets 1451 Not using Write And Invalidate obviously gets rid of this chip bug, and so 1452 it is now the default setting of the driver. 1452 it is now the default setting of the driver. 1453 However, for people like me who want to enabl 1453 However, for people like me who want to enable this feature, I have added 1454 part of a work-around suggested by SYMBIOS. T 1454 part of a work-around suggested by SYMBIOS. This work-around resets the 1455 addressing logic when the DATA IN phase is en 1455 addressing logic when the DATA IN phase is entered and so prevents the bug 1456 from being triggered for the first SCSI MOVE 1456 from being triggered for the first SCSI MOVE of the phase. This work-around 1457 should be enough according to the following: 1457 should be enough according to the following: 1458 1458 1459 The only driver internal data structure that 1459 The only driver internal data structure that is greater than 8 DWORDS and 1460 that is moved by the SCRIPTS processor is the 1460 that is moved by the SCRIPTS processor is the 'CCB header' that contains 1461 the context of the SCSI transfer. This data s 1461 the context of the SCSI transfer. This data structure is aligned on 8 DWORDS 1462 boundary (Pentium Cache Line Size), and so is 1462 boundary (Pentium Cache Line Size), and so is immune to this chip bug, at 1463 least on Pentium systems. 1463 least on Pentium systems. 1464 1464 1465 But the conditions of this bug can be met whe 1465 But the conditions of this bug can be met when a SCSI read command is 1466 performed using a buffer that is 4 DWORDS but 1466 performed using a buffer that is 4 DWORDS but not cache-line aligned. 1467 This cannot happen under Linux when scatter/g 1467 This cannot happen under Linux when scatter/gather lists are used since 1468 they only refer to system buffers that are we 1468 they only refer to system buffers that are well aligned. So, a work around 1469 may only be needed under Linux when a scatter 1469 may only be needed under Linux when a scatter/gather list is not used and 1470 when the SCSI DATA IN phase is reentered afte 1470 when the SCSI DATA IN phase is reentered after a phase mismatch. 1471 1471 1472 15. SCSI problem troubleshooting 1472 15. SCSI problem troubleshooting 1473 ================================ 1473 ================================ 1474 1474 1475 15.1 Problem tracking 1475 15.1 Problem tracking 1476 --------------------- 1476 --------------------- 1477 1477 1478 Most SCSI problems are due to a non conforman 1478 Most SCSI problems are due to a non conformant SCSI bus or to buggy 1479 devices. If unfortunately you have SCSI prob 1479 devices. If unfortunately you have SCSI problems, you can check the 1480 following things: 1480 following things: 1481 1481 1482 - SCSI bus cables 1482 - SCSI bus cables 1483 - terminations at both end of the SCSI chain 1483 - terminations at both end of the SCSI chain 1484 - linux syslog messages (some of them may hel 1484 - linux syslog messages (some of them may help you) 1485 1485 1486 If you do not find the source of problems, yo 1486 If you do not find the source of problems, you can configure the 1487 driver with no features enabled. 1487 driver with no features enabled. 1488 1488 1489 - only asynchronous data transfers 1489 - only asynchronous data transfers 1490 - tagged commands disabled 1490 - tagged commands disabled 1491 - disconnections not allowed 1491 - disconnections not allowed 1492 1492 1493 Now, if your SCSI bus is ok, your system have 1493 Now, if your SCSI bus is ok, your system have every chance to work 1494 with this safe configuration but performances 1494 with this safe configuration but performances will not be optimal. 1495 1495 1496 If it still fails, then you can send your pro 1496 If it still fails, then you can send your problem description to 1497 appropriate mailing lists or news-groups. Se 1497 appropriate mailing lists or news-groups. Send me a copy in order to 1498 be sure I will receive it. Obviously, a bug 1498 be sure I will receive it. Obviously, a bug in the driver code is 1499 possible. 1499 possible. 1500 1500 1501 My email address: Gerard Roudier <groudie 1501 My email address: Gerard Roudier <groudier@free.fr> 1502 1502 1503 Allowing disconnections is important if you u 1503 Allowing disconnections is important if you use several devices on 1504 your SCSI bus but often causes problems with 1504 your SCSI bus but often causes problems with buggy devices. 1505 Synchronous data transfers increases throughp 1505 Synchronous data transfers increases throughput of fast devices like 1506 hard disks. Good SCSI hard disks with a larg 1506 hard disks. Good SCSI hard disks with a large cache gain advantage of 1507 tagged commands queuing. 1507 tagged commands queuing. 1508 1508 1509 Try to enable one feature at a time with cont 1509 Try to enable one feature at a time with control commands. For example: 1510 1510 1511 :: 1511 :: 1512 1512 1513 echo "setsync all 25" >/proc/scsi/ncr53c8 1513 echo "setsync all 25" >/proc/scsi/ncr53c8xx/0 1514 1514 1515 Will enable fast synchronous data transfer ne 1515 Will enable fast synchronous data transfer negotiation for all targets. 1516 1516 1517 :: 1517 :: 1518 1518 1519 echo "setflag 3" >/proc/scsi/ncr53c8xx/0 1519 echo "setflag 3" >/proc/scsi/ncr53c8xx/0 1520 1520 1521 Will reset flags (no_disc) for target 3, and 1521 Will reset flags (no_disc) for target 3, and so will allow it to disconnect 1522 the SCSI Bus. 1522 the SCSI Bus. 1523 1523 1524 :: 1524 :: 1525 1525 1526 echo "settags 3 8" >/proc/scsi/ncr53c8xx/ 1526 echo "settags 3 8" >/proc/scsi/ncr53c8xx/0 1527 1527 1528 Will enable tagged command queuing for target 1528 Will enable tagged command queuing for target 3 if that device supports it. 1529 1529 1530 Once you have found the device and the featur 1530 Once you have found the device and the feature that cause problems, just 1531 disable that feature for that device. 1531 disable that feature for that device. 1532 1532 1533 15.2 Understanding hardware error reports 1533 15.2 Understanding hardware error reports 1534 ----------------------------------------- 1534 ----------------------------------------- 1535 1535 1536 When the driver detects an unexpected error c 1536 When the driver detects an unexpected error condition, it may display a 1537 message of the following pattern:: 1537 message of the following pattern:: 1538 1538 1539 sym53c876-0:1: ERROR (0:48) (1-21-65) (f/ 1539 sym53c876-0:1: ERROR (0:48) (1-21-65) (f/95) @ (script 7c0:19000000). 1540 sym53c876-0: script cmd = 19000000 1540 sym53c876-0: script cmd = 19000000 1541 sym53c876-0: regdump: da 10 80 95 47 0f 0 1541 sym53c876-0: regdump: da 10 80 95 47 0f 01 07 75 01 81 21 80 01 09 00. 1542 1542 1543 Some fields in such a message may help you un 1543 Some fields in such a message may help you understand the cause of the 1544 problem, as follows:: 1544 problem, as follows:: 1545 1545 1546 sym53c876-0:1: ERROR (0:48) (1-21-65) (f/ 1546 sym53c876-0:1: ERROR (0:48) (1-21-65) (f/95) @ (script 7c0:19000000). 1547 ............A.........B.C....D.E..F....G. 1547 ............A.........B.C....D.E..F....G.H.......I.....J...K....... 1548 1548 1549 Field A : target number. 1549 Field A : target number. 1550 SCSI ID of the device the controller was ta 1550 SCSI ID of the device the controller was talking with at the moment the 1551 error occurs. 1551 error occurs. 1552 1552 1553 Field B : DSTAT io register (DMA STATUS) 1553 Field B : DSTAT io register (DMA STATUS) 1554 ======== ================================ 1554 ======== ============================================================= 1555 Bit 0x40 MDPE Master Data Parity Error 1555 Bit 0x40 MDPE Master Data Parity Error 1556 Data parity error detected on th 1556 Data parity error detected on the PCI BUS. 1557 Bit 0x20 BF Bus Fault 1557 Bit 0x20 BF Bus Fault 1558 PCI bus fault condition detected 1558 PCI bus fault condition detected 1559 Bit 0x01 IID Illegal Instruction Detecte 1559 Bit 0x01 IID Illegal Instruction Detected 1560 Set by the chip when it detects 1560 Set by the chip when it detects an Illegal Instruction format 1561 on some condition that makes an 1561 on some condition that makes an instruction illegal. 1562 Bit 0x80 DFE Dma Fifo Empty 1562 Bit 0x80 DFE Dma Fifo Empty 1563 Pure status bit that does not in 1563 Pure status bit that does not indicate an error. 1564 ======== ================================ 1564 ======== ============================================================= 1565 1565 1566 If the reported DSTAT value contains a comb 1566 If the reported DSTAT value contains a combination of MDPE (0x40), 1567 BF (0x20), then the cause may be likely due 1567 BF (0x20), then the cause may be likely due to a PCI BUS problem. 1568 1568 1569 Field C : SIST io register (SCSI Interrupt St 1569 Field C : SIST io register (SCSI Interrupt Status) 1570 ======== ================================ 1570 ======== ================================================================== 1571 Bit 0x08 SGE SCSI GROSS ERROR 1571 Bit 0x08 SGE SCSI GROSS ERROR 1572 Indicates that the chip detected 1572 Indicates that the chip detected a severe error condition 1573 on the SCSI BUS that prevents th 1573 on the SCSI BUS that prevents the SCSI protocol from functioning 1574 properly. 1574 properly. 1575 Bit 0x04 UDC Unexpected Disconnection 1575 Bit 0x04 UDC Unexpected Disconnection 1576 Indicates that the device releas 1576 Indicates that the device released the SCSI BUS when the chip 1577 was not expecting this to happen 1577 was not expecting this to happen. A device may behave so to 1578 indicate the SCSI initiator that 1578 indicate the SCSI initiator that an error condition not reportable 1579 using the SCSI protocol has occu 1579 using the SCSI protocol has occurred. 1580 Bit 0x02 RST SCSI BUS Reset 1580 Bit 0x02 RST SCSI BUS Reset 1581 Generally SCSI targets do not re 1581 Generally SCSI targets do not reset the SCSI BUS, although any 1582 device on the BUS can reset it a 1582 device on the BUS can reset it at any time. 1583 Bit 0x01 PAR Parity 1583 Bit 0x01 PAR Parity 1584 SCSI parity error detected. 1584 SCSI parity error detected. 1585 ======== ================================ 1585 ======== ================================================================== 1586 1586 1587 On a faulty SCSI BUS, any error condition a 1587 On a faulty SCSI BUS, any error condition among SGE (0x08), UDC (0x04) and 1588 PAR (0x01) may be detected by the chip. If 1588 PAR (0x01) may be detected by the chip. If your SCSI system sometimes 1589 encounters such error conditions, especiall 1589 encounters such error conditions, especially SCSI GROSS ERROR, then a SCSI 1590 BUS problem is likely the cause of these er 1590 BUS problem is likely the cause of these errors. 1591 1591 1592 For fields D,E,F,G and H, you may look into t 1592 For fields D,E,F,G and H, you may look into the sym53c8xx_defs.h file 1593 that contains some minimal comments on IO reg 1593 that contains some minimal comments on IO register bits. 1594 1594 1595 Field D : SOCL Scsi Output Control Latch 1595 Field D : SOCL Scsi Output Control Latch 1596 This register reflects the state of 1596 This register reflects the state of the SCSI control lines the 1597 chip want to drive or compare again 1597 chip want to drive or compare against. 1598 1598 1599 Field E : SBCL Scsi Bus Control Lines 1599 Field E : SBCL Scsi Bus Control Lines 1600 Actual value of control lines on th 1600 Actual value of control lines on the SCSI BUS. 1601 1601 1602 Field F : SBDL Scsi Bus Data Lines 1602 Field F : SBDL Scsi Bus Data Lines 1603 Actual value of data lines on the S 1603 Actual value of data lines on the SCSI BUS. 1604 1604 1605 Field G : SXFER SCSI Transfer 1605 Field G : SXFER SCSI Transfer 1606 Contains the setting of the Synchro 1606 Contains the setting of the Synchronous Period for output and 1607 the current Synchronous offset (off 1607 the current Synchronous offset (offset 0 means asynchronous). 1608 1608 1609 Field H : SCNTL3 Scsi Control Register 3 1609 Field H : SCNTL3 Scsi Control Register 3 1610 Contains the setting of timing valu 1610 Contains the setting of timing values for both asynchronous and 1611 synchronous data transfers. 1611 synchronous data transfers. 1612 1612 1613 Understanding Fields I, J, K and dumps requir 1613 Understanding Fields I, J, K and dumps requires to have good knowledge of 1614 SCSI standards, chip cores functionnals and i 1614 SCSI standards, chip cores functionnals and internal driver data structures. 1615 You are not required to decode and understand 1615 You are not required to decode and understand them, unless you want to help 1616 maintain the driver code. 1616 maintain the driver code. 1617 1617 1618 16. Synchronous transfer negotiation tables 1618 16. Synchronous transfer negotiation tables 1619 =========================================== 1619 =========================================== 1620 1620 1621 Tables below have been created by calling the 1621 Tables below have been created by calling the routine the driver uses 1622 for synchronisation negotiation timing calcul 1622 for synchronisation negotiation timing calculation and chip setting. 1623 The first table corresponds to Ultra chips 53 1623 The first table corresponds to Ultra chips 53875 and 53C860 with 80 MHz 1624 clock and 5 clock divisors. 1624 clock and 5 clock divisors. 1625 The second one has been calculated by setting 1625 The second one has been calculated by setting the scsi clock to 40 Mhz 1626 and using 4 clock divisors and so applies to 1626 and using 4 clock divisors and so applies to all NCR53C8XX chips in fast 1627 SCSI-2 mode. 1627 SCSI-2 mode. 1628 1628 1629 Periods are in nano-seconds and speeds are in 1629 Periods are in nano-seconds and speeds are in Mega-transfers per second. 1630 1 Mega-transfers/second means 1 MB/s with 8 b 1630 1 Mega-transfers/second means 1 MB/s with 8 bits SCSI and 2 MB/s with 1631 Wide16 SCSI. 1631 Wide16 SCSI. 1632 1632 1633 16.1 Synchronous timings for 53C895, 53C875 a 1633 16.1 Synchronous timings for 53C895, 53C875 and 53C860 SCSI controllers 1634 1634 1635 +-----------------------------+--------+----- 1635 +-----------------------------+--------+-------+--------------+ 1636 |Negotiated |NCR settings 1636 |Negotiated |NCR settings | | 1637 +-------+--------+------------+--------+----- 1637 +-------+--------+------------+--------+-------+ | 1638 |Factor |Period |Speed |Period |Speed 1638 |Factor |Period |Speed |Period |Speed | | 1639 +-------+--------+------------+--------+----- 1639 +-------+--------+------------+--------+-------+--------------+ 1640 |10 | 25 |40.000 | 25 |40.00 1640 |10 | 25 |40.000 | 25 |40.000 | (53C895 only)| 1641 +-------+--------+------------+--------+----- 1641 +-------+--------+------------+--------+-------+--------------+ 1642 |11 | 30.2 |33.112 | 31.25 |32.00 1642 |11 | 30.2 |33.112 | 31.25 |32.000 | (53C895 only)| 1643 +-------+--------+------------+--------+----- 1643 +-------+--------+------------+--------+-------+--------------+ 1644 |12 | 50 |20.000 | 50 |20.00 1644 |12 | 50 |20.000 | 50 |20.000 | | 1645 +-------+--------+------------+--------+----- 1645 +-------+--------+------------+--------+-------+--------------+ 1646 |13 | 52 |19.230 | 62 |16.00 1646 |13 | 52 |19.230 | 62 |16.000 | | 1647 +-------+--------+------------+--------+----- 1647 +-------+--------+------------+--------+-------+--------------+ 1648 |14 | 56 |17.857 | 62 |16.00 1648 |14 | 56 |17.857 | 62 |16.000 | | 1649 +-------+--------+------------+--------+----- 1649 +-------+--------+------------+--------+-------+--------------+ 1650 |15 | 60 |16.666 | 62 |16.00 1650 |15 | 60 |16.666 | 62 |16.000 | | 1651 +-------+--------+------------+--------+----- 1651 +-------+--------+------------+--------+-------+--------------+ 1652 |16 | 64 |15.625 | 75 |13.33 1652 |16 | 64 |15.625 | 75 |13.333 | | 1653 +-------+--------+------------+--------+----- 1653 +-------+--------+------------+--------+-------+--------------+ 1654 |17 | 68 |14.705 | 75 |13.33 1654 |17 | 68 |14.705 | 75 |13.333 | | 1655 +-------+--------+------------+--------+----- 1655 +-------+--------+------------+--------+-------+--------------+ 1656 |18 | 72 |13.888 | 75 |13.33 1656 |18 | 72 |13.888 | 75 |13.333 | | 1657 +-------+--------+------------+--------+----- 1657 +-------+--------+------------+--------+-------+--------------+ 1658 |19 | 76 |13.157 | 87 |11.42 1658 |19 | 76 |13.157 | 87 |11.428 | | 1659 +-------+--------+------------+--------+----- 1659 +-------+--------+------------+--------+-------+--------------+ 1660 |20 | 80 |12.500 | 87 |11.42 1660 |20 | 80 |12.500 | 87 |11.428 | | 1661 +-------+--------+------------+--------+----- 1661 +-------+--------+------------+--------+-------+--------------+ 1662 |21 | 84 |11.904 | 87 |11.42 1662 |21 | 84 |11.904 | 87 |11.428 | | 1663 +-------+--------+------------+--------+----- 1663 +-------+--------+------------+--------+-------+--------------+ 1664 |22 | 88 |11.363 | 93 |10.66 1664 |22 | 88 |11.363 | 93 |10.666 | | 1665 +-------+--------+------------+--------+----- 1665 +-------+--------+------------+--------+-------+--------------+ 1666 |23 | 92 |10.869 | 93 |10.66 1666 |23 | 92 |10.869 | 93 |10.666 | | 1667 +-------+--------+------------+--------+----- 1667 +-------+--------+------------+--------+-------+--------------+ 1668 |24 | 96 |10.416 |100 |10.00 1668 |24 | 96 |10.416 |100 |10.000 | | 1669 +-------+--------+------------+--------+----- 1669 +-------+--------+------------+--------+-------+--------------+ 1670 |25 |100 |10.000 |100 |10.00 1670 |25 |100 |10.000 |100 |10.000 | | 1671 +-------+--------+------------+--------+----- 1671 +-------+--------+------------+--------+-------+--------------+ 1672 |26 |104 | 9.615 |112 | 8.88 1672 |26 |104 | 9.615 |112 | 8.888 | | 1673 +-------+--------+------------+--------+----- 1673 +-------+--------+------------+--------+-------+--------------+ 1674 |27 |108 | 9.259 |112 | 8.88 1674 |27 |108 | 9.259 |112 | 8.888 | | 1675 +-------+--------+------------+--------+----- 1675 +-------+--------+------------+--------+-------+--------------+ 1676 |28 |112 | 8.928 |112 | 8.88 1676 |28 |112 | 8.928 |112 | 8.888 | | 1677 +-------+--------+------------+--------+----- 1677 +-------+--------+------------+--------+-------+--------------+ 1678 |29 |116 | 8.620 |125 | 8.00 1678 |29 |116 | 8.620 |125 | 8.000 | | 1679 +-------+--------+------------+--------+----- 1679 +-------+--------+------------+--------+-------+--------------+ 1680 |30 |120 | 8.333 |125 | 8.00 1680 |30 |120 | 8.333 |125 | 8.000 | | 1681 +-------+--------+------------+--------+----- 1681 +-------+--------+------------+--------+-------+--------------+ 1682 |31 |124 | 8.064 |125 | 8.00 1682 |31 |124 | 8.064 |125 | 8.000 | | 1683 +-------+--------+------------+--------+----- 1683 +-------+--------+------------+--------+-------+--------------+ 1684 |32 |128 | 7.812 |131 | 7.61 1684 |32 |128 | 7.812 |131 | 7.619 | | 1685 +-------+--------+------------+--------+----- 1685 +-------+--------+------------+--------+-------+--------------+ 1686 |33 |132 | 7.575 |150 | 6.66 1686 |33 |132 | 7.575 |150 | 6.666 | | 1687 +-------+--------+------------+--------+----- 1687 +-------+--------+------------+--------+-------+--------------+ 1688 |34 |136 | 7.352 |150 | 6.66 1688 |34 |136 | 7.352 |150 | 6.666 | | 1689 +-------+--------+------------+--------+----- 1689 +-------+--------+------------+--------+-------+--------------+ 1690 |35 |140 | 7.142 |150 | 6.66 1690 |35 |140 | 7.142 |150 | 6.666 | | 1691 +-------+--------+------------+--------+----- 1691 +-------+--------+------------+--------+-------+--------------+ 1692 |36 |144 | 6.944 |150 | 6.66 1692 |36 |144 | 6.944 |150 | 6.666 | | 1693 +-------+--------+------------+--------+----- 1693 +-------+--------+------------+--------+-------+--------------+ 1694 |37 |148 | 6.756 |150 | 6.66 1694 |37 |148 | 6.756 |150 | 6.666 | | 1695 +-------+--------+------------+--------+----- 1695 +-------+--------+------------+--------+-------+--------------+ 1696 |38 |152 | 6.578 |175 | 5.71 1696 |38 |152 | 6.578 |175 | 5.714 | | 1697 +-------+--------+------------+--------+----- 1697 +-------+--------+------------+--------+-------+--------------+ 1698 |39 |156 | 6.410 |175 | 5.71 1698 |39 |156 | 6.410 |175 | 5.714 | | 1699 +-------+--------+------------+--------+----- 1699 +-------+--------+------------+--------+-------+--------------+ 1700 |40 |160 | 6.250 |175 | 5.71 1700 |40 |160 | 6.250 |175 | 5.714 | | 1701 +-------+--------+------------+--------+----- 1701 +-------+--------+------------+--------+-------+--------------+ 1702 |41 |164 | 6.097 |175 | 5.71 1702 |41 |164 | 6.097 |175 | 5.714 | | 1703 +-------+--------+------------+--------+----- 1703 +-------+--------+------------+--------+-------+--------------+ 1704 |42 |168 | 5.952 |175 | 5.71 1704 |42 |168 | 5.952 |175 | 5.714 | | 1705 +-------+--------+------------+--------+----- 1705 +-------+--------+------------+--------+-------+--------------+ 1706 |43 |172 | 5.813 |175 | 5.71 1706 |43 |172 | 5.813 |175 | 5.714 | | 1707 +-------+--------+------------+--------+----- 1707 +-------+--------+------------+--------+-------+--------------+ 1708 |44 |176 | 5.681 |187 | 5.33 1708 |44 |176 | 5.681 |187 | 5.333 | | 1709 +-------+--------+------------+--------+----- 1709 +-------+--------+------------+--------+-------+--------------+ 1710 |45 |180 | 5.555 |187 | 5.33 1710 |45 |180 | 5.555 |187 | 5.333 | | 1711 +-------+--------+------------+--------+----- 1711 +-------+--------+------------+--------+-------+--------------+ 1712 |46 |184 | 5.434 |187 | 5.33 1712 |46 |184 | 5.434 |187 | 5.333 | | 1713 +-------+--------+------------+--------+----- 1713 +-------+--------+------------+--------+-------+--------------+ 1714 |47 |188 | 5.319 |200 | 5.00 1714 |47 |188 | 5.319 |200 | 5.000 | | 1715 +-------+--------+------------+--------+----- 1715 +-------+--------+------------+--------+-------+--------------+ 1716 |48 |192 | 5.208 |200 | 5.00 1716 |48 |192 | 5.208 |200 | 5.000 | | 1717 +-------+--------+------------+--------+----- 1717 +-------+--------+------------+--------+-------+--------------+ 1718 |49 |196 | 5.102 |200 | 5.00 1718 |49 |196 | 5.102 |200 | 5.000 | | 1719 +-------+--------+------------+--------+----- 1719 +-------+--------+------------+--------+-------+--------------+ 1720 1720 1721 16.2 Synchronous timings for fast SCSI-2 53C8 1721 16.2 Synchronous timings for fast SCSI-2 53C8XX controllers 1722 1722 1723 +-----------------------------+-------------- 1723 +-----------------------------+----------------+ 1724 |Negotiated |NCR settings 1724 |Negotiated |NCR settings | 1725 +-------+--------+------------+--------+----- 1725 +-------+--------+------------+--------+-------+ 1726 |Factor |Period |Speed |Period |Speed 1726 |Factor |Period |Speed |Period |Speed | 1727 +-------+--------+------------+--------+----- 1727 +-------+--------+------------+--------+-------+ 1728 |25 |100 |10.000 |100 |10.00 1728 |25 |100 |10.000 |100 |10.000 | 1729 +-------+--------+------------+--------+----- 1729 +-------+--------+------------+--------+-------+ 1730 |26 |104 |9.615 |125 | 8.00 1730 |26 |104 |9.615 |125 | 8.000 | 1731 +-------+--------+------------+--------+----- 1731 +-------+--------+------------+--------+-------+ 1732 |27 |108 |9.259 |125 | 8.00 1732 |27 |108 |9.259 |125 | 8.000 | 1733 +-------+--------+------------+--------+----- 1733 +-------+--------+------------+--------+-------+ 1734 |28 |112 |8.928 |125 | 8.00 1734 |28 |112 |8.928 |125 | 8.000 | 1735 +-------+--------+------------+--------+----- 1735 +-------+--------+------------+--------+-------+ 1736 |29 |116 |8.620 |125 | 8.00 1736 |29 |116 |8.620 |125 | 8.000 | 1737 +-------+--------+------------+--------+----- 1737 +-------+--------+------------+--------+-------+ 1738 |30 |120 |8.333 |125 | 8.00 1738 |30 |120 |8.333 |125 | 8.000 | 1739 +-------+--------+------------+--------+----- 1739 +-------+--------+------------+--------+-------+ 1740 |31 |124 |8.064 |125 | 8.00 1740 |31 |124 |8.064 |125 | 8.000 | 1741 +-------+--------+------------+--------+----- 1741 +-------+--------+------------+--------+-------+ 1742 |32 |128 |7.812 |131 | 7.61 1742 |32 |128 |7.812 |131 | 7.619 | 1743 +-------+--------+------------+--------+----- 1743 +-------+--------+------------+--------+-------+ 1744 |33 |132 |7.575 |150 | 6.66 1744 |33 |132 |7.575 |150 | 6.666 | 1745 +-------+--------+------------+--------+----- 1745 +-------+--------+------------+--------+-------+ 1746 |34 |136 |7.352 |150 | 6.66 1746 |34 |136 |7.352 |150 | 6.666 | 1747 +-------+--------+------------+--------+----- 1747 +-------+--------+------------+--------+-------+ 1748 |35 |140 |7.142 |150 | 6.66 1748 |35 |140 |7.142 |150 | 6.666 | 1749 +-------+--------+------------+--------+----- 1749 +-------+--------+------------+--------+-------+ 1750 |36 |144 |6.944 |150 | 6.66 1750 |36 |144 |6.944 |150 | 6.666 | 1751 +-------+--------+------------+--------+----- 1751 +-------+--------+------------+--------+-------+ 1752 |37 |148 |6.756 |150 | 6.66 1752 |37 |148 |6.756 |150 | 6.666 | 1753 +-------+--------+------------+--------+----- 1753 +-------+--------+------------+--------+-------+ 1754 |38 |152 |6.578 |175 | 5.71 1754 |38 |152 |6.578 |175 | 5.714 | 1755 +-------+--------+------------+--------+----- 1755 +-------+--------+------------+--------+-------+ 1756 |39 |156 |6.410 |175 | 5.71 1756 |39 |156 |6.410 |175 | 5.714 | 1757 +-------+--------+------------+--------+----- 1757 +-------+--------+------------+--------+-------+ 1758 |40 |160 |6.250 |175 | 5.71 1758 |40 |160 |6.250 |175 | 5.714 | 1759 +-------+--------+------------+--------+----- 1759 +-------+--------+------------+--------+-------+ 1760 |41 |164 |6.097 |175 | 5.71 1760 |41 |164 |6.097 |175 | 5.714 | 1761 +-------+--------+------------+--------+----- 1761 +-------+--------+------------+--------+-------+ 1762 |42 |168 |5.952 |175 | 5.71 1762 |42 |168 |5.952 |175 | 5.714 | 1763 +-------+--------+------------+--------+----- 1763 +-------+--------+------------+--------+-------+ 1764 |43 |172 |5.813 |175 | 5.71 1764 |43 |172 |5.813 |175 | 5.714 | 1765 +-------+--------+------------+--------+----- 1765 +-------+--------+------------+--------+-------+ 1766 |44 |176 |5.681 |187 | 5.33 1766 |44 |176 |5.681 |187 | 5.333 | 1767 +-------+--------+------------+--------+----- 1767 +-------+--------+------------+--------+-------+ 1768 |45 |180 |5.555 |187 | 5.33 1768 |45 |180 |5.555 |187 | 5.333 | 1769 +-------+--------+------------+--------+----- 1769 +-------+--------+------------+--------+-------+ 1770 |46 |184 |5.434 |187 | 5.33 1770 |46 |184 |5.434 |187 | 5.333 | 1771 +-------+--------+------------+--------+----- 1771 +-------+--------+------------+--------+-------+ 1772 |47 |188 |5.319 |200 | 5.00 1772 |47 |188 |5.319 |200 | 5.000 | 1773 +-------+--------+------------+--------+----- 1773 +-------+--------+------------+--------+-------+ 1774 |48 |192 |5.208 |200 | 5.00 1774 |48 |192 |5.208 |200 | 5.000 | 1775 +-------+--------+------------+--------+----- 1775 +-------+--------+------------+--------+-------+ 1776 |49 |196 |5.102 |200 | 5.00 1776 |49 |196 |5.102 |200 | 5.000 | 1777 +-------+--------+------------+--------+----- 1777 +-------+--------+------------+--------+-------+ 1778 1778 1779 1779 1780 17. Serial NVRAM 1780 17. Serial NVRAM 1781 ================ 1781 ================ 1782 1782 1783 (added by Richard Waltham: dormouse@farsrobt. 1783 (added by Richard Waltham: dormouse@farsrobt.demon.co.uk) 1784 1784 1785 17.1 Features 1785 17.1 Features 1786 ------------- 1786 ------------- 1787 1787 1788 Enabling serial NVRAM support enables detecti 1788 Enabling serial NVRAM support enables detection of the serial NVRAM included 1789 on Symbios and some Symbios compatible host a 1789 on Symbios and some Symbios compatible host adaptors, and Tekram boards. The 1790 serial NVRAM is used by Symbios and Tekram to 1790 serial NVRAM is used by Symbios and Tekram to hold set up parameters for the 1791 host adaptor and its attached drives. 1791 host adaptor and its attached drives. 1792 1792 1793 The Symbios NVRAM also holds data on the boot 1793 The Symbios NVRAM also holds data on the boot order of host adaptors in a 1794 system with more than one host adaptor. This 1794 system with more than one host adaptor. This enables the order of scanning 1795 the cards for drives to be changed from the d 1795 the cards for drives to be changed from the default used during host adaptor 1796 detection. 1796 detection. 1797 1797 1798 This can be done to a limited extent at the m 1798 This can be done to a limited extent at the moment using "reverse probe" but 1799 this only changes the order of detection of d 1799 this only changes the order of detection of different types of cards. The 1800 NVRAM boot order settings can do this as well 1800 NVRAM boot order settings can do this as well as change the order the same 1801 types of cards are scanned in, something "rev 1801 types of cards are scanned in, something "reverse probe" cannot do. 1802 1802 1803 Tekram boards using Symbios chips, DC390W/F/U 1803 Tekram boards using Symbios chips, DC390W/F/U, which have NVRAM are detected 1804 and this is used to distinguish between Symbi 1804 and this is used to distinguish between Symbios compatible and Tekram host 1805 adaptors. This is used to disable the Symbios 1805 adaptors. This is used to disable the Symbios compatible "diff" setting 1806 incorrectly set on Tekram boards if the CONFI 1806 incorrectly set on Tekram boards if the CONFIG_SCSI_53C8XX_SYMBIOS_COMPAT 1807 configuration parameter is set enabling both 1807 configuration parameter is set enabling both Symbios and Tekram boards to be 1808 used together with the Symbios cards using al 1808 used together with the Symbios cards using all their features, including 1809 "diff" support. ("led pin" support for Symbio 1809 "diff" support. ("led pin" support for Symbios compatible cards can remain 1810 enabled when using Tekram cards. It does noth 1810 enabled when using Tekram cards. It does nothing useful for Tekram host 1811 adaptors but does not cause problems either.) 1811 adaptors but does not cause problems either.) 1812 1812 1813 1813 1814 17.2 Symbios NVRAM layout 1814 17.2 Symbios NVRAM layout 1815 ------------------------- 1815 ------------------------- 1816 1816 1817 typical data at NVRAM address 0x100 (53c810a 1817 typical data at NVRAM address 0x100 (53c810a NVRAM):: 1818 1818 1819 00 00 1819 00 00 1820 64 01 1820 64 01 1821 8e 0b 1821 8e 0b 1822 1822 1823 00 30 00 00 00 00 07 00 00 00 00 00 00 00 1823 00 30 00 00 00 00 07 00 00 00 00 00 00 00 07 04 10 04 00 00 1824 1824 1825 04 00 0f 00 00 10 00 50 00 00 01 00 00 62 1825 04 00 0f 00 00 10 00 50 00 00 01 00 00 62 1826 04 00 03 00 00 10 00 58 00 00 01 00 00 63 1826 04 00 03 00 00 10 00 58 00 00 01 00 00 63 1827 04 00 01 00 00 10 00 48 00 00 01 00 00 61 1827 04 00 01 00 00 10 00 48 00 00 01 00 00 61 1828 00 00 00 00 00 00 00 00 00 00 00 00 00 00 1828 00 00 00 00 00 00 00 00 00 00 00 00 00 00 1829 1829 1830 0f 00 08 08 64 00 0a 00 1830 0f 00 08 08 64 00 0a 00 1831 0f 00 08 08 64 00 0a 00 1831 0f 00 08 08 64 00 0a 00 1832 0f 00 08 08 64 00 0a 00 1832 0f 00 08 08 64 00 0a 00 1833 0f 00 08 08 64 00 0a 00 1833 0f 00 08 08 64 00 0a 00 1834 0f 00 08 08 64 00 0a 00 1834 0f 00 08 08 64 00 0a 00 1835 0f 00 08 08 64 00 0a 00 1835 0f 00 08 08 64 00 0a 00 1836 0f 00 08 08 64 00 0a 00 1836 0f 00 08 08 64 00 0a 00 1837 0f 00 08 08 64 00 0a 00 1837 0f 00 08 08 64 00 0a 00 1838 1838 1839 0f 00 08 08 64 00 0a 00 1839 0f 00 08 08 64 00 0a 00 1840 0f 00 08 08 64 00 0a 00 1840 0f 00 08 08 64 00 0a 00 1841 0f 00 08 08 64 00 0a 00 1841 0f 00 08 08 64 00 0a 00 1842 0f 00 08 08 64 00 0a 00 1842 0f 00 08 08 64 00 0a 00 1843 0f 00 08 08 64 00 0a 00 1843 0f 00 08 08 64 00 0a 00 1844 0f 00 08 08 64 00 0a 00 1844 0f 00 08 08 64 00 0a 00 1845 0f 00 08 08 64 00 0a 00 1845 0f 00 08 08 64 00 0a 00 1846 0f 00 08 08 64 00 0a 00 1846 0f 00 08 08 64 00 0a 00 1847 1847 1848 00 00 00 00 00 00 00 00 1848 00 00 00 00 00 00 00 00 1849 00 00 00 00 00 00 00 00 1849 00 00 00 00 00 00 00 00 1850 00 00 00 00 00 00 00 00 1850 00 00 00 00 00 00 00 00 1851 00 00 00 00 00 00 00 00 1851 00 00 00 00 00 00 00 00 1852 00 00 00 00 00 00 00 00 1852 00 00 00 00 00 00 00 00 1853 00 00 00 00 00 00 00 00 1853 00 00 00 00 00 00 00 00 1854 00 00 00 00 00 00 00 00 1854 00 00 00 00 00 00 00 00 1855 00 00 00 00 00 00 00 00 1855 00 00 00 00 00 00 00 00 1856 1856 1857 00 00 00 00 00 00 00 00 1857 00 00 00 00 00 00 00 00 1858 00 00 00 00 00 00 00 00 1858 00 00 00 00 00 00 00 00 1859 00 00 00 00 00 00 00 00 1859 00 00 00 00 00 00 00 00 1860 00 00 00 00 00 00 00 00 1860 00 00 00 00 00 00 00 00 1861 00 00 00 00 00 00 00 00 1861 00 00 00 00 00 00 00 00 1862 00 00 00 00 00 00 00 00 1862 00 00 00 00 00 00 00 00 1863 00 00 00 00 00 00 00 00 1863 00 00 00 00 00 00 00 00 1864 00 00 00 00 00 00 00 00 1864 00 00 00 00 00 00 00 00 1865 1865 1866 00 00 00 00 00 00 00 00 1866 00 00 00 00 00 00 00 00 1867 00 00 00 00 00 00 00 00 1867 00 00 00 00 00 00 00 00 1868 00 00 00 00 00 00 00 00 1868 00 00 00 00 00 00 00 00 1869 1869 1870 fe fe 1870 fe fe 1871 00 00 1871 00 00 1872 00 00 1872 00 00 1873 1873 1874 NVRAM layout details 1874 NVRAM layout details 1875 1875 1876 ============= ================ 1876 ============= ================ 1877 NVRAM Address 1877 NVRAM Address 1878 ============= ================ 1878 ============= ================ 1879 0x000-0x0ff not used 1879 0x000-0x0ff not used 1880 0x100-0x26f initialised data 1880 0x100-0x26f initialised data 1881 0x270-0x7ff not used 1881 0x270-0x7ff not used 1882 ============= ================ 1882 ============= ================ 1883 1883 1884 general layout:: 1884 general layout:: 1885 1885 1886 header - 6 bytes, 1886 header - 6 bytes, 1887 data - 356 bytes (checksum is byte 1887 data - 356 bytes (checksum is byte sum of this data) 1888 trailer - 6 bytes 1888 trailer - 6 bytes 1889 --- 1889 --- 1890 total 368 bytes 1890 total 368 bytes 1891 1891 1892 data area layout:: 1892 data area layout:: 1893 1893 1894 controller set up - 20 bytes 1894 controller set up - 20 bytes 1895 boot configuration - 56 bytes (4x14 1895 boot configuration - 56 bytes (4x14 bytes) 1896 device set up - 128 bytes (16x8 1896 device set up - 128 bytes (16x8 bytes) 1897 unused (spare?) - 152 bytes (19x8 1897 unused (spare?) - 152 bytes (19x8 bytes) 1898 --- 1898 --- 1899 total 356 bytes 1899 total 356 bytes 1900 1900 1901 header:: 1901 header:: 1902 1902 1903 00 00 - ?? start marker 1903 00 00 - ?? start marker 1904 64 01 - byte count (lsb/msb excludes he 1904 64 01 - byte count (lsb/msb excludes header/trailer) 1905 8e 0b - checksum (lsb/msb excludes head 1905 8e 0b - checksum (lsb/msb excludes header/trailer) 1906 1906 1907 controller set up:: 1907 controller set up:: 1908 1908 1909 00 30 00 00 00 00 07 00 00 00 00 00 00 00 1909 00 30 00 00 00 00 07 00 00 00 00 00 00 00 07 04 10 04 00 00 1910 | | | | 1910 | | | | 1911 | | | 1911 | | | -- host ID 1912 | | | 1912 | | | 1913 | | --Remo 1913 | | --Removable Media Support 1914 | | 0x0 1914 | | 0x00 = none 1915 | | 0x0 1915 | | 0x01 = Bootable Device 1916 | | 0x0 1916 | | 0x02 = All with Media 1917 | | 1917 | | 1918 | --flag bits 2 1918 | --flag bits 2 1919 | 0x00000001= scan 1919 | 0x00000001= scan order hi->low 1920 | (default 0x0 1920 | (default 0x00 - scan low->hi) 1921 --flag bits 1 1921 --flag bits 1 1922 0x00000001 scam enabl 1922 0x00000001 scam enable 1923 0x00000010 parity ena 1923 0x00000010 parity enable 1924 0x00000100 verbose bo 1924 0x00000100 verbose boot msgs 1925 1925 1926 remaining bytes unknown - they do not appear 1926 remaining bytes unknown - they do not appear to change in my 1927 current set up for any of the controllers. 1927 current set up for any of the controllers. 1928 1928 1929 default set up is identical for 53c810a and 5 1929 default set up is identical for 53c810a and 53c875 NVRAM 1930 (Removable Media added Symbios BIOS version 4 1930 (Removable Media added Symbios BIOS version 4.09) 1931 1931 1932 boot configuration 1932 boot configuration 1933 1933 1934 boot order set by order of the devices in thi 1934 boot order set by order of the devices in this table:: 1935 1935 1936 04 00 0f 00 00 10 00 50 00 00 01 00 00 62 1936 04 00 0f 00 00 10 00 50 00 00 01 00 00 62 -- 1st controller 1937 04 00 03 00 00 10 00 58 00 00 01 00 00 63 1937 04 00 03 00 00 10 00 58 00 00 01 00 00 63 2nd controller 1938 04 00 01 00 00 10 00 48 00 00 01 00 00 61 1938 04 00 01 00 00 10 00 48 00 00 01 00 00 61 3rd controller 1939 00 00 00 00 00 00 00 00 00 00 00 00 00 00 1939 00 00 00 00 00 00 00 00 00 00 00 00 00 00 4th controller 1940 | | | | | | | | 1940 | | | | | | | | 1941 | | | | | | ---- P 1941 | | | | | | ---- PCI io port adr 1942 | | | | | --0x01 init/ 1942 | | | | | --0x01 init/scan at boot time 1943 | | | | --PCI device/function 1943 | | | | --PCI device/function number (0xdddddfff) 1944 | | ----- ?? PCI vendor ID (lsb/ms 1944 | | ----- ?? PCI vendor ID (lsb/msb) 1945 ----PCI device ID (lsb/msb) 1945 ----PCI device ID (lsb/msb) 1946 1946 1947 ?? use of this data is a guess but seems 1947 ?? use of this data is a guess but seems reasonable 1948 1948 1949 remaining bytes unknown - they do not appear 1949 remaining bytes unknown - they do not appear to change in my 1950 current set up 1950 current set up 1951 1951 1952 default set up is identical for 53c810a and 5 1952 default set up is identical for 53c810a and 53c875 NVRAM 1953 --------------------------------------------- 1953 -------------------------------------------------------- 1954 1954 1955 device set up (up to 16 devices - includes co 1955 device set up (up to 16 devices - includes controller):: 1956 1956 1957 0f 00 08 08 64 00 0a 00 - id 0 1957 0f 00 08 08 64 00 0a 00 - id 0 1958 0f 00 08 08 64 00 0a 00 1958 0f 00 08 08 64 00 0a 00 1959 0f 00 08 08 64 00 0a 00 1959 0f 00 08 08 64 00 0a 00 1960 0f 00 08 08 64 00 0a 00 1960 0f 00 08 08 64 00 0a 00 1961 0f 00 08 08 64 00 0a 00 1961 0f 00 08 08 64 00 0a 00 1962 0f 00 08 08 64 00 0a 00 1962 0f 00 08 08 64 00 0a 00 1963 0f 00 08 08 64 00 0a 00 1963 0f 00 08 08 64 00 0a 00 1964 0f 00 08 08 64 00 0a 00 1964 0f 00 08 08 64 00 0a 00 1965 1965 1966 0f 00 08 08 64 00 0a 00 1966 0f 00 08 08 64 00 0a 00 1967 0f 00 08 08 64 00 0a 00 1967 0f 00 08 08 64 00 0a 00 1968 0f 00 08 08 64 00 0a 00 1968 0f 00 08 08 64 00 0a 00 1969 0f 00 08 08 64 00 0a 00 1969 0f 00 08 08 64 00 0a 00 1970 0f 00 08 08 64 00 0a 00 1970 0f 00 08 08 64 00 0a 00 1971 0f 00 08 08 64 00 0a 00 1971 0f 00 08 08 64 00 0a 00 1972 0f 00 08 08 64 00 0a 00 1972 0f 00 08 08 64 00 0a 00 1973 0f 00 08 08 64 00 0a 00 - id 15 1973 0f 00 08 08 64 00 0a 00 - id 15 1974 | | | | | | 1974 | | | | | | 1975 | | | | ----timeout (lsb/msb) 1975 | | | | ----timeout (lsb/msb) 1976 | | | --synch period (0x?? 40 Mtra 1976 | | | --synch period (0x?? 40 Mtrans/sec- fast 40) (probably 0x28) 1977 | | | (0x30 20 Mtra 1977 | | | (0x30 20 Mtrans/sec- fast 20) 1978 | | | (0x64 10 Mtra 1978 | | | (0x64 10 Mtrans/sec- fast ) 1979 | | | (0xc8 5 Mtra 1979 | | | (0xc8 5 Mtrans/sec) 1980 | | | (0x00 asynch 1980 | | | (0x00 asynchronous) 1981 | | -- ?? max sync offset (0x08 in 1981 | | -- ?? max sync offset (0x08 in NVRAM on 53c810a) 1982 | | (0x10 in 1982 | | (0x10 in NVRAM on 53c875) 1983 | --device bus width (0x08 narrow) 1983 | --device bus width (0x08 narrow) 1984 | (0x10 16 bit wi 1984 | (0x10 16 bit wide) 1985 --flag bits 1985 --flag bits 1986 0x00000001 - disconnect enabled 1986 0x00000001 - disconnect enabled 1987 0x00000010 - scan at boot time 1987 0x00000010 - scan at boot time 1988 0x00000100 - scan luns 1988 0x00000100 - scan luns 1989 0x00001000 - queue tags enabled 1989 0x00001000 - queue tags enabled 1990 1990 1991 remaining bytes unknown - they do not appear 1991 remaining bytes unknown - they do not appear to change in my 1992 current set up 1992 current set up 1993 1993 1994 ?? use of this data is a guess but seems reas 1994 ?? use of this data is a guess but seems reasonable 1995 (but it could be max bus width) 1995 (but it could be max bus width) 1996 1996 1997 default set up for 53c810a NVRAM 1997 default set up for 53c810a NVRAM 1998 default set up for 53c875 NVRAM 1998 default set up for 53c875 NVRAM 1999 1999 2000 - bus width 2000 - bus width - 0x10 2001 - sync offset 2001 - sync offset ? - 0x10 2002 - sync period 2002 - sync period - 0x30 2003 2003 2004 ?? spare device space (32 bit bus ??) 2004 ?? spare device space (32 bit bus ??) 2005 2005 2006 :: 2006 :: 2007 2007 2008 00 00 00 00 00 00 00 00 (19x8bytes) 2008 00 00 00 00 00 00 00 00 (19x8bytes) 2009 . 2009 . 2010 . 2010 . 2011 00 00 00 00 00 00 00 00 2011 00 00 00 00 00 00 00 00 2012 2012 2013 default set up is identical for 53c810a and 5 2013 default set up is identical for 53c810a and 53c875 NVRAM 2014 --------------------------------------------- 2014 -------------------------------------------------------- 2015 2015 2016 trailer:: 2016 trailer:: 2017 2017 2018 fe fe - ? end marker ? 2018 fe fe - ? end marker ? 2019 00 00 2019 00 00 2020 00 00 2020 00 00 2021 2021 2022 default set up is identical for 53c810a and 5 2022 default set up is identical for 53c810a and 53c875 NVRAM 2023 --------------------------------------------- 2023 ----------------------------------------------------------- 2024 2024 2025 2025 2026 2026 2027 17.3 Tekram NVRAM layout 2027 17.3 Tekram NVRAM layout 2028 ------------------------ 2028 ------------------------ 2029 2029 2030 nvram 64x16 (1024 bit) 2030 nvram 64x16 (1024 bit) 2031 2031 2032 Drive settings:: 2032 Drive settings:: 2033 2033 2034 Drive ID 0-15 (addr 0x0yyyy0 = device set 2034 Drive ID 0-15 (addr 0x0yyyy0 = device setup, yyyy = ID) 2035 (addr 0x0yyyy1 = 0x0000) 2035 (addr 0x0yyyy1 = 0x0000) 2036 2036 2037 x x x x x x x x x x x x x x x x 2037 x x x x x x x x x x x x x x x x 2038 | | | | | | | | | 2038 | | | | | | | | | 2039 | | | | | | | | ----- 2039 | | | | | | | | ----- parity check 0 - off 2040 | | | | | | | | 2040 | | | | | | | | 1 - on 2041 | | | | | | | | 2041 | | | | | | | | 2042 | | | | | | | ------- 2042 | | | | | | | ------- sync neg 0 - off 2043 | | | | | | | 2043 | | | | | | | 1 - on 2044 | | | | | | | 2044 | | | | | | | 2045 | | | | | | --------- 2045 | | | | | | --------- disconnect 0 - off 2046 | | | | | | 2046 | | | | | | 1 - on 2047 | | | | | | 2047 | | | | | | 2048 | | | | | ----------- 2048 | | | | | ----------- start cmd 0 - off 2049 | | | | | 2049 | | | | | 1 - on 2050 | | | | | 2050 | | | | | 2051 | | | | -------------- 2051 | | | | -------------- tagged cmds 0 - off 2052 | | | | 2052 | | | | 1 - on 2053 | | | | 2053 | | | | 2054 | | | ---------------- 2054 | | | ---------------- wide neg 0 - off 2055 | | | 2055 | | | 1 - on 2056 | | | 2056 | | | 2057 ------------------------- 2057 --------------------------- sync rate 0 - 10.0 Mtrans/sec 2058 2058 1 - 8.0 2059 2059 2 - 6.6 2060 2060 3 - 5.7 2061 2061 4 - 5.0 2062 2062 5 - 4.0 2063 2063 6 - 3.0 2064 2064 7 - 2.0 2065 2065 7 - 2.0 2066 2066 8 - 20.0 2067 2067 9 - 16.7 2068 2068 a - 13.9 2069 2069 b - 11.9 2070 2070 2071 Global settings 2071 Global settings 2072 2072 2073 Host flags 0 (addr 0x100000, 32):: 2073 Host flags 0 (addr 0x100000, 32):: 2074 2074 2075 x x x x x x x x x x x x x x x x 2075 x x x x x x x x x x x x x x x x 2076 | | | | | | | | | | | | 2076 | | | | | | | | | | | | 2077 | | | | | | | | ----------- h 2077 | | | | | | | | ----------- host ID 0x00 - 0x0f 2078 | | | | | | | | 2078 | | | | | | | | 2079 | | | | | | | ----------------------- s 2079 | | | | | | | ----------------------- support for 0 - off 2080 | | | | | | | > 2080 | | | | | | | > 2 drives 1 - on 2081 | | | | | | | 2081 | | | | | | | 2082 | | | | | | ------------------------- s 2082 | | | | | | ------------------------- support drives 0 - off 2083 | | | | | | > 2083 | | | | | | > 1Gbytes 1 - on 2084 | | | | | | 2084 | | | | | | 2085 | | | | | --------------------------- b 2085 | | | | | --------------------------- bus reset on 0 - off 2086 | | | | | 2086 | | | | | power on 1 - on 2087 | | | | | 2087 | | | | | 2088 | | | | ----------------------------- a 2088 | | | | ----------------------------- active neg 0 - off 2089 | | | | 2089 | | | | 1 - on 2090 | | | | 2090 | | | | 2091 | | | -------------------------------- i 2091 | | | -------------------------------- imm seek 0 - off 2092 | | | 2092 | | | 1 - on 2093 | | | 2093 | | | 2094 | | ---------------------------------- s 2094 | | ---------------------------------- scan luns 0 - off 2095 | | 2095 | | 1 - on 2096 | | 2096 | | 2097 -------------------------------------- r 2097 -------------------------------------- removable 0 - disable 2098 a 2098 as BIOS dev 1 - boot device 2099 2099 2 - all 2100 2100 2101 Host flags 1 (addr 0x100001, 33):: 2101 Host flags 1 (addr 0x100001, 33):: 2102 2102 2103 x x x x x x x x x x x x x x x x 2103 x x x x x x x x x x x x x x x x 2104 | | | | | | 2104 | | | | | | 2105 | | | --------- b 2105 | | | --------- boot delay 0 - 3 sec 2106 | | | 2106 | | | 1 - 5 2107 | | | 2107 | | | 2 - 10 2108 | | | 2108 | | | 3 - 20 2109 | | | 2109 | | | 4 - 30 2110 | | | 2110 | | | 5 - 60 2111 | | | 2111 | | | 6 - 120 2112 | | | 2112 | | | 2113 --------------------------- m 2113 --------------------------- max tag cmds 0 - 2 2114 2114 1 - 4 2115 2115 2 - 8 2116 2116 3 - 16 2117 2117 4 - 32 2118 2118 2119 Host flags 2 (addr 0x100010, 34):: 2119 Host flags 2 (addr 0x100010, 34):: 2120 2120 2121 x x x x x x x x x x x x x x x x 2121 x x x x x x x x x x x x x x x x 2122 | 2122 | 2123 ----- F 2123 ----- F2/F6 enable 0 - off ??? 2124 2124 1 - on ??? 2125 2125 2126 checksum (addr 0x111111) 2126 checksum (addr 0x111111) 2127 2127 2128 checksum = 0x1234 - (sum addr 0-63) 2128 checksum = 0x1234 - (sum addr 0-63) 2129 2129 2130 --------------------------------------------- 2130 ---------------------------------------------------------------------------- 2131 2131 2132 default nvram data:: 2132 default nvram data:: 2133 2133 2134 0x0037 0x0000 0x0037 0x0000 0x0037 0x0000 2134 0x0037 0x0000 0x0037 0x0000 0x0037 0x0000 0x0037 0x0000 2135 0x0037 0x0000 0x0037 0x0000 0x0037 0x0000 2135 0x0037 0x0000 0x0037 0x0000 0x0037 0x0000 0x0037 0x0000 2136 0x0037 0x0000 0x0037 0x0000 0x0037 0x0000 2136 0x0037 0x0000 0x0037 0x0000 0x0037 0x0000 0x0037 0x0000 2137 0x0037 0x0000 0x0037 0x0000 0x0037 0x0000 2137 0x0037 0x0000 0x0037 0x0000 0x0037 0x0000 0x0037 0x0000 2138 2138 2139 0x0f07 0x0400 0x0001 0x0000 0x0000 0x0000 2139 0x0f07 0x0400 0x0001 0x0000 0x0000 0x0000 0x0000 0x0000 2140 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 2140 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 2141 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 2141 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 2142 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 2142 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0xfbbc 2143 2143 2144 2144 2145 18. Support for Big Endian 2145 18. Support for Big Endian 2146 ========================== 2146 ========================== 2147 2147 2148 The PCI local bus has been primarily designed 2148 The PCI local bus has been primarily designed for x86 architecture. 2149 As a consequence, PCI devices generally expec 2149 As a consequence, PCI devices generally expect DWORDS using little endian 2150 byte ordering. 2150 byte ordering. 2151 2151 2152 18.1 Big Endian CPU 2152 18.1 Big Endian CPU 2153 ------------------- 2153 ------------------- 2154 2154 2155 In order to support NCR chips on a Big Endian 2155 In order to support NCR chips on a Big Endian architecture the driver has to 2156 perform byte reordering each time it is neede 2156 perform byte reordering each time it is needed. This feature has been 2157 added to the driver by Cort <cort@cs.nmt.edu> 2157 added to the driver by Cort <cort@cs.nmt.edu> and is available in driver 2158 version 2.5 and later ones. For the moment Bi 2158 version 2.5 and later ones. For the moment Big Endian support has only 2159 been tested on Linux/PPC (PowerPC). 2159 been tested on Linux/PPC (PowerPC). 2160 2160 2161 18.2 NCR chip in Big Endian mode of operation 2161 18.2 NCR chip in Big Endian mode of operations 2162 --------------------------------------------- 2162 ---------------------------------------------- 2163 2163 2164 It can be read in SYMBIOS documentation that 2164 It can be read in SYMBIOS documentation that some chips support a special 2165 Big Endian mode, on paper: 53C815, 53C825A, 5 2165 Big Endian mode, on paper: 53C815, 53C825A, 53C875, 53C875N, 53C895. 2166 This mode of operations is not software-selec 2166 This mode of operations is not software-selectable, but needs pin named 2167 BigLit to be pulled-up. Using this mode, most 2167 BigLit to be pulled-up. Using this mode, most of byte reorderings should 2168 be avoided when the driver is running on a Bi 2168 be avoided when the driver is running on a Big Endian CPU. 2169 Driver version 2.5 is also, in theory, ready 2169 Driver version 2.5 is also, in theory, ready for this feature.
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.