Commit 8dca37d2 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab Committed by Martin K. Petersen
parent a756185d
...@@ -27,5 +27,6 @@ Linux SCSI Subsystem ...@@ -27,5 +27,6 @@ Linux SCSI Subsystem
link_power_management_policy link_power_management_policy
lpfc lpfc
megaraid megaraid
ncr53c8xx
scsi_transport_srp/figures scsi_transport_srp/figures
.. SPDX-License-Identifier: GPL-2.0
=================================================
The Linux NCR53C8XX/SYM53C8XX drivers README file The Linux NCR53C8XX/SYM53C8XX drivers README file
=================================================
Written by Gerard Roudier <groudier@free.fr> Written by Gerard Roudier <groudier@free.fr>
21 Rue Carnot 21 Rue Carnot
95170 DEUIL LA BARRE - FRANCE 95170 DEUIL LA BARRE - FRANCE
29 May 1999 29 May 1999
===============================================================================
1. Introduction .. Contents:
2. Supported chips and SCSI features
3. Advantages of the enhanced 896 driver 1. Introduction
2. Supported chips and SCSI features
3. Advantages of the enhanced 896 driver
3.1 Optimized SCSI SCRIPTS 3.1 Optimized SCSI SCRIPTS
3.2 New features of the SYM53C896 (64 bit PCI dual LVD SCSI controller) 3.2 New features of the SYM53C896 (64 bit PCI dual LVD SCSI controller)
4. Memory mapped I/O versus normal I/O 4. Memory mapped I/O versus normal I/O
5. Tagged command queueing 5. Tagged command queueing
6. Parity checking 6. Parity checking
7. Profiling information 7. Profiling information
8. Control commands 8. Control commands
8.1 Set minimum synchronous period 8.1 Set minimum synchronous period
8.2 Set wide size 8.2 Set wide size
8.3 Set maximum number of concurrent tagged commands 8.3 Set maximum number of concurrent tagged commands
...@@ -27,8 +34,8 @@ Written by Gerard Roudier <groudier@free.fr> ...@@ -27,8 +34,8 @@ Written by Gerard Roudier <groudier@free.fr>
8.8 Set verbose level 8.8 Set verbose level
8.9 Reset all logical units of a target 8.9 Reset all logical units of a target
8.10 Abort all tasks of all logical units of a target 8.10 Abort all tasks of all logical units of a target
9. Configuration parameters 9. Configuration parameters
10. Boot setup commands 10. Boot setup commands
10.1 Syntax 10.1 Syntax
10.2 Available arguments 10.2 Available arguments
10.2.1 Master parity checking 10.2.1 Master parity checking
...@@ -58,40 +65,41 @@ Written by Gerard Roudier <groudier@free.fr> ...@@ -58,40 +65,41 @@ Written by Gerard Roudier <groudier@free.fr>
10.5 Serial NVRAM support boot option 10.5 Serial NVRAM support boot option
10.6 SCSI BUS checking boot option 10.6 SCSI BUS checking boot option
10.7 IMMEDIATE ARBITRATION boot option 10.7 IMMEDIATE ARBITRATION boot option
11. Some constants and flags of the ncr53c8xx.h header file 11. Some constants and flags of the ncr53c8xx.h header file
12. Installation 12. Installation
13. Architecture dependent features 13. Architecture dependent features
14. Known problems 14. Known problems
14.1 Tagged commands with Iomega Jaz device 14.1 Tagged commands with Iomega Jaz device
14.2 Device names change when another controller is added 14.2 Device names change when another controller is added
14.3 Using only 8 bit devices with a WIDE SCSI controller. 14.3 Using only 8 bit devices with a WIDE SCSI controller.
14.4 Possible data corruption during a Memory Write and Invalidate 14.4 Possible data corruption during a Memory Write and Invalidate
14.5 IRQ sharing problems 14.5 IRQ sharing problems
15. SCSI problem troubleshooting 15. SCSI problem troubleshooting
15.1 Problem tracking 15.1 Problem tracking
15.2 Understanding hardware error reports 15.2 Understanding hardware error reports
16. Synchronous transfer negotiation tables 16. Synchronous transfer negotiation tables
16.1 Synchronous timings for 53C875 and 53C860 Ultra-SCSI controllers 16.1 Synchronous timings for 53C875 and 53C860 Ultra-SCSI controllers
16.2 Synchronous timings for fast SCSI-2 53C8XX controllers 16.2 Synchronous timings for fast SCSI-2 53C8XX controllers
17. Serial NVRAM support (by Richard Waltham) 17. Serial NVRAM support (by Richard Waltham)
17.1 Features 17.1 Features
17.2 Symbios NVRAM layout 17.2 Symbios NVRAM layout
17.3 Tekram NVRAM layout 17.3 Tekram NVRAM layout
18. Support for Big Endian 18. Support for Big Endian
18.1 Big Endian CPU 18.1 Big Endian CPU
18.2 NCR chip in Big Endian mode of operations 18.2 NCR chip in Big Endian mode of operations
===============================================================================
1. Introduction 1. Introduction
===============
The initial Linux ncr53c8xx driver has been a port of the ncr driver from The initial Linux ncr53c8xx driver has been a port of the ncr driver from
FreeBSD that has been achieved in November 1995 by: FreeBSD that has been achieved in November 1995 by:
Gerard Roudier <groudier@free.fr>
- Gerard Roudier <groudier@free.fr>
The original driver has been written for 386bsd and FreeBSD by: The original driver has been written for 386bsd and FreeBSD by:
Wolfgang Stanglmeier <wolf@cologne.de>
Stefan Esser <se@mi.Uni-Koeln.de> - Wolfgang Stanglmeier <wolf@cologne.de>
- Stefan Esser <se@mi.Uni-Koeln.de>
It is now available as a bundle of 2 drivers: It is now available as a bundle of 2 drivers:
...@@ -109,16 +117,16 @@ Drew Eckhardt. ...@@ -109,16 +117,16 @@ Drew Eckhardt.
Information about new chips is available at LSILOGIC web server: Information about new chips is available at LSILOGIC web server:
http://www.lsilogic.com/ - http://www.lsilogic.com/
SCSI standard documentations are available at SYMBIOS ftp server: SCSI standard documentations are available at SYMBIOS ftp server:
ftp://ftp.symbios.com/ - ftp://ftp.symbios.com/
Useful SCSI tools written by Eric Youngdale are available at tsx-11: Useful SCSI tools written by Eric Youngdale are available at tsx-11:
ftp://tsx-11.mit.edu/pub/linux/ALPHA/scsi/scsiinfo-X.Y.tar.gz - ftp://tsx-11.mit.edu/pub/linux/ALPHA/scsi/scsiinfo-X.Y.tar.gz
ftp://tsx-11.mit.edu/pub/linux/ALPHA/scsi/scsidev-X.Y.tar.gz - ftp://tsx-11.mit.edu/pub/linux/ALPHA/scsi/scsidev-X.Y.tar.gz
These tools are not ALPHA but quite clean and work quite well. These tools are not ALPHA but quite clean and work quite well.
It is essential you have the 'scsiinfo' package. It is essential you have the 'scsiinfo' package.
...@@ -131,67 +139,90 @@ This driver has been tested OK with linux/i386, Linux/Alpha and Linux/PPC. ...@@ -131,67 +139,90 @@ This driver has been tested OK with linux/i386, Linux/Alpha and Linux/PPC.
Latest driver version and patches are available at: Latest driver version and patches are available at:
ftp://ftp.tux.org/pub/people/gerard-roudier - ftp://ftp.tux.org/pub/people/gerard-roudier
or or
ftp://ftp.symbios.com/mirror/ftp.tux.org/pub/tux/roudier/drivers
- ftp://ftp.symbios.com/mirror/ftp.tux.org/pub/tux/roudier/drivers
I am not a native speaker of English and there are probably lots of I am not a native speaker of English and there are probably lots of
mistakes in this README file. Any help will be welcome. mistakes in this README file. Any help will be welcome.
2. Supported chips and SCSI features 2. Supported chips and SCSI features
====================================
The following features are supported for all chips: The following features are supported for all chips:
Synchronous negotiation - Synchronous negotiation
Disconnection - Disconnection
Tagged command queuing - Tagged command queuing
SCSI parity checking - SCSI parity checking
Master parity checking - Master parity checking
"Wide negotiation" is supported for chips that allow it. The "Wide negotiation" is supported for chips that allow it. The
following table shows some characteristics of NCR 8xx family chips following table shows some characteristics of NCR 8xx family chips
and what drivers support them. and what drivers support them.
Supported by Supported by +--------+-----------+-----+-----------+------------+------------+------------+
On board the generic the enhanced | | | | | |Supported by|Supported by|
Chip SDMS BIOS Wide SCSI std. Max. sync driver driver | |On board | | | |the generic |the enhanced|
---- --------- ---- --------- ---------- ------------ ------------- |Chip |SDMS BIOS |Wide |SCSI std. | Max. sync |driver |driver |
810 N N FAST10 10 MB/s Y N +--------+-----------+-----+-----------+------------+------------+------------+
810A N N FAST10 10 MB/s Y Y |810 | N | N | FAST10 | 10 MB/s | Y | N |
815 Y N FAST10 10 MB/s Y N +--------+-----------+-----+-----------+------------+------------+------------+
825 Y Y FAST10 20 MB/s Y N |810A | N | N | FAST10 | 10 MB/s | Y | Y |
825A Y Y FAST10 20 MB/s Y Y +--------+-----------+-----+-----------+------------+------------+------------+
860 N N FAST20 20 MB/s Y Y |815 | Y | N | FAST10 | 10 MB/s | Y | N |
875 Y Y FAST20 40 MB/s Y Y +--------+-----------+-----+-----------+------------+------------+------------+
876 Y Y FAST20 40 MB/s Y Y |825 | Y | Y | FAST10 | 20 MB/s | Y | N |
895 Y Y FAST40 80 MB/s Y Y +--------+-----------+-----+-----------+------------+------------+------------+
895A Y Y FAST40 80 MB/s Y Y |825A | Y | Y | FAST10 | 20 MB/s | Y | Y |
896 Y Y FAST40 80 MB/s Y Y +--------+-----------+-----+-----------+------------+------------+------------+
897 Y Y FAST40 80 MB/s Y Y |860 | N | N | FAST20 | 20 MB/s | Y | Y |
1510D Y Y FAST40 80 MB/s Y Y +--------+-----------+-----+-----------+------------+------------+------------+
1010 Y Y FAST80 160 MB/s N Y |875 | Y | Y | FAST20 | 40 MB/s | Y | Y |
1010_66* Y Y FAST80 160 MB/s N Y +--------+-----------+-----+-----------+------------+------------+------------+
|876 | Y | Y | FAST20 | 40 MB/s | Y | Y |
* Chip supports 33MHz and 66MHz PCI buses. +--------+-----------+-----+-----------+------------+------------+------------+
|895 | Y | Y | FAST40 | 80 MB/s | Y | Y |
+--------+-----------+-----+-----------+------------+------------+------------+
|895A | Y | Y | FAST40 | 80 MB/s | Y | Y |
+--------+-----------+-----+-----------+------------+------------+------------+
|896 | Y | Y | FAST40 | 80 MB/s | Y | Y |
+--------+-----------+-----+-----------+------------+------------+------------+
|897 | Y | Y | FAST40 | 80 MB/s | Y | Y |
+--------+-----------+-----+-----------+------------+------------+------------+
|1510D | Y | Y | FAST40 | 80 MB/s | Y | Y |
+--------+-----------+-----+-----------+------------+------------+------------+
|1010 | Y | Y | FAST80 |160 MB/s | N | Y |
+--------+-----------+-----+-----------+------------+------------+------------+
|1010_66 | Y | Y | FAST80 |160 MB/s | N | Y |
|[1]_ | | | | | | |
+--------+-----------+-----+-----------+------------+------------+------------+
.. [1] Chip supports 33MHz and 66MHz PCI buses.
Summary of other supported features: Summary of other supported features:
Module: allow to load the driver :Module: allow to load the driver
Memory mapped I/O: increases performance :Memory mapped I/O: increases performance
Profiling information: read operations from the proc SCSI file system :Profiling information: read operations from the proc SCSI file system
Control commands: write operations to the proc SCSI file system :Control commands: write operations to the proc SCSI file system
Debugging information: written to syslog (expert only) :Debugging information: written to syslog (expert only)
Scatter / gather :Serial NVRAM: Symbios and Tekram formats
Shared interrupt
Boot setup commands - Scatter / gather
Serial NVRAM: Symbios and Tekram formats - Shared interrupt
- Boot setup commands
3. Advantages of the enhanced 896 driver 3. Advantages of the enhanced 896 driver
========================================
3.1 Optimized SCSI SCRIPTS. 3.1 Optimized SCSI SCRIPTS
--------------------------
The 810A, 825A, 875, 895, 896 and 895A support new SCSI SCRIPTS instructions The 810A, 825A, 875, 895, 896 and 895A support new SCSI SCRIPTS instructions
named LOAD and STORE that allow to move up to 1 DWORD from/to an IO register named LOAD and STORE that allow to move up to 1 DWORD from/to an IO register
...@@ -202,6 +233,7 @@ modes. The SCSI SCRIPTS had been entirely rewritten using LOAD/STORE instead ...@@ -202,6 +233,7 @@ modes. The SCSI SCRIPTS had been entirely rewritten using LOAD/STORE instead
of MOVE MEMORY instructions. of MOVE MEMORY instructions.
3.2 New features of the SYM53C896 (64 bit PCI dual LVD SCSI controller) 3.2 New features of the SYM53C896 (64 bit PCI dual LVD SCSI controller)
-----------------------------------------------------------------------
The 896 and the 895A allows handling of the phase mismatch context from The 896 and the 895A allows handling of the phase mismatch context from
SCRIPTS (avoids the phase mismatch interrupt that stops the SCSI processor SCRIPTS (avoids the phase mismatch interrupt that stops the SCSI processor
...@@ -217,11 +249,13 @@ instructions that address the on-chip RAM (8k) remain internal to the chip. ...@@ -217,11 +249,13 @@ instructions that address the on-chip RAM (8k) remain internal to the chip.
Due to the use of LOAD/STORE SCRIPTS instructions, this driver does not Due to the use of LOAD/STORE SCRIPTS instructions, this driver does not
support the following chips: support the following chips:
- SYM53C810 revision < 0x10 (16) - SYM53C810 revision < 0x10 (16)
- SYM53C815 all revisions - SYM53C815 all revisions
- SYM53C825 revision < 0x10 (16) - SYM53C825 revision < 0x10 (16)
4. Memory mapped I/O versus normal I/O 4. Memory mapped I/O versus normal I/O
======================================
Memory mapped I/O has less latency than normal I/O. Since Memory mapped I/O has less latency than normal I/O. Since
linux-1.3.x, memory mapped I/O is used rather than normal I/O. Memory linux-1.3.x, memory mapped I/O is used rather than normal I/O. Memory
...@@ -233,6 +267,7 @@ driver to use normal I/O in all cases. ...@@ -233,6 +267,7 @@ driver to use normal I/O in all cases.
5. Tagged command queueing 5. Tagged command queueing
==========================
Queuing more than 1 command at a time to a device allows it to perform Queuing more than 1 command at a time to a device allows it to perform
optimizations based on actual head positions and its mechanical optimizations based on actual head positions and its mechanical
...@@ -270,7 +305,7 @@ is probably just resource wasting. ...@@ -270,7 +305,7 @@ is probably just resource wasting.
If your controller does not have NVRAM or if it is managed by the SDMS If your controller does not have NVRAM or if it is managed by the SDMS
BIOS/SETUP, you can configure tagged queueing feature and device queue BIOS/SETUP, you can configure tagged queueing feature and device queue
depths from the boot command-line. For example: depths from the boot command-line. For example::
ncr53c8xx=tags:4/t2t3q15-t4q7/t1u0q32 ncr53c8xx=tags:4/t2t3q15-t4q7/t1u0q32
...@@ -300,11 +335,15 @@ The heuristic used by the driver in handling QUEUE FULL ensures that the ...@@ -300,11 +335,15 @@ The heuristic used by the driver in handling QUEUE FULL ensures that the
impact on performances is not too bad. You can get rid of the messages by impact on performances is not too bad. You can get rid of the messages by
setting verbose level to zero, as follow: setting verbose level to zero, as follow:
1st method: boot your system using 'ncr53c8xx=verb:0' option. 1st method:
2nd method: apply "setverbose 0" control command to the proc fs entry boot your system using 'ncr53c8xx=verb:0' option.
2nd method:
apply "setverbose 0" control command to the proc fs entry
corresponding to your controller after boot-up. corresponding to your controller after boot-up.
6. Parity checking 6. Parity checking
==================
The driver supports SCSI parity checking and PCI bus master parity The driver supports SCSI parity checking and PCI bus master parity
checking. These features must be enabled in order to ensure safe data checking. These features must be enabled in order to ensure safe data
...@@ -314,35 +353,36 @@ checking by entering appropriate options from the boot command line. ...@@ -314,35 +353,36 @@ checking by entering appropriate options from the boot command line.
(See 10: Boot setup commands). (See 10: Boot setup commands).
7. Profiling information 7. Profiling information
========================
Profiling information is available through the proc SCSI file system. Profiling information is available through the proc SCSI file system.
Since gathering profiling information may impact performances, this Since gathering profiling information may impact performances, this
feature is disabled by default and requires a compilation configuration feature is disabled by default and requires a compilation configuration
option to be set to Y. option to be set to Y.
The device associated with a host has the following pathname: The device associated with a host has the following pathname::
/proc/scsi/ncr53c8xx/N (N=0,1,2 ....) /proc/scsi/ncr53c8xx/N (N=0,1,2 ....)
Generally, only 1 board is used on hardware configuration, and that device is: Generally, only 1 board is used on hardware configuration, and that device is::
/proc/scsi/ncr53c8xx/0 /proc/scsi/ncr53c8xx/0
However, if the driver has been made as module, the number of the However, if the driver has been made as module, the number of the
hosts is incremented each time the driver is loaded. hosts is incremented each time the driver is loaded.
In order to display profiling information, just enter: In order to display profiling information, just enter::
cat /proc/scsi/ncr53c8xx/0 cat /proc/scsi/ncr53c8xx/0
and you will get something like the following text: and you will get something like the following text::
------------------------------------------------------- General information:
General information:
Chip NCR53C810, device id 0x1, revision id 0x2 Chip NCR53C810, device id 0x1, revision id 0x2
IO port address 0x6000, IRQ number 10 IO port address 0x6000, IRQ number 10
Using memory mapped IO at virtual address 0x282c000 Using memory mapped IO at virtual address 0x282c000
Synchronous transfer period 25, max commands per lun 4 Synchronous transfer period 25, max commands per lun 4
Profiling information: Profiling information:
num_trans = 18014 num_trans = 18014
num_kbytes = 671314 num_kbytes = 671314
num_disc = 25763 num_disc = 25763
...@@ -353,13 +393,13 @@ Profiling information: ...@@ -353,13 +393,13 @@ Profiling information:
ms_data = 369940 ms_data = 369940
ms_disc = 183090 ms_disc = 183090
ms_post = 1320 ms_post = 1320
-------------------------------------------------------
General information is easy to understand. The device ID and the General information is easy to understand. The device ID and the
revision ID identify the SCSI chip as follows: revision ID identify the SCSI chip as follows:
======= ============= ===========
Chip Device id Revision Id Chip Device id Revision Id
---- --------- ----------- ======= ============= ===========
810 0x1 < 0x10 810 0x1 < 0x10
810A 0x1 >= 0x10 810A 0x1 >= 0x10
815 0x4 815 0x4
...@@ -368,6 +408,7 @@ Chip Device id Revision Id ...@@ -368,6 +408,7 @@ Chip Device id Revision Id
825A 0x3 >= 0x10 825A 0x3 >= 0x10
875 0xf 875 0xf
895 0xc 895 0xc
======= ============= ===========
The profiling information is updated upon completion of SCSI commands. The profiling information is updated upon completion of SCSI commands.
A data structure is allocated and zeroed when the host adapter is A data structure is allocated and zeroed when the host adapter is
...@@ -430,10 +471,11 @@ of the scatter list. ...@@ -430,10 +471,11 @@ of the scatter list.
8. Control commands 8. Control commands
===================
Control commands can be sent to the driver with write operations to Control commands can be sent to the driver with write operations to
the proc SCSI file system. The generic command syntax is the the proc SCSI file system. The generic command syntax is the
following: following::
echo "<verb> <parameters>" >/proc/scsi/ncr53c8xx/0 echo "<verb> <parameters>" >/proc/scsi/ncr53c8xx/0
(assumes controller number is 0) (assumes controller number is 0)
...@@ -444,66 +486,81 @@ apply to all targets of the SCSI chain (except the controller). ...@@ -444,66 +486,81 @@ apply to all targets of the SCSI chain (except the controller).
Available commands: Available commands:
8.1 Set minimum synchronous period factor 8.1 Set minimum synchronous period factor
-----------------------------------------
setsync <target> <period factor> setsync <target> <period factor>
target: target number :target: target number
period: minimum synchronous period. :period: minimum synchronous period.
Maximum speed = 1000/(4*period factor) except for special Maximum speed = 1000/(4*period factor) except for special
cases below. cases below.
Specify a period of 255, to force asynchronous transfer mode. Specify a period of 255, to force asynchronous transfer mode.
10 means 25 nano-seconds synchronous period - 10 means 25 nano-seconds synchronous period
11 means 30 nano-seconds synchronous period - 11 means 30 nano-seconds synchronous period
12 means 50 nano-seconds synchronous period - 12 means 50 nano-seconds synchronous period
8.2 Set wide size 8.2 Set wide size
-----------------
setwide <target> <size> setwide <target> <size>
target: target number :target: target number
size: 0=8 bits, 1=16bits :size: 0=8 bits, 1=16bits
8.3 Set maximum number of concurrent tagged commands 8.3 Set maximum number of concurrent tagged commands
----------------------------------------------------
settags <target> <tags> settags <target> <tags>
target: target number :target: target number
tags: number of concurrent tagged commands :tags: number of concurrent tagged commands
must not be greater than SCSI_NCR_MAX_TAGS (default: 8) must not be greater than SCSI_NCR_MAX_TAGS (default: 8)
8.4 Set order type for tagged command 8.4 Set order type for tagged command
-------------------------------------
setorder <order> setorder <order>
order: 3 possible values: :order: 3 possible values:
simple: use SIMPLE TAG for all operations (read and write)
ordered: use ORDERED TAG for all operations simple:
default: use default tag type, use SIMPLE TAG for all operations (read and write)
ordered:
use ORDERED TAG for all operations
default:
use default tag type,
SIMPLE TAG for read operations SIMPLE TAG for read operations
ORDERED TAG for write operations ORDERED TAG for write operations
8.5 Set debug mode 8.5 Set debug mode
------------------
setdebug <list of debug flags> setdebug <list of debug flags>
Available debug flags: Available debug flags:
alloc: print info about memory allocations (ccb, lcb)
queue: print info about insertions into the command start queue ======== ========================================================
result: print sense data on CHECK CONDITION status alloc print info about memory allocations (ccb, lcb)
scatter: print info about the scatter process queue print info about insertions into the command start queue
scripts: print info about the script binding process result print sense data on CHECK CONDITION status
tiny: print minimal debugging information scatter print info about the scatter process
timing: print timing information of the NCR chip scripts print info about the script binding process
nego: print information about SCSI negotiations tiny print minimal debugging information
phase: print information on script interruptions timing print timing information of the NCR chip
nego print information about SCSI negotiations
phase print information on script interruptions
======== ========================================================
Use "setdebug" with no argument to reset debug flags. Use "setdebug" with no argument to reset debug flags.
8.6 Clear profile counters 8.6 Clear profile counters
--------------------------
clearprof clearprof
...@@ -513,6 +570,7 @@ Available commands: ...@@ -513,6 +570,7 @@ Available commands:
8.7 Set flag (no_disc) 8.7 Set flag (no_disc)
----------------------
setflag <target> <flag> setflag <target> <flag>
...@@ -523,13 +581,16 @@ Available commands: ...@@ -523,13 +581,16 @@ Available commands:
no_disc: not allow target to disconnect. no_disc: not allow target to disconnect.
Do not specify any flag in order to reset the flag. For example: Do not specify any flag in order to reset the flag. For example:
- setflag 4
setflag 4
will reset no_disc flag for target 4, so will allow it disconnections. will reset no_disc flag for target 4, so will allow it disconnections.
- setflag all
setflag all
will allow disconnection for all devices on the SCSI bus. will allow disconnection for all devices on the SCSI bus.
8.8 Set verbose level 8.8 Set verbose level
---------------------
setverbose #level setverbose #level
...@@ -537,24 +598,30 @@ Available commands: ...@@ -537,24 +598,30 @@ Available commands:
th driver verbose level after boot-up. th driver verbose level after boot-up.
8.9 Reset all logical units of a target 8.9 Reset all logical units of a target
---------------------------------------
resetdev <target> resetdev <target>
target: target number :target: target number
The driver will try to send a BUS DEVICE RESET message to the target. The driver will try to send a BUS DEVICE RESET message to the target.
(Only supported by the SYM53C8XX driver and provided for test purpose) (Only supported by the SYM53C8XX driver and provided for test purpose)
8.10 Abort all tasks of all logical units of a target 8.10 Abort all tasks of all logical units of a target
-----------------------------------------------------
cleardev <target> cleardev <target>
target: target number :target: target number
The driver will try to send a ABORT message to all the logical units The driver will try to send a ABORT message to all the logical units
of the target. of the target.
(Only supported by the SYM53C8XX driver and provided for test purpose) (Only supported by the SYM53C8XX driver and provided for test purpose)
9. Configuration parameters 9. Configuration parameters
===========================
If the firmware of all your devices is perfect enough, all the If the firmware of all your devices is perfect enough, all the
features supported by the driver can be enabled at start-up. However, features supported by the driver can be enabled at start-up. However,
...@@ -564,6 +631,7 @@ this feature after boot-up only for devices that support it safely. ...@@ -564,6 +631,7 @@ this feature after boot-up only for devices that support it safely.
CONFIG_SCSI_NCR53C8XX_IOMAPPED (default answer: n) CONFIG_SCSI_NCR53C8XX_IOMAPPED (default answer: n)
Answer "y" if you suspect your mother board to not allow memory mapped I/O. Answer "y" if you suspect your mother board to not allow memory mapped I/O.
May slow down performance a little. This option is required by May slow down performance a little. This option is required by
Linux/PPC and is used no matter what you select here. Linux/PPC Linux/PPC and is used no matter what you select here. Linux/PPC
suffers no performance loss with this option since all IO is memory suffers no performance loss with this option since all IO is memory
...@@ -584,6 +652,7 @@ CONFIG_SCSI_NCR53C8XX_SYNC (default answer: 5) ...@@ -584,6 +652,7 @@ CONFIG_SCSI_NCR53C8XX_SYNC (default answer: 5)
CONFIG_SCSI_NCR53C8XX_FORCE_SYNC_NEGO (default answer: n) CONFIG_SCSI_NCR53C8XX_FORCE_SYNC_NEGO (default answer: n)
Force synchronous negotiation for all SCSI-2 devices. Force synchronous negotiation for all SCSI-2 devices.
Some SCSI-2 devices do not report this feature in byte 7 of inquiry Some SCSI-2 devices do not report this feature in byte 7 of inquiry
response but do support it properly (TAMARACK scanners for example). response but do support it properly (TAMARACK scanners for example).
...@@ -597,6 +666,7 @@ CONFIG_SCSI_NCR53C8XX_SYMBIOS_COMPAT ...@@ -597,6 +666,7 @@ CONFIG_SCSI_NCR53C8XX_SYMBIOS_COMPAT
bit as a flag indicating singled-ended/differential interface. bit as a flag indicating singled-ended/differential interface.
If all the boards of your system are genuine SYMBIOS boards or use If all the boards of your system are genuine SYMBIOS boards or use
BIOS and drivers from SYMBIOS, you would want to enable this option. BIOS and drivers from SYMBIOS, you would want to enable this option.
This option must NOT be enabled if your system has at least one 53C8XX This option must NOT be enabled if your system has at least one 53C8XX
based scsi board with a vendor-specific BIOS. based scsi board with a vendor-specific BIOS.
For example, Tekram DC-390/U, DC-390/W and DC-390/F scsi controllers For example, Tekram DC-390/U, DC-390/W and DC-390/F scsi controllers
...@@ -618,8 +688,10 @@ CONFIG_SCSI_NCR53C8XX_NVRAM_DETECT ...@@ -618,8 +688,10 @@ CONFIG_SCSI_NCR53C8XX_NVRAM_DETECT
causing problems for the Tekram card(s). causing problems for the Tekram card(s).
10. Boot setup commands 10. Boot setup commands
=======================
10.1 Syntax 10.1 Syntax
-----------
Setup commands can be passed to the driver either at boot time or as a Setup commands can be passed to the driver either at boot time or as a
string variable using 'insmod'. string variable using 'insmod'.
...@@ -628,9 +700,9 @@ A boot setup command for the ncr53c8xx (sym53c8xx) driver begins with the ...@@ -628,9 +700,9 @@ A boot setup command for the ncr53c8xx (sym53c8xx) driver begins with the
driver name "ncr53c8xx="(sym53c8xx). The kernel syntax parser then expects driver name "ncr53c8xx="(sym53c8xx). The kernel syntax parser then expects
an optional list of integers separated with comma followed by an optional an optional list of integers separated with comma followed by an optional
list of comma-separated strings. Example of boot setup command under lilo list of comma-separated strings. Example of boot setup command under lilo
prompt: prompt::
lilo: linux root=/dev/hda2 ncr53c8xx=tags:4,sync:10,debug:0x200 lilo: linux root=/dev/hda2 ncr53c8xx=tags:4,sync:10,debug:0x200
- enable tagged commands, up to 4 tagged commands queued. - enable tagged commands, up to 4 tagged commands queued.
- set synchronous negotiation speed to 10 Mega-transfers / second. - set synchronous negotiation speed to 10 Mega-transfers / second.
...@@ -639,7 +711,7 @@ lilo: linux root=/dev/hda2 ncr53c8xx=tags:4,sync:10,debug:0x200 ...@@ -639,7 +711,7 @@ lilo: linux root=/dev/hda2 ncr53c8xx=tags:4,sync:10,debug:0x200
Since comma seems not to be allowed when defining a string variable using Since comma seems not to be allowed when defining a string variable using
'insmod', the driver also accepts <space> as option separator. 'insmod', the driver also accepts <space> as option separator.
The following command will install driver module with the same options as The following command will install driver module with the same options as
above. above::
insmod ncr53c8xx.o ncr53c8xx="tags:4 sync:10 debug:0x200" insmod ncr53c8xx.o ncr53c8xx="tags:4 sync:10 debug:0x200"
...@@ -652,7 +724,7 @@ characters and digits are allowed. ...@@ -652,7 +724,7 @@ characters and digits are allowed.
In a system that contains multiple 53C8xx adapters insmod will install the In a system that contains multiple 53C8xx adapters insmod will install the
specified driver on each adapter. To exclude a chip use the 'excl' keyword. specified driver on each adapter. To exclude a chip use the 'excl' keyword.
The sequence of commands, The sequence of commands::
insmod sym53c8xx sym53c8xx=excl:0x1400 insmod sym53c8xx sym53c8xx=excl:0x1400
insmod ncr53c8xx insmod ncr53c8xx
...@@ -663,76 +735,129 @@ port address 0x1400. ...@@ -663,76 +735,129 @@ port address 0x1400.
10.2 Available arguments 10.2 Available arguments
------------------------
10.2.1 Master parity checking 10.2.1 Master parity checking
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
====== ========
mpar:y enabled mpar:y enabled
mpar:n disabled mpar:n disabled
====== ========
10.2.2 Scsi parity checking 10.2.2 Scsi parity checking
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
====== ========
spar:y enabled spar:y enabled
spar:n disabled spar:n disabled
====== ========
10.2.3 Scsi disconnections 10.2.3 Scsi disconnections
^^^^^^^^^^^^^^^^^^^^^^^^^^^
====== ========
disc:y enabled disc:y enabled
disc:n disabled disc:n disabled
====== ========
10.2.4 Special features 10.2.4 Special features
^^^^^^^^^^^^^^^^^^^^^^^^
Only apply to 810A, 825A, 860, 875 and 895 controllers. Only apply to 810A, 825A, 860, 875 and 895 controllers.
Have no effect with other ones. Have no effect with other ones.
======= =================================================
specf:y (or 1) enabled specf:y (or 1) enabled
specf:n (or 0) disabled specf:n (or 0) disabled
specf:3 enabled except Memory Write And Invalidate specf:3 enabled except Memory Write And Invalidate
======= =================================================
The default driver setup is 'specf:3'. As a consequence, option 'specf:y' The default driver setup is 'specf:3'. As a consequence, option 'specf:y'
must be specified in the boot setup command to enable Memory Write And must be specified in the boot setup command to enable Memory Write And
Invalidate. Invalidate.
10.2.5 Ultra SCSI support 10.2.5 Ultra SCSI support
^^^^^^^^^^^^^^^^^^^^^^^^^^
Only apply to 860, 875, 895, 895a, 896, 1010 and 1010_66 controllers. Only apply to 860, 875, 895, 895a, 896, 1010 and 1010_66 controllers.
Have no effect with other ones. Have no effect with other ones.
======= ========================
ultra:n All ultra speeds enabled ultra:n All ultra speeds enabled
ultra:2 Ultra2 enabled ultra:2 Ultra2 enabled
ultra:1 Ultra enabled ultra:1 Ultra enabled
ultra:0 Ultra speeds disabled ultra:0 Ultra speeds disabled
======= ========================
10.2.6 Default number of tagged commands 10.2.6 Default number of tagged commands
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
======================= ===============================
tags:0 (or tags:1 ) tagged command queuing disabled tags:0 (or tags:1 ) tagged command queuing disabled
tags:#tags (#tags > 1) tagged command queuing enabled tags:#tags (#tags > 1) tagged command queuing enabled
======================= ===============================
#tags will be truncated to the max queued commands configuration parameter. #tags will be truncated to the max queued commands configuration parameter.
This option also allows to specify a command queue depth for each device This option also allows to specify a command queue depth for each device
that support tagged command queueing. that support tagged command queueing.
Example:
Example::
ncr53c8xx=tags:10/t2t3q16-t5q24/t1u2q32 ncr53c8xx=tags:10/t2t3q16-t5q24/t1u2q32
will set devices queue depth as follow: will set devices queue depth as follow:
- controller #0 target #2 and target #3 -> 16 commands, - controller #0 target #2 and target #3 -> 16 commands,
- controller #0 target #5 -> 24 commands, - controller #0 target #5 -> 24 commands,
- controller #1 target #1 logical unit #2 -> 32 commands, - controller #1 target #1 logical unit #2 -> 32 commands,
- all other logical units (all targets, all controllers) -> 10 commands. - all other logical units (all targets, all controllers) -> 10 commands.
10.2.7 Default synchronous period factor 10.2.7 Default synchronous period factor
sync:255 disabled (asynchronous transfer mode) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sync:#factor
============ ========================================================
sync:255 disabled (asynchronous transfer mode)
sync:#factor
============ =======================================
#factor = 10 Ultra-2 SCSI 40 Mega-transfers / second #factor = 10 Ultra-2 SCSI 40 Mega-transfers / second
#factor = 11 Ultra-2 SCSI 33 Mega-transfers / second #factor = 11 Ultra-2 SCSI 33 Mega-transfers / second
#factor < 25 Ultra SCSI 20 Mega-transfers / second #factor < 25 Ultra SCSI 20 Mega-transfers / second
#factor < 50 Fast SCSI-2 #factor < 50 Fast SCSI-2
============ =======================================
============ ========================================================
In all cases, the driver will use the minimum transfer period supported by In all cases, the driver will use the minimum transfer period supported by
controllers according to NCR53C8XX chip type. controllers according to NCR53C8XX chip type.
10.2.8 Negotiate synchronous with all devices 10.2.8 Negotiate synchronous with all devices
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(force sync nego) (force sync nego)
===== =========
fsn:y enabled fsn:y enabled
fsn:n disabled fsn:n disabled
===== =========
10.2.9 Verbosity level 10.2.9 Verbosity level
^^^^^^^^^^^^^^^^^^^^^^^
====== =========
verb:0 minimal verb:0 minimal
verb:1 normal verb:1 normal
verb:2 too much verb:2 too much
====== =========
10.2.10 Debug mode 10.2.10 Debug mode
debug:0 clear debug flags ^^^^^^^^^^^^^^^^^^
debug:#x set debug flags
======== ==================================================================
debug:0 clear debug flags
debug:#x set debug flags
#x is an integer value combining the following power-of-2 values: #x is an integer value combining the following power-of-2 values:
============= ======
DEBUG_ALLOC 0x1 DEBUG_ALLOC 0x1
DEBUG_PHASE 0x2 DEBUG_PHASE 0x2
DEBUG_POLL 0x4 DEBUG_POLL 0x4
...@@ -746,86 +871,139 @@ port address 0x1400. ...@@ -746,86 +871,139 @@ port address 0x1400.
DEBUG_TAGS 0x400 DEBUG_TAGS 0x400
DEBUG_FREEZE 0x800 DEBUG_FREEZE 0x800
DEBUG_RESTART 0x1000 DEBUG_RESTART 0x1000
============= ======
======== ==================================================================
You can play safely with DEBUG_NEGO. However, some of these flags may You can play safely with DEBUG_NEGO. However, some of these flags may
generate bunches of syslog messages. generate bunches of syslog messages.
10.2.11 Burst max 10.2.11 Burst max
burst:0 burst disabled ^^^^^^^^^^^^^^^^^
burst:255 get burst length from initial IO register settings.
burst:#x burst enabled (1<<#x burst transfers max) ========= ==================================================================
#x is an integer value which is log base 2 of the burst transfers max. burst:0 burst disabled
The NCR53C875 and NCR53C825A support up to 128 burst transfers (#x = 7). burst:255 get burst length from initial IO register settings.
burst:#x burst enabled (1<<#x burst transfers max)
#x is an integer value which is log base 2 of the burst transfers
max.
The NCR53C875 and NCR53C825A support up to 128 burst transfers
(#x = 7).
Other chips only support up to 16 (#x = 4). Other chips only support up to 16 (#x = 4).
This is a maximum value. The driver set the burst length according to chip
and revision ids. By default the driver uses the maximum value supported This is a maximum value. The driver set the burst length according
by the chip. to chip and revision ids. By default the driver uses the maximum
value supported by the chip.
========= ==================================================================
10.2.12 LED support 10.2.12 LED support
^^^^^^^^^^^^^^^^^^^
===== ===================
led:1 enable LED support led:1 enable LED support
led:0 disable LED support led:0 disable LED support
===== ===================
Donnot enable LED support if your scsi board does not use SDMS BIOS. Donnot enable LED support if your scsi board does not use SDMS BIOS.
(See 'Configuration parameters') (See 'Configuration parameters')
10.2.13 Max wide 10.2.13 Max wide
^^^^^^^^^^^^^^^^
====== ===================
wide:1 wide scsi enabled wide:1 wide scsi enabled
wide:0 wide scsi disabled wide:0 wide scsi disabled
====== ===================
Some scsi boards use a 875 (ultra wide) and only supply narrow connectors. Some scsi boards use a 875 (ultra wide) and only supply narrow connectors.
If you have connected a wide device with a 50 pins to 68 pins cable If you have connected a wide device with a 50 pins to 68 pins cable
converter, any accepted wide negotiation will break further data transfers. converter, any accepted wide negotiation will break further data transfers.
In such a case, using "wide:0" in the bootup command will be helpful. In such a case, using "wide:0" in the bootup command will be helpful.
10.2.14 Differential mode 10.2.14 Differential mode
^^^^^^^^^^^^^^^^^^^^^^^^^
====== =================================
diff:0 never set up diff mode diff:0 never set up diff mode
diff:1 set up diff mode if BIOS set it diff:1 set up diff mode if BIOS set it
diff:2 always set up diff mode diff:2 always set up diff mode
diff:3 set diff mode if GPIO3 is not set diff:3 set diff mode if GPIO3 is not set
====== =================================
10.2.15 IRQ mode 10.2.15 IRQ mode
^^^^^^^^^^^^^^^^
========= ========================================================
irqm:0 always open drain irqm:0 always open drain
irqm:1 same as initial settings (assumed BIOS settings) irqm:1 same as initial settings (assumed BIOS settings)
irqm:2 always totem pole irqm:2 always totem pole
irqm:0x10 driver will not use IRQF_SHARED flag when requesting irq irqm:0x10 driver will not use IRQF_SHARED flag when requesting irq
========= ========================================================
(Bits 0x10 and 0x20 can be combined with hardware irq mode option) (Bits 0x10 and 0x20 can be combined with hardware irq mode option)
10.2.16 Reverse probe 10.2.16 Reverse probe
^^^^^^^^^^^^^^^^^^^^^
========= ========================================================
revprob:n probe chip ids from the PCI configuration in this order: revprob:n probe chip ids from the PCI configuration in this order:
810, 815, 820, 860, 875, 885, 895, 896 810, 815, 820, 860, 875, 885, 895, 896
revprob:y probe chip ids in the reverse order. revprob:y probe chip ids in the reverse order.
========= ========================================================
10.2.17 Fix up PCI configuration space 10.2.17 Fix up PCI configuration space
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
pcifix:<option bits> pcifix:<option bits>
Available option bits: Available option bits:
0x0: No attempt to fix PCI configuration space registers values.
0x1: Set PCI cache-line size register if not set. === ===============================================================
0x2: Set write and invalidate bit in PCI command register. 0x0 No attempt to fix PCI configuration space registers values.
0x4: Increase if necessary PCI latency timer according to burst max. 0x1 Set PCI cache-line size register if not set.
0x2 Set write and invalidate bit in PCI command register.
0x4 Increase if necessary PCI latency timer according to burst max.
=== ===============================================================
Use 'pcifix:7' in order to allow the driver to fix up all PCI features. Use 'pcifix:7' in order to allow the driver to fix up all PCI features.
10.2.18 Serial NVRAM 10.2.18 Serial NVRAM
^^^^^^^^^^^^^^^^^^^^
======= =========================================
nvram:n do not look for serial NVRAM nvram:n do not look for serial NVRAM
nvram:y test controllers for onboard serial NVRAM nvram:y test controllers for onboard serial NVRAM
======= =========================================
(alternate binary form) (alternate binary form)
mvram=<bits options> mvram=<bits options>
==== =================================================================
0x01 look for NVRAM (equivalent to nvram=y) 0x01 look for NVRAM (equivalent to nvram=y)
0x02 ignore NVRAM "Synchronous negotiation" parameters for all devices 0x02 ignore NVRAM "Synchronous negotiation" parameters for all devices
0x04 ignore NVRAM "Wide negotiation" parameter for all devices 0x04 ignore NVRAM "Wide negotiation" parameter for all devices
0x08 ignore NVRAM "Scan at boot time" parameter for all devices 0x08 ignore NVRAM "Scan at boot time" parameter for all devices
0x80 also attach controllers set to OFF in the NVRAM (sym53c8xx only) 0x80 also attach controllers set to OFF in the NVRAM (sym53c8xx only)
==== =================================================================
10.2.19 Check SCSI BUS 10.2.19 Check SCSI BUS
^^^^^^^^^^^^^^^^^^^^^^
buschk:<option bits> buschk:<option bits>
Available option bits: Available option bits:
==== ================================================
0x0: No check. 0x0: No check.
0x1: Check and do not attach the controller on error. 0x1: Check and do not attach the controller on error.
0x2: Check and just warn on error. 0x2: Check and just warn on error.
0x4: Disable SCSI bus integrity checking. 0x4: Disable SCSI bus integrity checking.
==== ================================================
10.2.20 Exclude a host from being attached 10.2.20 Exclude a host from being attached
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
excl=<io_address> excl=<io_address>
Prevent host at a given io address from being attached. Prevent host at a given io address from being attached.
...@@ -833,8 +1011,12 @@ port address 0x1400. ...@@ -833,8 +1011,12 @@ port address 0x1400.
ncr53c8xx driver not to attach hosts at address 0xb400 and 0xc000. ncr53c8xx driver not to attach hosts at address 0xb400 and 0xc000.
10.2.21 Suggest a default SCSI id for hosts 10.2.21 Suggest a default SCSI id for hosts
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
========== ==========================================
hostid:255 no id suggested. hostid:255 no id suggested.
hostid:#x (0 < x < 7) x suggested for hosts SCSI id. hostid:#x (0 < x < 7) x suggested for hosts SCSI id.
========== ==========================================
If a host SCSI id is available from the NVRAM, the driver will ignore If a host SCSI id is available from the NVRAM, the driver will ignore
any value suggested as boot option. Otherwise, if a suggested value any value suggested as boot option. Otherwise, if a suggested value
...@@ -843,18 +1025,27 @@ port address 0x1400. ...@@ -843,18 +1025,27 @@ port address 0x1400.
7 if the hardware value is zero. 7 if the hardware value is zero.
10.2.22 Enable use of IMMEDIATE ARBITRATION 10.2.22 Enable use of IMMEDIATE ARBITRATION
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(only supported by the sym53c8xx driver. See 10.7 for more details) (only supported by the sym53c8xx driver. See 10.7 for more details)
iarb:0 do not use this feature.
iarb:#x use this feature according to bit fields as follow:
bit 0 (1) : enable IARB each time the initiator has been reselected ======= =================================================================
iarb:0 do not use this feature.
iarb:#x use this feature according to bit fields as follow:
========= =======================================================
bit 0 (1) enable IARB each time the initiator has been reselected
when it arbitrated for the SCSI BUS. when it arbitrated for the SCSI BUS.
(#x >> 4) : maximum number of successive settings of IARB if the initiator (#x >> 4) maximum number of successive settings of IARB if the
win arbitration and it has other commands to send to a device. initiator win arbitration and it has other commands
to send to a device.
========= =======================================================
======= =================================================================
Boot fail safe Boot fail safe
safe:y load the following assumed fail safe initial setup safe:y load the following assumed fail safe initial setup
======================== ====================== ==========
master parity disabled mpar:n master parity disabled mpar:n
scsi parity enabled spar:y scsi parity enabled spar:y
disconnections not allowed disc:n disconnections not allowed disc:n
...@@ -876,24 +1067,26 @@ Boot fail safe ...@@ -876,24 +1067,26 @@ Boot fail safe
irq mode from BIOS settings irqm:1 irq mode from BIOS settings irqm:1
SCSI BUS check do not attach on error buschk:1 SCSI BUS check do not attach on error buschk:1
immediate arbitration disabled iarb:0 immediate arbitration disabled iarb:0
======================== ====================== ==========
10.3 Advised boot setup commands 10.3 Advised boot setup commands
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
If the driver has been configured with default options, the equivalent If the driver has been configured with default options, the equivalent
boot setup is: boot setup is::
ncr53c8xx=mpar:y,spar:y,disc:y,specf:3,fsn:n,ultra:2,fsn:n,revprob:n,verb:1\ ncr53c8xx=mpar:y,spar:y,disc:y,specf:3,fsn:n,ultra:2,fsn:n,revprob:n,verb:1\
tags:0,sync:50,debug:0,burst:7,led:0,wide:1,settle:2,diff:0,irqm:0 tags:0,sync:50,debug:0,burst:7,led:0,wide:1,settle:2,diff:0,irqm:0
For an installation diskette or a safe but not fast system, For an installation diskette or a safe but not fast system,
boot setup can be: boot setup can be::
ncr53c8xx=safe:y,mpar:y,disc:y ncr53c8xx=safe:y,mpar:y,disc:y
ncr53c8xx=safe:y,disc:y ncr53c8xx=safe:y,disc:y
ncr53c8xx=safe:y,mpar:y ncr53c8xx=safe:y,mpar:y
ncr53c8xx=safe:y ncr53c8xx=safe:y
My personal system works flawlessly with the following equivalent setup: My personal system works flawlessly with the following equivalent setup::
ncr53c8xx=mpar:y,spar:y,disc:y,specf:1,fsn:n,ultra:2,fsn:n,revprob:n,verb:1\ ncr53c8xx=mpar:y,spar:y,disc:y,specf:1,fsn:n,ultra:2,fsn:n,revprob:n,verb:1\
tags:32,sync:12,debug:0,burst:7,led:1,wide:1,settle:2,diff:0,irqm:0 tags:32,sync:12,debug:0,burst:7,led:1,wide:1,settle:2,diff:0,irqm:0
...@@ -904,12 +1097,16 @@ to your boot setup command in order to check the actual setup the driver is ...@@ -904,12 +1097,16 @@ to your boot setup command in order to check the actual setup the driver is
using. using.
10.4 PCI configuration fix-up boot option 10.4 PCI configuration fix-up boot option
-----------------------------------------
pcifix:<option bits> pcifix:<option bits>
Available option bits: Available option bits:
0x1: Set PCI cache-line size register if not set.
0x2: Set write and invalidate bit in PCI command register. === =====================================================
0x1 Set PCI cache-line size register if not set.
0x2 Set write and invalidate bit in PCI command register.
=== =====================================================
Use 'pcifix:3' in order to allow the driver to fix both PCI features. Use 'pcifix:3' in order to allow the driver to fix both PCI features.
...@@ -934,9 +1131,12 @@ use them too. ...@@ -934,9 +1131,12 @@ use them too.
10.5 Serial NVRAM support boot option 10.5 Serial NVRAM support boot option
-------------------------------------
======= =========================================
nvram:n do not look for serial NVRAM nvram:n do not look for serial NVRAM
nvram:y test controllers for onboard serial NVRAM nvram:y test controllers for onboard serial NVRAM
======= =========================================
This option can also been entered as an hexadecimal value that allows This option can also been entered as an hexadecimal value that allows
to control what information the driver will get from the NVRAM and what to control what information the driver will get from the NVRAM and what
...@@ -949,18 +1149,32 @@ a Serial NVRAM. This memory is used to hold user set up parameters. ...@@ -949,18 +1149,32 @@ a Serial NVRAM. This memory is used to hold user set up parameters.
The parameters the driver is able to get from the NVRAM depend on the The parameters the driver is able to get from the NVRAM depend on the
data format used, as follow: data format used, as follow:
Tekram format Symbios format +-------------------------------+------------------+--------------+
General and host parameters | |Tekram format |Symbios format|
Boot order N Y +-------------------------------+------------------+--------------+
Host SCSI ID Y Y |General and host parameters | | |
SCSI parity checking Y Y +-------------------------------+------------------+--------------+
Verbose boot messages N Y | * Boot order | N | Y |
SCSI devices parameters +-------------------------------+------------------+--------------+
Synchronous transfer speed Y Y | * Host SCSI ID | Y | Y |
Wide 16 / Narrow Y Y +-------------------------------+------------------+--------------+
Tagged Command Queuing enabled Y Y | * SCSI parity checking | Y | Y |
Disconnections enabled Y Y +-------------------------------+------------------+--------------+
Scan at boot time N Y | * Verbose boot messages | N | Y |
+-------------------------------+------------------+--------------+
|SCSI devices parameters |
+-------------------------------+------------------+--------------+
| * Synchronous transfer speed | Y | Y |
+-------------------------------+------------------+--------------+
| * Wide 16 / Narrow | Y | Y |
+-------------------------------+------------------+--------------+
| * Tagged Command Queuing | Y | Y |
| enabled | | |
+-------------------------------+------------------+--------------+
| * Disconnections enabled | Y | Y |
+-------------------------------+------------------+--------------+
| * Scan at boot time | N | Y |
+-------------------------------+------------------+--------------+
In order to speed up the system boot, for each device configured without In order to speed up the system boot, for each device configured without
the "scan at boot time" option, the driver forces an error on the the "scan at boot time" option, the driver forces an error on the
...@@ -974,11 +1188,14 @@ The 'nvram' boot option can be entered in hexadecimal form in order ...@@ -974,11 +1188,14 @@ The 'nvram' boot option can be entered in hexadecimal form in order
to ignore some options configured in the NVRAM, as follow: to ignore some options configured in the NVRAM, as follow:
mvram=<bits options> mvram=<bits options>
==== =================================================================
0x01 look for NVRAM (equivalent to nvram=y) 0x01 look for NVRAM (equivalent to nvram=y)
0x02 ignore NVRAM "Synchronous negotiation" parameters for all devices 0x02 ignore NVRAM "Synchronous negotiation" parameters for all devices
0x04 ignore NVRAM "Wide negotiation" parameter for all devices 0x04 ignore NVRAM "Wide negotiation" parameter for all devices
0x08 ignore NVRAM "Scan at boot time" parameter for all devices 0x08 ignore NVRAM "Scan at boot time" parameter for all devices
0x80 also attach controllers set to OFF in the NVRAM (sym53c8xx only) 0x80 also attach controllers set to OFF in the NVRAM (sym53c8xx only)
==== =================================================================
Option 0x80 is only supported by the sym53c8xx driver and is disabled by Option 0x80 is only supported by the sym53c8xx driver and is disabled by
default. Result is that, by default (option not set), the sym53c8xx driver default. Result is that, by default (option not set), the sym53c8xx driver
...@@ -991,6 +1208,7 @@ controller not to be attached by the ncr53c8xx driver at Linux boot, you ...@@ -991,6 +1208,7 @@ controller not to be attached by the ncr53c8xx driver at Linux boot, you
must use the 'excl' driver boot option. must use the 'excl' driver boot option.
10.6 SCSI BUS checking boot option. 10.6 SCSI BUS checking boot option.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
When this option is set to a non-zero value, the driver checks SCSI lines When this option is set to a non-zero value, the driver checks SCSI lines
logic state, 100 micro-seconds after having asserted the SCSI RESET line. logic state, 100 micro-seconds after having asserted the SCSI RESET line.
...@@ -998,13 +1216,16 @@ The driver just reads SCSI lines and checks all lines read FALSE except RESET. ...@@ -998,13 +1216,16 @@ The driver just reads SCSI lines and checks all lines read FALSE except RESET.
Since SCSI devices shall release the BUS at most 800 nano-seconds after SCSI Since SCSI devices shall release the BUS at most 800 nano-seconds after SCSI
RESET has been asserted, any signal to TRUE may indicate a SCSI BUS problem. RESET has been asserted, any signal to TRUE may indicate a SCSI BUS problem.
Unfortunately, the following common SCSI BUS problems are not detected: Unfortunately, the following common SCSI BUS problems are not detected:
- Only 1 terminator installed. - Only 1 terminator installed.
- Misplaced terminators. - Misplaced terminators.
- Bad quality terminators. - Bad quality terminators.
On the other hand, either bad cabling, broken devices, not conformant On the other hand, either bad cabling, broken devices, not conformant
devices, ... may cause a SCSI signal to be wrong when te driver reads it. devices, ... may cause a SCSI signal to be wrong when te driver reads it.
10.7 IMMEDIATE ARBITRATION boot option 10.7 IMMEDIATE ARBITRATION boot option
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
This option is only supported by the SYM53C8XX driver (not by the NCR53C8XX). This option is only supported by the SYM53C8XX driver (not by the NCR53C8XX).
...@@ -1045,6 +1266,7 @@ same time cannot work for a long time. :-)) ...@@ -1045,6 +1266,7 @@ same time cannot work for a long time. :-))
11. Some constants and flags of the ncr53c8xx.h header file 11. Some constants and flags of the ncr53c8xx.h header file
===========================================================
Some of these are defined from the configuration parameters. To Some of these are defined from the configuration parameters. To
change other "defines", you must edit the header file. Do that only change other "defines", you must edit the header file. Do that only
...@@ -1053,12 +1275,14 @@ if you know what you are doing. ...@@ -1053,12 +1275,14 @@ if you know what you are doing.
SCSI_NCR_SETUP_SPECIAL_FEATURES (default: defined) SCSI_NCR_SETUP_SPECIAL_FEATURES (default: defined)
If defined, the driver will enable some special features according If defined, the driver will enable some special features according
to chip and revision id. to chip and revision id.
For 810A, 860, 825A, 875 and 895 scsi chips, this option enables For 810A, 860, 825A, 875 and 895 scsi chips, this option enables
support of features that reduce load of PCI bus and memory accesses support of features that reduce load of PCI bus and memory accesses
during scsi transfer processing: burst op-code fetch, read multiple, during scsi transfer processing: burst op-code fetch, read multiple,
read line, prefetch, cache line, write and invalidate, read line, prefetch, cache line, write and invalidate,
burst 128 (875 only), large dma fifo (875 only), offset 16 (875 only). burst 128 (875 only), large dma fifo (875 only), offset 16 (875 only).
Can be changed by the following boot setup command: Can be changed by the following boot setup command::
ncr53c8xx=specf:n ncr53c8xx=specf:n
SCSI_NCR_IOMAPPED (default: not defined) SCSI_NCR_IOMAPPED (default: not defined)
...@@ -1069,19 +1293,23 @@ SCSI_NCR_SHARE_IRQ (default: defined) ...@@ -1069,19 +1293,23 @@ SCSI_NCR_SHARE_IRQ (default: defined)
SCSI_NCR_MAX_TAGS (default: 8) SCSI_NCR_MAX_TAGS (default: 8)
Maximum number of simultaneous tagged commands to a device. Maximum number of simultaneous tagged commands to a device.
Can be changed by "settags <target> <maxtags>" Can be changed by "settags <target> <maxtags>"
SCSI_NCR_SETUP_DEFAULT_SYNC (default: 50) SCSI_NCR_SETUP_DEFAULT_SYNC (default: 50)
Transfer period factor the driver will use at boot time for synchronous Transfer period factor the driver will use at boot time for synchronous
negotiation. 0 means asynchronous. negotiation. 0 means asynchronous.
Can be changed by "setsync <target> <period factor>" Can be changed by "setsync <target> <period factor>"
SCSI_NCR_SETUP_DEFAULT_TAGS (default: 8) SCSI_NCR_SETUP_DEFAULT_TAGS (default: 8)
Default number of simultaneous tagged commands to a device. Default number of simultaneous tagged commands to a device.
< 1 means tagged command queuing disabled at start-up. < 1 means tagged command queuing disabled at start-up.
SCSI_NCR_ALWAYS_SIMPLE_TAG (default: defined) SCSI_NCR_ALWAYS_SIMPLE_TAG (default: defined)
Use SIMPLE TAG for read and write commands. Use SIMPLE TAG for read and write commands.
Can be changed by "setorder <ordered|simple|default>" Can be changed by "setorder <ordered|simple|default>"
SCSI_NCR_SETUP_DISCONNECTION (default: defined) SCSI_NCR_SETUP_DISCONNECTION (default: defined)
...@@ -1089,6 +1317,7 @@ SCSI_NCR_SETUP_DISCONNECTION (default: defined) ...@@ -1089,6 +1317,7 @@ SCSI_NCR_SETUP_DISCONNECTION (default: defined)
SCSI_NCR_SETUP_FORCE_SYNC_NEGO (default: not defined) SCSI_NCR_SETUP_FORCE_SYNC_NEGO (default: not defined)
If defined, synchronous negotiation is tried for all SCSI-2 devices. If defined, synchronous negotiation is tried for all SCSI-2 devices.
Can be changed by "setsync <target> <period>" Can be changed by "setsync <target> <period>"
SCSI_NCR_SETUP_MASTER_PARITY (default: defined) SCSI_NCR_SETUP_MASTER_PARITY (default: defined)
...@@ -1115,6 +1344,7 @@ SCSI_NCR_SETTLE_TIME (default: 2) ...@@ -1115,6 +1344,7 @@ SCSI_NCR_SETTLE_TIME (default: 2)
SCSI_NCR_TIMEOUT_ALERT (default: 3) SCSI_NCR_TIMEOUT_ALERT (default: 3)
If a pending command will time out after this amount of seconds, If a pending command will time out after this amount of seconds,
an ordered tag is used for the next command. an ordered tag is used for the next command.
Avoids timeouts for unordered tagged commands. Avoids timeouts for unordered tagged commands.
SCSI_NCR_CAN_QUEUE (default: 7*SCSI_NCR_MAX_TAGS) SCSI_NCR_CAN_QUEUE (default: 7*SCSI_NCR_MAX_TAGS)
...@@ -1131,12 +1361,13 @@ SCSI_NCR_MAX_LUN (default: 8) ...@@ -1131,12 +1361,13 @@ SCSI_NCR_MAX_LUN (default: 8)
12. Installation 12. Installation
================
This driver is part of the linux kernel distribution. This driver is part of the linux kernel distribution.
Driver files are located in the sub-directory "drivers/scsi" of the Driver files are located in the sub-directory "drivers/scsi" of the
kernel source tree. kernel source tree.
Driver files: Driver files::
README.ncr53c8xx : this file README.ncr53c8xx : this file
ChangeLog.ncr53c8xx : change log ChangeLog.ncr53c8xx : change log
...@@ -1151,14 +1382,17 @@ patches: ...@@ -1151,14 +1382,17 @@ patches:
ftp://ftp.tux.org/pub/people/gerard-roudier/README ftp://ftp.tux.org/pub/people/gerard-roudier/README
13. Architecture dependent features. 13. Architecture dependent features
===================================
<Not yet written> <Not yet written>
14. Known problems 14. Known problems
==================
14.1 Tagged commands with Iomega Jaz device 14.1 Tagged commands with Iomega Jaz device
-------------------------------------------
I have not tried this device, however it has been reported to me the I have not tried this device, however it has been reported to me the
following: This device is capable of Tagged command queuing. However following: This device is capable of Tagged command queuing. However
...@@ -1170,7 +1404,8 @@ other problem that may appear is timeouts. The only way to avoid ...@@ -1170,7 +1404,8 @@ other problem that may appear is timeouts. The only way to avoid
timeouts seems to edit linux/drivers/scsi/sd.c and to increase the timeouts seems to edit linux/drivers/scsi/sd.c and to increase the
current timeout values. current timeout values.
14.2 Device names change when another controller is added. 14.2 Device names change when another controller is added
---------------------------------------------------------
When you add a new NCR53C8XX chip based controller to a system that already When you add a new NCR53C8XX chip based controller to a system that already
has one or more controllers of this family, it may happen that the order has one or more controllers of this family, it may happen that the order
...@@ -1187,16 +1422,19 @@ If your controllers do not have NvRAM, you can: ...@@ -1187,16 +1422,19 @@ If your controllers do not have NvRAM, you can:
- Make appropriate changes in the fstab. - Make appropriate changes in the fstab.
- Use the 'scsidev' tool from Eric Youngdale. - Use the 'scsidev' tool from Eric Youngdale.
14.3 Using only 8 bit devices with a WIDE SCSI controller. 14.3 Using only 8 bit devices with a WIDE SCSI controller
---------------------------------------------------------
When only 8 bit NARROW devices are connected to a 16 bit WIDE SCSI controller, When only 8 bit NARROW devices are connected to a 16 bit WIDE SCSI controller,
you must ensure that lines of the wide part of the SCSI BUS are pulled-up. you must ensure that lines of the wide part of the SCSI BUS are pulled-up.
This can be achieved by ENABLING the WIDE TERMINATOR portion of the SCSI This can be achieved by ENABLING the WIDE TERMINATOR portion of the SCSI
controller card. controller card.
The TYAN 1365 documentation revision 1.2 is not correct about such settings. The TYAN 1365 documentation revision 1.2 is not correct about such settings.
(page 10, figure 3.3). (page 10, figure 3.3).
14.4 Possible data corruption during a Memory Write and Invalidate 14.4 Possible data corruption during a Memory Write and Invalidate
------------------------------------------------------------------
This problem is described in SYMBIOS DEL 397, Part Number 69-039241, ITEM 4. This problem is described in SYMBIOS DEL 397, Part Number 69-039241, ITEM 4.
...@@ -1223,6 +1461,7 @@ that is moved by the SCRIPTS processor is the 'CCB header' that contains ...@@ -1223,6 +1461,7 @@ that is moved by the SCRIPTS processor is the 'CCB header' that contains
the context of the SCSI transfer. This data structure is aligned on 8 DWORDS the context of the SCSI transfer. This data structure is aligned on 8 DWORDS
boundary (Pentium Cache Line Size), and so is immune to this chip bug, at boundary (Pentium Cache Line Size), and so is immune to this chip bug, at
least on Pentium systems. least on Pentium systems.
But the conditions of this bug can be met when a SCSI read command is But the conditions of this bug can be met when a SCSI read command is
performed using a buffer that is 4 DWORDS but not cache-line aligned. performed using a buffer that is 4 DWORDS but not cache-line aligned.
This cannot happen under Linux when scatter/gather lists are used since This cannot happen under Linux when scatter/gather lists are used since
...@@ -1231,8 +1470,10 @@ may only be needed under Linux when a scatter/gather list is not used and ...@@ -1231,8 +1470,10 @@ may only be needed under Linux when a scatter/gather list is not used and
when the SCSI DATA IN phase is reentered after a phase mismatch. when the SCSI DATA IN phase is reentered after a phase mismatch.
15. SCSI problem troubleshooting 15. SCSI problem troubleshooting
================================
15.1 Problem tracking 15.1 Problem tracking
---------------------
Most SCSI problems are due to a non conformant SCSI bus or to buggy Most SCSI problems are due to a non conformant SCSI bus or to buggy
devices. If unfortunately you have SCSI problems, you can check the devices. If unfortunately you have SCSI problems, you can check the
...@@ -1267,65 +1508,82 @@ tagged commands queuing. ...@@ -1267,65 +1508,82 @@ tagged commands queuing.
Try to enable one feature at a time with control commands. For example: Try to enable one feature at a time with control commands. For example:
- echo "setsync all 25" >/proc/scsi/ncr53c8xx/0 ::
Will enable fast synchronous data transfer negotiation for all targets.
echo "setsync all 25" >/proc/scsi/ncr53c8xx/0
Will enable fast synchronous data transfer negotiation for all targets.
::
echo "setflag 3" >/proc/scsi/ncr53c8xx/0
Will reset flags (no_disc) for target 3, and so will allow it to disconnect
the SCSI Bus.
::
- echo "setflag 3" >/proc/scsi/ncr53c8xx/0 echo "settags 3 8" >/proc/scsi/ncr53c8xx/0
Will reset flags (no_disc) for target 3, and so will allow it to disconnect
the SCSI Bus.
- echo "settags 3 8" >/proc/scsi/ncr53c8xx/0 Will enable tagged command queuing for target 3 if that device supports it.
Will enable tagged command queuing for target 3 if that device supports it.
Once you have found the device and the feature that cause problems, just Once you have found the device and the feature that cause problems, just
disable that feature for that device. disable that feature for that device.
15.2 Understanding hardware error reports 15.2 Understanding hardware error reports
-----------------------------------------
When the driver detects an unexpected error condition, it may display a When the driver detects an unexpected error condition, it may display a
message of the following pattern. message of the following pattern::
sym53c876-0:1: ERROR (0:48) (1-21-65) (f/95) @ (script 7c0:19000000). sym53c876-0:1: ERROR (0:48) (1-21-65) (f/95) @ (script 7c0:19000000).
sym53c876-0: script cmd = 19000000 sym53c876-0: script cmd = 19000000
sym53c876-0: regdump: da 10 80 95 47 0f 01 07 75 01 81 21 80 01 09 00. sym53c876-0: regdump: da 10 80 95 47 0f 01 07 75 01 81 21 80 01 09 00.
Some fields in such a message may help you understand the cause of the Some fields in such a message may help you understand the cause of the
problem, as follows: problem, as follows::
sym53c876-0:1: ERROR (0:48) (1-21-65) (f/95) @ (script 7c0:19000000). sym53c876-0:1: ERROR (0:48) (1-21-65) (f/95) @ (script 7c0:19000000).
............A.........B.C....D.E..F....G.H.......I.....J...K....... ............A.........B.C....D.E..F....G.H.......I.....J...K.......
Field A : target number. Field A : target number.
SCSI ID of the device the controller was talking with at the moment the SCSI ID of the device the controller was talking with at the moment the
error occurs. error occurs.
Field B : DSTAT io register (DMA STATUS) Field B : DSTAT io register (DMA STATUS)
Bit 0x40 : MDPE Master Data Parity Error ======== =============================================================
Bit 0x40 MDPE Master Data Parity Error
Data parity error detected on the PCI BUS. Data parity error detected on the PCI BUS.
Bit 0x20 : BF Bus Fault Bit 0x20 BF Bus Fault
PCI bus fault condition detected PCI bus fault condition detected
Bit 0x01 : IID Illegal Instruction Detected Bit 0x01 IID Illegal Instruction Detected
Set by the chip when it detects an Illegal Instruction format Set by the chip when it detects an Illegal Instruction format
on some condition that makes an instruction illegal. on some condition that makes an instruction illegal.
Bit 0x80 : DFE Dma Fifo Empty Bit 0x80 DFE Dma Fifo Empty
Pure status bit that does not indicate an error. Pure status bit that does not indicate an error.
======== =============================================================
If the reported DSTAT value contains a combination of MDPE (0x40), If the reported DSTAT value contains a combination of MDPE (0x40),
BF (0x20), then the cause may be likely due to a PCI BUS problem. BF (0x20), then the cause may be likely due to a PCI BUS problem.
Field C : SIST io register (SCSI Interrupt Status) Field C : SIST io register (SCSI Interrupt Status)
Bit 0x08 : SGE SCSI GROSS ERROR ======== ==================================================================
Bit 0x08 SGE SCSI GROSS ERROR
Indicates that the chip detected a severe error condition Indicates that the chip detected a severe error condition
on the SCSI BUS that prevents the SCSI protocol from functioning on the SCSI BUS that prevents the SCSI protocol from functioning
properly. properly.
Bit 0x04 : UDC Unexpected Disconnection Bit 0x04 UDC Unexpected Disconnection
Indicates that the device released the SCSI BUS when the chip Indicates that the device released the SCSI BUS when the chip
was not expecting this to happen. A device may behave so to was not expecting this to happen. A device may behave so to
indicate the SCSI initiator that an error condition not reportable using the SCSI protocol has occurred. indicate the SCSI initiator that an error condition not reportable
Bit 0x02 : RST SCSI BUS Reset using the SCSI protocol has occurred.
Bit 0x02 RST SCSI BUS Reset
Generally SCSI targets do not reset the SCSI BUS, although any Generally SCSI targets do not reset the SCSI BUS, although any
device on the BUS can reset it at any time. device on the BUS can reset it at any time.
Bit 0x01 : PAR Parity Bit 0x01 PAR Parity
SCSI parity error detected. SCSI parity error detected.
======== ==================================================================
On a faulty SCSI BUS, any error condition among SGE (0x08), UDC (0x04) and On a faulty SCSI BUS, any error condition among SGE (0x08), UDC (0x04) and
PAR (0x01) may be detected by the chip. If your SCSI system sometimes PAR (0x01) may be detected by the chip. If your SCSI system sometimes
encounters such error conditions, especially SCSI GROSS ERROR, then a SCSI encounters such error conditions, especially SCSI GROSS ERROR, then a SCSI
...@@ -1333,16 +1591,21 @@ Field C : SIST io register (SCSI Interrupt Status) ...@@ -1333,16 +1591,21 @@ Field C : SIST io register (SCSI Interrupt Status)
For fields D,E,F,G and H, you may look into the sym53c8xx_defs.h file For fields D,E,F,G and H, you may look into the sym53c8xx_defs.h file
that contains some minimal comments on IO register bits. that contains some minimal comments on IO register bits.
Field D : SOCL Scsi Output Control Latch Field D : SOCL Scsi Output Control Latch
This register reflects the state of the SCSI control lines the This register reflects the state of the SCSI control lines the
chip want to drive or compare against. chip want to drive or compare against.
Field E : SBCL Scsi Bus Control Lines Field E : SBCL Scsi Bus Control Lines
Actual value of control lines on the SCSI BUS. Actual value of control lines on the SCSI BUS.
Field F : SBDL Scsi Bus Data Lines Field F : SBDL Scsi Bus Data Lines
Actual value of data lines on the SCSI BUS. Actual value of data lines on the SCSI BUS.
Field G : SXFER SCSI Transfer Field G : SXFER SCSI Transfer
Contains the setting of the Synchronous Period for output and Contains the setting of the Synchronous Period for output and
the current Synchronous offset (offset 0 means asynchronous). the current Synchronous offset (offset 0 means asynchronous).
Field H : SCNTL3 Scsi Control Register 3 Field H : SCNTL3 Scsi Control Register 3
Contains the setting of timing values for both asynchronous and Contains the setting of timing values for both asynchronous and
synchronous data transfers. synchronous data transfers.
...@@ -1353,6 +1616,7 @@ You are not required to decode and understand them, unless you want to help ...@@ -1353,6 +1616,7 @@ You are not required to decode and understand them, unless you want to help
maintain the driver code. maintain the driver code.
16. Synchronous transfer negotiation tables 16. Synchronous transfer negotiation tables
===========================================
Tables below have been created by calling the routine the driver uses Tables below have been created by calling the routine the driver uses
for synchronisation negotiation timing calculation and chip setting. for synchronisation negotiation timing calculation and chip setting.
...@@ -1368,88 +1632,158 @@ Wide16 SCSI. ...@@ -1368,88 +1632,158 @@ Wide16 SCSI.
16.1 Synchronous timings for 53C895, 53C875 and 53C860 SCSI controllers 16.1 Synchronous timings for 53C895, 53C875 and 53C860 SCSI controllers
---------------------------------------------- +-----------------------------+--------+-------+--------------+
Negotiated NCR settings |Negotiated |NCR settings | |
Factor Period Speed Period Speed +-------+--------+------------+--------+-------+ |
------ ------ ------ ------ ------ |Factor |Period |Speed |Period |Speed | |
10 25 40.000 25 40.000 (53C895 only) +-------+--------+------------+--------+-------+--------------+
11 30.2 33.112 31.25 32.000 (53C895 only) |10 | 25 |40.000 | 25 |40.000 | (53C895 only)|
12 50 20.000 50 20.000 +-------+--------+------------+--------+-------+--------------+
13 52 19.230 62 16.000 |11 | 30.2 |33.112 | 31.25 |32.000 | (53C895 only)|
14 56 17.857 62 16.000 +-------+--------+------------+--------+-------+--------------+
15 60 16.666 62 16.000 |12 | 50 |20.000 | 50 |20.000 | |
16 64 15.625 75 13.333 +-------+--------+------------+--------+-------+--------------+
17 68 14.705 75 13.333 |13 | 52 |19.230 | 62 |16.000 | |
18 72 13.888 75 13.333 +-------+--------+------------+--------+-------+--------------+
19 76 13.157 87 11.428 |14 | 56 |17.857 | 62 |16.000 | |
20 80 12.500 87 11.428 +-------+--------+------------+--------+-------+--------------+
21 84 11.904 87 11.428 |15 | 60 |16.666 | 62 |16.000 | |
22 88 11.363 93 10.666 +-------+--------+------------+--------+-------+--------------+
23 92 10.869 93 10.666 |16 | 64 |15.625 | 75 |13.333 | |
24 96 10.416 100 10.000 +-------+--------+------------+--------+-------+--------------+
25 100 10.000 100 10.000 |17 | 68 |14.705 | 75 |13.333 | |
26 104 9.615 112 8.888 +-------+--------+------------+--------+-------+--------------+
27 108 9.259 112 8.888 |18 | 72 |13.888 | 75 |13.333 | |
28 112 8.928 112 8.888 +-------+--------+------------+--------+-------+--------------+
29 116 8.620 125 8.000 |19 | 76 |13.157 | 87 |11.428 | |
30 120 8.333 125 8.000 +-------+--------+------------+--------+-------+--------------+
31 124 8.064 125 8.000 |20 | 80 |12.500 | 87 |11.428 | |
32 128 7.812 131 7.619 +-------+--------+------------+--------+-------+--------------+
33 132 7.575 150 6.666 |21 | 84 |11.904 | 87 |11.428 | |
34 136 7.352 150 6.666 +-------+--------+------------+--------+-------+--------------+
35 140 7.142 150 6.666 |22 | 88 |11.363 | 93 |10.666 | |
36 144 6.944 150 6.666 +-------+--------+------------+--------+-------+--------------+
37 148 6.756 150 6.666 |23 | 92 |10.869 | 93 |10.666 | |
38 152 6.578 175 5.714 +-------+--------+------------+--------+-------+--------------+
39 156 6.410 175 5.714 |24 | 96 |10.416 |100 |10.000 | |
40 160 6.250 175 5.714 +-------+--------+------------+--------+-------+--------------+
41 164 6.097 175 5.714 |25 |100 |10.000 |100 |10.000 | |
42 168 5.952 175 5.714 +-------+--------+------------+--------+-------+--------------+
43 172 5.813 175 5.714 |26 |104 | 9.615 |112 | 8.888 | |
44 176 5.681 187 5.333 +-------+--------+------------+--------+-------+--------------+
45 180 5.555 187 5.333 |27 |108 | 9.259 |112 | 8.888 | |
46 184 5.434 187 5.333 +-------+--------+------------+--------+-------+--------------+
47 188 5.319 200 5.000 |28 |112 | 8.928 |112 | 8.888 | |
48 192 5.208 200 5.000 +-------+--------+------------+--------+-------+--------------+
49 196 5.102 200 5.000 |29 |116 | 8.620 |125 | 8.000 | |
+-------+--------+------------+--------+-------+--------------+
|30 |120 | 8.333 |125 | 8.000 | |
+-------+--------+------------+--------+-------+--------------+
|31 |124 | 8.064 |125 | 8.000 | |
+-------+--------+------------+--------+-------+--------------+
|32 |128 | 7.812 |131 | 7.619 | |
+-------+--------+------------+--------+-------+--------------+
|33 |132 | 7.575 |150 | 6.666 | |
+-------+--------+------------+--------+-------+--------------+
|34 |136 | 7.352 |150 | 6.666 | |
+-------+--------+------------+--------+-------+--------------+
|35 |140 | 7.142 |150 | 6.666 | |
+-------+--------+------------+--------+-------+--------------+
|36 |144 | 6.944 |150 | 6.666 | |
+-------+--------+------------+--------+-------+--------------+
|37 |148 | 6.756 |150 | 6.666 | |
+-------+--------+------------+--------+-------+--------------+
|38 |152 | 6.578 |175 | 5.714 | |
+-------+--------+------------+--------+-------+--------------+
|39 |156 | 6.410 |175 | 5.714 | |
+-------+--------+------------+--------+-------+--------------+
|40 |160 | 6.250 |175 | 5.714 | |
+-------+--------+------------+--------+-------+--------------+
|41 |164 | 6.097 |175 | 5.714 | |
+-------+--------+------------+--------+-------+--------------+
|42 |168 | 5.952 |175 | 5.714 | |
+-------+--------+------------+--------+-------+--------------+
|43 |172 | 5.813 |175 | 5.714 | |
+-------+--------+------------+--------+-------+--------------+
|44 |176 | 5.681 |187 | 5.333 | |
+-------+--------+------------+--------+-------+--------------+
|45 |180 | 5.555 |187 | 5.333 | |
+-------+--------+------------+--------+-------+--------------+
|46 |184 | 5.434 |187 | 5.333 | |
+-------+--------+------------+--------+-------+--------------+
|47 |188 | 5.319 |200 | 5.000 | |
+-------+--------+------------+--------+-------+--------------+
|48 |192 | 5.208 |200 | 5.000 | |
+-------+--------+------------+--------+-------+--------------+
|49 |196 | 5.102 |200 | 5.000 | |
+-------+--------+------------+--------+-------+--------------+
16.2 Synchronous timings for fast SCSI-2 53C8XX controllers 16.2 Synchronous timings for fast SCSI-2 53C8XX controllers
---------------------------------------------- +-----------------------------+----------------+
Negotiated NCR settings |Negotiated |NCR settings |
Factor Period Speed Period Speed +-------+--------+------------+--------+-------+
------ ------ ------ ------ ------ |Factor |Period |Speed |Period |Speed |
25 100 10.000 100 10.000 +-------+--------+------------+--------+-------+
26 104 9.615 125 8.000 |25 |100 |10.000 |100 |10.000 |
27 108 9.259 125 8.000 +-------+--------+------------+--------+-------+
28 112 8.928 125 8.000 |26 |104 |9.615 |125 | 8.000 |
29 116 8.620 125 8.000 +-------+--------+------------+--------+-------+
30 120 8.333 125 8.000 |27 |108 |9.259 |125 | 8.000 |
31 124 8.064 125 8.000 +-------+--------+------------+--------+-------+
32 128 7.812 131 7.619 |28 |112 |8.928 |125 | 8.000 |
33 132 7.575 150 6.666 +-------+--------+------------+--------+-------+
34 136 7.352 150 6.666 |29 |116 |8.620 |125 | 8.000 |
35 140 7.142 150 6.666 +-------+--------+------------+--------+-------+
36 144 6.944 150 6.666 |30 |120 |8.333 |125 | 8.000 |
37 148 6.756 150 6.666 +-------+--------+------------+--------+-------+
38 152 6.578 175 5.714 |31 |124 |8.064 |125 | 8.000 |
39 156 6.410 175 5.714 +-------+--------+------------+--------+-------+
40 160 6.250 175 5.714 |32 |128 |7.812 |131 | 7.619 |
41 164 6.097 175 5.714 +-------+--------+------------+--------+-------+
42 168 5.952 175 5.714 |33 |132 |7.575 |150 | 6.666 |
43 172 5.813 175 5.714 +-------+--------+------------+--------+-------+
44 176 5.681 187 5.333 |34 |136 |7.352 |150 | 6.666 |
45 180 5.555 187 5.333 +-------+--------+------------+--------+-------+
46 184 5.434 187 5.333 |35 |140 |7.142 |150 | 6.666 |
47 188 5.319 200 5.000 +-------+--------+------------+--------+-------+
48 192 5.208 200 5.000 |36 |144 |6.944 |150 | 6.666 |
49 196 5.102 200 5.000 +-------+--------+------------+--------+-------+
|37 |148 |6.756 |150 | 6.666 |
+-------+--------+------------+--------+-------+
17. Serial NVRAM (added by Richard Waltham: dormouse@farsrobt.demon.co.uk) |38 |152 |6.578 |175 | 5.714 |
+-------+--------+------------+--------+-------+
|39 |156 |6.410 |175 | 5.714 |
+-------+--------+------------+--------+-------+
|40 |160 |6.250 |175 | 5.714 |
+-------+--------+------------+--------+-------+
|41 |164 |6.097 |175 | 5.714 |
+-------+--------+------------+--------+-------+
|42 |168 |5.952 |175 | 5.714 |
+-------+--------+------------+--------+-------+
|43 |172 |5.813 |175 | 5.714 |
+-------+--------+------------+--------+-------+
|44 |176 |5.681 |187 | 5.333 |
+-------+--------+------------+--------+-------+
|45 |180 |5.555 |187 | 5.333 |
+-------+--------+------------+--------+-------+
|46 |184 |5.434 |187 | 5.333 |
+-------+--------+------------+--------+-------+
|47 |188 |5.319 |200 | 5.000 |
+-------+--------+------------+--------+-------+
|48 |192 |5.208 |200 | 5.000 |
+-------+--------+------------+--------+-------+
|49 |196 |5.102 |200 | 5.000 |
+-------+--------+------------+--------+-------+
17. Serial NVRAM
================
(added by Richard Waltham: dormouse@farsrobt.demon.co.uk)
17.1 Features 17.1 Features
-------------
Enabling serial NVRAM support enables detection of the serial NVRAM included Enabling serial NVRAM support enables detection of the serial NVRAM included
on Symbios and some Symbios compatible host adaptors, and Tekram boards. The on Symbios and some Symbios compatible host adaptors, and Tekram boards. The
...@@ -1478,71 +1812,76 @@ adaptors but does not cause problems either.) ...@@ -1478,71 +1812,76 @@ adaptors but does not cause problems either.)
17.2 Symbios NVRAM layout 17.2 Symbios NVRAM layout
-------------------------
typical data at NVRAM address 0x100 (53c810a NVRAM)::
00 00
64 01
8e 0b
00 30 00 00 00 00 07 00 00 00 00 00 00 00 07 04 10 04 00 00
04 00 0f 00 00 10 00 50 00 00 01 00 00 62
04 00 03 00 00 10 00 58 00 00 01 00 00 63
04 00 01 00 00 10 00 48 00 00 01 00 00 61
00 00 00 00 00 00 00 00 00 00 00 00 00 00
0f 00 08 08 64 00 0a 00
0f 00 08 08 64 00 0a 00
0f 00 08 08 64 00 0a 00
0f 00 08 08 64 00 0a 00
0f 00 08 08 64 00 0a 00
0f 00 08 08 64 00 0a 00
0f 00 08 08 64 00 0a 00
0f 00 08 08 64 00 0a 00
0f 00 08 08 64 00 0a 00
0f 00 08 08 64 00 0a 00
0f 00 08 08 64 00 0a 00
0f 00 08 08 64 00 0a 00
0f 00 08 08 64 00 0a 00
0f 00 08 08 64 00 0a 00
0f 00 08 08 64 00 0a 00
0f 00 08 08 64 00 0a 00
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
fe fe
00 00
00 00
typical data at NVRAM address 0x100 (53c810a NVRAM)
-----------------------------------------------------------
00 00
64 01
8e 0b
00 30 00 00 00 00 07 00 00 00 00 00 00 00 07 04 10 04 00 00
04 00 0f 00 00 10 00 50 00 00 01 00 00 62
04 00 03 00 00 10 00 58 00 00 01 00 00 63
04 00 01 00 00 10 00 48 00 00 01 00 00 61
00 00 00 00 00 00 00 00 00 00 00 00 00 00
0f 00 08 08 64 00 0a 00
0f 00 08 08 64 00 0a 00
0f 00 08 08 64 00 0a 00
0f 00 08 08 64 00 0a 00
0f 00 08 08 64 00 0a 00
0f 00 08 08 64 00 0a 00
0f 00 08 08 64 00 0a 00
0f 00 08 08 64 00 0a 00
0f 00 08 08 64 00 0a 00
0f 00 08 08 64 00 0a 00
0f 00 08 08 64 00 0a 00
0f 00 08 08 64 00 0a 00
0f 00 08 08 64 00 0a 00
0f 00 08 08 64 00 0a 00
0f 00 08 08 64 00 0a 00
0f 00 08 08 64 00 0a 00
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
fe fe
00 00
00 00
-----------------------------------------------------------
NVRAM layout details NVRAM layout details
NVRAM Address 0x000-0x0ff not used ============= ================
0x100-0x26f initialised data NVRAM Address
0x270-0x7ff not used ============= ================
0x000-0x0ff not used
0x100-0x26f initialised data
0x270-0x7ff not used
============= ================
general layout general layout::
header - 6 bytes, header - 6 bytes,
data - 356 bytes (checksum is byte sum of this data) data - 356 bytes (checksum is byte sum of this data)
...@@ -1550,7 +1889,7 @@ general layout ...@@ -1550,7 +1889,7 @@ general layout
--- ---
total 368 bytes total 368 bytes
data area layout data area layout::
controller set up - 20 bytes controller set up - 20 bytes
boot configuration - 56 bytes (4x14 bytes) boot configuration - 56 bytes (4x14 bytes)
...@@ -1559,16 +1898,15 @@ data area layout ...@@ -1559,16 +1898,15 @@ data area layout
--- ---
total 356 bytes total 356 bytes
----------------------------------------------------------- header::
header
00 00 - ?? start marker 00 00 - ?? start marker
64 01 - byte count (lsb/msb excludes header/trailer) 64 01 - byte count (lsb/msb excludes header/trailer)
8e 0b - checksum (lsb/msb excludes header/trailer) 8e 0b - checksum (lsb/msb excludes header/trailer)
-----------------------------------------------------------
controller set up
00 30 00 00 00 00 07 00 00 00 00 00 00 00 07 04 10 04 00 00 controller set up::
00 30 00 00 00 00 07 00 00 00 00 00 00 00 07 04 10 04 00 00
| | | | | | | |
| | | -- host ID | | | -- host ID
| | | | | |
...@@ -1590,15 +1928,15 @@ current set up for any of the controllers. ...@@ -1590,15 +1928,15 @@ current set up for any of the controllers.
default set up is identical for 53c810a and 53c875 NVRAM default set up is identical for 53c810a and 53c875 NVRAM
(Removable Media added Symbios BIOS version 4.09) (Removable Media added Symbios BIOS version 4.09)
-----------------------------------------------------------
boot configuration boot configuration
boot order set by order of the devices in this table boot order set by order of the devices in this table::
04 00 0f 00 00 10 00 50 00 00 01 00 00 62 -- 1st controller 04 00 0f 00 00 10 00 50 00 00 01 00 00 62 -- 1st controller
04 00 03 00 00 10 00 58 00 00 01 00 00 63 2nd controller 04 00 03 00 00 10 00 58 00 00 01 00 00 63 2nd controller
04 00 01 00 00 10 00 48 00 00 01 00 00 61 3rd controller 04 00 01 00 00 10 00 48 00 00 01 00 00 61 3rd controller
00 00 00 00 00 00 00 00 00 00 00 00 00 00 4th controller 00 00 00 00 00 00 00 00 00 00 00 00 00 00 4th controller
| | | | | | | | | | | | | | | |
| | | | | | ---- PCI io port adr | | | | | | ---- PCI io port adr
| | | | | --0x01 init/scan at boot time | | | | | --0x01 init/scan at boot time
...@@ -1606,32 +1944,33 @@ boot order set by order of the devices in this table ...@@ -1606,32 +1944,33 @@ boot order set by order of the devices in this table
| | ----- ?? PCI vendor ID (lsb/msb) | | ----- ?? PCI vendor ID (lsb/msb)
----PCI device ID (lsb/msb) ----PCI device ID (lsb/msb)
?? use of this data is a guess but seems reasonable ?? use of this data is a guess but seems reasonable
remaining bytes unknown - they do not appear to change in my remaining bytes unknown - they do not appear to change in my
current set up current set up
default set up is identical for 53c810a and 53c875 NVRAM default set up is identical for 53c810a and 53c875 NVRAM
----------------------------------------------------------- --------------------------------------------------------
device set up (up to 16 devices - includes controller)
device set up (up to 16 devices - includes controller)::
0f 00 08 08 64 00 0a 00 - id 0
0f 00 08 08 64 00 0a 00 0f 00 08 08 64 00 0a 00 - id 0
0f 00 08 08 64 00 0a 00 0f 00 08 08 64 00 0a 00
0f 00 08 08 64 00 0a 00 0f 00 08 08 64 00 0a 00
0f 00 08 08 64 00 0a 00 0f 00 08 08 64 00 0a 00
0f 00 08 08 64 00 0a 00 0f 00 08 08 64 00 0a 00
0f 00 08 08 64 00 0a 00 0f 00 08 08 64 00 0a 00
0f 00 08 08 64 00 0a 00 0f 00 08 08 64 00 0a 00
0f 00 08 08 64 00 0a 00
0f 00 08 08 64 00 0a 00
0f 00 08 08 64 00 0a 00 0f 00 08 08 64 00 0a 00
0f 00 08 08 64 00 0a 00 0f 00 08 08 64 00 0a 00
0f 00 08 08 64 00 0a 00 0f 00 08 08 64 00 0a 00
0f 00 08 08 64 00 0a 00 0f 00 08 08 64 00 0a 00
0f 00 08 08 64 00 0a 00 0f 00 08 08 64 00 0a 00
0f 00 08 08 64 00 0a 00 0f 00 08 08 64 00 0a 00
0f 00 08 08 64 00 0a 00 - id 15 0f 00 08 08 64 00 0a 00
0f 00 08 08 64 00 0a 00 - id 15
| | | | | | | | | | | |
| | | | ----timeout (lsb/msb) | | | | ----timeout (lsb/msb)
| | | --synch period (0x?? 40 Mtrans/sec- fast 40) (probably 0x28) | | | --synch period (0x?? 40 Mtrans/sec- fast 40) (probably 0x28)
...@@ -1656,24 +1995,29 @@ current set up ...@@ -1656,24 +1995,29 @@ current set up
(but it could be max bus width) (but it could be max bus width)
default set up for 53c810a NVRAM default set up for 53c810a NVRAM
default set up for 53c875 NVRAM - bus width - 0x10 default set up for 53c875 NVRAM
- bus width - 0x10
- sync offset ? - 0x10 - sync offset ? - 0x10
- sync period - 0x30 - sync period - 0x30
-----------------------------------------------------------
?? spare device space (32 bit bus ??) ?? spare device space (32 bit bus ??)
00 00 00 00 00 00 00 00 (19x8bytes) ::
.
. 00 00 00 00 00 00 00 00 (19x8bytes)
00 00 00 00 00 00 00 00 .
.
00 00 00 00 00 00 00 00
default set up is identical for 53c810a and 53c875 NVRAM default set up is identical for 53c810a and 53c875 NVRAM
----------------------------------------------------------- --------------------------------------------------------
trailer
fe fe - ? end marker ? trailer::
00 00
00 00 fe fe - ? end marker ?
00 00
00 00
default set up is identical for 53c810a and 53c875 NVRAM default set up is identical for 53c810a and 53c875 NVRAM
----------------------------------------------------------- -----------------------------------------------------------
...@@ -1681,12 +2025,13 @@ default set up is identical for 53c810a and 53c875 NVRAM ...@@ -1681,12 +2025,13 @@ default set up is identical for 53c810a and 53c875 NVRAM
17.3 Tekram NVRAM layout 17.3 Tekram NVRAM layout
------------------------
nvram 64x16 (1024 bit) nvram 64x16 (1024 bit)
Drive settings Drive settings::
Drive ID 0-15 (addr 0x0yyyy0 = device setup, yyyy = ID) Drive ID 0-15 (addr 0x0yyyy0 = device setup, yyyy = ID)
(addr 0x0yyyy1 = 0x0000) (addr 0x0yyyy1 = 0x0000)
x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x
...@@ -1725,7 +2070,7 @@ Drive ID 0-15 (addr 0x0yyyy0 = device setup, yyyy = ID) ...@@ -1725,7 +2070,7 @@ Drive ID 0-15 (addr 0x0yyyy0 = device setup, yyyy = ID)
Global settings Global settings
Host flags 0 (addr 0x100000, 32) Host flags 0 (addr 0x100000, 32)::
x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x
| | | | | | | | | | | | | | | | | | | | | | | |
...@@ -1753,7 +2098,7 @@ Host flags 0 (addr 0x100000, 32) ...@@ -1753,7 +2098,7 @@ Host flags 0 (addr 0x100000, 32)
as BIOS dev 1 - boot device as BIOS dev 1 - boot device
2 - all 2 - all
Host flags 1 (addr 0x100001, 33) Host flags 1 (addr 0x100001, 33)::
x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x
| | | | | | | | | | | |
...@@ -1771,7 +2116,7 @@ Host flags 1 (addr 0x100001, 33) ...@@ -1771,7 +2116,7 @@ Host flags 1 (addr 0x100001, 33)
3 - 16 3 - 16
4 - 32 4 - 32
Host flags 2 (addr 0x100010, 34) Host flags 2 (addr 0x100010, 34)::
x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x
| |
...@@ -1784,26 +2129,28 @@ checksum = 0x1234 - (sum addr 0-63) ...@@ -1784,26 +2129,28 @@ checksum = 0x1234 - (sum addr 0-63)
---------------------------------------------------------------------------- ----------------------------------------------------------------------------
default nvram data: default nvram data::
0x0037 0x0000 0x0037 0x0000 0x0037 0x0000 0x0037 0x0000 0x0037 0x0000 0x0037 0x0000 0x0037 0x0000 0x0037 0x0000
0x0037 0x0000 0x0037 0x0000 0x0037 0x0000 0x0037 0x0000 0x0037 0x0000 0x0037 0x0000 0x0037 0x0000 0x0037 0x0000
0x0037 0x0000 0x0037 0x0000 0x0037 0x0000 0x0037 0x0000 0x0037 0x0000 0x0037 0x0000 0x0037 0x0000 0x0037 0x0000
0x0037 0x0000 0x0037 0x0000 0x0037 0x0000 0x0037 0x0000 0x0037 0x0000 0x0037 0x0000 0x0037 0x0000 0x0037 0x0000
0x0f07 0x0400 0x0001 0x0000 0x0000 0x0000 0x0000 0x0000 0x0f07 0x0400 0x0001 0x0000 0x0000 0x0000 0x0000 0x0000
0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0xfbbc 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0xfbbc
18. Support for Big Endian 18. Support for Big Endian
==========================
The PCI local bus has been primarily designed for x86 architecture. The PCI local bus has been primarily designed for x86 architecture.
As a consequence, PCI devices generally expect DWORDS using little endian As a consequence, PCI devices generally expect DWORDS using little endian
byte ordering. byte ordering.
18.1 Big Endian CPU 18.1 Big Endian CPU
-------------------
In order to support NCR chips on a Big Endian architecture the driver has to In order to support NCR chips on a Big Endian architecture the driver has to
perform byte reordering each time it is needed. This feature has been perform byte reordering each time it is needed. This feature has been
...@@ -1812,6 +2159,7 @@ version 2.5 and later ones. For the moment Big Endian support has only ...@@ -1812,6 +2159,7 @@ version 2.5 and later ones. For the moment Big Endian support has only
been tested on Linux/PPC (PowerPC). been tested on Linux/PPC (PowerPC).
18.2 NCR chip in Big Endian mode of operations 18.2 NCR chip in Big Endian mode of operations
----------------------------------------------
It can be read in SYMBIOS documentation that some chips support a special It can be read in SYMBIOS documentation that some chips support a special
Big Endian mode, on paper: 53C815, 53C825A, 53C875, 53C875N, 53C895. Big Endian mode, on paper: 53C815, 53C825A, 53C875, 53C875N, 53C895.
...@@ -1819,6 +2167,3 @@ This mode of operations is not software-selectable, but needs pin named ...@@ -1819,6 +2167,3 @@ This mode of operations is not software-selectable, but needs pin named
BigLit to be pulled-up. Using this mode, most of byte reorderings should BigLit to be pulled-up. Using this mode, most of byte reorderings should
be avoided when the driver is running on a Big Endian CPU. be avoided when the driver is running on a Big Endian CPU.
Driver version 2.5 is also, in theory, ready for this feature. Driver version 2.5 is also, in theory, ready for this feature.
===============================================================================
End of NCR53C8XX driver README file
...@@ -2203,7 +2203,7 @@ static struct script script0 __initdata = { ...@@ -2203,7 +2203,7 @@ static struct script script0 __initdata = {
** Possible data corruption during Memory Write and Invalidate. ** Possible data corruption during Memory Write and Invalidate.
** This work-around resets the addressing logic prior to the ** This work-around resets the addressing logic prior to the
** start of the first MOVE of a DATA IN phase. ** start of the first MOVE of a DATA IN phase.
** (See Documentation/scsi/ncr53c8xx.txt for more information) ** (See Documentation/scsi/ncr53c8xx.rst for more information)
*/ */
SCR_JUMPR ^ IFFALSE (IF (SCR_DATA_IN)), SCR_JUMPR ^ IFFALSE (IF (SCR_DATA_IN)),
20, 20,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment