ncr53c8xx.txt 71 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825
  1. The Linux NCR53C8XX/SYM53C8XX drivers README file
  2. Written by Gerard Roudier <groudier@free.fr>
  3. 21 Rue Carnot
  4. 95170 DEUIL LA BARRE - FRANCE
  5. 29 May 1999
  6. ===============================================================================
  7. 1. Introduction
  8. 2. Supported chips and SCSI features
  9. 3. Advantages of the enhanced 896 driver
  10. 3.1 Optimized SCSI SCRIPTS
  11. 3.2 New features of the SYM53C896 (64 bit PCI dual LVD SCSI controller)
  12. 4. Memory mapped I/O versus normal I/O
  13. 5. Tagged command queueing
  14. 6. Parity checking
  15. 7. Profiling information
  16. 8. Control commands
  17. 8.1 Set minimum synchronous period
  18. 8.2 Set wide size
  19. 8.3 Set maximum number of concurrent tagged commands
  20. 8.4 Set order type for tagged command
  21. 8.5 Set debug mode
  22. 8.6 Clear profile counters
  23. 8.7 Set flag (no_disc)
  24. 8.8 Set verbose level
  25. 8.9 Reset all logical units of a target
  26. 8.10 Abort all tasks of all logical units of a target
  27. 9. Configuration parameters
  28. 10. Boot setup commands
  29. 10.1 Syntax
  30. 10.2 Available arguments
  31. 10.2.1 Master parity checking
  32. 10.2.2 Scsi parity checking
  33. 10.2.3 Scsi disconnections
  34. 10.2.4 Special features
  35. 10.2.5 Ultra SCSI support
  36. 10.2.6 Default number of tagged commands
  37. 10.2.7 Default synchronous period factor
  38. 10.2.8 Negotiate synchronous with all devices
  39. 10.2.9 Verbosity level
  40. 10.2.10 Debug mode
  41. 10.2.11 Burst max
  42. 10.2.12 LED support
  43. 10.2.13 Max wide
  44. 10.2.14 Differential mode
  45. 10.2.15 IRQ mode
  46. 10.2.16 Reverse probe
  47. 10.2.17 Fix up PCI configuration space
  48. 10.2.18 Serial NVRAM
  49. 10.2.19 Check SCSI BUS
  50. 10.2.20 Exclude a host from being attached
  51. 10.2.21 Suggest a default SCSI id for hosts
  52. 10.2.22 Enable use of IMMEDIATE ARBITRATION
  53. 10.3 Advised boot setup commands
  54. 10.4 PCI configuration fix-up boot option
  55. 10.5 Serial NVRAM support boot option
  56. 10.6 SCSI BUS checking boot option
  57. 10.7 IMMEDIATE ARBITRATION boot option
  58. 11. Some constants and flags of the ncr53c8xx.h header file
  59. 12. Installation
  60. 13. Architecture dependent features
  61. 14. Known problems
  62. 14.1 Tagged commands with Iomega Jaz device
  63. 14.2 Device names change when another controller is added
  64. 14.3 Using only 8 bit devices with a WIDE SCSI controller.
  65. 14.4 Possible data corruption during a Memory Write and Invalidate
  66. 14.5 IRQ sharing problems
  67. 15. SCSI problem troubleshooting
  68. 15.1 Problem tracking
  69. 15.2 Understanding hardware error reports
  70. 16. Synchronous transfer negotiation tables
  71. 16.1 Synchronous timings for 53C875 and 53C860 Ultra-SCSI controllers
  72. 16.2 Synchronous timings for fast SCSI-2 53C8XX controllers
  73. 17. Serial NVRAM support (by Richard Waltham)
  74. 17.1 Features
  75. 17.2 Symbios NVRAM layout
  76. 17.3 Tekram NVRAM layout
  77. 18. Support for Big Endian
  78. 18.1 Big Endian CPU
  79. 18.2 NCR chip in Big Endian mode of operations
  80. ===============================================================================
  81. 1. Introduction
  82. The initial Linux ncr53c8xx driver has been a port of the ncr driver from
  83. FreeBSD that has been achieved in November 1995 by:
  84. Gerard Roudier <groudier@free.fr>
  85. The original driver has been written for 386bsd and FreeBSD by:
  86. Wolfgang Stanglmeier <wolf@cologne.de>
  87. Stefan Esser <se@mi.Uni-Koeln.de>
  88. It is now available as a bundle of 2 drivers:
  89. - ncr53c8xx generic driver that supports all the SYM53C8XX family including
  90. the earliest 810 rev. 1, the latest 896 (2 channel LVD SCSI controller) and
  91. the new 895A (1 channel LVD SCSI controller).
  92. - sym53c8xx enhanced driver (a.k.a. 896 drivers) that drops support of oldest
  93. chips in order to gain advantage of new features, as LOAD/STORE instructions
  94. available since the 810A and hardware phase mismatch available with the
  95. 896 and the 895A.
  96. You can find technical information about the NCR 8xx family in the
  97. PCI-HOWTO written by Michael Will and in the SCSI-HOWTO written by
  98. Drew Eckhardt.
  99. Information about new chips is available at LSILOGIC web server:
  100. http://www.lsilogic.com/
  101. SCSI standard documentations are available at SYMBIOS ftp server:
  102. ftp://ftp.symbios.com/
  103. Useful SCSI tools written by Eric Youngdale are available at tsx-11:
  104. ftp://tsx-11.mit.edu/pub/linux/ALPHA/scsi/scsiinfo-X.Y.tar.gz
  105. ftp://tsx-11.mit.edu/pub/linux/ALPHA/scsi/scsidev-X.Y.tar.gz
  106. These tools are not ALPHA but quite clean and work quite well.
  107. It is essential you have the 'scsiinfo' package.
  108. This short documentation describes the features of the generic and enhanced
  109. drivers, configuration parameters and control commands available through
  110. the proc SCSI file system read / write operations.
  111. This driver has been tested OK with linux/i386, Linux/Alpha and Linux/PPC.
  112. Latest driver version and patches are available at:
  113. ftp://ftp.tux.org/pub/people/gerard-roudier
  114. or
  115. ftp://ftp.symbios.com/mirror/ftp.tux.org/pub/tux/roudier/drivers
  116. I am not a native speaker of English and there are probably lots of
  117. mistakes in this README file. Any help will be welcome.
  118. 2. Supported chips and SCSI features
  119. The following features are supported for all chips:
  120. Synchronous negotiation
  121. Disconnection
  122. Tagged command queuing
  123. SCSI parity checking
  124. Master parity checking
  125. "Wide negotiation" is supported for chips that allow it. The
  126. following table shows some characteristics of NCR 8xx family chips
  127. and what drivers support them.
  128. Supported by Supported by
  129. On board the generic the enhanced
  130. Chip SDMS BIOS Wide SCSI std. Max. sync driver driver
  131. ---- --------- ---- --------- ---------- ------------ -------------
  132. 810 N N FAST10 10 MB/s Y N
  133. 810A N N FAST10 10 MB/s Y Y
  134. 815 Y N FAST10 10 MB/s Y N
  135. 825 Y Y FAST10 20 MB/s Y N
  136. 825A Y Y FAST10 20 MB/s Y Y
  137. 860 N N FAST20 20 MB/s Y Y
  138. 875 Y Y FAST20 40 MB/s Y Y
  139. 876 Y Y FAST20 40 MB/s Y Y
  140. 895 Y Y FAST40 80 MB/s Y Y
  141. 895A Y Y FAST40 80 MB/s Y Y
  142. 896 Y Y FAST40 80 MB/s Y Y
  143. 897 Y Y FAST40 80 MB/s Y Y
  144. 1510D Y Y FAST40 80 MB/s Y Y
  145. 1010 Y Y FAST80 160 MB/s N Y
  146. 1010_66* Y Y FAST80 160 MB/s N Y
  147. * Chip supports 33MHz and 66MHz PCI buses.
  148. Summary of other supported features:
  149. Module: allow to load the driver
  150. Memory mapped I/O: increases performance
  151. Profiling information: read operations from the proc SCSI file system
  152. Control commands: write operations to the proc SCSI file system
  153. Debugging information: written to syslog (expert only)
  154. Scatter / gather
  155. Shared interrupt
  156. Boot setup commands
  157. Serial NVRAM: Symbios and Tekram formats
  158. 3. Advantages of the enhanced 896 driver
  159. 3.1 Optimized SCSI SCRIPTS.
  160. The 810A, 825A, 875, 895, 896 and 895A support new SCSI SCRIPTS instructions
  161. named LOAD and STORE that allow to move up to 1 DWORD from/to an IO register
  162. to/from memory much faster that the MOVE MEMORY instruction that is supported
  163. by the 53c7xx and 53c8xx family.
  164. The LOAD/STORE instructions support absolute and DSA relative addressing
  165. modes. The SCSI SCRIPTS had been entirely rewritten using LOAD/STORE instead
  166. of MOVE MEMORY instructions.
  167. 3.2 New features of the SYM53C896 (64 bit PCI dual LVD SCSI controller)
  168. The 896 and the 895A allows handling of the phase mismatch context from
  169. SCRIPTS (avoids the phase mismatch interrupt that stops the SCSI processor
  170. until the C code has saved the context of the transfer).
  171. Implementing this without using LOAD/STORE instructions would be painful
  172. and I didn't even want to try it.
  173. The 896 chip supports 64 bit PCI transactions and addressing, while the
  174. 895A supports 32 bit PCI transactions and 64 bit addressing.
  175. The SCRIPTS processor of these chips is not true 64 bit, but uses segment
  176. registers for bit 32-63. Another interesting feature is that LOAD/STORE
  177. instructions that address the on-chip RAM (8k) remain internal to the chip.
  178. Due to the use of LOAD/STORE SCRIPTS instructions, this driver does not
  179. support the following chips:
  180. - SYM53C810 revision < 0x10 (16)
  181. - SYM53C815 all revisions
  182. - SYM53C825 revision < 0x10 (16)
  183. 4. Memory mapped I/O versus normal I/O
  184. Memory mapped I/O has less latency than normal I/O. Since
  185. linux-1.3.x, memory mapped I/O is used rather than normal I/O. Memory
  186. mapped I/O seems to work fine on most hardware configurations, but
  187. some poorly designed motherboards may break this feature.
  188. The configuration option CONFIG_SCSI_NCR53C8XX_IOMAPPED forces the
  189. driver to use normal I/O in all cases.
  190. 5. Tagged command queueing
  191. Queuing more than 1 command at a time to a device allows it to perform
  192. optimizations based on actual head positions and its mechanical
  193. characteristics. This feature may also reduce average command latency.
  194. In order to really gain advantage of this feature, devices must have
  195. a reasonable cache size (No miracle is to be expected for a low-end
  196. hard disk with 128 KB or less).
  197. Some known SCSI devices do not properly support tagged command queuing.
  198. Generally, firmware revisions that fix this kind of problems are available
  199. at respective vendor web/ftp sites.
  200. All I can say is that the hard disks I use on my machines behave well with
  201. this driver with tagged command queuing enabled:
  202. - IBM S12 0662
  203. - Conner 1080S
  204. - Quantum Atlas I
  205. - Quantum Atlas II
  206. If your controller has NVRAM, you can configure this feature per target
  207. from the user setup tool. The Tekram Setup program allows to tune the
  208. maximum number of queued commands up to 32. The Symbios Setup only allows
  209. to enable or disable this feature.
  210. The maximum number of simultaneous tagged commands queued to a device
  211. is currently set to 8 by default. This value is suitable for most SCSI
  212. disks. With large SCSI disks (>= 2GB, cache >= 512KB, average seek time
  213. <= 10 ms), using a larger value may give better performances.
  214. The sym53c8xx driver supports up to 255 commands per device, and the
  215. generic ncr53c8xx driver supports up to 64, but using more than 32 is
  216. generally not worth-while, unless you are using a very large disk or disk
  217. array. It is noticeable that most of recent hard disks seem not to accept
  218. more than 64 simultaneous commands. So, using more than 64 queued commands
  219. is probably just resource wasting.
  220. If your controller does not have NVRAM or if it is managed by the SDMS
  221. BIOS/SETUP, you can configure tagged queueing feature and device queue
  222. depths from the boot command-line. For example:
  223. ncr53c8xx=tags:4/t2t3q15-t4q7/t1u0q32
  224. will set tagged commands queue depths as follow:
  225. - target 2 all luns on controller 0 --> 15
  226. - target 3 all luns on controller 0 --> 15
  227. - target 4 all luns on controller 0 --> 7
  228. - target 1 lun 0 on controller 1 --> 32
  229. - all other target/lun --> 4
  230. In some special conditions, some SCSI disk firmwares may return a
  231. QUEUE FULL status for a SCSI command. This behaviour is managed by the
  232. driver using the following heuristic:
  233. - Each time a QUEUE FULL status is returned, tagged queue depth is reduced
  234. to the actual number of disconnected commands.
  235. - Every 1000 successfully completed SCSI commands, if allowed by the
  236. current limit, the maximum number of queueable commands is incremented.
  237. Since QUEUE FULL status reception and handling is resource wasting, the
  238. driver notifies by default this problem to user by indicating the actual
  239. number of commands used and their status, as well as its decision on the
  240. device queue depth change.
  241. The heuristic used by the driver in handling QUEUE FULL ensures that the
  242. impact on performances is not too bad. You can get rid of the messages by
  243. setting verbose level to zero, as follow:
  244. 1st method: boot your system using 'ncr53c8xx=verb:0' option.
  245. 2nd method: apply "setverbose 0" control command to the proc fs entry
  246. corresponding to your controller after boot-up.
  247. 6. Parity checking
  248. The driver supports SCSI parity checking and PCI bus master parity
  249. checking. These features must be enabled in order to ensure safe data
  250. transfers. However, some flawed devices or mother boards will have
  251. problems with parity. You can disable either PCI parity or SCSI parity
  252. checking by entering appropriate options from the boot command line.
  253. (See 10: Boot setup commands).
  254. 7. Profiling information
  255. Profiling information is available through the proc SCSI file system.
  256. Since gathering profiling information may impact performances, this
  257. feature is disabled by default and requires a compilation configuration
  258. option to be set to Y.
  259. The device associated with a host has the following pathname:
  260. /proc/scsi/ncr53c8xx/N (N=0,1,2 ....)
  261. Generally, only 1 board is used on hardware configuration, and that device is:
  262. /proc/scsi/ncr53c8xx/0
  263. However, if the driver has been made as module, the number of the
  264. hosts is incremented each time the driver is loaded.
  265. In order to display profiling information, just enter:
  266. cat /proc/scsi/ncr53c8xx/0
  267. and you will get something like the following text:
  268. -------------------------------------------------------
  269. General information:
  270. Chip NCR53C810, device id 0x1, revision id 0x2
  271. IO port address 0x6000, IRQ number 10
  272. Using memory mapped IO at virtual address 0x282c000
  273. Synchronous transfer period 25, max commands per lun 4
  274. Profiling information:
  275. num_trans = 18014
  276. num_kbytes = 671314
  277. num_disc = 25763
  278. num_break = 1673
  279. num_int = 1685
  280. num_fly = 18038
  281. ms_setup = 4940
  282. ms_data = 369940
  283. ms_disc = 183090
  284. ms_post = 1320
  285. -------------------------------------------------------
  286. General information is easy to understand. The device ID and the
  287. revision ID identify the SCSI chip as follows:
  288. Chip Device id Revision Id
  289. ---- --------- -----------
  290. 810 0x1 < 0x10
  291. 810A 0x1 >= 0x10
  292. 815 0x4
  293. 825 0x3 < 0x10
  294. 860 0x6
  295. 825A 0x3 >= 0x10
  296. 875 0xf
  297. 895 0xc
  298. The profiling information is updated upon completion of SCSI commands.
  299. A data structure is allocated and zeroed when the host adapter is
  300. attached. So, if the driver is a module, the profile counters are
  301. cleared each time the driver is loaded. The "clearprof" command
  302. allows you to clear these counters at any time.
  303. The following counters are available:
  304. ("num" prefix means "number of",
  305. "ms" means milli-seconds)
  306. num_trans
  307. Number of completed commands
  308. Example above: 18014 completed commands
  309. num_kbytes
  310. Number of kbytes transferred
  311. Example above: 671 MB transferred
  312. num_disc
  313. Number of SCSI disconnections
  314. Example above: 25763 SCSI disconnections
  315. num_break
  316. number of script interruptions (phase mismatch)
  317. Example above: 1673 script interruptions
  318. num_int
  319. Number of interrupts other than "on the fly"
  320. Example above: 1685 interruptions not "on the fly"
  321. num_fly
  322. Number of interrupts "on the fly"
  323. Example above: 18038 interruptions "on the fly"
  324. ms_setup
  325. Elapsed time for SCSI commands setups
  326. Example above: 4.94 seconds
  327. ms_data
  328. Elapsed time for data transfers
  329. Example above: 369.94 seconds spent for data transfer
  330. ms_disc
  331. Elapsed time for SCSI disconnections
  332. Example above: 183.09 seconds spent disconnected
  333. ms_post
  334. Elapsed time for command post processing
  335. (time from SCSI status get to command completion call)
  336. Example above: 1.32 seconds spent for post processing
  337. Due to the 1/100 second tick of the system clock, "ms_post" time may
  338. be wrong.
  339. In the example above, we got 18038 interrupts "on the fly" and only
  340. 1673 script breaks generally due to disconnections inside a segment
  341. of the scatter list.
  342. 8. Control commands
  343. Control commands can be sent to the driver with write operations to
  344. the proc SCSI file system. The generic command syntax is the
  345. following:
  346. echo "<verb> <parameters>" >/proc/scsi/ncr53c8xx/0
  347. (assumes controller number is 0)
  348. Using "all" for "<target>" parameter with the commands below will
  349. apply to all targets of the SCSI chain (except the controller).
  350. Available commands:
  351. 8.1 Set minimum synchronous period factor
  352. setsync <target> <period factor>
  353. target: target number
  354. period: minimum synchronous period.
  355. Maximum speed = 1000/(4*period factor) except for special
  356. cases below.
  357. Specify a period of 255, to force asynchronous transfer mode.
  358. 10 means 25 nano-seconds synchronous period
  359. 11 means 30 nano-seconds synchronous period
  360. 12 means 50 nano-seconds synchronous period
  361. 8.2 Set wide size
  362. setwide <target> <size>
  363. target: target number
  364. size: 0=8 bits, 1=16bits
  365. 8.3 Set maximum number of concurrent tagged commands
  366. settags <target> <tags>
  367. target: target number
  368. tags: number of concurrent tagged commands
  369. must not be greater than SCSI_NCR_MAX_TAGS (default: 8)
  370. 8.4 Set order type for tagged command
  371. setorder <order>
  372. order: 3 possible values:
  373. simple: use SIMPLE TAG for all operations (read and write)
  374. ordered: use ORDERED TAG for all operations
  375. default: use default tag type,
  376. SIMPLE TAG for read operations
  377. ORDERED TAG for write operations
  378. 8.5 Set debug mode
  379. setdebug <list of debug flags>
  380. Available debug flags:
  381. alloc: print info about memory allocations (ccb, lcb)
  382. queue: print info about insertions into the command start queue
  383. result: print sense data on CHECK CONDITION status
  384. scatter: print info about the scatter process
  385. scripts: print info about the script binding process
  386. tiny: print minimal debugging information
  387. timing: print timing information of the NCR chip
  388. nego: print information about SCSI negotiations
  389. phase: print information on script interruptions
  390. Use "setdebug" with no argument to reset debug flags.
  391. 8.6 Clear profile counters
  392. clearprof
  393. The profile counters are automatically cleared when the amount of
  394. data transferred reaches 1000 GB in order to avoid overflow.
  395. The "clearprof" command allows you to clear these counters at any time.
  396. 8.7 Set flag (no_disc)
  397. setflag <target> <flag>
  398. target: target number
  399. For the moment, only one flag is available:
  400. no_disc: not allow target to disconnect.
  401. Do not specify any flag in order to reset the flag. For example:
  402. - setflag 4
  403. will reset no_disc flag for target 4, so will allow it disconnections.
  404. - setflag all
  405. will allow disconnection for all devices on the SCSI bus.
  406. 8.8 Set verbose level
  407. setverbose #level
  408. The driver default verbose level is 1. This command allows to change
  409. th driver verbose level after boot-up.
  410. 8.9 Reset all logical units of a target
  411. resetdev <target>
  412. target: target number
  413. The driver will try to send a BUS DEVICE RESET message to the target.
  414. (Only supported by the SYM53C8XX driver and provided for test purpose)
  415. 8.10 Abort all tasks of all logical units of a target
  416. cleardev <target>
  417. target: target number
  418. The driver will try to send a ABORT message to all the logical units
  419. of the target.
  420. (Only supported by the SYM53C8XX driver and provided for test purpose)
  421. 9. Configuration parameters
  422. If the firmware of all your devices is perfect enough, all the
  423. features supported by the driver can be enabled at start-up. However,
  424. if only one has a flaw for some SCSI feature, you can disable the
  425. support by the driver of this feature at linux start-up and enable
  426. this feature after boot-up only for devices that support it safely.
  427. CONFIG_SCSI_NCR53C8XX_IOMAPPED (default answer: n)
  428. Answer "y" if you suspect your mother board to not allow memory mapped I/O.
  429. May slow down performance a little. This option is required by
  430. Linux/PPC and is used no matter what you select here. Linux/PPC
  431. suffers no performance loss with this option since all IO is memory
  432. mapped anyway.
  433. CONFIG_SCSI_NCR53C8XX_DEFAULT_TAGS (default answer: 8)
  434. Default tagged command queue depth.
  435. CONFIG_SCSI_NCR53C8XX_MAX_TAGS (default answer: 8)
  436. This option allows you to specify the maximum number of tagged commands
  437. that can be queued to a device. The maximum supported value is 32.
  438. CONFIG_SCSI_NCR53C8XX_SYNC (default answer: 5)
  439. This option allows you to specify the frequency in MHz the driver
  440. will use at boot time for synchronous data transfer negotiations.
  441. This frequency can be changed later with the "setsync" control command.
  442. 0 means "asynchronous data transfers".
  443. CONFIG_SCSI_NCR53C8XX_FORCE_SYNC_NEGO (default answer: n)
  444. Force synchronous negotiation for all SCSI-2 devices.
  445. Some SCSI-2 devices do not report this feature in byte 7 of inquiry
  446. response but do support it properly (TAMARACK scanners for example).
  447. CONFIG_SCSI_NCR53C8XX_NO_DISCONNECT (default and only reasonable answer: n)
  448. If you suspect a device of yours does not properly support disconnections,
  449. you can answer "y". Then, all SCSI devices will never disconnect the bus
  450. even while performing long SCSI operations.
  451. CONFIG_SCSI_NCR53C8XX_SYMBIOS_COMPAT
  452. Genuine SYMBIOS boards use GPIO0 in output for controller LED and GPIO3
  453. bit as a flag indicating singled-ended/differential interface.
  454. If all the boards of your system are genuine SYMBIOS boards or use
  455. BIOS and drivers from SYMBIOS, you would want to enable this option.
  456. This option must NOT be enabled if your system has at least one 53C8XX
  457. based scsi board with a vendor-specific BIOS.
  458. For example, Tekram DC-390/U, DC-390/W and DC-390/F scsi controllers
  459. use a vendor-specific BIOS and are known to not use SYMBIOS compatible
  460. GPIO wiring. So, this option must not be enabled if your system has
  461. such a board installed.
  462. CONFIG_SCSI_NCR53C8XX_NVRAM_DETECT
  463. Enable support for reading the serial NVRAM data on Symbios and
  464. some Symbios compatible cards, and Tekram DC390W/U/F cards. Useful for
  465. systems with more than one Symbios compatible controller where at least
  466. one has a serial NVRAM, or for a system with a mixture of Symbios and
  467. Tekram cards. Enables setting the boot order of host adaptors
  468. to something other than the default order or "reverse probe" order.
  469. Also enables Symbios and Tekram cards to be distinguished so
  470. CONFIG_SCSI_NCR53C8XX_SYMBIOS_COMPAT may be set in a system with a
  471. mixture of Symbios and Tekram cards so the Symbios cards can make use of
  472. the full range of Symbios features, differential, led pin, without
  473. causing problems for the Tekram card(s).
  474. 10. Boot setup commands
  475. 10.1 Syntax
  476. Setup commands can be passed to the driver either at boot time or as a
  477. string variable using 'insmod'.
  478. A boot setup command for the ncr53c8xx (sym53c8xx) driver begins with the
  479. driver name "ncr53c8xx="(sym53c8xx). The kernel syntax parser then expects
  480. an optional list of integers separated with comma followed by an optional
  481. list of comma-separated strings. Example of boot setup command under lilo
  482. prompt:
  483. lilo: linux root=/dev/hda2 ncr53c8xx=tags:4,sync:10,debug:0x200
  484. - enable tagged commands, up to 4 tagged commands queued.
  485. - set synchronous negotiation speed to 10 Mega-transfers / second.
  486. - set DEBUG_NEGO flag.
  487. Since comma seems not to be allowed when defining a string variable using
  488. 'insmod', the driver also accepts <space> as option separator.
  489. The following command will install driver module with the same options as
  490. above.
  491. insmod ncr53c8xx.o ncr53c8xx="tags:4 sync:10 debug:0x200"
  492. For the moment, the integer list of arguments is discarded by the driver.
  493. It will be used in the future in order to allow a per controller setup.
  494. Each string argument must be specified as "keyword:value". Only lower-case
  495. characters and digits are allowed.
  496. In a system that contains multiple 53C8xx adapters insmod will install the
  497. specified driver on each adapter. To exclude a chip use the 'excl' keyword.
  498. The sequence of commands,
  499. insmod sym53c8xx sym53c8xx=excl:0x1400
  500. insmod ncr53c8xx
  501. installs the sym53c8xx driver on all adapters except the one at IO port
  502. address 0x1400 and then installs the ncr53c8xx driver to the adapter at IO
  503. port address 0x1400.
  504. 10.2 Available arguments
  505. 10.2.1 Master parity checking
  506. mpar:y enabled
  507. mpar:n disabled
  508. 10.2.2 Scsi parity checking
  509. spar:y enabled
  510. spar:n disabled
  511. 10.2.3 Scsi disconnections
  512. disc:y enabled
  513. disc:n disabled
  514. 10.2.4 Special features
  515. Only apply to 810A, 825A, 860, 875 and 895 controllers.
  516. Have no effect with other ones.
  517. specf:y (or 1) enabled
  518. specf:n (or 0) disabled
  519. specf:3 enabled except Memory Write And Invalidate
  520. The default driver setup is 'specf:3'. As a consequence, option 'specf:y'
  521. must be specified in the boot setup command to enable Memory Write And
  522. Invalidate.
  523. 10.2.5 Ultra SCSI support
  524. Only apply to 860, 875, 895, 895a, 896, 1010 and 1010_66 controllers.
  525. Have no effect with other ones.
  526. ultra:n All ultra speeds enabled
  527. ultra:2 Ultra2 enabled
  528. ultra:1 Ultra enabled
  529. ultra:0 Ultra speeds disabled
  530. 10.2.6 Default number of tagged commands
  531. tags:0 (or tags:1 ) tagged command queuing disabled
  532. tags:#tags (#tags > 1) tagged command queuing enabled
  533. #tags will be truncated to the max queued commands configuration parameter.
  534. This option also allows to specify a command queue depth for each device
  535. that support tagged command queueing.
  536. Example:
  537. ncr53c8xx=tags:10/t2t3q16-t5q24/t1u2q32
  538. will set devices queue depth as follow:
  539. - controller #0 target #2 and target #3 -> 16 commands,
  540. - controller #0 target #5 -> 24 commands,
  541. - controller #1 target #1 logical unit #2 -> 32 commands,
  542. - all other logical units (all targets, all controllers) -> 10 commands.
  543. 10.2.7 Default synchronous period factor
  544. sync:255 disabled (asynchronous transfer mode)
  545. sync:#factor
  546. #factor = 10 Ultra-2 SCSI 40 Mega-transfers / second
  547. #factor = 11 Ultra-2 SCSI 33 Mega-transfers / second
  548. #factor < 25 Ultra SCSI 20 Mega-transfers / second
  549. #factor < 50 Fast SCSI-2
  550. In all cases, the driver will use the minimum transfer period supported by
  551. controllers according to NCR53C8XX chip type.
  552. 10.2.8 Negotiate synchronous with all devices
  553. (force sync nego)
  554. fsn:y enabled
  555. fsn:n disabled
  556. 10.2.9 Verbosity level
  557. verb:0 minimal
  558. verb:1 normal
  559. verb:2 too much
  560. 10.2.10 Debug mode
  561. debug:0 clear debug flags
  562. debug:#x set debug flags
  563. #x is an integer value combining the following power-of-2 values:
  564. DEBUG_ALLOC 0x1
  565. DEBUG_PHASE 0x2
  566. DEBUG_POLL 0x4
  567. DEBUG_QUEUE 0x8
  568. DEBUG_RESULT 0x10
  569. DEBUG_SCATTER 0x20
  570. DEBUG_SCRIPT 0x40
  571. DEBUG_TINY 0x80
  572. DEBUG_TIMING 0x100
  573. DEBUG_NEGO 0x200
  574. DEBUG_TAGS 0x400
  575. DEBUG_FREEZE 0x800
  576. DEBUG_RESTART 0x1000
  577. You can play safely with DEBUG_NEGO. However, some of these flags may
  578. generate bunches of syslog messages.
  579. 10.2.11 Burst max
  580. burst:0 burst disabled
  581. burst:255 get burst length from initial IO register settings.
  582. burst:#x burst enabled (1<<#x burst transfers max)
  583. #x is an integer value which is log base 2 of the burst transfers max.
  584. The NCR53C875 and NCR53C825A support up to 128 burst transfers (#x = 7).
  585. Other chips only support up to 16 (#x = 4).
  586. This is a maximum value. The driver set the burst length according to chip
  587. and revision ids. By default the driver uses the maximum value supported
  588. by the chip.
  589. 10.2.12 LED support
  590. led:1 enable LED support
  591. led:0 disable LED support
  592. Donnot enable LED support if your scsi board does not use SDMS BIOS.
  593. (See 'Configuration parameters')
  594. 10.2.13 Max wide
  595. wide:1 wide scsi enabled
  596. wide:0 wide scsi disabled
  597. Some scsi boards use a 875 (ultra wide) and only supply narrow connectors.
  598. If you have connected a wide device with a 50 pins to 68 pins cable
  599. converter, any accepted wide negotiation will break further data transfers.
  600. In such a case, using "wide:0" in the bootup command will be helpful.
  601. 10.2.14 Differential mode
  602. diff:0 never set up diff mode
  603. diff:1 set up diff mode if BIOS set it
  604. diff:2 always set up diff mode
  605. diff:3 set diff mode if GPIO3 is not set
  606. 10.2.15 IRQ mode
  607. irqm:0 always open drain
  608. irqm:1 same as initial settings (assumed BIOS settings)
  609. irqm:2 always totem pole
  610. irqm:0x10 driver will not use IRQF_SHARED flag when requesting irq
  611. (Bits 0x10 and 0x20 can be combined with hardware irq mode option)
  612. 10.2.16 Reverse probe
  613. revprob:n probe chip ids from the PCI configuration in this order:
  614. 810, 815, 820, 860, 875, 885, 895, 896
  615. revprob:y probe chip ids in the reverse order.
  616. 10.2.17 Fix up PCI configuration space
  617. pcifix:<option bits>
  618. Available option bits:
  619. 0x0: No attempt to fix PCI configuration space registers values.
  620. 0x1: Set PCI cache-line size register if not set.
  621. 0x2: Set write and invalidate bit in PCI command register.
  622. 0x4: Increase if necessary PCI latency timer according to burst max.
  623. Use 'pcifix:7' in order to allow the driver to fix up all PCI features.
  624. 10.2.18 Serial NVRAM
  625. nvram:n do not look for serial NVRAM
  626. nvram:y test controllers for onboard serial NVRAM
  627. (alternate binary form)
  628. mvram=<bits options>
  629. 0x01 look for NVRAM (equivalent to nvram=y)
  630. 0x02 ignore NVRAM "Synchronous negotiation" parameters for all devices
  631. 0x04 ignore NVRAM "Wide negotiation" parameter for all devices
  632. 0x08 ignore NVRAM "Scan at boot time" parameter for all devices
  633. 0x80 also attach controllers set to OFF in the NVRAM (sym53c8xx only)
  634. 10.2.19 Check SCSI BUS
  635. buschk:<option bits>
  636. Available option bits:
  637. 0x0: No check.
  638. 0x1: Check and do not attach the controller on error.
  639. 0x2: Check and just warn on error.
  640. 0x4: Disable SCSI bus integrity checking.
  641. 10.2.20 Exclude a host from being attached
  642. excl=<io_address>
  643. Prevent host at a given io address from being attached.
  644. For example 'ncr53c8xx=excl:0xb400,excl:0xc000' indicate to the
  645. ncr53c8xx driver not to attach hosts at address 0xb400 and 0xc000.
  646. 10.2.21 Suggest a default SCSI id for hosts
  647. hostid:255 no id suggested.
  648. hostid:#x (0 < x < 7) x suggested for hosts SCSI id.
  649. If a host SCSI id is available from the NVRAM, the driver will ignore
  650. any value suggested as boot option. Otherwise, if a suggested value
  651. different from 255 has been supplied, it will use it. Otherwise, it will
  652. try to deduce the value previously set in the hardware and use value
  653. 7 if the hardware value is zero.
  654. 10.2.22 Enable use of IMMEDIATE ARBITRATION
  655. (only supported by the sym53c8xx driver. See 10.7 for more details)
  656. iarb:0 do not use this feature.
  657. iarb:#x use this feature according to bit fields as follow:
  658. bit 0 (1) : enable IARB each time the initiator has been reselected
  659. when it arbitrated for the SCSI BUS.
  660. (#x >> 4) : maximum number of successive settings of IARB if the initiator
  661. win arbitration and it has other commands to send to a device.
  662. Boot fail safe
  663. safe:y load the following assumed fail safe initial setup
  664. master parity disabled mpar:n
  665. scsi parity enabled spar:y
  666. disconnections not allowed disc:n
  667. special features disabled specf:n
  668. ultra scsi disabled ultra:n
  669. force sync negotiation disabled fsn:n
  670. reverse probe disabled revprob:n
  671. PCI fix up disabled pcifix:0
  672. serial NVRAM enabled nvram:y
  673. verbosity level 2 verb:2
  674. tagged command queuing disabled tags:0
  675. synchronous negotiation disabled sync:255
  676. debug flags none debug:0
  677. burst length from BIOS settings burst:255
  678. LED support disabled led:0
  679. wide support disabled wide:0
  680. settle time 10 seconds settle:10
  681. differential support from BIOS settings diff:1
  682. irq mode from BIOS settings irqm:1
  683. SCSI BUS check do not attach on error buschk:1
  684. immediate arbitration disabled iarb:0
  685. 10.3 Advised boot setup commands
  686. If the driver has been configured with default options, the equivalent
  687. boot setup is:
  688. ncr53c8xx=mpar:y,spar:y,disc:y,specf:3,fsn:n,ultra:2,fsn:n,revprob:n,verb:1\
  689. tags:0,sync:50,debug:0,burst:7,led:0,wide:1,settle:2,diff:0,irqm:0
  690. For an installation diskette or a safe but not fast system,
  691. boot setup can be:
  692. ncr53c8xx=safe:y,mpar:y,disc:y
  693. ncr53c8xx=safe:y,disc:y
  694. ncr53c8xx=safe:y,mpar:y
  695. ncr53c8xx=safe:y
  696. My personal system works flawlessly with the following equivalent setup:
  697. ncr53c8xx=mpar:y,spar:y,disc:y,specf:1,fsn:n,ultra:2,fsn:n,revprob:n,verb:1\
  698. tags:32,sync:12,debug:0,burst:7,led:1,wide:1,settle:2,diff:0,irqm:0
  699. The driver prints its actual setup when verbosity level is 2. You can try
  700. "ncr53c8xx=verb:2" to get the "static" setup of the driver, or add "verb:2"
  701. to your boot setup command in order to check the actual setup the driver is
  702. using.
  703. 10.4 PCI configuration fix-up boot option
  704. pcifix:<option bits>
  705. Available option bits:
  706. 0x1: Set PCI cache-line size register if not set.
  707. 0x2: Set write and invalidate bit in PCI command register.
  708. Use 'pcifix:3' in order to allow the driver to fix both PCI features.
  709. These options only apply to new SYMBIOS chips 810A, 825A, 860, 875
  710. and 895 and are only supported for Pentium and 486 class processors.
  711. Recent SYMBIOS 53C8XX scsi processors are able to use PCI read multiple
  712. and PCI write and invalidate commands. These features require the
  713. cache line size register to be properly set in the PCI configuration
  714. space of the chips. On the other hand, chips will use PCI write and
  715. invalidate commands only if the corresponding bit is set to 1 in the
  716. PCI command register.
  717. Not all PCI bioses set the PCI cache line register and the PCI write and
  718. invalidate bit in the PCI configuration space of 53C8XX chips.
  719. Optimized PCI accesses may be broken for some PCI/memory controllers or
  720. make problems with some PCI boards.
  721. This fix-up worked flawlessly on my previous system.
  722. (MB Triton HX / 53C875 / 53C810A)
  723. I use these options at my own risks as you will do if you decide to
  724. use them too.
  725. 10.5 Serial NVRAM support boot option
  726. nvram:n do not look for serial NVRAM
  727. nvram:y test controllers for onboard serial NVRAM
  728. This option can also been entered as an hexadecimal value that allows
  729. to control what information the driver will get from the NVRAM and what
  730. information it will ignore.
  731. For details see '17. Serial NVRAM support'.
  732. When this option is enabled, the driver tries to detect all boards using
  733. a Serial NVRAM. This memory is used to hold user set up parameters.
  734. The parameters the driver is able to get from the NVRAM depend on the
  735. data format used, as follow:
  736. Tekram format Symbios format
  737. General and host parameters
  738. Boot order N Y
  739. Host SCSI ID Y Y
  740. SCSI parity checking Y Y
  741. Verbose boot messages N Y
  742. SCSI devices parameters
  743. Synchronous transfer speed Y Y
  744. Wide 16 / Narrow Y Y
  745. Tagged Command Queuing enabled Y Y
  746. Disconnections enabled Y Y
  747. Scan at boot time N Y
  748. In order to speed up the system boot, for each device configured without
  749. the "scan at boot time" option, the driver forces an error on the
  750. first TEST UNIT READY command received for this device.
  751. Some SDMS BIOS revisions seem to be unable to boot cleanly with very fast
  752. hard disks. In such a situation you cannot configure the NVRAM with
  753. optimized parameters value.
  754. The 'nvram' boot option can be entered in hexadecimal form in order
  755. to ignore some options configured in the NVRAM, as follow:
  756. mvram=<bits options>
  757. 0x01 look for NVRAM (equivalent to nvram=y)
  758. 0x02 ignore NVRAM "Synchronous negotiation" parameters for all devices
  759. 0x04 ignore NVRAM "Wide negotiation" parameter for all devices
  760. 0x08 ignore NVRAM "Scan at boot time" parameter for all devices
  761. 0x80 also attach controllers set to OFF in the NVRAM (sym53c8xx only)
  762. Option 0x80 is only supported by the sym53c8xx driver and is disabled by
  763. default. Result is that, by default (option not set), the sym53c8xx driver
  764. will not attach controllers set to OFF in the NVRAM.
  765. The ncr53c8xx always tries to attach all the controllers. Option 0x80 has
  766. not been added to the ncr53c8xx driver, since it has been reported to
  767. confuse users who use this driver since a long time. If you desire a
  768. controller not to be attached by the ncr53c8xx driver at Linux boot, you
  769. must use the 'excl' driver boot option.
  770. 10.6 SCSI BUS checking boot option.
  771. When this option is set to a non-zero value, the driver checks SCSI lines
  772. logic state, 100 micro-seconds after having asserted the SCSI RESET line.
  773. The driver just reads SCSI lines and checks all lines read FALSE except RESET.
  774. Since SCSI devices shall release the BUS at most 800 nano-seconds after SCSI
  775. RESET has been asserted, any signal to TRUE may indicate a SCSI BUS problem.
  776. Unfortunately, the following common SCSI BUS problems are not detected:
  777. - Only 1 terminator installed.
  778. - Misplaced terminators.
  779. - Bad quality terminators.
  780. On the other hand, either bad cabling, broken devices, not conformant
  781. devices, ... may cause a SCSI signal to be wrong when te driver reads it.
  782. 10.7 IMMEDIATE ARBITRATION boot option
  783. This option is only supported by the SYM53C8XX driver (not by the NCR53C8XX).
  784. SYMBIOS 53C8XX chips are able to arbitrate for the SCSI BUS as soon as they
  785. have detected an expected disconnection (BUS FREE PHASE). For this process
  786. to be started, bit 1 of SCNTL1 IO register must be set when the chip is
  787. connected to the SCSI BUS.
  788. When this feature has been enabled for the current connection, the chip has
  789. every chance to win arbitration if only devices with lower priority are
  790. competing for the SCSI BUS. By the way, when the chip is using SCSI id 7,
  791. then it will for sure win the next SCSI BUS arbitration.
  792. Since, there is no way to know what devices are trying to arbitrate for the
  793. BUS, using this feature can be extremely unfair. So, you are not advised
  794. to enable it, or at most enable this feature for the case the chip lost
  795. the previous arbitration (boot option 'iarb:1').
  796. This feature has the following advantages:
  797. a) Allow the initiator with ID 7 to win arbitration when it wants so.
  798. b) Overlap at least 4 micro-seconds of arbitration time with the execution
  799. of SCRIPTS that deal with the end of the current connection and that
  800. starts the next job.
  801. Hmmm... But (a) may just prevent other devices from reselecting the initiator,
  802. and delay data transfers or status/completions, and (b) may just waste
  803. SCSI BUS bandwidth if the SCRIPTS execution lasts more than 4 micro-seconds.
  804. The use of IARB needs the SCSI_NCR_IARB_SUPPORT option to have been defined
  805. at compile time and the 'iarb' boot option to have been set to a non zero
  806. value at boot time. It is not that useful for real work, but can be used
  807. to stress SCSI devices or for some applications that can gain advantage of
  808. it. By the way, if you experience badnesses like 'unexpected disconnections',
  809. 'bad reselections', etc... when using IARB on heavy IO load, you should not
  810. be surprised, because force-feeding anything and blocking its arse at the
  811. same time cannot work for a long time. :-))
  812. 11. Some constants and flags of the ncr53c8xx.h header file
  813. Some of these are defined from the configuration parameters. To
  814. change other "defines", you must edit the header file. Do that only
  815. if you know what you are doing.
  816. SCSI_NCR_SETUP_SPECIAL_FEATURES (default: defined)
  817. If defined, the driver will enable some special features according
  818. to chip and revision id.
  819. For 810A, 860, 825A, 875 and 895 scsi chips, this option enables
  820. support of features that reduce load of PCI bus and memory accesses
  821. during scsi transfer processing: burst op-code fetch, read multiple,
  822. read line, prefetch, cache line, write and invalidate,
  823. burst 128 (875 only), large dma fifo (875 only), offset 16 (875 only).
  824. Can be changed by the following boot setup command:
  825. ncr53c8xx=specf:n
  826. SCSI_NCR_IOMAPPED (default: not defined)
  827. If defined, normal I/O is forced.
  828. SCSI_NCR_SHARE_IRQ (default: defined)
  829. If defined, request shared IRQ.
  830. SCSI_NCR_MAX_TAGS (default: 8)
  831. Maximum number of simultaneous tagged commands to a device.
  832. Can be changed by "settags <target> <maxtags>"
  833. SCSI_NCR_SETUP_DEFAULT_SYNC (default: 50)
  834. Transfer period factor the driver will use at boot time for synchronous
  835. negotiation. 0 means asynchronous.
  836. Can be changed by "setsync <target> <period factor>"
  837. SCSI_NCR_SETUP_DEFAULT_TAGS (default: 8)
  838. Default number of simultaneous tagged commands to a device.
  839. < 1 means tagged command queuing disabled at start-up.
  840. SCSI_NCR_ALWAYS_SIMPLE_TAG (default: defined)
  841. Use SIMPLE TAG for read and write commands.
  842. Can be changed by "setorder <ordered|simple|default>"
  843. SCSI_NCR_SETUP_DISCONNECTION (default: defined)
  844. If defined, targets are allowed to disconnect.
  845. SCSI_NCR_SETUP_FORCE_SYNC_NEGO (default: not defined)
  846. If defined, synchronous negotiation is tried for all SCSI-2 devices.
  847. Can be changed by "setsync <target> <period>"
  848. SCSI_NCR_SETUP_MASTER_PARITY (default: defined)
  849. If defined, master parity checking is enabled.
  850. SCSI_NCR_SETUP_SCSI_PARITY (default: defined)
  851. If defined, SCSI parity checking is enabled.
  852. SCSI_NCR_PROFILE_SUPPORT (default: not defined)
  853. If defined, profiling information is gathered.
  854. SCSI_NCR_MAX_SCATTER (default: 128)
  855. Scatter list size of the driver ccb.
  856. SCSI_NCR_MAX_TARGET (default: 16)
  857. Max number of targets per host.
  858. SCSI_NCR_MAX_HOST (default: 2)
  859. Max number of host controllers.
  860. SCSI_NCR_SETTLE_TIME (default: 2)
  861. Number of seconds the driver will wait after reset.
  862. SCSI_NCR_TIMEOUT_ALERT (default: 3)
  863. If a pending command will time out after this amount of seconds,
  864. an ordered tag is used for the next command.
  865. Avoids timeouts for unordered tagged commands.
  866. SCSI_NCR_CAN_QUEUE (default: 7*SCSI_NCR_MAX_TAGS)
  867. Max number of commands that can be queued to a host.
  868. SCSI_NCR_CMD_PER_LUN (default: SCSI_NCR_MAX_TAGS)
  869. Max number of commands queued to a host for a device.
  870. SCSI_NCR_SG_TABLESIZE (default: SCSI_NCR_MAX_SCATTER-1)
  871. Max size of the Linux scatter/gather list.
  872. SCSI_NCR_MAX_LUN (default: 8)
  873. Max number of LUNs per target.
  874. 12. Installation
  875. This driver is part of the linux kernel distribution.
  876. Driver files are located in the sub-directory "drivers/scsi" of the
  877. kernel source tree.
  878. Driver files:
  879. README.ncr53c8xx : this file
  880. ChangeLog.ncr53c8xx : change log
  881. ncr53c8xx.h : definitions
  882. ncr53c8xx.c : the driver code
  883. New driver versions are made available separately in order to allow testing
  884. changes and new features prior to including them into the linux kernel
  885. distribution. The following URL provides information on latest available
  886. patches:
  887. ftp://ftp.tux.org/pub/people/gerard-roudier/README
  888. 13. Architecture dependent features.
  889. <Not yet written>
  890. 14. Known problems
  891. 14.1 Tagged commands with Iomega Jaz device
  892. I have not tried this device, however it has been reported to me the
  893. following: This device is capable of Tagged command queuing. However
  894. while spinning up, it rejects Tagged commands. This behaviour is
  895. conforms to 6.8.2 of SCSI-2 specifications. The current behaviour of
  896. the driver in that situation is not satisfying. So do not enable
  897. Tagged command queuing for devices that are able to spin down. The
  898. other problem that may appear is timeouts. The only way to avoid
  899. timeouts seems to edit linux/drivers/scsi/sd.c and to increase the
  900. current timeout values.
  901. 14.2 Device names change when another controller is added.
  902. When you add a new NCR53C8XX chip based controller to a system that already
  903. has one or more controllers of this family, it may happen that the order
  904. the driver registers them to the kernel causes problems due to device
  905. name changes.
  906. When at least one controller uses NvRAM, SDMS BIOS version 4 allows you to
  907. define the order the BIOS will scan the scsi boards. The driver attaches
  908. controllers according to BIOS information if NvRAM detect option is set.
  909. If your controllers do not have NvRAM, you can:
  910. - Ask the driver to probe chip ids in reverse order from the boot command
  911. line: ncr53c8xx=revprob:y
  912. - Make appropriate changes in the fstab.
  913. - Use the 'scsidev' tool from Eric Youngdale.
  914. 14.3 Using only 8 bit devices with a WIDE SCSI controller.
  915. When only 8 bit NARROW devices are connected to a 16 bit WIDE SCSI controller,
  916. you must ensure that lines of the wide part of the SCSI BUS are pulled-up.
  917. This can be achieved by ENABLING the WIDE TERMINATOR portion of the SCSI
  918. controller card.
  919. The TYAN 1365 documentation revision 1.2 is not correct about such settings.
  920. (page 10, figure 3.3).
  921. 14.4 Possible data corruption during a Memory Write and Invalidate
  922. This problem is described in SYMBIOS DEL 397, Part Number 69-039241, ITEM 4.
  923. In some complex situations, 53C875 chips revision <= 3 may start a PCI
  924. Write and Invalidate Command at a not cache-line-aligned 4 DWORDS boundary.
  925. This is only possible when Cache Line Size is 8 DWORDS or greater.
  926. Pentium systems use a 8 DWORDS cache line size and so are concerned by
  927. this chip bug, unlike i486 systems that use a 4 DWORDS cache line size.
  928. When this situation occurs, the chip may complete the Write and Invalidate
  929. command after having only filled part of the last cache line involved in
  930. the transfer, leaving to data corruption the remainder of this cache line.
  931. Not using Write And Invalidate obviously gets rid of this chip bug, and so
  932. it is now the default setting of the driver.
  933. However, for people like me who want to enable this feature, I have added
  934. part of a work-around suggested by SYMBIOS. This work-around resets the
  935. addressing logic when the DATA IN phase is entered and so prevents the bug
  936. from being triggered for the first SCSI MOVE of the phase. This work-around
  937. should be enough according to the following:
  938. The only driver internal data structure that is greater than 8 DWORDS and
  939. that is moved by the SCRIPTS processor is the 'CCB header' that contains
  940. the context of the SCSI transfer. This data structure is aligned on 8 DWORDS
  941. boundary (Pentium Cache Line Size), and so is immune to this chip bug, at
  942. least on Pentium systems.
  943. But the conditions of this bug can be met when a SCSI read command is
  944. performed using a buffer that is 4 DWORDS but not cache-line aligned.
  945. This cannot happen under Linux when scatter/gather lists are used since
  946. they only refer to system buffers that are well aligned. So, a work around
  947. may only be needed under Linux when a scatter/gather list is not used and
  948. when the SCSI DATA IN phase is reentered after a phase mismatch.
  949. 15. SCSI problem troubleshooting
  950. 15.1 Problem tracking
  951. Most SCSI problems are due to a non conformant SCSI bus or to buggy
  952. devices. If unfortunately you have SCSI problems, you can check the
  953. following things:
  954. - SCSI bus cables
  955. - terminations at both end of the SCSI chain
  956. - linux syslog messages (some of them may help you)
  957. If you do not find the source of problems, you can configure the
  958. driver with no features enabled.
  959. - only asynchronous data transfers
  960. - tagged commands disabled
  961. - disconnections not allowed
  962. Now, if your SCSI bus is ok, your system have every chance to work
  963. with this safe configuration but performances will not be optimal.
  964. If it still fails, then you can send your problem description to
  965. appropriate mailing lists or news-groups. Send me a copy in order to
  966. be sure I will receive it. Obviously, a bug in the driver code is
  967. possible.
  968. My email address: Gerard Roudier <groudier@free.fr>
  969. Allowing disconnections is important if you use several devices on
  970. your SCSI bus but often causes problems with buggy devices.
  971. Synchronous data transfers increases throughput of fast devices like
  972. hard disks. Good SCSI hard disks with a large cache gain advantage of
  973. tagged commands queuing.
  974. Try to enable one feature at a time with control commands. For example:
  975. - echo "setsync all 25" >/proc/scsi/ncr53c8xx/0
  976. Will enable fast synchronous data transfer negotiation for all targets.
  977. - echo "setflag 3" >/proc/scsi/ncr53c8xx/0
  978. Will reset flags (no_disc) for target 3, and so will allow it to disconnect
  979. the SCSI Bus.
  980. - echo "settags 3 8" >/proc/scsi/ncr53c8xx/0
  981. Will enable tagged command queuing for target 3 if that device supports it.
  982. Once you have found the device and the feature that cause problems, just
  983. disable that feature for that device.
  984. 15.2 Understanding hardware error reports
  985. When the driver detects an unexpected error condition, it may display a
  986. message of the following pattern.
  987. sym53c876-0:1: ERROR (0:48) (1-21-65) (f/95) @ (script 7c0:19000000).
  988. sym53c876-0: script cmd = 19000000
  989. sym53c876-0: regdump: da 10 80 95 47 0f 01 07 75 01 81 21 80 01 09 00.
  990. Some fields in such a message may help you understand the cause of the
  991. problem, as follows:
  992. sym53c876-0:1: ERROR (0:48) (1-21-65) (f/95) @ (script 7c0:19000000).
  993. ............A.........B.C....D.E..F....G.H.......I.....J...K.......
  994. Field A : target number.
  995. SCSI ID of the device the controller was talking with at the moment the
  996. error occurs.
  997. Field B : DSTAT io register (DMA STATUS)
  998. Bit 0x40 : MDPE Master Data Parity Error
  999. Data parity error detected on the PCI BUS.
  1000. Bit 0x20 : BF Bus Fault
  1001. PCI bus fault condition detected
  1002. Bit 0x01 : IID Illegal Instruction Detected
  1003. Set by the chip when it detects an Illegal Instruction format
  1004. on some condition that makes an instruction illegal.
  1005. Bit 0x80 : DFE Dma Fifo Empty
  1006. Pure status bit that does not indicate an error.
  1007. If the reported DSTAT value contains a combination of MDPE (0x40),
  1008. BF (0x20), then the cause may be likely due to a PCI BUS problem.
  1009. Field C : SIST io register (SCSI Interrupt Status)
  1010. Bit 0x08 : SGE SCSI GROSS ERROR
  1011. Indicates that the chip detected a severe error condition
  1012. on the SCSI BUS that prevents the SCSI protocol from functioning
  1013. properly.
  1014. Bit 0x04 : UDC Unexpected Disconnection
  1015. Indicates that the device released the SCSI BUS when the chip
  1016. was not expecting this to happen. A device may behave so to
  1017. indicate the SCSI initiator that an error condition not reportable using the SCSI protocol has occurred.
  1018. Bit 0x02 : RST SCSI BUS Reset
  1019. Generally SCSI targets do not reset the SCSI BUS, although any
  1020. device on the BUS can reset it at any time.
  1021. Bit 0x01 : PAR Parity
  1022. SCSI parity error detected.
  1023. On a faulty SCSI BUS, any error condition among SGE (0x08), UDC (0x04) and
  1024. PAR (0x01) may be detected by the chip. If your SCSI system sometimes
  1025. encounters such error conditions, especially SCSI GROSS ERROR, then a SCSI
  1026. BUS problem is likely the cause of these errors.
  1027. For fields D,E,F,G and H, you may look into the sym53c8xx_defs.h file
  1028. that contains some minimal comments on IO register bits.
  1029. Field D : SOCL Scsi Output Control Latch
  1030. This register reflects the state of the SCSI control lines the
  1031. chip want to drive or compare against.
  1032. Field E : SBCL Scsi Bus Control Lines
  1033. Actual value of control lines on the SCSI BUS.
  1034. Field F : SBDL Scsi Bus Data Lines
  1035. Actual value of data lines on the SCSI BUS.
  1036. Field G : SXFER SCSI Transfer
  1037. Contains the setting of the Synchronous Period for output and
  1038. the current Synchronous offset (offset 0 means asynchronous).
  1039. Field H : SCNTL3 Scsi Control Register 3
  1040. Contains the setting of timing values for both asynchronous and
  1041. synchronous data transfers.
  1042. Understanding Fields I, J, K and dumps requires to have good knowledge of
  1043. SCSI standards, chip cores functionnals and internal driver data structures.
  1044. You are not required to decode and understand them, unless you want to help
  1045. maintain the driver code.
  1046. 16. Synchronous transfer negotiation tables
  1047. Tables below have been created by calling the routine the driver uses
  1048. for synchronisation negotiation timing calculation and chip setting.
  1049. The first table corresponds to Ultra chips 53875 and 53C860 with 80 MHz
  1050. clock and 5 clock divisors.
  1051. The second one has been calculated by setting the scsi clock to 40 Mhz
  1052. and using 4 clock divisors and so applies to all NCR53C8XX chips in fast
  1053. SCSI-2 mode.
  1054. Periods are in nano-seconds and speeds are in Mega-transfers per second.
  1055. 1 Mega-transfers/second means 1 MB/s with 8 bits SCSI and 2 MB/s with
  1056. Wide16 SCSI.
  1057. 16.1 Synchronous timings for 53C895, 53C875 and 53C860 SCSI controllers
  1058. ----------------------------------------------
  1059. Negotiated NCR settings
  1060. Factor Period Speed Period Speed
  1061. ------ ------ ------ ------ ------
  1062. 10 25 40.000 25 40.000 (53C895 only)
  1063. 11 30.2 33.112 31.25 32.000 (53C895 only)
  1064. 12 50 20.000 50 20.000
  1065. 13 52 19.230 62 16.000
  1066. 14 56 17.857 62 16.000
  1067. 15 60 16.666 62 16.000
  1068. 16 64 15.625 75 13.333
  1069. 17 68 14.705 75 13.333
  1070. 18 72 13.888 75 13.333
  1071. 19 76 13.157 87 11.428
  1072. 20 80 12.500 87 11.428
  1073. 21 84 11.904 87 11.428
  1074. 22 88 11.363 93 10.666
  1075. 23 92 10.869 93 10.666
  1076. 24 96 10.416 100 10.000
  1077. 25 100 10.000 100 10.000
  1078. 26 104 9.615 112 8.888
  1079. 27 108 9.259 112 8.888
  1080. 28 112 8.928 112 8.888
  1081. 29 116 8.620 125 8.000
  1082. 30 120 8.333 125 8.000
  1083. 31 124 8.064 125 8.000
  1084. 32 128 7.812 131 7.619
  1085. 33 132 7.575 150 6.666
  1086. 34 136 7.352 150 6.666
  1087. 35 140 7.142 150 6.666
  1088. 36 144 6.944 150 6.666
  1089. 37 148 6.756 150 6.666
  1090. 38 152 6.578 175 5.714
  1091. 39 156 6.410 175 5.714
  1092. 40 160 6.250 175 5.714
  1093. 41 164 6.097 175 5.714
  1094. 42 168 5.952 175 5.714
  1095. 43 172 5.813 175 5.714
  1096. 44 176 5.681 187 5.333
  1097. 45 180 5.555 187 5.333
  1098. 46 184 5.434 187 5.333
  1099. 47 188 5.319 200 5.000
  1100. 48 192 5.208 200 5.000
  1101. 49 196 5.102 200 5.000
  1102. 16.2 Synchronous timings for fast SCSI-2 53C8XX controllers
  1103. ----------------------------------------------
  1104. Negotiated NCR settings
  1105. Factor Period Speed Period Speed
  1106. ------ ------ ------ ------ ------
  1107. 25 100 10.000 100 10.000
  1108. 26 104 9.615 125 8.000
  1109. 27 108 9.259 125 8.000
  1110. 28 112 8.928 125 8.000
  1111. 29 116 8.620 125 8.000
  1112. 30 120 8.333 125 8.000
  1113. 31 124 8.064 125 8.000
  1114. 32 128 7.812 131 7.619
  1115. 33 132 7.575 150 6.666
  1116. 34 136 7.352 150 6.666
  1117. 35 140 7.142 150 6.666
  1118. 36 144 6.944 150 6.666
  1119. 37 148 6.756 150 6.666
  1120. 38 152 6.578 175 5.714
  1121. 39 156 6.410 175 5.714
  1122. 40 160 6.250 175 5.714
  1123. 41 164 6.097 175 5.714
  1124. 42 168 5.952 175 5.714
  1125. 43 172 5.813 175 5.714
  1126. 44 176 5.681 187 5.333
  1127. 45 180 5.555 187 5.333
  1128. 46 184 5.434 187 5.333
  1129. 47 188 5.319 200 5.000
  1130. 48 192 5.208 200 5.000
  1131. 49 196 5.102 200 5.000
  1132. 17. Serial NVRAM (added by Richard Waltham: dormouse@farsrobt.demon.co.uk)
  1133. 17.1 Features
  1134. Enabling serial NVRAM support enables detection of the serial NVRAM included
  1135. on Symbios and some Symbios compatible host adaptors, and Tekram boards. The
  1136. serial NVRAM is used by Symbios and Tekram to hold set up parameters for the
  1137. host adaptor and its attached drives.
  1138. The Symbios NVRAM also holds data on the boot order of host adaptors in a
  1139. system with more than one host adaptor. This enables the order of scanning
  1140. the cards for drives to be changed from the default used during host adaptor
  1141. detection.
  1142. This can be done to a limited extent at the moment using "reverse probe" but
  1143. this only changes the order of detection of different types of cards. The
  1144. NVRAM boot order settings can do this as well as change the order the same
  1145. types of cards are scanned in, something "reverse probe" cannot do.
  1146. Tekram boards using Symbios chips, DC390W/F/U, which have NVRAM are detected
  1147. and this is used to distinguish between Symbios compatible and Tekram host
  1148. adaptors. This is used to disable the Symbios compatible "diff" setting
  1149. incorrectly set on Tekram boards if the CONFIG_SCSI_53C8XX_SYMBIOS_COMPAT
  1150. configuration parameter is set enabling both Symbios and Tekram boards to be
  1151. used together with the Symbios cards using all their features, including
  1152. "diff" support. ("led pin" support for Symbios compatible cards can remain
  1153. enabled when using Tekram cards. It does nothing useful for Tekram host
  1154. adaptors but does not cause problems either.)
  1155. 17.2 Symbios NVRAM layout
  1156. typical data at NVRAM address 0x100 (53c810a NVRAM)
  1157. -----------------------------------------------------------
  1158. 00 00
  1159. 64 01
  1160. 8e 0b
  1161. 00 30 00 00 00 00 07 00 00 00 00 00 00 00 07 04 10 04 00 00
  1162. 04 00 0f 00 00 10 00 50 00 00 01 00 00 62
  1163. 04 00 03 00 00 10 00 58 00 00 01 00 00 63
  1164. 04 00 01 00 00 10 00 48 00 00 01 00 00 61
  1165. 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  1166. 0f 00 08 08 64 00 0a 00
  1167. 0f 00 08 08 64 00 0a 00
  1168. 0f 00 08 08 64 00 0a 00
  1169. 0f 00 08 08 64 00 0a 00
  1170. 0f 00 08 08 64 00 0a 00
  1171. 0f 00 08 08 64 00 0a 00
  1172. 0f 00 08 08 64 00 0a 00
  1173. 0f 00 08 08 64 00 0a 00
  1174. 0f 00 08 08 64 00 0a 00
  1175. 0f 00 08 08 64 00 0a 00
  1176. 0f 00 08 08 64 00 0a 00
  1177. 0f 00 08 08 64 00 0a 00
  1178. 0f 00 08 08 64 00 0a 00
  1179. 0f 00 08 08 64 00 0a 00
  1180. 0f 00 08 08 64 00 0a 00
  1181. 0f 00 08 08 64 00 0a 00
  1182. 00 00 00 00 00 00 00 00
  1183. 00 00 00 00 00 00 00 00
  1184. 00 00 00 00 00 00 00 00
  1185. 00 00 00 00 00 00 00 00
  1186. 00 00 00 00 00 00 00 00
  1187. 00 00 00 00 00 00 00 00
  1188. 00 00 00 00 00 00 00 00
  1189. 00 00 00 00 00 00 00 00
  1190. 00 00 00 00 00 00 00 00
  1191. 00 00 00 00 00 00 00 00
  1192. 00 00 00 00 00 00 00 00
  1193. 00 00 00 00 00 00 00 00
  1194. 00 00 00 00 00 00 00 00
  1195. 00 00 00 00 00 00 00 00
  1196. 00 00 00 00 00 00 00 00
  1197. 00 00 00 00 00 00 00 00
  1198. 00 00 00 00 00 00 00 00
  1199. 00 00 00 00 00 00 00 00
  1200. 00 00 00 00 00 00 00 00
  1201. fe fe
  1202. 00 00
  1203. 00 00
  1204. -----------------------------------------------------------
  1205. NVRAM layout details
  1206. NVRAM Address 0x000-0x0ff not used
  1207. 0x100-0x26f initialised data
  1208. 0x270-0x7ff not used
  1209. general layout
  1210. header - 6 bytes,
  1211. data - 356 bytes (checksum is byte sum of this data)
  1212. trailer - 6 bytes
  1213. ---
  1214. total 368 bytes
  1215. data area layout
  1216. controller set up - 20 bytes
  1217. boot configuration - 56 bytes (4x14 bytes)
  1218. device set up - 128 bytes (16x8 bytes)
  1219. unused (spare?) - 152 bytes (19x8 bytes)
  1220. ---
  1221. total 356 bytes
  1222. -----------------------------------------------------------
  1223. header
  1224. 00 00 - ?? start marker
  1225. 64 01 - byte count (lsb/msb excludes header/trailer)
  1226. 8e 0b - checksum (lsb/msb excludes header/trailer)
  1227. -----------------------------------------------------------
  1228. controller set up
  1229. 00 30 00 00 00 00 07 00 00 00 00 00 00 00 07 04 10 04 00 00
  1230. | | | |
  1231. | | | -- host ID
  1232. | | |
  1233. | | --Removable Media Support
  1234. | | 0x00 = none
  1235. | | 0x01 = Bootable Device
  1236. | | 0x02 = All with Media
  1237. | |
  1238. | --flag bits 2
  1239. | 0x00000001= scan order hi->low
  1240. | (default 0x00 - scan low->hi)
  1241. --flag bits 1
  1242. 0x00000001 scam enable
  1243. 0x00000010 parity enable
  1244. 0x00000100 verbose boot msgs
  1245. remaining bytes unknown - they do not appear to change in my
  1246. current set up for any of the controllers.
  1247. default set up is identical for 53c810a and 53c875 NVRAM
  1248. (Removable Media added Symbios BIOS version 4.09)
  1249. -----------------------------------------------------------
  1250. boot configuration
  1251. boot order set by order of the devices in this table
  1252. 04 00 0f 00 00 10 00 50 00 00 01 00 00 62 -- 1st controller
  1253. 04 00 03 00 00 10 00 58 00 00 01 00 00 63 2nd controller
  1254. 04 00 01 00 00 10 00 48 00 00 01 00 00 61 3rd controller
  1255. 00 00 00 00 00 00 00 00 00 00 00 00 00 00 4th controller
  1256. | | | | | | | |
  1257. | | | | | | ---- PCI io port adr
  1258. | | | | | --0x01 init/scan at boot time
  1259. | | | | --PCI device/function number (0xdddddfff)
  1260. | | ----- ?? PCI vendor ID (lsb/msb)
  1261. ----PCI device ID (lsb/msb)
  1262. ?? use of this data is a guess but seems reasonable
  1263. remaining bytes unknown - they do not appear to change in my
  1264. current set up
  1265. default set up is identical for 53c810a and 53c875 NVRAM
  1266. -----------------------------------------------------------
  1267. device set up (up to 16 devices - includes controller)
  1268. 0f 00 08 08 64 00 0a 00 - id 0
  1269. 0f 00 08 08 64 00 0a 00
  1270. 0f 00 08 08 64 00 0a 00
  1271. 0f 00 08 08 64 00 0a 00
  1272. 0f 00 08 08 64 00 0a 00
  1273. 0f 00 08 08 64 00 0a 00
  1274. 0f 00 08 08 64 00 0a 00
  1275. 0f 00 08 08 64 00 0a 00
  1276. 0f 00 08 08 64 00 0a 00
  1277. 0f 00 08 08 64 00 0a 00
  1278. 0f 00 08 08 64 00 0a 00
  1279. 0f 00 08 08 64 00 0a 00
  1280. 0f 00 08 08 64 00 0a 00
  1281. 0f 00 08 08 64 00 0a 00
  1282. 0f 00 08 08 64 00 0a 00
  1283. 0f 00 08 08 64 00 0a 00 - id 15
  1284. | | | | | |
  1285. | | | | ----timeout (lsb/msb)
  1286. | | | --synch period (0x?? 40 Mtrans/sec- fast 40) (probably 0x28)
  1287. | | | (0x30 20 Mtrans/sec- fast 20)
  1288. | | | (0x64 10 Mtrans/sec- fast )
  1289. | | | (0xc8 5 Mtrans/sec)
  1290. | | | (0x00 asynchronous)
  1291. | | -- ?? max sync offset (0x08 in NVRAM on 53c810a)
  1292. | | (0x10 in NVRAM on 53c875)
  1293. | --device bus width (0x08 narrow)
  1294. | (0x10 16 bit wide)
  1295. --flag bits
  1296. 0x00000001 - disconnect enabled
  1297. 0x00000010 - scan at boot time
  1298. 0x00000100 - scan luns
  1299. 0x00001000 - queue tags enabled
  1300. remaining bytes unknown - they do not appear to change in my
  1301. current set up
  1302. ?? use of this data is a guess but seems reasonable
  1303. (but it could be max bus width)
  1304. default set up for 53c810a NVRAM
  1305. default set up for 53c875 NVRAM - bus width - 0x10
  1306. - sync offset ? - 0x10
  1307. - sync period - 0x30
  1308. -----------------------------------------------------------
  1309. ?? spare device space (32 bit bus ??)
  1310. 00 00 00 00 00 00 00 00 (19x8bytes)
  1311. .
  1312. .
  1313. 00 00 00 00 00 00 00 00
  1314. default set up is identical for 53c810a and 53c875 NVRAM
  1315. -----------------------------------------------------------
  1316. trailer
  1317. fe fe - ? end marker ?
  1318. 00 00
  1319. 00 00
  1320. default set up is identical for 53c810a and 53c875 NVRAM
  1321. -----------------------------------------------------------
  1322. 17.3 Tekram NVRAM layout
  1323. nvram 64x16 (1024 bit)
  1324. Drive settings
  1325. Drive ID 0-15 (addr 0x0yyyy0 = device setup, yyyy = ID)
  1326. (addr 0x0yyyy1 = 0x0000)
  1327. x x x x x x x x x x x x x x x x
  1328. | | | | | | | | |
  1329. | | | | | | | | ----- parity check 0 - off
  1330. | | | | | | | | 1 - on
  1331. | | | | | | | |
  1332. | | | | | | | ------- sync neg 0 - off
  1333. | | | | | | | 1 - on
  1334. | | | | | | |
  1335. | | | | | | --------- disconnect 0 - off
  1336. | | | | | | 1 - on
  1337. | | | | | |
  1338. | | | | | ----------- start cmd 0 - off
  1339. | | | | | 1 - on
  1340. | | | | |
  1341. | | | | -------------- tagged cmds 0 - off
  1342. | | | | 1 - on
  1343. | | | |
  1344. | | | ---------------- wide neg 0 - off
  1345. | | | 1 - on
  1346. | | |
  1347. --------------------------- sync rate 0 - 10.0 Mtrans/sec
  1348. 1 - 8.0
  1349. 2 - 6.6
  1350. 3 - 5.7
  1351. 4 - 5.0
  1352. 5 - 4.0
  1353. 6 - 3.0
  1354. 7 - 2.0
  1355. 7 - 2.0
  1356. 8 - 20.0
  1357. 9 - 16.7
  1358. a - 13.9
  1359. b - 11.9
  1360. Global settings
  1361. Host flags 0 (addr 0x100000, 32)
  1362. x x x x x x x x x x x x x x x x
  1363. | | | | | | | | | | | |
  1364. | | | | | | | | ----------- host ID 0x00 - 0x0f
  1365. | | | | | | | |
  1366. | | | | | | | ----------------------- support for 0 - off
  1367. | | | | | | | > 2 drives 1 - on
  1368. | | | | | | |
  1369. | | | | | | ------------------------- support drives 0 - off
  1370. | | | | | | > 1Gbytes 1 - on
  1371. | | | | | |
  1372. | | | | | --------------------------- bus reset on 0 - off
  1373. | | | | | power on 1 - on
  1374. | | | | |
  1375. | | | | ----------------------------- active neg 0 - off
  1376. | | | | 1 - on
  1377. | | | |
  1378. | | | -------------------------------- imm seek 0 - off
  1379. | | | 1 - on
  1380. | | |
  1381. | | ---------------------------------- scan luns 0 - off
  1382. | | 1 - on
  1383. | |
  1384. -------------------------------------- removable 0 - disable
  1385. as BIOS dev 1 - boot device
  1386. 2 - all
  1387. Host flags 1 (addr 0x100001, 33)
  1388. x x x x x x x x x x x x x x x x
  1389. | | | | | |
  1390. | | | --------- boot delay 0 - 3 sec
  1391. | | | 1 - 5
  1392. | | | 2 - 10
  1393. | | | 3 - 20
  1394. | | | 4 - 30
  1395. | | | 5 - 60
  1396. | | | 6 - 120
  1397. | | |
  1398. --------------------------- max tag cmds 0 - 2
  1399. 1 - 4
  1400. 2 - 8
  1401. 3 - 16
  1402. 4 - 32
  1403. Host flags 2 (addr 0x100010, 34)
  1404. x x x x x x x x x x x x x x x x
  1405. |
  1406. ----- F2/F6 enable 0 - off ???
  1407. 1 - on ???
  1408. checksum (addr 0x111111)
  1409. checksum = 0x1234 - (sum addr 0-63)
  1410. ----------------------------------------------------------------------------
  1411. default nvram data:
  1412. 0x0037 0x0000 0x0037 0x0000 0x0037 0x0000 0x0037 0x0000
  1413. 0x0037 0x0000 0x0037 0x0000 0x0037 0x0000 0x0037 0x0000
  1414. 0x0037 0x0000 0x0037 0x0000 0x0037 0x0000 0x0037 0x0000
  1415. 0x0037 0x0000 0x0037 0x0000 0x0037 0x0000 0x0037 0x0000
  1416. 0x0f07 0x0400 0x0001 0x0000 0x0000 0x0000 0x0000 0x0000
  1417. 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
  1418. 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
  1419. 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0xfbbc
  1420. 18. Support for Big Endian
  1421. The PCI local bus has been primarily designed for x86 architecture.
  1422. As a consequence, PCI devices generally expect DWORDS using little endian
  1423. byte ordering.
  1424. 18.1 Big Endian CPU
  1425. In order to support NCR chips on a Big Endian architecture the driver has to
  1426. perform byte reordering each time it is needed. This feature has been
  1427. added to the driver by Cort <cort@cs.nmt.edu> and is available in driver
  1428. version 2.5 and later ones. For the moment Big Endian support has only
  1429. been tested on Linux/PPC (PowerPC).
  1430. 18.2 NCR chip in Big Endian mode of operations
  1431. It can be read in SYMBIOS documentation that some chips support a special
  1432. Big Endian mode, on paper: 53C815, 53C825A, 53C875, 53C875N, 53C895.
  1433. This mode of operations is not software-selectable, but needs pin named
  1434. BigLit to be pulled-up. Using this mode, most of byte reorderings should
  1435. be avoided when the driver is running on a Big Endian CPU.
  1436. Driver version 2.5 is also, in theory, ready for this feature.
  1437. ===============================================================================
  1438. End of NCR53C8XX driver README file