__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

www-data@216.73.216.173: ~ $
<!DOCTYPE html>

<html lang="en" data-content_root="../">
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="viewport" content="width=device-width, initial-scale=1" />

    <title>NCR53C8XX/SYM53C8XX drivers &#8212; The Linux Kernel  documentation</title>
    <link rel="stylesheet" type="text/css" href="../_static/pygments.css?v=fa44fd50" />
    <link rel="stylesheet" type="text/css" href="../_static/alabaster.css?v=3918102e" />
    <script src="../_static/documentation_options.js?v=5929fcd5"></script>
    <script src="../_static/doctools.js?v=9bcbadda"></script>
    <script src="../_static/sphinx_highlight.js?v=dc90522c"></script>
    <link rel="index" title="Index" href="../genindex.html" />
    <link rel="search" title="Search" href="../search.html" />
    <link rel="next" title="WorkBiT NinjaSCSI-3/32Bi driver for Linux" href="NinjaSCSI.html" />
    <link rel="prev" title="Megaraid Common Management Module" href="megaraid.html" />
   
  <link rel="stylesheet" href="../_static/custom.css" type="text/css" />
  

  
  

  </head><body>
  <div class="document">
    
      <div class="sphinxsidebar" role="navigation" aria-label="Main">
        <div class="sphinxsidebarwrapper">
            <p class="logo"><a href="../index.html">
              <img class="logo" src="../_static/logo.svg" alt="Logo of The Linux Kernel"/>
            </a></p>
<h1 class="logo"><a href="../index.html">The Linux Kernel</a></h1>



<p class="blurb">6.18.50</p>







<search id="searchbox" style="display: none" role="search">
  <h3 id="searchlabel">Quick search</h3>
    <div class="searchformwrapper">
    <form class="search" action="../search.html" method="get">
      <input type="text" name="q" aria-labelledby="searchlabel" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"/>
      <input type="submit" value="Go" />
    </form>
    </div>
</search>
<script>document.getElementById('searchbox').style.display = "block"</script>


<p>
<h3 class="kernel-toc-contents">Contents</h3>
<input type="checkbox" class="kernel-toc-toggle" id = "kernel-toc-toggle" checked>
<label class="kernel-toc-title" for="kernel-toc-toggle"></label>

<div class="kerneltoc" id="kerneltoc">
<ul>
<li class="toctree-l1"><a class="reference internal" href="../process/development-process.html">Development process</a></li>
<li class="toctree-l1"><a class="reference internal" href="../process/submitting-patches.html">Submitting patches</a></li>
<li class="toctree-l1"><a class="reference internal" href="../process/code-of-conduct.html">Code of conduct</a></li>
<li class="toctree-l1"><a class="reference internal" href="../maintainer/index.html">Maintainer handbook</a></li>
<li class="toctree-l1"><a class="reference internal" href="../process/index.html">All development-process docs</a></li>
</ul>
<ul class="current">
<li class="toctree-l1"><a class="reference internal" href="../core-api/index.html">Core API</a></li>
<li class="toctree-l1"><a class="reference internal" href="../driver-api/index.html">Driver APIs</a></li>
<li class="toctree-l1 current"><a class="reference internal" href="../subsystem-apis.html">Subsystems</a><ul class="current">
<li class="toctree-l2"><a class="reference internal" href="../subsystem-apis.html#core-subsystems">Core subsystems</a></li>
<li class="toctree-l2"><a class="reference internal" href="../subsystem-apis.html#human-interfaces">Human interfaces</a></li>
<li class="toctree-l2"><a class="reference internal" href="../subsystem-apis.html#networking-interfaces">Networking interfaces</a></li>
<li class="toctree-l2 current"><a class="reference internal" href="../subsystem-apis.html#storage-interfaces">Storage interfaces</a><ul class="current">
<li class="toctree-l3"><a class="reference internal" href="../filesystems/index.html">Filesystems in the Linux kernel</a></li>
<li class="toctree-l3"><a class="reference internal" href="../block/index.html">Block</a></li>
<li class="toctree-l3"><a class="reference internal" href="../cdrom/index.html">CD-ROM</a></li>
<li class="toctree-l3 current"><a class="reference internal" href="index.html">SCSI Subsystem</a></li>
<li class="toctree-l3"><a class="reference internal" href="../target/index.html">TCM Virtual Device</a></li>
<li class="toctree-l3"><a class="reference internal" href="../nvme/index.html">NVMe Subsystem</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="../subsystem-apis.html#other-subsystems">Other subsystems</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="../locking/index.html">Locking</a></li>
</ul>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../process/license-rules.html">Licensing rules</a></li>
<li class="toctree-l1"><a class="reference internal" href="../doc-guide/index.html">Writing documentation</a></li>
<li class="toctree-l1"><a class="reference internal" href="../dev-tools/index.html">Development tools</a></li>
<li class="toctree-l1"><a class="reference internal" href="../dev-tools/testing-overview.html">Testing guide</a></li>
<li class="toctree-l1"><a class="reference internal" href="../kernel-hacking/index.html">Hacking guide</a></li>
<li class="toctree-l1"><a class="reference internal" href="../trace/index.html">Tracing</a></li>
<li class="toctree-l1"><a class="reference internal" href="../fault-injection/index.html">Fault injection</a></li>
<li class="toctree-l1"><a class="reference internal" href="../livepatch/index.html">Livepatching</a></li>
<li class="toctree-l1"><a class="reference internal" href="../rust/index.html">Rust</a></li>
</ul>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../admin-guide/index.html">Administration</a></li>
<li class="toctree-l1"><a class="reference internal" href="../kbuild/index.html">Build system</a></li>
<li class="toctree-l1"><a class="reference internal" href="../admin-guide/reporting-issues.html">Reporting issues</a></li>
<li class="toctree-l1"><a class="reference internal" href="../tools/index.html">Userspace tools</a></li>
<li class="toctree-l1"><a class="reference internal" href="../userspace-api/index.html">Userspace API</a></li>
</ul>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../firmware-guide/index.html">Firmware</a></li>
<li class="toctree-l1"><a class="reference internal" href="../devicetree/index.html">Firmware and Devicetree</a></li>
</ul>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../arch/index.html">CPU architectures</a></li>
</ul>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../staging/index.html">Unsorted documentation</a></li>
</ul>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../translations/index.html">Translations</a></li>
</ul>

</div>

<script type="text/javascript"> <!--
  var sbar = document.getElementsByClassName("sphinxsidebar")[0];
  let currents = document.getElementsByClassName("current")
  if (currents.length) {
    sbar.scrollTop = currents[currents.length - 1].offsetTop;
  }
  --> </script>
  <div role="note" aria-label="source link">
    <h3>This Page</h3>
    <ul class="this-page-menu">
      <li><a href="../_sources/scsi/ncr53c8xx.rst.txt"
            rel="nofollow">Show Source</a></li>
    </ul>
   </div>
        </div>
      </div>
      <div class="documentwrapper">
        <div class="bodywrapper">
          

          <div class="body" role="main">
            
  



<section id="ncr53c8xx-sym53c8xx-drivers">
<h1>NCR53C8XX/SYM53C8XX drivers<a class="headerlink" href="#ncr53c8xx-sym53c8xx-drivers" title="Link to this heading">¶</a></h1>
<p>Written by Gerard Roudier &lt;<a class="reference external" href="mailto:groudier&#37;&#52;&#48;free&#46;fr">groudier<span>&#64;</span>free<span>&#46;</span>fr</a>&gt;</p>
<p>21 Rue Carnot</p>
<p>95170 DEUIL LA BARRE - FRANCE</p>
<p>29 May 1999</p>
<section id="introduction">
<h2>1. Introduction<a class="headerlink" href="#introduction" title="Link to this heading">¶</a></h2>
<p>The initial Linux ncr53c8xx driver has been a port of the ncr driver from
FreeBSD that has been achieved in November 1995 by:</p>
<blockquote>
<div><ul class="simple">
<li><p>Gerard Roudier              &lt;<a class="reference external" href="mailto:groudier&#37;&#52;&#48;free&#46;fr">groudier<span>&#64;</span>free<span>&#46;</span>fr</a>&gt;</p></li>
</ul>
</div></blockquote>
<p>The original driver has been written for 386bsd and FreeBSD by:</p>
<blockquote>
<div><ul class="simple">
<li><p>Wolfgang Stanglmeier        &lt;<a class="reference external" href="mailto:wolf&#37;&#52;&#48;cologne&#46;de">wolf<span>&#64;</span>cologne<span>&#46;</span>de</a>&gt;</p></li>
<li><p>Stefan Esser                &lt;<a class="reference external" href="mailto:se&#37;&#52;&#48;mi&#46;Uni-Koeln&#46;de">se<span>&#64;</span>mi<span>&#46;</span>Uni-Koeln<span>&#46;</span>de</a>&gt;</p></li>
</ul>
</div></blockquote>
<p>It is now available as a bundle of 2 drivers:</p>
<ul class="simple">
<li><p>ncr53c8xx generic driver that supports all the SYM53C8XX family including
the earliest 810 rev. 1, the latest 896 (2 channel LVD SCSI controller) and
the new 895A (1 channel LVD SCSI controller).</p></li>
<li><p>sym53c8xx enhanced driver (a.k.a. 896 drivers) that drops support of oldest
chips in order to gain advantage of new features, as LOAD/STORE instructions
available since the 810A and hardware phase mismatch available with the
896 and the 895A.</p></li>
</ul>
<p>You can find technical information about the NCR 8xx family in the
PCI-HOWTO written by Michael Will and in the SCSI-HOWTO written by
Drew Eckhardt.</p>
<p>Information about new chips is available at LSILOGIC web server:</p>
<blockquote>
<div><ul class="simple">
<li><p><a class="reference external" href="http://www.lsilogic.com/">http://www.lsilogic.com/</a></p></li>
</ul>
</div></blockquote>
<p>SCSI standard documentations are available at SYMBIOS ftp server:</p>
<blockquote>
<div><ul class="simple">
<li><p><a class="reference external" href="ftp://ftp.symbios.com/">ftp://ftp.symbios.com/</a></p></li>
</ul>
</div></blockquote>
<p>Useful SCSI tools written by Eric Youngdale are available at tsx-11:</p>
<blockquote>
<div><ul class="simple">
<li><p><a class="reference external" href="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</a></p></li>
<li><p><a class="reference external" href="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</a></p></li>
</ul>
</div></blockquote>
<p>These tools are not ALPHA but quite clean and work quite well.
It is essential you have the ‘scsiinfo’ package.</p>
<p>This short documentation describes the features of the generic and enhanced
drivers, configuration parameters and control commands available through
the proc SCSI file system read / write operations.</p>
<p>This driver has been tested OK with linux/i386, Linux/Alpha and Linux/PPC.</p>
<p>Latest driver version and patches are available at:</p>
<blockquote>
<div><ul class="simple">
<li><p><a class="reference external" href="ftp://ftp.tux.org/pub/people/gerard-roudier">ftp://ftp.tux.org/pub/people/gerard-roudier</a></p></li>
</ul>
</div></blockquote>
<p>or</p>
<blockquote>
<div><ul class="simple">
<li><p><a class="reference external" href="ftp://ftp.symbios.com/mirror/ftp.tux.org/pub/tux/roudier/drivers">ftp://ftp.symbios.com/mirror/ftp.tux.org/pub/tux/roudier/drivers</a></p></li>
</ul>
</div></blockquote>
<p>I am not a native speaker of English and there are probably lots of
mistakes in this README file. Any help will be welcome.</p>
</section>
<section id="supported-chips-and-scsi-features">
<h2>2. Supported chips and SCSI features<a class="headerlink" href="#supported-chips-and-scsi-features" title="Link to this heading">¶</a></h2>
<p>The following features are supported for all chips:</p>
<blockquote>
<div><ul class="simple">
<li><p>Synchronous negotiation</p></li>
<li><p>Disconnection</p></li>
<li><p>Tagged command queuing</p></li>
<li><p>SCSI parity checking</p></li>
<li><p>Master parity checking</p></li>
</ul>
</div></blockquote>
<p>“Wide negotiation” is supported for chips that allow it.  The
following table shows some characteristics of NCR 8xx family chips
and what drivers support them.</p>
<table class="docutils align-default">
<tbody>
<tr class="row-odd"><td><p>Chip</p></td>
<td><p>On board
SDMS BIOS</p></td>
<td><p>Wide</p></td>
<td><p>SCSI std.</p></td>
<td><p>Max. sync</p></td>
<td><p>Supported by
the generic
driver</p></td>
<td><p>Supported by
the enhanced
driver</p></td>
</tr>
<tr class="row-even"><td><p>810</p></td>
<td><p>N</p></td>
<td><p>N</p></td>
<td><p>FAST10</p></td>
<td><p>10 MB/s</p></td>
<td><p>Y</p></td>
<td><p>N</p></td>
</tr>
<tr class="row-odd"><td><p>810A</p></td>
<td><p>N</p></td>
<td><p>N</p></td>
<td><p>FAST10</p></td>
<td><p>10 MB/s</p></td>
<td><p>Y</p></td>
<td><p>Y</p></td>
</tr>
<tr class="row-even"><td><p>815</p></td>
<td><p>Y</p></td>
<td><p>N</p></td>
<td><p>FAST10</p></td>
<td><p>10 MB/s</p></td>
<td><p>Y</p></td>
<td><p>N</p></td>
</tr>
<tr class="row-odd"><td><p>825</p></td>
<td><p>Y</p></td>
<td><p>Y</p></td>
<td><p>FAST10</p></td>
<td><p>20 MB/s</p></td>
<td><p>Y</p></td>
<td><p>N</p></td>
</tr>
<tr class="row-even"><td><p>825A</p></td>
<td><p>Y</p></td>
<td><p>Y</p></td>
<td><p>FAST10</p></td>
<td><p>20 MB/s</p></td>
<td><p>Y</p></td>
<td><p>Y</p></td>
</tr>
<tr class="row-odd"><td><p>860</p></td>
<td><p>N</p></td>
<td><p>N</p></td>
<td><p>FAST20</p></td>
<td><p>20 MB/s</p></td>
<td><p>Y</p></td>
<td><p>Y</p></td>
</tr>
<tr class="row-even"><td><p>875</p></td>
<td><p>Y</p></td>
<td><p>Y</p></td>
<td><p>FAST20</p></td>
<td><p>40 MB/s</p></td>
<td><p>Y</p></td>
<td><p>Y</p></td>
</tr>
<tr class="row-odd"><td><p>876</p></td>
<td><p>Y</p></td>
<td><p>Y</p></td>
<td><p>FAST20</p></td>
<td><p>40 MB/s</p></td>
<td><p>Y</p></td>
<td><p>Y</p></td>
</tr>
<tr class="row-even"><td><p>895</p></td>
<td><p>Y</p></td>
<td><p>Y</p></td>
<td><p>FAST40</p></td>
<td><p>80 MB/s</p></td>
<td><p>Y</p></td>
<td><p>Y</p></td>
</tr>
<tr class="row-odd"><td><p>895A</p></td>
<td><p>Y</p></td>
<td><p>Y</p></td>
<td><p>FAST40</p></td>
<td><p>80 MB/s</p></td>
<td><p>Y</p></td>
<td><p>Y</p></td>
</tr>
<tr class="row-even"><td><p>896</p></td>
<td><p>Y</p></td>
<td><p>Y</p></td>
<td><p>FAST40</p></td>
<td><p>80 MB/s</p></td>
<td><p>Y</p></td>
<td><p>Y</p></td>
</tr>
<tr class="row-odd"><td><p>897</p></td>
<td><p>Y</p></td>
<td><p>Y</p></td>
<td><p>FAST40</p></td>
<td><p>80 MB/s</p></td>
<td><p>Y</p></td>
<td><p>Y</p></td>
</tr>
<tr class="row-even"><td><p>1510D</p></td>
<td><p>Y</p></td>
<td><p>Y</p></td>
<td><p>FAST40</p></td>
<td><p>80 MB/s</p></td>
<td><p>Y</p></td>
<td><p>Y</p></td>
</tr>
<tr class="row-odd"><td><p>1010</p></td>
<td><p>Y</p></td>
<td><p>Y</p></td>
<td><p>FAST80</p></td>
<td><p>160 MB/s</p></td>
<td><p>N</p></td>
<td><p>Y</p></td>
</tr>
<tr class="row-even"><td><p>1010_66
<a class="footnote-reference brackets" href="#id2" id="id1" role="doc-noteref"><span class="fn-bracket">[</span>1<span class="fn-bracket">]</span></a></p></td>
<td><p>Y</p></td>
<td><p>Y</p></td>
<td><p>FAST80</p></td>
<td><p>160 MB/s</p></td>
<td><p>N</p></td>
<td><p>Y</p></td>
</tr>
</tbody>
</table>
<aside class="footnote-list brackets">
<aside class="footnote brackets" id="id2" role="doc-footnote">
<span class="label"><span class="fn-bracket">[</span><a role="doc-backlink" href="#id1">1</a><span class="fn-bracket">]</span></span>
<p>Chip supports 33MHz and 66MHz PCI buses.</p>
</aside>
</aside>
<p>Summary of other supported features:</p>
<dl class="field-list simple">
<dt class="field-odd">Module<span class="colon">:</span></dt>
<dd class="field-odd"><p>allow to load the driver</p>
</dd>
<dt class="field-even">Memory mapped I/O<span class="colon">:</span></dt>
<dd class="field-even"><p>increases performance</p>
</dd>
<dt class="field-odd">Profiling information<span class="colon">:</span></dt>
<dd class="field-odd"><p>read operations from the proc SCSI file system</p>
</dd>
<dt class="field-even">Control commands<span class="colon">:</span></dt>
<dd class="field-even"><p>write operations to the proc SCSI file system</p>
</dd>
<dt class="field-odd">Debugging information<span class="colon">:</span></dt>
<dd class="field-odd"><p>written to syslog (expert only)</p>
</dd>
<dt class="field-even">Serial NVRAM<span class="colon">:</span></dt>
<dd class="field-even"><p>Symbios and Tekram formats</p>
</dd>
</dl>
<ul class="simple">
<li><p>Scatter / gather</p></li>
<li><p>Shared interrupt</p></li>
<li><p>Boot setup commands</p></li>
</ul>
</section>
<section id="advantages-of-the-enhanced-896-driver">
<h2>3. Advantages of the enhanced 896 driver<a class="headerlink" href="#advantages-of-the-enhanced-896-driver" title="Link to this heading">¶</a></h2>
<section id="optimized-scsi-scripts">
<h3>3.1 Optimized SCSI SCRIPTS<a class="headerlink" href="#optimized-scsi-scripts" title="Link to this heading">¶</a></h3>
<p>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
to/from memory much faster that the MOVE MEMORY instruction that is supported
by the 53c7xx and 53c8xx family.
The LOAD/STORE instructions support absolute and DSA relative addressing
modes.  The SCSI SCRIPTS had been entirely rewritten using LOAD/STORE instead
of MOVE MEMORY instructions.</p>
</section>
<section id="new-features-of-the-sym53c896-64-bit-pci-dual-lvd-scsi-controller">
<h3>3.2 New features of the SYM53C896 (64 bit PCI dual LVD SCSI controller)<a class="headerlink" href="#new-features-of-the-sym53c896-64-bit-pci-dual-lvd-scsi-controller" title="Link to this heading">¶</a></h3>
<p>The 896 and the 895A allows handling of the phase mismatch context from
SCRIPTS (avoids the phase mismatch interrupt that stops the SCSI processor
until the C code has saved the context of the transfer).
Implementing this without using LOAD/STORE instructions would be painful
and I didn’t even want to try it.</p>
<p>The 896 chip supports 64 bit PCI transactions and addressing, while the
895A supports 32 bit PCI transactions and 64 bit addressing.
The SCRIPTS processor of these chips is not true 64 bit, but uses segment
registers for bit 32-63. Another interesting feature is that LOAD/STORE
instructions that address the on-chip RAM (8k) remain internal to the chip.</p>
<p>Due to the use of LOAD/STORE SCRIPTS instructions, this driver does not
support the following chips:</p>
<ul class="simple">
<li><p>SYM53C810 revision &lt; 0x10 (16)</p></li>
<li><p>SYM53C815 all revisions</p></li>
<li><p>SYM53C825 revision &lt; 0x10 (16)</p></li>
</ul>
</section>
</section>
<section id="memory-mapped-i-o-versus-normal-i-o">
<h2>4. Memory mapped I/O versus normal I/O<a class="headerlink" href="#memory-mapped-i-o-versus-normal-i-o" title="Link to this heading">¶</a></h2>
<p>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
mapped I/O seems to work fine on most hardware configurations, but
some poorly designed motherboards may break this feature.</p>
<p>The configuration option CONFIG_SCSI_NCR53C8XX_IOMAPPED forces the
driver to use normal I/O in all cases.</p>
</section>
<section id="tagged-command-queueing">
<h2>5. Tagged command queueing<a class="headerlink" href="#tagged-command-queueing" title="Link to this heading">¶</a></h2>
<p>Queuing more than 1 command at a time to a device allows it to perform
optimizations based on actual head positions and its mechanical
characteristics. This feature may also reduce average command latency.
In order to really gain advantage of this feature, devices must have
a reasonable cache size (No miracle is to be expected for a low-end
hard disk with 128 KB or less).
Some known SCSI devices do not properly support tagged command queuing.
Generally, firmware revisions that fix this kind of problems are available
at respective vendor web/ftp sites.
All I can say is that the hard disks I use on my machines behave well with
this driver with tagged command queuing enabled:</p>
<ul class="simple">
<li><p>IBM S12 0662</p></li>
<li><p>Conner 1080S</p></li>
<li><p>Quantum Atlas I</p></li>
<li><p>Quantum Atlas II</p></li>
</ul>
<p>If your controller has NVRAM, you can configure this feature per target
from the user setup tool. The Tekram Setup program allows to tune the
maximum number of queued commands up to 32. The Symbios Setup only allows
to enable or disable this feature.</p>
<p>The maximum number of simultaneous tagged commands queued to a device
is currently set to 8 by default.  This value is suitable for most SCSI
disks.  With large SCSI disks (&gt;= 2GB, cache &gt;= 512KB, average seek time
&lt;= 10 ms), using a larger value may give better performances.</p>
<p>The sym53c8xx driver supports up to 255 commands per device, and the
generic ncr53c8xx driver supports up to 64, but using more than 32 is
generally not worth-while, unless you are using a very large disk or disk
array. It is noticeable that most of recent hard disks seem not to accept
more than 64 simultaneous commands. So, using more than 64 queued commands
is probably just resource wasting.</p>
<p>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
depths from the boot command-line. For example:</p>
<div class="highlight-none notranslate"><div class="highlight"><pre><span></span>ncr53c8xx=tags:4/t2t3q15-t4q7/t1u0q32
</pre></div>
</div>
<p>will set tagged commands queue depths as follow:</p>
<ul class="simple">
<li><p>target 2  all luns  on controller 0 --&gt; 15</p></li>
<li><p>target 3  all luns  on controller 0 --&gt; 15</p></li>
<li><p>target 4  all luns  on controller 0 --&gt;  7</p></li>
<li><p>target 1  lun 0     on controller 1 --&gt; 32</p></li>
<li><p>all other target/lun                --&gt;  4</p></li>
</ul>
<p>In some special conditions, some SCSI disk firmwares may return a
QUEUE FULL status for a SCSI command. This behaviour is managed by the
driver using the following heuristic:</p>
<ul class="simple">
<li><p>Each time a QUEUE FULL status is returned, tagged queue depth is reduced
to the actual number of disconnected commands.</p></li>
<li><p>Every 1000 successfully completed SCSI commands, if allowed by the
current limit, the maximum number of queueable commands is incremented.</p></li>
</ul>
<p>Since QUEUE FULL status reception and handling is resource wasting, the
driver notifies by default this problem to user by indicating the actual
number of commands used and their status, as well as its decision on the
device queue depth change.
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
setting verbose level to zero, as follow:</p>
<dl class="simple">
<dt>1st method:</dt><dd><p>boot your system using ‘ncr53c8xx=verb:0’ option.</p>
</dd>
<dt>2nd method:</dt><dd><p>apply “setverbose 0” control command to the proc fs entry
corresponding to your controller after boot-up.</p>
</dd>
</dl>
</section>
<section id="parity-checking">
<h2>6. Parity checking<a class="headerlink" href="#parity-checking" title="Link to this heading">¶</a></h2>
<p>The driver supports SCSI parity checking and PCI bus master parity
checking.  These features must be enabled in order to ensure safe data
transfers.  However, some flawed devices or mother boards will have
problems with parity. You can disable either PCI parity or SCSI parity
checking by entering appropriate options from the boot command line.
(See 10: Boot setup commands).</p>
</section>
<section id="profiling-information">
<h2>7. Profiling information<a class="headerlink" href="#profiling-information" title="Link to this heading">¶</a></h2>
<p>Profiling information is available through the proc SCSI file system.
Since gathering profiling information may impact performances, this
feature is disabled by default and requires a compilation configuration
option to be set to Y.</p>
<p>The device associated with a host has the following pathname:</p>
<div class="highlight-none notranslate"><div class="highlight"><pre><span></span>/proc/scsi/ncr53c8xx/N     (N=0,1,2 ....)
</pre></div>
</div>
<p>Generally, only 1 board is used on hardware configuration, and that device is:</p>
<div class="highlight-none notranslate"><div class="highlight"><pre><span></span>/proc/scsi/ncr53c8xx/0
</pre></div>
</div>
<p>However, if the driver has been made as module, the number of the
hosts is incremented each time the driver is loaded.</p>
<p>In order to display profiling information, just enter:</p>
<div class="highlight-none notranslate"><div class="highlight"><pre><span></span>cat /proc/scsi/ncr53c8xx/0
</pre></div>
</div>
<p>and you will get something like the following text:</p>
<div class="highlight-none notranslate"><div class="highlight"><pre><span></span>General information:
Chip NCR53C810, device id 0x1, revision id 0x2
IO port address 0x6000, IRQ number 10
Using memory mapped IO at virtual address 0x282c000
Synchronous transfer period 25, max commands per lun 4
Profiling information:
num_trans    = 18014
num_kbytes   = 671314
num_disc     = 25763
num_break    = 1673
num_int      = 1685
num_fly      = 18038
ms_setup     = 4940
ms_data      = 369940
ms_disc      = 183090
ms_post      = 1320
</pre></div>
</div>
<p>General information is easy to understand. The device ID and the
revision ID identify the SCSI chip as follows:</p>
<table class="docutils align-default">
<thead>
<tr class="row-odd"><th class="head"><p>Chip</p></th>
<th class="head"><p>Device id</p></th>
<th class="head"><p>Revision Id</p></th>
</tr>
</thead>
<tbody>
<tr class="row-even"><td><p>810</p></td>
<td><p>0x1</p></td>
<td><p>&lt;  0x10</p></td>
</tr>
<tr class="row-odd"><td><p>810A</p></td>
<td><p>0x1</p></td>
<td><p>&gt;= 0x10</p></td>
</tr>
<tr class="row-even"><td><p>815</p></td>
<td><p>0x4</p></td>
<td></td>
</tr>
<tr class="row-odd"><td><p>825</p></td>
<td><p>0x3</p></td>
<td><p>&lt;  0x10</p></td>
</tr>
<tr class="row-even"><td><p>860</p></td>
<td><p>0x6</p></td>
<td></td>
</tr>
<tr class="row-odd"><td><p>825A</p></td>
<td><p>0x3</p></td>
<td><p>&gt;= 0x10</p></td>
</tr>
<tr class="row-even"><td><p>875</p></td>
<td><p>0xf</p></td>
<td></td>
</tr>
<tr class="row-odd"><td><p>895</p></td>
<td><p>0xc</p></td>
<td></td>
</tr>
</tbody>
</table>
<p>The profiling information is updated upon completion of SCSI commands.
A data structure is allocated and zeroed when the host adapter is
attached. So, if the driver is a module, the profile counters are
cleared each time the driver is loaded.  The “clearprof” command
allows you to clear these counters at any time.</p>
<p>The following counters are available:</p>
<p>(“num” prefix means “number of”,
“ms” means milli-seconds)</p>
<dl class="simple">
<dt>num_trans</dt><dd><p>Number of completed commands
Example above: 18014 completed commands</p>
</dd>
<dt>num_kbytes</dt><dd><p>Number of kbytes transferred
Example above: 671 MB transferred</p>
</dd>
<dt>num_disc</dt><dd><p>Number of SCSI disconnections
Example above: 25763 SCSI disconnections</p>
</dd>
<dt>num_break</dt><dd><p>number of script interruptions (phase mismatch)
Example above: 1673 script interruptions</p>
</dd>
<dt>num_int</dt><dd><p>Number of interrupts other than “on the fly”
Example above: 1685 interruptions not “on the fly”</p>
</dd>
<dt>num_fly</dt><dd><p>Number of interrupts “on the fly”
Example above: 18038 interruptions “on the fly”</p>
</dd>
<dt>ms_setup</dt><dd><p>Elapsed time for SCSI commands setups
Example above: 4.94 seconds</p>
</dd>
<dt>ms_data</dt><dd><p>Elapsed time for data transfers
Example above: 369.94 seconds spent for data transfer</p>
</dd>
<dt>ms_disc</dt><dd><p>Elapsed time for SCSI disconnections
Example above: 183.09 seconds spent disconnected</p>
</dd>
<dt>ms_post</dt><dd><p>Elapsed time for command post processing
(time from SCSI status get to command completion call)
Example above: 1.32 seconds spent for post processing</p>
</dd>
</dl>
<p>Due to the 1/100 second tick of the system clock, “ms_post” time may
be wrong.</p>
<p>In the example above, we got 18038 interrupts “on the fly” and only
1673 script breaks generally due to disconnections inside a segment
of the scatter list.</p>
</section>
<section id="control-commands">
<h2>8. Control commands<a class="headerlink" href="#control-commands" title="Link to this heading">¶</a></h2>
<p>Control commands can be sent to the driver with write operations to
the proc SCSI file system. The generic command syntax is the
following:</p>
<div class="highlight-none notranslate"><div class="highlight"><pre><span></span>echo &quot;&lt;verb&gt; &lt;parameters&gt;&quot; &gt;/proc/scsi/ncr53c8xx/0
(assumes controller number is 0)
</pre></div>
</div>
<p>Using “all” for “&lt;target&gt;” parameter with the commands below will
apply to all targets of the SCSI chain (except the controller).</p>
<p>Available commands:</p>
<section id="set-minimum-synchronous-period-factor">
<h3>8.1 Set minimum synchronous period factor<a class="headerlink" href="#set-minimum-synchronous-period-factor" title="Link to this heading">¶</a></h3>
<blockquote>
<div><p>setsync &lt;target&gt; &lt;period factor&gt;</p>
<dl class="field-list simple">
<dt class="field-odd">target<span class="colon">:</span></dt>
<dd class="field-odd"><p>target number</p>
</dd>
<dt class="field-even">period<span class="colon">:</span></dt>
<dd class="field-even"><p>minimum synchronous period.
Maximum speed = 1000/(4*period factor) except for special
cases below.</p>
</dd>
</dl>
<p>Specify a period of 255, to force asynchronous transfer mode.</p>
<blockquote>
<div><ul class="simple">
<li><p>10 means 25 nano-seconds synchronous period</p></li>
<li><p>11 means 30 nano-seconds synchronous period</p></li>
<li><p>12 means 50 nano-seconds synchronous period</p></li>
</ul>
</div></blockquote>
</div></blockquote>
</section>
<section id="set-wide-size">
<h3>8.2 Set wide size<a class="headerlink" href="#set-wide-size" title="Link to this heading">¶</a></h3>
<blockquote>
<div><p>setwide &lt;target&gt; &lt;size&gt;</p>
<dl class="field-list simple">
<dt class="field-odd">target<span class="colon">:</span></dt>
<dd class="field-odd"><p>target number</p>
</dd>
<dt class="field-even">size<span class="colon">:</span></dt>
<dd class="field-even"><p>0=8 bits, 1=16bits</p>
</dd>
</dl>
</div></blockquote>
</section>
<section id="set-maximum-number-of-concurrent-tagged-commands">
<h3>8.3 Set maximum number of concurrent tagged commands<a class="headerlink" href="#set-maximum-number-of-concurrent-tagged-commands" title="Link to this heading">¶</a></h3>
<blockquote>
<div><p>settags &lt;target&gt; &lt;tags&gt;</p>
<dl class="field-list simple">
<dt class="field-odd">target<span class="colon">:</span></dt>
<dd class="field-odd"><p>target number</p>
</dd>
<dt class="field-even">tags<span class="colon">:</span></dt>
<dd class="field-even"><p>number of concurrent tagged commands
must not be greater than SCSI_NCR_MAX_TAGS (default: 8)</p>
</dd>
</dl>
</div></blockquote>
</section>
<section id="set-order-type-for-tagged-command">
<h3>8.4 Set order type for tagged command<a class="headerlink" href="#set-order-type-for-tagged-command" title="Link to this heading">¶</a></h3>
<blockquote>
<div><p>setorder &lt;order&gt;</p>
<dl class="field-list">
<dt class="field-odd">order<span class="colon">:</span></dt>
<dd class="field-odd"><p>3 possible values:</p>
<dl class="simple">
<dt>simple:</dt><dd><p>use SIMPLE TAG for all operations (read and write)</p>
</dd>
<dt>ordered:</dt><dd><p>use ORDERED TAG for all operations</p>
</dd>
<dt>default:</dt><dd><p>use default tag type,
SIMPLE  TAG for read  operations
ORDERED TAG for write operations</p>
</dd>
</dl>
</dd>
</dl>
</div></blockquote>
</section>
<section id="set-debug-mode">
<h3>8.5 Set debug mode<a class="headerlink" href="#set-debug-mode" title="Link to this heading">¶</a></h3>
<blockquote>
<div><p>setdebug &lt;list of debug flags&gt;</p>
<p>Available debug flags:</p>
<blockquote>
<div><table class="docutils align-default">
<tbody>
<tr class="row-odd"><td><p>alloc</p></td>
<td><p>print info about memory allocations (ccb, lcb)</p></td>
</tr>
<tr class="row-even"><td><p>queue</p></td>
<td><p>print info about insertions into the command start queue</p></td>
</tr>
<tr class="row-odd"><td><p>result</p></td>
<td><p>print sense data on CHECK CONDITION status</p></td>
</tr>
<tr class="row-even"><td><p>scatter</p></td>
<td><p>print info about the scatter process</p></td>
</tr>
<tr class="row-odd"><td><p>scripts</p></td>
<td><p>print info about the script binding process</p></td>
</tr>
<tr class="row-even"><td><p>tiny</p></td>
<td><p>print minimal debugging information</p></td>
</tr>
<tr class="row-odd"><td><p>timing</p></td>
<td><p>print timing information of the NCR chip</p></td>
</tr>
<tr class="row-even"><td><p>nego</p></td>
<td><p>print information about SCSI negotiations</p></td>
</tr>
<tr class="row-odd"><td><p>phase</p></td>
<td><p>print information on script interruptions</p></td>
</tr>
</tbody>
</table>
</div></blockquote>
<p>Use “setdebug” with no argument to reset debug flags.</p>
</div></blockquote>
</section>
<section id="clear-profile-counters">
<h3>8.6 Clear profile counters<a class="headerlink" href="#clear-profile-counters" title="Link to this heading">¶</a></h3>
<blockquote>
<div><p>clearprof</p>
<p>The profile counters are automatically cleared when the amount of
data transferred reaches 1000 GB in order to avoid overflow.
The “clearprof” command allows you to clear these counters at any time.</p>
</div></blockquote>
</section>
<section id="set-flag-no-disc">
<h3>8.7 Set flag (no_disc)<a class="headerlink" href="#set-flag-no-disc" title="Link to this heading">¶</a></h3>
<blockquote>
<div><p>setflag &lt;target&gt; &lt;flag&gt;</p>
<p>target:    target number</p>
<p>For the moment, only one flag is available:</p>
<blockquote>
<div><p>no_disc:   not allow target to disconnect.</p>
</div></blockquote>
<p>Do not specify any flag in order to reset the flag. For example:</p>
<dl class="simple">
<dt>setflag 4</dt><dd><p>will reset no_disc flag for target 4, so will allow it disconnections.</p>
</dd>
<dt>setflag all</dt><dd><p>will allow disconnection for all devices on the SCSI bus.</p>
</dd>
</dl>
</div></blockquote>
</section>
<section id="set-verbose-level">
<h3>8.8 Set verbose level<a class="headerlink" href="#set-verbose-level" title="Link to this heading">¶</a></h3>
<blockquote>
<div><p>setverbose #level</p>
<p>The driver default verbose level is 1. This command allows to change
th driver verbose level after boot-up.</p>
</div></blockquote>
</section>
<section id="reset-all-logical-units-of-a-target">
<h3>8.9 Reset all logical units of a target<a class="headerlink" href="#reset-all-logical-units-of-a-target" title="Link to this heading">¶</a></h3>
<blockquote>
<div><p>resetdev &lt;target&gt;</p>
<dl class="field-list simple">
<dt class="field-odd">target<span class="colon">:</span></dt>
<dd class="field-odd"><p>target number</p>
</dd>
</dl>
<p>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)</p>
</div></blockquote>
</section>
<section id="abort-all-tasks-of-all-logical-units-of-a-target">
<h3>8.10 Abort all tasks of all logical units of a target<a class="headerlink" href="#abort-all-tasks-of-all-logical-units-of-a-target" title="Link to this heading">¶</a></h3>
<blockquote>
<div><p>cleardev &lt;target&gt;</p>
<dl class="field-list simple">
<dt class="field-odd">target<span class="colon">:</span></dt>
<dd class="field-odd"><p>target number</p>
</dd>
</dl>
<p>The driver will try to send a ABORT message to all the logical units
of the target.</p>
<p>(Only supported by the SYM53C8XX driver and provided for test purpose)</p>
</div></blockquote>
</section>
</section>
<section id="configuration-parameters">
<h2>9. Configuration parameters<a class="headerlink" href="#configuration-parameters" title="Link to this heading">¶</a></h2>
<p>If the firmware of all your devices is perfect enough, all the
features supported by the driver can be enabled at start-up.  However,
if only one has a flaw for some SCSI feature, you can disable the
support by the driver of this feature at linux start-up and enable
this feature after boot-up only for devices that support it safely.</p>
<dl>
<dt>CONFIG_SCSI_NCR53C8XX_IOMAPPED       (default answer: n)</dt><dd><p>Answer “y” if you suspect your mother board to not allow memory mapped I/O.</p>
<p>May slow down performance a little.  This option is required by
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
mapped anyway.</p>
</dd>
<dt>CONFIG_SCSI_NCR53C8XX_DEFAULT_TAGS    (default answer: 8)</dt><dd><p>Default tagged command queue depth.</p>
</dd>
<dt>CONFIG_SCSI_NCR53C8XX_MAX_TAGS         (default answer: 8)</dt><dd><p>This option allows you to specify the maximum number of tagged commands
that can be queued to a device. The maximum supported value is 32.</p>
</dd>
<dt>CONFIG_SCSI_NCR53C8XX_SYNC            (default answer: 5)</dt><dd><p>This option allows you to specify the frequency in MHz the driver
will use at boot time for synchronous data transfer negotiations.
This frequency can be changed later with the “setsync” control command.
0 means “asynchronous data transfers”.</p>
</dd>
<dt>CONFIG_SCSI_NCR53C8XX_FORCE_SYNC_NEGO (default answer: n)</dt><dd><p>Force synchronous negotiation for all SCSI-2 devices.</p>
<p>Some SCSI-2 devices do not report this feature in byte 7 of inquiry
response but do support it properly (TAMARACK scanners for example).</p>
</dd>
<dt>CONFIG_SCSI_NCR53C8XX_NO_DISCONNECT   (default and only reasonable answer: n)</dt><dd><p>If you suspect a device of yours does not properly support disconnections,
you can answer “y”. Then, all SCSI devices will never disconnect the bus
even while performing long SCSI operations.</p>
</dd>
<dt>CONFIG_SCSI_NCR53C8XX_SYMBIOS_COMPAT</dt><dd><p>Genuine SYMBIOS boards use GPIO0 in output for controller LED and GPIO3
bit as a flag indicating singled-ended/differential interface.
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.</p>
<p>This option must NOT be enabled if your system has at least one 53C8XX
based scsi board with a vendor-specific BIOS.
For example, Tekram DC-390/U, DC-390/W and DC-390/F scsi controllers
use a vendor-specific BIOS and are known to not use SYMBIOS compatible
GPIO wiring. So, this option must not be enabled if your system has
such a board installed.</p>
</dd>
<dt>CONFIG_SCSI_NCR53C8XX_NVRAM_DETECT</dt><dd><p>Enable support for reading the serial NVRAM data on Symbios and
some Symbios compatible cards, and Tekram DC390W/U/F cards. Useful for
systems with more than one Symbios compatible controller where at least
one has a serial NVRAM, or for a system with a mixture of Symbios and
Tekram cards. Enables setting the boot order of host adaptors
to something other than the default order or “reverse probe” order.
Also enables Symbios and Tekram cards to be distinguished so
CONFIG_SCSI_NCR53C8XX_SYMBIOS_COMPAT may be set in a system with a
mixture of Symbios and Tekram cards so the Symbios cards can make use of
the full range of Symbios features, differential, led pin, without
causing problems for the Tekram card(s).</p>
</dd>
</dl>
</section>
<section id="boot-setup-commands">
<h2>10. Boot setup commands<a class="headerlink" href="#boot-setup-commands" title="Link to this heading">¶</a></h2>
<section id="syntax">
<h3>10.1 Syntax<a class="headerlink" href="#syntax" title="Link to this heading">¶</a></h3>
<p>Setup commands can be passed to the driver either at boot time or as a
string variable using ‘insmod’.</p>
<p>A boot setup command for the ncr53c8xx (sym53c8xx) driver begins with the
driver name “ncr53c8xx=”(sym53c8xx). The kernel syntax parser then expects
an optional list of integers separated with comma followed by an optional
list of comma-separated strings. Example of boot setup command under lilo
prompt:</p>
<div class="highlight-none notranslate"><div class="highlight"><pre><span></span>lilo: linux root=/dev/hda2 ncr53c8xx=tags:4,sync:10,debug:0x200
</pre></div>
</div>
<ul class="simple">
<li><p>enable tagged commands, up to 4 tagged commands queued.</p></li>
<li><p>set synchronous negotiation speed to 10 Mega-transfers / second.</p></li>
<li><p>set DEBUG_NEGO flag.</p></li>
</ul>
<p>Since comma seems not to be allowed when defining a string variable using
‘insmod’, the driver also accepts &lt;space&gt; as option separator.
The following command will install driver module with the same options as
above:</p>
<div class="highlight-none notranslate"><div class="highlight"><pre><span></span>insmod ncr53c8xx.o ncr53c8xx=&quot;tags:4 sync:10 debug:0x200&quot;
</pre></div>
</div>
<p>For the moment, the integer list of arguments is discarded by the driver.
It will be used in the future in order to allow a per controller setup.</p>
<p>Each string argument must be specified as “keyword:value”. Only lower-case
characters and digits are allowed.</p>
<p>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.</p>
<p>The sequence of commands:</p>
<div class="highlight-none notranslate"><div class="highlight"><pre><span></span>insmod sym53c8xx sym53c8xx=excl:0x1400
insmod ncr53c8xx
</pre></div>
</div>
<p>installs the sym53c8xx driver on all adapters except the one at IO port
address 0x1400 and then installs the ncr53c8xx driver to the adapter at IO
port address 0x1400.</p>
</section>
<section id="available-arguments">
<h3>10.2 Available arguments<a class="headerlink" href="#available-arguments" title="Link to this heading">¶</a></h3>
<section id="master-parity-checking">
<h4>10.2.1  Master parity checking<a class="headerlink" href="#master-parity-checking" title="Link to this heading">¶</a></h4>
<blockquote>
<div><table class="docutils align-default">
<tbody>
<tr class="row-odd"><td><p>mpar:y</p></td>
<td><p>enabled</p></td>
</tr>
<tr class="row-even"><td><p>mpar:n</p></td>
<td><p>disabled</p></td>
</tr>
</tbody>
</table>
</div></blockquote>
</section>
<section id="scsi-parity-checking">
<h4>10.2.2  Scsi parity checking<a class="headerlink" href="#scsi-parity-checking" title="Link to this heading">¶</a></h4>
<blockquote>
<div><table class="docutils align-default">
<tbody>
<tr class="row-odd"><td><p>spar:y</p></td>
<td><p>enabled</p></td>
</tr>
<tr class="row-even"><td><p>spar:n</p></td>
<td><p>disabled</p></td>
</tr>
</tbody>
</table>
</div></blockquote>
</section>
<section id="scsi-disconnections">
<h4>10.2.3  Scsi disconnections<a class="headerlink" href="#scsi-disconnections" title="Link to this heading">¶</a></h4>
<blockquote>
<div><table class="docutils align-default">
<tbody>
<tr class="row-odd"><td><p>disc:y</p></td>
<td><p>enabled</p></td>
</tr>
<tr class="row-even"><td><p>disc:n</p></td>
<td><p>disabled</p></td>
</tr>
</tbody>
</table>
</div></blockquote>
</section>
<section id="special-features">
<h4>10.2.4  Special features<a class="headerlink" href="#special-features" title="Link to this heading">¶</a></h4>
<blockquote>
<div><p>Only apply to 810A, 825A, 860, 875 and 895 controllers.
Have no effect with other ones.</p>
<blockquote>
<div><table class="docutils align-default">
<tbody>
<tr class="row-odd"><td><p>specf:y</p></td>
<td><p>(or 1) enabled</p></td>
</tr>
<tr class="row-even"><td><p>specf:n</p></td>
<td><p>(or 0) disabled</p></td>
</tr>
<tr class="row-odd"><td><p>specf:3</p></td>
<td><p>enabled except Memory Write And Invalidate</p></td>
</tr>
</tbody>
</table>
</div></blockquote>
<p>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
Invalidate.</p>
</div></blockquote>
</section>
<section id="ultra-scsi-support">
<h4>10.2.5  Ultra SCSI support<a class="headerlink" href="#ultra-scsi-support" title="Link to this heading">¶</a></h4>
<blockquote>
<div><p>Only apply to 860, 875, 895, 895a, 896, 1010 and 1010_66 controllers.
Have no effect with other ones.</p>
<blockquote>
<div><table class="docutils align-default">
<tbody>
<tr class="row-odd"><td><p>ultra:n</p></td>
<td><p>All ultra speeds enabled</p></td>
</tr>
<tr class="row-even"><td><p>ultra:2</p></td>
<td><p>Ultra2 enabled</p></td>
</tr>
<tr class="row-odd"><td><p>ultra:1</p></td>
<td><p>Ultra enabled</p></td>
</tr>
<tr class="row-even"><td><p>ultra:0</p></td>
<td><p>Ultra speeds disabled</p></td>
</tr>
</tbody>
</table>
</div></blockquote>
</div></blockquote>
</section>
<section id="default-number-of-tagged-commands">
<h4>10.2.6  Default number of tagged commands<a class="headerlink" href="#default-number-of-tagged-commands" title="Link to this heading">¶</a></h4>
<blockquote>
<div><blockquote>
<div><table class="docutils align-default">
<tbody>
<tr class="row-odd"><td><p>tags:0     (or tags:1 )</p></td>
<td><p>tagged command queuing disabled</p></td>
</tr>
<tr class="row-even"><td><p>tags:#tags (#tags  &gt; 1)</p></td>
<td><p>tagged command queuing enabled</p></td>
</tr>
</tbody>
</table>
</div></blockquote>
<p>#tags will be truncated to the max queued commands configuration parameter.
This option also allows to specify a command queue depth for each device
that support tagged command queueing.</p>
<p>Example:</p>
<div class="highlight-none notranslate"><div class="highlight"><pre><span></span>ncr53c8xx=tags:10/t2t3q16-t5q24/t1u2q32
</pre></div>
</div>
<p>will set devices queue depth as follow:</p>
<blockquote>
<div><ul class="simple">
<li><p>controller #0 target #2 and target #3                  -&gt; 16 commands,</p></li>
<li><p>controller #0 target #5                                -&gt; 24 commands,</p></li>
<li><p>controller #1 target #1 logical unit #2                -&gt; 32 commands,</p></li>
<li><p>all other logical units (all targets, all controllers) -&gt; 10 commands.</p></li>
</ul>
</div></blockquote>
</div></blockquote>
</section>
<section id="default-synchronous-period-factor">
<h4>10.2.7  Default synchronous period factor<a class="headerlink" href="#default-synchronous-period-factor" title="Link to this heading">¶</a></h4>
<table class="docutils align-default">
<tbody>
<tr class="row-odd"><td><p>sync:255</p></td>
<td><p>disabled (asynchronous transfer mode)</p></td>
</tr>
<tr class="row-even"><td><p>sync:#factor</p></td>
<td><table class="docutils align-default">
<tbody>
<tr class="row-odd"><td><p>#factor = 10</p></td>
<td><p>Ultra-2 SCSI 40 Mega-transfers / second</p></td>
</tr>
<tr class="row-even"><td><p>#factor = 11</p></td>
<td><p>Ultra-2 SCSI 33 Mega-transfers / second</p></td>
</tr>
<tr class="row-odd"><td><p>#factor &lt; 25</p></td>
<td><p>Ultra   SCSI 20 Mega-transfers / second</p></td>
</tr>
<tr class="row-even"><td><p>#factor &lt; 50</p></td>
<td><p>Fast    SCSI-2</p></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<blockquote>
<div><p>In all cases, the driver will use the minimum transfer period supported by
controllers according to NCR53C8XX chip type.</p>
</div></blockquote>
</section>
<section id="negotiate-synchronous-with-all-devices">
<h4>10.2.8  Negotiate synchronous with all devices<a class="headerlink" href="#negotiate-synchronous-with-all-devices" title="Link to this heading">¶</a></h4>
<blockquote>
<div><p>(force sync nego)</p>
<table class="docutils align-default">
<tbody>
<tr class="row-odd"><td><p>fsn:y</p></td>
<td><p>enabled</p></td>
</tr>
<tr class="row-even"><td><p>fsn:n</p></td>
<td><p>disabled</p></td>
</tr>
</tbody>
</table>
</div></blockquote>
</section>
<section id="verbosity-level">
<h4>10.2.9  Verbosity level<a class="headerlink" href="#verbosity-level" title="Link to this heading">¶</a></h4>
<blockquote>
<div><table class="docutils align-default">
<tbody>
<tr class="row-odd"><td><p>verb:0</p></td>
<td><p>minimal</p></td>
</tr>
<tr class="row-even"><td><p>verb:1</p></td>
<td><p>normal</p></td>
</tr>
<tr class="row-odd"><td><p>verb:2</p></td>
<td><p>too much</p></td>
</tr>
</tbody>
</table>
</div></blockquote>
</section>
<section id="debug-mode">
<h4>10.2.10 Debug mode<a class="headerlink" href="#debug-mode" title="Link to this heading">¶</a></h4>
<table class="docutils align-default">
<tbody>
<tr class="row-odd"><td><p>debug:0</p></td>
<td><p>clear debug flags</p></td>
</tr>
<tr class="row-even"><td><p>debug:#x</p></td>
<td><p>set debug flags</p>
<blockquote>
<div><p>#x is an integer value combining the following power-of-2 values:</p>
<table class="docutils align-default">
<tbody>
<tr class="row-odd"><td><p>DEBUG_ALLOC</p></td>
<td><p>0x1</p></td>
</tr>
<tr class="row-even"><td><p>DEBUG_PHASE</p></td>
<td><p>0x2</p></td>
</tr>
<tr class="row-odd"><td><p>DEBUG_POLL</p></td>
<td><p>0x4</p></td>
</tr>
<tr class="row-even"><td><p>DEBUG_QUEUE</p></td>
<td><p>0x8</p></td>
</tr>
<tr class="row-odd"><td><p>DEBUG_RESULT</p></td>
<td><p>0x10</p></td>
</tr>
<tr class="row-even"><td><p>DEBUG_SCATTER</p></td>
<td><p>0x20</p></td>
</tr>
<tr class="row-odd"><td><p>DEBUG_SCRIPT</p></td>
<td><p>0x40</p></td>
</tr>
<tr class="row-even"><td><p>DEBUG_TINY</p></td>
<td><p>0x80</p></td>
</tr>
<tr class="row-odd"><td><p>DEBUG_TIMING</p></td>
<td><p>0x100</p></td>
</tr>
<tr class="row-even"><td><p>DEBUG_NEGO</p></td>
<td><p>0x200</p></td>
</tr>
<tr class="row-odd"><td><p>DEBUG_TAGS</p></td>
<td><p>0x400</p></td>
</tr>
<tr class="row-even"><td><p>DEBUG_FREEZE</p></td>
<td><p>0x800</p></td>
</tr>
<tr class="row-odd"><td><p>DEBUG_RESTART</p></td>
<td><p>0x1000</p></td>
</tr>
</tbody>
</table>
</div></blockquote>
</td>
</tr>
</tbody>
</table>
<blockquote>
<div><p>You can play safely with DEBUG_NEGO. However, some of these flags may
generate bunches of syslog messages.</p>
</div></blockquote>
</section>
<section id="burst-max">
<h4>10.2.11 Burst max<a class="headerlink" href="#burst-max" title="Link to this heading">¶</a></h4>
<table class="docutils align-default">
<tbody>
<tr class="row-odd"><td><p>burst:0</p></td>
<td><p>burst disabled</p></td>
</tr>
<tr class="row-even"><td><p>burst:255</p></td>
<td><p>get burst length from initial IO register settings.</p></td>
</tr>
<tr class="row-odd"><td><p>burst:#x</p></td>
<td><p>burst enabled (1&lt;&lt;#x burst transfers max)</p>
<p>#x is an integer value which is log base 2 of the burst transfers
max.</p>
<p>The NCR53C875 and NCR53C825A support up to 128 burst transfers
(#x = 7).</p>
<p>Other chips only support up to 16 (#x = 4).</p>
<p>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 by the chip.</p>
</td>
</tr>
</tbody>
</table>
</section>
<section id="led-support">
<h4>10.2.12 LED support<a class="headerlink" href="#led-support" title="Link to this heading">¶</a></h4>
<blockquote>
<div><blockquote>
<div><table class="docutils align-default">
<tbody>
<tr class="row-odd"><td><p>led:1</p></td>
<td><p>enable  LED support</p></td>
</tr>
<tr class="row-even"><td><p>led:0</p></td>
<td><p>disable LED support</p></td>
</tr>
</tbody>
</table>
</div></blockquote>
<p>Do not enable LED support if your scsi board does not use SDMS BIOS.
(See ‘Configuration parameters’)</p>
</div></blockquote>
</section>
<section id="max-wide">
<h4>10.2.13 Max wide<a class="headerlink" href="#max-wide" title="Link to this heading">¶</a></h4>
<blockquote>
<div><blockquote>
<div><table class="docutils align-default">
<tbody>
<tr class="row-odd"><td><p>wide:1</p></td>
<td><p>wide scsi enabled</p></td>
</tr>
<tr class="row-even"><td><p>wide:0</p></td>
<td><p>wide scsi disabled</p></td>
</tr>
</tbody>
</table>
</div></blockquote>
<p>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
converter, any accepted wide negotiation will break further data transfers.
In such a case, using “wide:0” in the bootup command will be helpful.</p>
</div></blockquote>
</section>
<section id="differential-mode">
<h4>10.2.14 Differential mode<a class="headerlink" href="#differential-mode" title="Link to this heading">¶</a></h4>
<blockquote>
<div><table class="docutils align-default">
<tbody>
<tr class="row-odd"><td><p>diff:0</p></td>
<td><p>never set up diff mode</p></td>
</tr>
<tr class="row-even"><td><p>diff:1</p></td>
<td><p>set up diff mode if BIOS set it</p></td>
</tr>
<tr class="row-odd"><td><p>diff:2</p></td>
<td><p>always set up diff mode</p></td>
</tr>
<tr class="row-even"><td><p>diff:3</p></td>
<td><p>set diff mode if GPIO3 is not set</p></td>
</tr>
</tbody>
</table>
</div></blockquote>
</section>
<section id="irq-mode">
<h4>10.2.15 IRQ mode<a class="headerlink" href="#irq-mode" title="Link to this heading">¶</a></h4>
<blockquote>
<div><blockquote>
<div><table class="docutils align-default">
<tbody>
<tr class="row-odd"><td><p>irqm:0</p></td>
<td><p>always open drain</p></td>
</tr>
<tr class="row-even"><td><p>irqm:1</p></td>
<td><p>same as initial settings (assumed BIOS settings)</p></td>
</tr>
<tr class="row-odd"><td><p>irqm:2</p></td>
<td><p>always totem pole</p></td>
</tr>
<tr class="row-even"><td><p>irqm:0x10</p></td>
<td><p>driver will not use IRQF_SHARED flag when requesting irq</p></td>
</tr>
</tbody>
</table>
</div></blockquote>
<p>(Bits 0x10 and 0x20 can be combined with hardware irq mode option)</p>
</div></blockquote>
</section>
<section id="reverse-probe">
<h4>10.2.16 Reverse probe<a class="headerlink" href="#reverse-probe" title="Link to this heading">¶</a></h4>
<blockquote>
<div><table class="docutils align-default">
<tbody>
<tr class="row-odd"><td><p>revprob:n</p></td>
<td><p>probe chip ids from the PCI configuration in this order:
810, 815, 820, 860, 875, 885, 895, 896</p></td>
</tr>
<tr class="row-even"><td><p>revprob:y</p></td>
<td><p>probe chip ids in the reverse order.</p></td>
</tr>
</tbody>
</table>
</div></blockquote>
</section>
<section id="fix-up-pci-configuration-space">
<h4>10.2.17 Fix up PCI configuration space<a class="headerlink" href="#fix-up-pci-configuration-space" title="Link to this heading">¶</a></h4>
<blockquote>
<div><blockquote>
<div><p>pcifix:&lt;option bits&gt;</p>
</div></blockquote>
<p>Available option bits:</p>
<blockquote>
<div><table class="docutils align-default">
<tbody>
<tr class="row-odd"><td><p>0x0</p></td>
<td><p>No attempt to fix PCI configuration space registers values.</p></td>
</tr>
<tr class="row-even"><td><p>0x1</p></td>
<td><p>Set PCI cache-line size register if not set.</p></td>
</tr>
<tr class="row-odd"><td><p>0x2</p></td>
<td><p>Set write and invalidate bit in PCI command register.</p></td>
</tr>
<tr class="row-even"><td><p>0x4</p></td>
<td><p>Increase if necessary PCI latency timer according to burst max.</p></td>
</tr>
</tbody>
</table>
</div></blockquote>
<p>Use ‘pcifix:7’ in order to allow the driver to fix up all PCI features.</p>
</div></blockquote>
</section>
<section id="serial-nvram">
<h4>10.2.18 Serial NVRAM<a class="headerlink" href="#serial-nvram" title="Link to this heading">¶</a></h4>
<blockquote>
<div><table class="docutils align-default">
<tbody>
<tr class="row-odd"><td><p>nvram:n</p></td>
<td><p>do not look for serial NVRAM</p></td>
</tr>
<tr class="row-even"><td><p>nvram:y</p></td>
<td><p>test controllers for onboard serial NVRAM</p></td>
</tr>
</tbody>
</table>
<p>(alternate binary form)
mvram=&lt;bits options&gt;</p>
<table class="docutils align-default">
<tbody>
<tr class="row-odd"><td><p>0x01</p></td>
<td><p>look for NVRAM  (equivalent to nvram=y)</p></td>
</tr>
<tr class="row-even"><td><p>0x02</p></td>
<td><p>ignore NVRAM “Synchronous negotiation” parameters for all devices</p></td>
</tr>
<tr class="row-odd"><td><p>0x04</p></td>
<td><p>ignore NVRAM “Wide negotiation”  parameter for all devices</p></td>
</tr>
<tr class="row-even"><td><p>0x08</p></td>
<td><p>ignore NVRAM “Scan at boot time” parameter for all devices</p></td>
</tr>
<tr class="row-odd"><td><p>0x80</p></td>
<td><p>also attach controllers set to OFF in the NVRAM (sym53c8xx only)</p></td>
</tr>
</tbody>
</table>
</div></blockquote>
</section>
<section id="check-scsi-bus">
<h4>10.2.19 Check SCSI BUS<a class="headerlink" href="#check-scsi-bus" title="Link to this heading">¶</a></h4>
<blockquote>
<div><blockquote>
<div><p>buschk:&lt;option bits&gt;</p>
</div></blockquote>
<p>Available option bits:</p>
<blockquote>
<div><table class="docutils align-default">
<tbody>
<tr class="row-odd"><td><p>0x0:</p></td>
<td><p>No check.</p></td>
</tr>
<tr class="row-even"><td><p>0x1:</p></td>
<td><p>Check and do not attach the controller on error.</p></td>
</tr>
<tr class="row-odd"><td><p>0x2:</p></td>
<td><p>Check and just warn on error.</p></td>
</tr>
<tr class="row-even"><td><p>0x4:</p></td>
<td><p>Disable SCSI bus integrity checking.</p></td>
</tr>
</tbody>
</table>
</div></blockquote>
</div></blockquote>
</section>
<section id="exclude-a-host-from-being-attached">
<h4>10.2.20 Exclude a host from being attached<a class="headerlink" href="#exclude-a-host-from-being-attached" title="Link to this heading">¶</a></h4>
<blockquote>
<div><blockquote>
<div><p>excl=&lt;io_address&gt;</p>
</div></blockquote>
<p>Prevent host at a given io address from being attached.
For example ‘ncr53c8xx=excl:0xb400,excl:0xc000’ indicate to the
ncr53c8xx driver not to attach hosts at address 0xb400 and 0xc000.</p>
</div></blockquote>
</section>
<section id="suggest-a-default-scsi-id-for-hosts">
<h4>10.2.21 Suggest a default SCSI id for hosts<a class="headerlink" href="#suggest-a-default-scsi-id-for-hosts" title="Link to this heading">¶</a></h4>
<blockquote>
<div><blockquote>
<div><table class="docutils align-default">
<tbody>
<tr class="row-odd"><td><p>hostid:255</p></td>
<td><p>no id suggested.</p></td>
</tr>
<tr class="row-even"><td><p>hostid:#x</p></td>
<td><p>(0 &lt; x &lt; 7) x suggested for hosts SCSI id.</p></td>
</tr>
</tbody>
</table>
</div></blockquote>
<p>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
different from 255 has been supplied, it will use it. Otherwise, it will
try to deduce the value previously set in the hardware and use value
7 if the hardware value is zero.</p>
</div></blockquote>
</section>
<section id="enable-use-of-immediate-arbitration">
<h4>10.2.22 Enable use of IMMEDIATE ARBITRATION<a class="headerlink" href="#enable-use-of-immediate-arbitration" title="Link to this heading">¶</a></h4>
<blockquote>
<div><p>(only supported by the sym53c8xx driver. See 10.7 for more details)</p>
</div></blockquote>
<table class="docutils align-default">
<tbody>
<tr class="row-odd"><td><p>iarb:0</p></td>
<td><p>do not use this feature.</p></td>
</tr>
<tr class="row-even"><td><p>iarb:#x</p></td>
<td><p>use this feature according to bit fields as follow:</p>
<table class="docutils align-default">
<tbody>
<tr class="row-odd"><td><p>bit 0 (1)</p></td>
<td><p>enable IARB each time the initiator has been reselected
when it arbitrated for the SCSI BUS.</p></td>
</tr>
<tr class="row-even"><td><p>(#x &gt;&gt; 4)</p></td>
<td><p>maximum number of successive settings of IARB if the
initiator win arbitration and it has other commands
to send to a device.</p></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<dl>
<dt>Boot fail safe</dt><dd><blockquote>
<div><p>safe:y      load the following assumed fail safe initial setup</p>
</div></blockquote>
<table class="docutils align-default">
<tbody>
<tr class="row-odd"><td><p>master parity</p></td>
<td><p>disabled</p></td>
<td><p>mpar:n</p></td>
</tr>
<tr class="row-even"><td><p>scsi parity</p></td>
<td><p>enabled</p></td>
<td><p>spar:y</p></td>
</tr>
<tr class="row-odd"><td><p>disconnections</p></td>
<td><p>not allowed</p></td>
<td><p>disc:n</p></td>
</tr>
<tr class="row-even"><td><p>special features</p></td>
<td><p>disabled</p></td>
<td><p>specf:n</p></td>
</tr>
<tr class="row-odd"><td><p>ultra scsi</p></td>
<td><p>disabled</p></td>
<td><p>ultra:n</p></td>
</tr>
<tr class="row-even"><td><p>force sync negotiation</p></td>
<td><p>disabled</p></td>
<td><p>fsn:n</p></td>
</tr>
<tr class="row-odd"><td><p>reverse probe</p></td>
<td><p>disabled</p></td>
<td><p>revprob:n</p></td>
</tr>
<tr class="row-even"><td><p>PCI fix up</p></td>
<td><p>disabled</p></td>
<td><p>pcifix:0</p></td>
</tr>
<tr class="row-odd"><td><p>serial NVRAM</p></td>
<td><p>enabled</p></td>
<td><p>nvram:y</p></td>
</tr>
<tr class="row-even"><td><p>verbosity level</p></td>
<td><p>2</p></td>
<td><p>verb:2</p></td>
</tr>
<tr class="row-odd"><td><p>tagged command queuing</p></td>
<td><p>disabled</p></td>
<td><p>tags:0</p></td>
</tr>
<tr class="row-even"><td><p>synchronous negotiation</p></td>
<td><p>disabled</p></td>
<td><p>sync:255</p></td>
</tr>
<tr class="row-odd"><td><p>debug flags</p></td>
<td><p>none</p></td>
<td><p>debug:0</p></td>
</tr>
<tr class="row-even"><td><p>burst length</p></td>
<td><p>from BIOS settings</p></td>
<td><p>burst:255</p></td>
</tr>
<tr class="row-odd"><td><p>LED support</p></td>
<td><p>disabled</p></td>
<td><p>led:0</p></td>
</tr>
<tr class="row-even"><td><p>wide support</p></td>
<td><p>disabled</p></td>
<td><p>wide:0</p></td>
</tr>
<tr class="row-odd"><td><p>settle time</p></td>
<td><p>10 seconds</p></td>
<td><p>settle:10</p></td>
</tr>
<tr class="row-even"><td><p>differential support</p></td>
<td><p>from BIOS settings</p></td>
<td><p>diff:1</p></td>
</tr>
<tr class="row-odd"><td><p>irq mode</p></td>
<td><p>from BIOS settings</p></td>
<td><p>irqm:1</p></td>
</tr>
<tr class="row-even"><td><p>SCSI BUS check</p></td>
<td><p>do not attach on error</p></td>
<td><p>buschk:1</p></td>
</tr>
<tr class="row-odd"><td><p>immediate arbitration</p></td>
<td><p>disabled</p></td>
<td><p>iarb:0</p></td>
</tr>
</tbody>
</table>
</dd>
</dl>
</section>
<section id="advised-boot-setup-commands">
<h4>10.3 Advised boot setup commands<a class="headerlink" href="#advised-boot-setup-commands" title="Link to this heading">¶</a></h4>
<p>If the driver has been configured with default options, the equivalent
boot setup is:</p>
<div class="highlight-none notranslate"><div class="highlight"><pre><span></span>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
</pre></div>
</div>
<p>For an installation diskette or a safe but not fast system,
boot setup can be:</p>
<div class="highlight-none notranslate"><div class="highlight"><pre><span></span>ncr53c8xx=safe:y,mpar:y,disc:y
ncr53c8xx=safe:y,disc:y
ncr53c8xx=safe:y,mpar:y
ncr53c8xx=safe:y
</pre></div>
</div>
<p>My personal system works flawlessly with the following equivalent setup:</p>
<div class="highlight-none notranslate"><div class="highlight"><pre><span></span>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
</pre></div>
</div>
<p>The driver prints its actual setup when verbosity level is 2. You can try
“ncr53c8xx=verb:2” to get the “static” setup of the driver, or add “verb:2”
to your boot setup command in order to check the actual setup the driver is
using.</p>
</section>
</section>
<section id="pci-configuration-fix-up-boot-option">
<h3>10.4 PCI configuration fix-up boot option<a class="headerlink" href="#pci-configuration-fix-up-boot-option" title="Link to this heading">¶</a></h3>
<p>pcifix:&lt;option bits&gt;</p>
<p>Available option bits:</p>
<blockquote>
<div><table class="docutils align-default">
<tbody>
<tr class="row-odd"><td><p>0x1</p></td>
<td><p>Set PCI cache-line size register if not set.</p></td>
</tr>
<tr class="row-even"><td><p>0x2</p></td>
<td><p>Set write and invalidate bit in PCI command register.</p></td>
</tr>
</tbody>
</table>
</div></blockquote>
<p>Use ‘pcifix:3’ in order to allow the driver to fix both PCI features.</p>
<p>These options only apply to new SYMBIOS chips 810A, 825A, 860, 875
and 895 and are only supported for Pentium and 486 class processors.
Recent SYMBIOS 53C8XX scsi processors are able to use PCI read multiple
and PCI write and invalidate commands. These features require the
cache line size register to be properly set in the PCI configuration
space of the chips. On the other hand, chips will use PCI write and
invalidate commands only if the corresponding bit is set to 1 in the
PCI command register.</p>
<p>Not all PCI bioses set the PCI cache line register and the PCI write and
invalidate bit in the PCI configuration space of 53C8XX chips.
Optimized PCI accesses may be broken for some PCI/memory controllers or
make problems with some PCI boards.</p>
<p>This fix-up worked flawlessly on my previous system.
(MB Triton HX / 53C875 / 53C810A)
I use these options at my own risks as you will do if you decide to
use them too.</p>
</section>
<section id="serial-nvram-support-boot-option">
<h3>10.5 Serial NVRAM support boot option<a class="headerlink" href="#serial-nvram-support-boot-option" title="Link to this heading">¶</a></h3>
<table class="docutils align-default">
<tbody>
<tr class="row-odd"><td><p>nvram:n</p></td>
<td><p>do not look for serial NVRAM</p></td>
</tr>
<tr class="row-even"><td><p>nvram:y</p></td>
<td><p>test controllers for onboard serial NVRAM</p></td>
</tr>
</tbody>
</table>
<p>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
information it will ignore.
For details see ‘17. Serial NVRAM support’.</p>
<p>When this option is enabled, the driver tries to detect all boards using
a Serial NVRAM. This memory is used to hold user set up parameters.</p>
<p>The parameters the driver is able to get from the NVRAM depend on the
data format used, as follow:</p>
<table class="docutils align-default">
<tbody>
<tr class="row-odd"><td></td>
<td><p>Tekram format</p></td>
<td><p>Symbios format</p></td>
</tr>
<tr class="row-even"><td><p>General and host parameters</p></td>
<td></td>
<td></td>
</tr>
<tr class="row-odd"><td><ul class="simple">
<li><p>Boot order</p></li>
</ul>
</td>
<td><p>N</p></td>
<td><p>Y</p></td>
</tr>
<tr class="row-even"><td><ul class="simple">
<li><p>Host SCSI ID</p></li>
</ul>
</td>
<td><p>Y</p></td>
<td><p>Y</p></td>
</tr>
<tr class="row-odd"><td><ul class="simple">
<li><p>SCSI parity checking</p></li>
</ul>
</td>
<td><p>Y</p></td>
<td><p>Y</p></td>
</tr>
<tr class="row-even"><td><ul class="simple">
<li><p>Verbose boot messages</p></li>
</ul>
</td>
<td><p>N</p></td>
<td><p>Y</p></td>
</tr>
<tr class="row-odd"><td colspan="3"><p>SCSI devices parameters</p></td>
</tr>
<tr class="row-even"><td><ul class="simple">
<li><p>Synchronous transfer speed</p></li>
</ul>
</td>
<td><p>Y</p></td>
<td><p>Y</p></td>
</tr>
<tr class="row-odd"><td><ul class="simple">
<li><p>Wide 16 / Narrow</p></li>
</ul>
</td>
<td><p>Y</p></td>
<td><p>Y</p></td>
</tr>
<tr class="row-even"><td><ul class="simple">
<li><p>Tagged Command Queuing
enabled</p></li>
</ul>
</td>
<td><p>Y</p></td>
<td><p>Y</p></td>
</tr>
<tr class="row-odd"><td><ul class="simple">
<li><p>Disconnections enabled</p></li>
</ul>
</td>
<td><p>Y</p></td>
<td><p>Y</p></td>
</tr>
<tr class="row-even"><td><ul class="simple">
<li><p>Scan at boot time</p></li>
</ul>
</td>
<td><p>N</p></td>
<td><p>Y</p></td>
</tr>
</tbody>
</table>
<p>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
first TEST UNIT READY command received for this device.</p>
<p>Some SDMS BIOS revisions seem to be unable to boot cleanly with very fast
hard disks. In such a situation you cannot configure the NVRAM with
optimized parameters value.</p>
<p>The ‘nvram’ boot option can be entered in hexadecimal form in order
to ignore some options configured in the NVRAM, as follow:</p>
<p>mvram=&lt;bits options&gt;</p>
<blockquote>
<div><table class="docutils align-default">
<tbody>
<tr class="row-odd"><td><p>0x01</p></td>
<td><p>look for NVRAM  (equivalent to nvram=y)</p></td>
</tr>
<tr class="row-even"><td><p>0x02</p></td>
<td><p>ignore NVRAM “Synchronous negotiation” parameters for all devices</p></td>
</tr>
<tr class="row-odd"><td><p>0x04</p></td>
<td><p>ignore NVRAM “Wide negotiation”  parameter for all devices</p></td>
</tr>
<tr class="row-even"><td><p>0x08</p></td>
<td><p>ignore NVRAM “Scan at boot time” parameter for all devices</p></td>
</tr>
<tr class="row-odd"><td><p>0x80</p></td>
<td><p>also attach controllers set to OFF in the NVRAM (sym53c8xx only)</p></td>
</tr>
</tbody>
</table>
</div></blockquote>
<p>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
will not attach controllers set to OFF in the NVRAM.</p>
<p>The ncr53c8xx always tries to attach all the controllers. Option 0x80 has
not been added to the ncr53c8xx driver, since it has been reported to
confuse users who use this driver since a long time. If you desire a
controller not to be attached by the ncr53c8xx driver at Linux boot, you
must use the ‘excl’ driver boot option.</p>
<section id="scsi-bus-checking-boot-option">
<h4>10.6 SCSI BUS checking boot option.<a class="headerlink" href="#scsi-bus-checking-boot-option" title="Link to this heading">¶</a></h4>
<p>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.
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
RESET has been asserted, any signal to TRUE may indicate a SCSI BUS problem.
Unfortunately, the following common SCSI BUS problems are not detected:</p>
<ul class="simple">
<li><p>Only 1 terminator installed.</p></li>
<li><p>Misplaced terminators.</p></li>
<li><p>Bad quality terminators.</p></li>
</ul>
<p>On the other hand, either bad cabling, broken devices, not conformant
devices, ... may cause a SCSI signal to be wrong when the driver reads it.</p>
</section>
<section id="immediate-arbitration-boot-option">
<h4>10.7 IMMEDIATE ARBITRATION boot option<a class="headerlink" href="#immediate-arbitration-boot-option" title="Link to this heading">¶</a></h4>
<p>This option is only supported by the SYM53C8XX driver (not by the NCR53C8XX).</p>
<p>SYMBIOS 53C8XX chips are able to arbitrate for the SCSI BUS as soon as they
have detected an expected disconnection (BUS FREE PHASE). For this process
to be started, bit 1 of SCNTL1 IO register must be set when the chip is
connected to the SCSI BUS.</p>
<p>When this feature has been enabled for the current connection, the chip has
every chance to win arbitration if only devices with lower priority are
competing for the SCSI BUS. By the way, when the chip is using SCSI id 7,
then it will for sure win the next SCSI BUS arbitration.</p>
<p>Since, there is no way to know what devices are trying to arbitrate for the
BUS, using this feature can be extremely unfair. So, you are not advised
to enable it, or at most enable this feature for the case the chip lost
the previous arbitration (boot option ‘iarb:1’).</p>
<p>This feature has the following advantages:</p>
<ol class="loweralpha simple">
<li><p>Allow the initiator with ID 7 to win arbitration when it wants so.</p></li>
<li><p>Overlap at least 4 micro-seconds of arbitration time with the execution
of SCRIPTS that deal with the end of the current connection and that
starts the next job.</p></li>
</ol>
<p>Hmmm... But (a) may just prevent other devices from reselecting the initiator,
and delay data transfers or status/completions, and (b) may just waste
SCSI BUS bandwidth if the SCRIPTS execution lasts more than 4 micro-seconds.</p>
<p>The use of IARB needs the SCSI_NCR_IARB_SUPPORT option to have been defined
at compile time and the ‘iarb’ boot option to have been set to a non zero
value at boot time. It is not that useful for real work, but can be used
to stress SCSI devices or for some applications that can gain advantage of
it. By the way, if you experience badnesses like ‘unexpected disconnections’,
‘bad reselections’, etc... when using IARB on heavy IO load, you should not
be surprised, because force-feeding anything and blocking its arse at the
same time cannot work for a long time. :-))</p>
</section>
</section>
</section>
<section id="some-constants-and-flags-of-the-ncr53c8xx-h-header-file">
<h2>11. Some constants and flags of the ncr53c8xx.h header file<a class="headerlink" href="#some-constants-and-flags-of-the-ncr53c8xx-h-header-file" title="Link to this heading">¶</a></h2>
<p>Some of these are defined from the configuration parameters.  To
change other “defines”, you must edit the header file.  Do that only
if you know what you are doing.</p>
<dl>
<dt>SCSI_NCR_SETUP_SPECIAL_FEATURES (default: defined)</dt><dd><p>If defined, the driver will enable some special features according
to chip and revision id.</p>
<p>For 810A, 860, 825A, 875 and 895 scsi chips, this option enables
support of features that reduce load of PCI bus and memory accesses
during  scsi transfer processing: burst op-code fetch, read multiple,
read line, prefetch, cache line, write and invalidate,
burst 128 (875 only), large dma fifo (875 only), offset 16 (875 only).
Can be changed by the following boot setup command:</p>
<div class="highlight-none notranslate"><div class="highlight"><pre><span></span>ncr53c8xx=specf:n
</pre></div>
</div>
</dd>
<dt>SCSI_NCR_IOMAPPED               (default: not defined)</dt><dd><p>If defined, normal I/O is forced.</p>
</dd>
<dt>SCSI_NCR_SHARE_IRQ              (default: defined)</dt><dd><p>If defined, request shared IRQ.</p>
</dd>
<dt>SCSI_NCR_MAX_TAGS               (default: 8)</dt><dd><p>Maximum number of simultaneous tagged commands to a device.</p>
<p>Can be changed by “settags &lt;target&gt; &lt;maxtags&gt;”</p>
</dd>
<dt>SCSI_NCR_SETUP_DEFAULT_SYNC     (default: 50)</dt><dd><p>Transfer period factor the driver will use at boot time for synchronous
negotiation. 0 means asynchronous.</p>
<p>Can be changed by “setsync &lt;target&gt; &lt;period factor&gt;”</p>
</dd>
<dt>SCSI_NCR_SETUP_DEFAULT_TAGS     (default: 8)</dt><dd><p>Default number of simultaneous tagged commands to a device.</p>
<p>&lt; 1 means tagged command queuing disabled at start-up.</p>
</dd>
<dt>SCSI_NCR_ALWAYS_SIMPLE_TAG      (default: defined)</dt><dd><p>Use SIMPLE TAG for read and write commands.</p>
<p>Can be changed by “setorder &lt;ordered|simple|default&gt;”</p>
</dd>
<dt>SCSI_NCR_SETUP_DISCONNECTION    (default: defined)</dt><dd><p>If defined, targets are allowed to disconnect.</p>
</dd>
<dt>SCSI_NCR_SETUP_FORCE_SYNC_NEGO  (default: not defined)</dt><dd><p>If defined, synchronous negotiation is tried for all SCSI-2 devices.</p>
<p>Can be changed by “setsync &lt;target&gt; &lt;period&gt;”</p>
</dd>
<dt>SCSI_NCR_SETUP_MASTER_PARITY    (default: defined)</dt><dd><p>If defined, master parity checking is enabled.</p>
</dd>
<dt>SCSI_NCR_SETUP_SCSI_PARITY      (default: defined)</dt><dd><p>If defined, SCSI parity checking is enabled.</p>
</dd>
<dt>SCSI_NCR_PROFILE_SUPPORT        (default: not defined)</dt><dd><p>If defined, profiling information is gathered.</p>
</dd>
<dt>SCSI_NCR_MAX_SCATTER            (default: 128)</dt><dd><p>Scatter list size of the driver ccb.</p>
</dd>
<dt>SCSI_NCR_MAX_TARGET             (default: 16)</dt><dd><p>Max number of targets per host.</p>
</dd>
<dt>SCSI_NCR_MAX_HOST               (default: 2)</dt><dd><p>Max number of host controllers.</p>
</dd>
<dt>SCSI_NCR_SETTLE_TIME            (default: 2)</dt><dd><p>Number of seconds the driver will wait after reset.</p>
</dd>
<dt>SCSI_NCR_TIMEOUT_ALERT          (default: 3)</dt><dd><p>If a pending command will time out after this amount of seconds,
an ordered tag is used for the next command.</p>
<p>Avoids timeouts for unordered tagged commands.</p>
</dd>
<dt>SCSI_NCR_CAN_QUEUE              (default: 7*SCSI_NCR_MAX_TAGS)</dt><dd><p>Max number of commands that can be queued to a host.</p>
</dd>
<dt>SCSI_NCR_CMD_PER_LUN            (default: SCSI_NCR_MAX_TAGS)</dt><dd><p>Max number of commands queued to a host for a device.</p>
</dd>
<dt>SCSI_NCR_SG_TABLESIZE           (default: SCSI_NCR_MAX_SCATTER-1)</dt><dd><p>Max size of the Linux scatter/gather list.</p>
</dd>
<dt>SCSI_NCR_MAX_LUN        (default: 8)</dt><dd><p>Max number of LUNs per target.</p>
</dd>
</dl>
</section>
<section id="installation">
<h2>12. Installation<a class="headerlink" href="#installation" title="Link to this heading">¶</a></h2>
<p>This driver is part of the linux kernel distribution.
Driver files are located in the sub-directory “drivers/scsi” of the
kernel source tree.</p>
<p>Driver files:</p>
<div class="highlight-none notranslate"><div class="highlight"><pre><span></span>README.ncr53c8xx        : this file
ChangeLog.ncr53c8xx     : change log
ncr53c8xx.h             : definitions
ncr53c8xx.c             : the driver code
</pre></div>
</div>
<p>New driver versions are made available separately in order to allow testing
changes and new features prior to including them into the linux kernel
distribution. The following URL provides information on latest available
patches:</p>
<blockquote>
<div><p><a class="reference external" href="ftp://ftp.tux.org/pub/people/gerard-roudier/README">ftp://ftp.tux.org/pub/people/gerard-roudier/README</a></p>
</div></blockquote>
</section>
<section id="architecture-dependent-features">
<h2>13. Architecture dependent features<a class="headerlink" href="#architecture-dependent-features" title="Link to this heading">¶</a></h2>
<p>&lt;Not yet written&gt;</p>
</section>
<section id="known-problems">
<h2>14. Known problems<a class="headerlink" href="#known-problems" title="Link to this heading">¶</a></h2>
<section id="tagged-commands-with-iomega-jaz-device">
<h3>14.1 Tagged commands with Iomega Jaz device<a class="headerlink" href="#tagged-commands-with-iomega-jaz-device" title="Link to this heading">¶</a></h3>
<p>I have not tried this device, however it has been reported to me the
following: This device is capable of Tagged command queuing. However
while spinning up, it rejects Tagged commands. This behaviour is
conforms to 6.8.2 of SCSI-2 specifications. The current behaviour of
the driver in that situation is not satisfying. So do not enable
Tagged command queuing for devices that are able to spin down.  The
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
current timeout values.</p>
</section>
<section id="device-names-change-when-another-controller-is-added">
<h3>14.2 Device names change when another controller is added<a class="headerlink" href="#device-names-change-when-another-controller-is-added" title="Link to this heading">¶</a></h3>
<p>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
the driver registers them to the kernel causes problems due to device
name changes.
When at least one controller uses NvRAM, SDMS BIOS version 4 allows you to
define the order the BIOS will scan the scsi boards. The driver attaches
controllers according to BIOS information if NvRAM detect option is set.</p>
<p>If your controllers do not have NvRAM, you can:</p>
<ul class="simple">
<li><p>Ask the driver to probe chip ids in reverse order from the boot command
line: ncr53c8xx=revprob:y</p></li>
<li><p>Make appropriate changes in the fstab.</p></li>
<li><p>Use the ‘scsidev’ tool from Eric Youngdale.</p></li>
</ul>
</section>
<section id="using-only-8-bit-devices-with-a-wide-scsi-controller">
<h3>14.3 Using only 8 bit devices with a WIDE SCSI controller<a class="headerlink" href="#using-only-8-bit-devices-with-a-wide-scsi-controller" title="Link to this heading">¶</a></h3>
<p>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.
This can be achieved by ENABLING the WIDE TERMINATOR portion of the SCSI
controller card.</p>
<p>The TYAN 1365 documentation revision 1.2 is not correct about such settings.
(page 10, figure 3.3).</p>
</section>
<section id="possible-data-corruption-during-a-memory-write-and-invalidate">
<h3>14.4 Possible data corruption during a Memory Write and Invalidate<a class="headerlink" href="#possible-data-corruption-during-a-memory-write-and-invalidate" title="Link to this heading">¶</a></h3>
<p>This problem is described in SYMBIOS DEL 397, Part Number 69-039241, ITEM 4.</p>
<p>In some complex situations, 53C875 chips revision &lt;= 3 may start a PCI
Write and Invalidate Command at a not cache-line-aligned 4 DWORDS boundary.
This is only possible when Cache Line Size is 8 DWORDS or greater.
Pentium systems use a 8 DWORDS cache line size and so are concerned by
this chip bug, unlike i486 systems that use a 4 DWORDS cache line size.</p>
<p>When this situation occurs, the chip may complete the Write and Invalidate
command after having only filled part of the last cache line involved in
the transfer, leaving to data corruption the remainder of this cache line.</p>
<p>Not using Write And Invalidate obviously gets rid of this chip bug, and so
it is now the default setting of the driver.
However, for people like me who want to enable this feature, I have added
part of a work-around suggested by SYMBIOS. This work-around resets the
addressing logic when the DATA IN phase is entered and so prevents the bug
from being triggered for the first SCSI MOVE of the phase. This work-around
should be enough according to the following:</p>
<p>The only driver internal data structure that is greater than 8 DWORDS  and
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
boundary (Pentium Cache Line Size), and so is immune to this chip bug, at
least on Pentium systems.</p>
<p>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.
This cannot happen under Linux when scatter/gather lists are used since
they only refer to system buffers that are well aligned. So, a work around
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.</p>
</section>
</section>
<section id="scsi-problem-troubleshooting">
<h2>15. SCSI problem troubleshooting<a class="headerlink" href="#scsi-problem-troubleshooting" title="Link to this heading">¶</a></h2>
<section id="problem-tracking">
<h3>15.1 Problem tracking<a class="headerlink" href="#problem-tracking" title="Link to this heading">¶</a></h3>
<p>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
following things:</p>
<ul class="simple">
<li><p>SCSI bus cables</p></li>
<li><p>terminations at both end of the SCSI chain</p></li>
<li><p>linux syslog messages (some of them may help you)</p></li>
</ul>
<p>If you do not find the source of problems, you can configure the
driver with no features enabled.</p>
<ul class="simple">
<li><p>only asynchronous data transfers</p></li>
<li><p>tagged commands disabled</p></li>
<li><p>disconnections not allowed</p></li>
</ul>
<p>Now, if your SCSI bus is ok, your system have every chance to work
with this safe configuration but performances will not be optimal.</p>
<p>If it still fails, then you can send your problem description to
appropriate mailing lists or news-groups.  Send me a copy in order to
be sure I will receive it.  Obviously, a bug in the driver code is
possible.</p>
<blockquote>
<div><p>My email address: Gerard Roudier &lt;<a class="reference external" href="mailto:groudier&#37;&#52;&#48;free&#46;fr">groudier<span>&#64;</span>free<span>&#46;</span>fr</a>&gt;</p>
</div></blockquote>
<p>Allowing disconnections is important if you use several devices on
your SCSI bus but often causes problems with buggy devices.
Synchronous data transfers increases throughput of fast devices like
hard disks.  Good SCSI hard disks with a large cache gain advantage of
tagged commands queuing.</p>
<p>Try to enable one feature at a time with control commands.  For example:</p>
<div class="highlight-none notranslate"><div class="highlight"><pre><span></span>echo &quot;setsync all 25&quot; &gt;/proc/scsi/ncr53c8xx/0
</pre></div>
</div>
<p>Will enable fast synchronous data transfer negotiation for all targets.</p>
<div class="highlight-none notranslate"><div class="highlight"><pre><span></span>echo &quot;setflag 3&quot; &gt;/proc/scsi/ncr53c8xx/0
</pre></div>
</div>
<p>Will reset flags (no_disc) for target 3, and so will allow it to disconnect
the SCSI Bus.</p>
<div class="highlight-none notranslate"><div class="highlight"><pre><span></span>echo &quot;settags 3 8&quot; &gt;/proc/scsi/ncr53c8xx/0
</pre></div>
</div>
<p>Will enable tagged command queuing for target 3 if that device supports it.</p>
<p>Once you have found the device and the feature that cause problems, just
disable that feature for that device.</p>
</section>
<section id="understanding-hardware-error-reports">
<h3>15.2 Understanding hardware error reports<a class="headerlink" href="#understanding-hardware-error-reports" title="Link to this heading">¶</a></h3>
<p>When the driver detects an unexpected error condition, it may display a
message of the following pattern:</p>
<div class="highlight-none notranslate"><div class="highlight"><pre><span></span>sym53c876-0:1: ERROR (0:48) (1-21-65) (f/95) @ (script 7c0: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.
</pre></div>
</div>
<p>Some fields in such a message may help you understand the cause of the
problem, as follows:</p>
<div class="highlight-none notranslate"><div class="highlight"><pre><span></span>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.......
</pre></div>
</div>
<dl>
<dt>Field A<span class="classifier">target number.</span></dt><dd><p>SCSI ID of the device the controller was talking with at the moment the
error occurs.</p>
</dd>
<dt>Field B<span class="classifier">DSTAT io register (DMA STATUS)</span></dt><dd><table class="docutils align-default">
<tbody>
<tr class="row-odd"><td><p>Bit 0x40</p></td>
<td><p>MDPE Master Data Parity Error
Data parity error detected on the PCI BUS.</p></td>
</tr>
<tr class="row-even"><td><p>Bit 0x20</p></td>
<td><p>BF   Bus Fault
PCI bus fault condition detected</p></td>
</tr>
<tr class="row-odd"><td><p>Bit 0x01</p></td>
<td><p>IID  Illegal Instruction Detected
Set by the chip when it detects an Illegal Instruction format
on some condition that makes an instruction illegal.</p></td>
</tr>
<tr class="row-even"><td><p>Bit 0x80</p></td>
<td><p>DFE Dma Fifo Empty
Pure status bit that does not indicate an error.</p></td>
</tr>
</tbody>
</table>
<p>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.</p>
</dd>
<dt>Field C<span class="classifier">SIST io register (SCSI Interrupt Status)</span></dt><dd><table class="docutils align-default">
<tbody>
<tr class="row-odd"><td><p>Bit 0x08</p></td>
<td><p>SGE  SCSI GROSS ERROR
Indicates that the chip detected a severe error condition
on the SCSI BUS that prevents the SCSI protocol from functioning
properly.</p></td>
</tr>
<tr class="row-even"><td><p>Bit 0x04</p></td>
<td><p>UDC  Unexpected Disconnection
Indicates that the device released the SCSI BUS when the chip
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.</p></td>
</tr>
<tr class="row-odd"><td><p>Bit 0x02</p></td>
<td><p>RST  SCSI BUS Reset
Generally SCSI targets do not reset the SCSI BUS, although any
device on the BUS can reset it at any time.</p></td>
</tr>
<tr class="row-even"><td><p>Bit 0x01</p></td>
<td><p>PAR  Parity
SCSI parity error detected.</p></td>
</tr>
</tbody>
</table>
<p>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
encounters such error conditions, especially SCSI GROSS ERROR, then a SCSI
BUS problem is likely the cause of these errors.</p>
</dd>
</dl>
<p>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.</p>
<dl class="simple">
<dt>Field D<span class="classifier">SOCL  Scsi Output Control Latch</span></dt><dd><p>This register reflects the state of the SCSI control lines the
chip want to drive or compare against.</p>
</dd>
<dt>Field E<span class="classifier">SBCL  Scsi Bus Control Lines</span></dt><dd><p>Actual value of control lines on the SCSI BUS.</p>
</dd>
<dt>Field F<span class="classifier">SBDL  Scsi Bus Data Lines</span></dt><dd><p>Actual value of data lines on the SCSI BUS.</p>
</dd>
<dt>Field G<span class="classifier">SXFER  SCSI Transfer</span></dt><dd><p>Contains the setting of the Synchronous Period for output and
the current Synchronous offset (offset 0 means asynchronous).</p>
</dd>
<dt>Field H<span class="classifier">SCNTL3 Scsi Control Register 3</span></dt><dd><p>Contains the setting of timing values for both asynchronous and
synchronous data transfers.</p>
</dd>
</dl>
<p>Understanding Fields I, J, K and dumps requires to have good knowledge of
SCSI standards, chip cores functionnals and internal driver data structures.
You are not required to decode and understand them, unless you want to help
maintain the driver code.</p>
</section>
</section>
<section id="synchronous-transfer-negotiation-tables">
<h2>16. Synchronous transfer negotiation tables<a class="headerlink" href="#synchronous-transfer-negotiation-tables" title="Link to this heading">¶</a></h2>
<p>Tables below have been created by calling the routine the driver uses
for synchronisation negotiation timing calculation and chip setting.
The first table corresponds to Ultra chips 53875 and 53C860 with 80 MHz
clock and 5 clock divisors.
The second one has been calculated by setting the scsi clock to 40 Mhz
and using 4 clock divisors and so applies to all NCR53C8XX chips in fast
SCSI-2 mode.</p>
<p>Periods are in nano-seconds and speeds are in Mega-transfers per second.
1 Mega-transfers/second means 1 MB/s with 8 bits SCSI and 2 MB/s with
Wide16 SCSI.</p>
<p>16.1 Synchronous timings for 53C895, 53C875 and 53C860 SCSI controllers</p>
<table class="docutils align-default">
<tbody>
<tr class="row-odd"><td colspan="3"><p>Negotiated</p></td>
<td colspan="2"><p>NCR settings</p></td>
<td rowspan="2"></td>
</tr>
<tr class="row-even"><td><p>Factor</p></td>
<td><p>Period</p></td>
<td><p>Speed</p></td>
<td><p>Period</p></td>
<td><p>Speed</p></td>
</tr>
<tr class="row-odd"><td><p>10</p></td>
<td><p>25</p></td>
<td><p>40.000</p></td>
<td><p>25</p></td>
<td><p>40.000</p></td>
<td><p>(53C895 only)</p></td>
</tr>
<tr class="row-even"><td><p>11</p></td>
<td><p>30.2</p></td>
<td><p>33.112</p></td>
<td><p>31.25</p></td>
<td><p>32.000</p></td>
<td><p>(53C895 only)</p></td>
</tr>
<tr class="row-odd"><td><p>12</p></td>
<td><p>50</p></td>
<td><p>20.000</p></td>
<td><p>50</p></td>
<td><p>20.000</p></td>
<td></td>
</tr>
<tr class="row-even"><td><p>13</p></td>
<td><p>52</p></td>
<td><p>19.230</p></td>
<td><p>62</p></td>
<td><p>16.000</p></td>
<td></td>
</tr>
<tr class="row-odd"><td><p>14</p></td>
<td><p>56</p></td>
<td><p>17.857</p></td>
<td><p>62</p></td>
<td><p>16.000</p></td>
<td></td>
</tr>
<tr class="row-even"><td><p>15</p></td>
<td><p>60</p></td>
<td><p>16.666</p></td>
<td><p>62</p></td>
<td><p>16.000</p></td>
<td></td>
</tr>
<tr class="row-odd"><td><p>16</p></td>
<td><p>64</p></td>
<td><p>15.625</p></td>
<td><p>75</p></td>
<td><p>13.333</p></td>
<td></td>
</tr>
<tr class="row-even"><td><p>17</p></td>
<td><p>68</p></td>
<td><p>14.705</p></td>
<td><p>75</p></td>
<td><p>13.333</p></td>
<td></td>
</tr>
<tr class="row-odd"><td><p>18</p></td>
<td><p>72</p></td>
<td><p>13.888</p></td>
<td><p>75</p></td>
<td><p>13.333</p></td>
<td></td>
</tr>
<tr class="row-even"><td><p>19</p></td>
<td><p>76</p></td>
<td><p>13.157</p></td>
<td><p>87</p></td>
<td><p>11.428</p></td>
<td></td>
</tr>
<tr class="row-odd"><td><p>20</p></td>
<td><p>80</p></td>
<td><p>12.500</p></td>
<td><p>87</p></td>
<td><p>11.428</p></td>
<td></td>
</tr>
<tr class="row-even"><td><p>21</p></td>
<td><p>84</p></td>
<td><p>11.904</p></td>
<td><p>87</p></td>
<td><p>11.428</p></td>
<td></td>
</tr>
<tr class="row-odd"><td><p>22</p></td>
<td><p>88</p></td>
<td><p>11.363</p></td>
<td><p>93</p></td>
<td><p>10.666</p></td>
<td></td>
</tr>
<tr class="row-even"><td><p>23</p></td>
<td><p>92</p></td>
<td><p>10.869</p></td>
<td><p>93</p></td>
<td><p>10.666</p></td>
<td></td>
</tr>
<tr class="row-odd"><td><p>24</p></td>
<td><p>96</p></td>
<td><p>10.416</p></td>
<td><p>100</p></td>
<td><p>10.000</p></td>
<td></td>
</tr>
<tr class="row-even"><td><p>25</p></td>
<td><p>100</p></td>
<td><p>10.000</p></td>
<td><p>100</p></td>
<td><p>10.000</p></td>
<td></td>
</tr>
<tr class="row-odd"><td><p>26</p></td>
<td><p>104</p></td>
<td><p>9.615</p></td>
<td><p>112</p></td>
<td><p>8.888</p></td>
<td></td>
</tr>
<tr class="row-even"><td><p>27</p></td>
<td><p>108</p></td>
<td><p>9.259</p></td>
<td><p>112</p></td>
<td><p>8.888</p></td>
<td></td>
</tr>
<tr class="row-odd"><td><p>28</p></td>
<td><p>112</p></td>
<td><p>8.928</p></td>
<td><p>112</p></td>
<td><p>8.888</p></td>
<td></td>
</tr>
<tr class="row-even"><td><p>29</p></td>
<td><p>116</p></td>
<td><p>8.620</p></td>
<td><p>125</p></td>
<td><p>8.000</p></td>
<td></td>
</tr>
<tr class="row-odd"><td><p>30</p></td>
<td><p>120</p></td>
<td><p>8.333</p></td>
<td><p>125</p></td>
<td><p>8.000</p></td>
<td></td>
</tr>
<tr class="row-even"><td><p>31</p></td>
<td><p>124</p></td>
<td><p>8.064</p></td>
<td><p>125</p></td>
<td><p>8.000</p></td>
<td></td>
</tr>
<tr class="row-odd"><td><p>32</p></td>
<td><p>128</p></td>
<td><p>7.812</p></td>
<td><p>131</p></td>
<td><p>7.619</p></td>
<td></td>
</tr>
<tr class="row-even"><td><p>33</p></td>
<td><p>132</p></td>
<td><p>7.575</p></td>
<td><p>150</p></td>
<td><p>6.666</p></td>
<td></td>
</tr>
<tr class="row-odd"><td><p>34</p></td>
<td><p>136</p></td>
<td><p>7.352</p></td>
<td><p>150</p></td>
<td><p>6.666</p></td>
<td></td>
</tr>
<tr class="row-even"><td><p>35</p></td>
<td><p>140</p></td>
<td><p>7.142</p></td>
<td><p>150</p></td>
<td><p>6.666</p></td>
<td></td>
</tr>
<tr class="row-odd"><td><p>36</p></td>
<td><p>144</p></td>
<td><p>6.944</p></td>
<td><p>150</p></td>
<td><p>6.666</p></td>
<td></td>
</tr>
<tr class="row-even"><td><p>37</p></td>
<td><p>148</p></td>
<td><p>6.756</p></td>
<td><p>150</p></td>
<td><p>6.666</p></td>
<td></td>
</tr>
<tr class="row-odd"><td><p>38</p></td>
<td><p>152</p></td>
<td><p>6.578</p></td>
<td><p>175</p></td>
<td><p>5.714</p></td>
<td></td>
</tr>
<tr class="row-even"><td><p>39</p></td>
<td><p>156</p></td>
<td><p>6.410</p></td>
<td><p>175</p></td>
<td><p>5.714</p></td>
<td></td>
</tr>
<tr class="row-odd"><td><p>40</p></td>
<td><p>160</p></td>
<td><p>6.250</p></td>
<td><p>175</p></td>
<td><p>5.714</p></td>
<td></td>
</tr>
<tr class="row-even"><td><p>41</p></td>
<td><p>164</p></td>
<td><p>6.097</p></td>
<td><p>175</p></td>
<td><p>5.714</p></td>
<td></td>
</tr>
<tr class="row-odd"><td><p>42</p></td>
<td><p>168</p></td>
<td><p>5.952</p></td>
<td><p>175</p></td>
<td><p>5.714</p></td>
<td></td>
</tr>
<tr class="row-even"><td><p>43</p></td>
<td><p>172</p></td>
<td><p>5.813</p></td>
<td><p>175</p></td>
<td><p>5.714</p></td>
<td></td>
</tr>
<tr class="row-odd"><td><p>44</p></td>
<td><p>176</p></td>
<td><p>5.681</p></td>
<td><p>187</p></td>
<td><p>5.333</p></td>
<td></td>
</tr>
<tr class="row-even"><td><p>45</p></td>
<td><p>180</p></td>
<td><p>5.555</p></td>
<td><p>187</p></td>
<td><p>5.333</p></td>
<td></td>
</tr>
<tr class="row-odd"><td><p>46</p></td>
<td><p>184</p></td>
<td><p>5.434</p></td>
<td><p>187</p></td>
<td><p>5.333</p></td>
<td></td>
</tr>
<tr class="row-even"><td><p>47</p></td>
<td><p>188</p></td>
<td><p>5.319</p></td>
<td><p>200</p></td>
<td><p>5.000</p></td>
<td></td>
</tr>
<tr class="row-odd"><td><p>48</p></td>
<td><p>192</p></td>
<td><p>5.208</p></td>
<td><p>200</p></td>
<td><p>5.000</p></td>
<td></td>
</tr>
<tr class="row-even"><td><p>49</p></td>
<td><p>196</p></td>
<td><p>5.102</p></td>
<td><p>200</p></td>
<td><p>5.000</p></td>
<td></td>
</tr>
</tbody>
</table>
<p>16.2 Synchronous timings for fast SCSI-2 53C8XX controllers</p>
<table class="docutils align-default">
<tbody>
<tr class="row-odd"><td colspan="3"><p>Negotiated</p></td>
<td colspan="2"><p>NCR settings</p></td>
</tr>
<tr class="row-even"><td><p>Factor</p></td>
<td><p>Period</p></td>
<td><p>Speed</p></td>
<td><p>Period</p></td>
<td><p>Speed</p></td>
</tr>
<tr class="row-odd"><td><p>25</p></td>
<td><p>100</p></td>
<td><p>10.000</p></td>
<td><p>100</p></td>
<td><p>10.000</p></td>
</tr>
<tr class="row-even"><td><p>26</p></td>
<td><p>104</p></td>
<td><p>9.615</p></td>
<td><p>125</p></td>
<td><p>8.000</p></td>
</tr>
<tr class="row-odd"><td><p>27</p></td>
<td><p>108</p></td>
<td><p>9.259</p></td>
<td><p>125</p></td>
<td><p>8.000</p></td>
</tr>
<tr class="row-even"><td><p>28</p></td>
<td><p>112</p></td>
<td><p>8.928</p></td>
<td><p>125</p></td>
<td><p>8.000</p></td>
</tr>
<tr class="row-odd"><td><p>29</p></td>
<td><p>116</p></td>
<td><p>8.620</p></td>
<td><p>125</p></td>
<td><p>8.000</p></td>
</tr>
<tr class="row-even"><td><p>30</p></td>
<td><p>120</p></td>
<td><p>8.333</p></td>
<td><p>125</p></td>
<td><p>8.000</p></td>
</tr>
<tr class="row-odd"><td><p>31</p></td>
<td><p>124</p></td>
<td><p>8.064</p></td>
<td><p>125</p></td>
<td><p>8.000</p></td>
</tr>
<tr class="row-even"><td><p>32</p></td>
<td><p>128</p></td>
<td><p>7.812</p></td>
<td><p>131</p></td>
<td><p>7.619</p></td>
</tr>
<tr class="row-odd"><td><p>33</p></td>
<td><p>132</p></td>
<td><p>7.575</p></td>
<td><p>150</p></td>
<td><p>6.666</p></td>
</tr>
<tr class="row-even"><td><p>34</p></td>
<td><p>136</p></td>
<td><p>7.352</p></td>
<td><p>150</p></td>
<td><p>6.666</p></td>
</tr>
<tr class="row-odd"><td><p>35</p></td>
<td><p>140</p></td>
<td><p>7.142</p></td>
<td><p>150</p></td>
<td><p>6.666</p></td>
</tr>
<tr class="row-even"><td><p>36</p></td>
<td><p>144</p></td>
<td><p>6.944</p></td>
<td><p>150</p></td>
<td><p>6.666</p></td>
</tr>
<tr class="row-odd"><td><p>37</p></td>
<td><p>148</p></td>
<td><p>6.756</p></td>
<td><p>150</p></td>
<td><p>6.666</p></td>
</tr>
<tr class="row-even"><td><p>38</p></td>
<td><p>152</p></td>
<td><p>6.578</p></td>
<td><p>175</p></td>
<td><p>5.714</p></td>
</tr>
<tr class="row-odd"><td><p>39</p></td>
<td><p>156</p></td>
<td><p>6.410</p></td>
<td><p>175</p></td>
<td><p>5.714</p></td>
</tr>
<tr class="row-even"><td><p>40</p></td>
<td><p>160</p></td>
<td><p>6.250</p></td>
<td><p>175</p></td>
<td><p>5.714</p></td>
</tr>
<tr class="row-odd"><td><p>41</p></td>
<td><p>164</p></td>
<td><p>6.097</p></td>
<td><p>175</p></td>
<td><p>5.714</p></td>
</tr>
<tr class="row-even"><td><p>42</p></td>
<td><p>168</p></td>
<td><p>5.952</p></td>
<td><p>175</p></td>
<td><p>5.714</p></td>
</tr>
<tr class="row-odd"><td><p>43</p></td>
<td><p>172</p></td>
<td><p>5.813</p></td>
<td><p>175</p></td>
<td><p>5.714</p></td>
</tr>
<tr class="row-even"><td><p>44</p></td>
<td><p>176</p></td>
<td><p>5.681</p></td>
<td><p>187</p></td>
<td><p>5.333</p></td>
</tr>
<tr class="row-odd"><td><p>45</p></td>
<td><p>180</p></td>
<td><p>5.555</p></td>
<td><p>187</p></td>
<td><p>5.333</p></td>
</tr>
<tr class="row-even"><td><p>46</p></td>
<td><p>184</p></td>
<td><p>5.434</p></td>
<td><p>187</p></td>
<td><p>5.333</p></td>
</tr>
<tr class="row-odd"><td><p>47</p></td>
<td><p>188</p></td>
<td><p>5.319</p></td>
<td><p>200</p></td>
<td><p>5.000</p></td>
</tr>
<tr class="row-even"><td><p>48</p></td>
<td><p>192</p></td>
<td><p>5.208</p></td>
<td><p>200</p></td>
<td><p>5.000</p></td>
</tr>
<tr class="row-odd"><td><p>49</p></td>
<td><p>196</p></td>
<td><p>5.102</p></td>
<td><p>200</p></td>
<td><p>5.000</p></td>
</tr>
</tbody>
</table>
</section>
<section id="id3">
<h2>17. Serial NVRAM<a class="headerlink" href="#id3" title="Link to this heading">¶</a></h2>
<p>(added by Richard Waltham: <a class="reference external" href="mailto:dormouse&#37;&#52;&#48;farsrobt&#46;demon&#46;co&#46;uk">dormouse<span>&#64;</span>farsrobt<span>&#46;</span>demon<span>&#46;</span>co<span>&#46;</span>uk</a>)</p>
<section id="features">
<h3>17.1 Features<a class="headerlink" href="#features" title="Link to this heading">¶</a></h3>
<p>Enabling serial NVRAM support enables detection of the serial NVRAM included
on Symbios and some Symbios compatible host adaptors, and Tekram boards. The
serial NVRAM is used by Symbios and Tekram to hold set up parameters for the
host adaptor and its attached drives.</p>
<p>The Symbios NVRAM also holds data on the boot order of host adaptors in a
system with more than one host adaptor. This enables the order of scanning
the cards for drives to be changed from the default used during host adaptor
detection.</p>
<p>This can be done to a limited extent at the moment using “reverse probe” but
this only changes the order of detection of different types of cards. The
NVRAM boot order settings can do this as well as change the order the same
types of cards are scanned in, something “reverse probe” cannot do.</p>
<p>Tekram boards using Symbios chips, DC390W/F/U, which have NVRAM are detected
and this is used to distinguish between Symbios compatible and Tekram host
adaptors. This is used to disable the Symbios compatible “diff” setting
incorrectly set on Tekram boards if the CONFIG_SCSI_53C8XX_SYMBIOS_COMPAT
configuration parameter is set enabling both Symbios and Tekram boards to be
used together with the Symbios cards using all their features, including
“diff” support. (“led pin” support for Symbios compatible cards can remain
enabled when using Tekram cards. It does nothing useful for Tekram host
adaptors but does not cause problems either.)</p>
</section>
<section id="symbios-nvram-layout">
<h3>17.2 Symbios NVRAM layout<a class="headerlink" href="#symbios-nvram-layout" title="Link to this heading">¶</a></h3>
<p>typical data at NVRAM address 0x100 (53c810a NVRAM):</p>
<div class="highlight-none notranslate"><div class="highlight"><pre><span></span>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
</pre></div>
</div>
<p>NVRAM layout details</p>
<table class="docutils align-default">
<thead>
<tr class="row-odd"><th class="head"><p>NVRAM Address</p></th>
<th class="head"></th>
</tr>
</thead>
<tbody>
<tr class="row-even"><td><p>0x000-0x0ff</p></td>
<td><p>not used</p></td>
</tr>
<tr class="row-odd"><td><p>0x100-0x26f</p></td>
<td><p>initialised data</p></td>
</tr>
<tr class="row-even"><td><p>0x270-0x7ff</p></td>
<td><p>not used</p></td>
</tr>
</tbody>
</table>
<p>general layout:</p>
<div class="highlight-none notranslate"><div class="highlight"><pre><span></span>header  -   6 bytes,
data    - 356 bytes (checksum is byte sum of this data)
trailer -   6 bytes
          ---
total     368 bytes
</pre></div>
</div>
<p>data area layout:</p>
<div class="highlight-none notranslate"><div class="highlight"><pre><span></span>controller set up  -  20 bytes
boot configuration -  56 bytes (4x14 bytes)
device set up      - 128 bytes (16x8 bytes)
unused (spare?)    - 152 bytes (19x8 bytes)
                     ---
total                356 bytes
</pre></div>
</div>
<p>header:</p>
<div class="highlight-none notranslate"><div class="highlight"><pre><span></span>00 00   - ?? start marker
64 01   - byte count (lsb/msb excludes header/trailer)
8e 0b   - checksum (lsb/msb excludes header/trailer)
</pre></div>
</div>
<p>controller set up:</p>
<div class="highlight-none notranslate"><div class="highlight"><pre><span></span>00 30 00 00 00 00 07 00 00 00 00 00 00 00 07 04 10 04 00 00
                |     |           |     |
                |     |           |      -- host ID
                |     |           |
                |     |            --Removable Media Support
                |     |               0x00 = none
                |     |               0x01 = Bootable Device
                |     |               0x02 = All with Media
                |     |
                |      --flag bits 2
                |        0x00000001= scan order hi-&gt;low
                |            (default 0x00 - scan low-&gt;hi)
                    --flag bits 1
                    0x00000001 scam enable
                    0x00000010 parity enable
                    0x00000100 verbose boot msgs
</pre></div>
</div>
<p>remaining bytes unknown - they do not appear to change in my
current set up for any of the controllers.</p>
<p>default set up is identical for 53c810a and 53c875 NVRAM
(Removable Media added Symbios BIOS version 4.09)</p>
<p>boot configuration</p>
<p>boot order set by order of the devices in this table:</p>
<div class="highlight-none notranslate"><div class="highlight"><pre><span></span>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 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
    |  |  |  |     |        |     |  |
    |  |  |  |     |        |      ---- PCI io port adr
    |  |  |  |     |         --0x01 init/scan at boot time
    |  |  |  |      --PCI device/function number (0xdddddfff)
    |  |   ----- ?? PCI vendor ID (lsb/msb)
        ----PCI device ID (lsb/msb)

?? use of this data is a guess but seems reasonable
</pre></div>
</div>
<p>remaining bytes unknown - they do not appear to change in my
current set up</p>
</section>
<section id="default-set-up-is-identical-for-53c810a-and-53c875-nvram">
<h3>default set up is identical for 53c810a and 53c875 NVRAM<a class="headerlink" href="#default-set-up-is-identical-for-53c810a-and-53c875-nvram" title="Link to this heading">¶</a></h3>
<p>device set up (up to 16 devices - includes controller):</p>
<div class="highlight-none notranslate"><div class="highlight"><pre><span></span>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 - id 15
|     |  |  |     |  |
|     |  |  |      ----timeout (lsb/msb)
|     |  |   --synch period (0x?? 40 Mtrans/sec- fast 40) (probably 0x28)
|     |  |                  (0x30 20 Mtrans/sec- fast 20)
|     |  |                  (0x64 10 Mtrans/sec- fast )
|     |  |                  (0xc8  5 Mtrans/sec)
|     |  |                  (0x00  asynchronous)
|     |   -- ?? max sync offset (0x08 in NVRAM on 53c810a)
|     |                         (0x10 in NVRAM on 53c875)
|      --device bus width (0x08 narrow)
|                         (0x10 16 bit wide)
--flag bits
    0x00000001 - disconnect enabled
    0x00000010 - scan at boot time
    0x00000100 - scan luns
    0x00001000 - queue tags enabled
</pre></div>
</div>
<p>remaining bytes unknown - they do not appear to change in my
current set up</p>
<p>?? use of this data is a guess but seems reasonable
(but it could be max bus width)</p>
<p>default set up for 53c810a NVRAM
default set up for 53c875 NVRAM</p>
<blockquote>
<div><ul class="simple">
<li><p>bus width     - 0x10</p></li>
<li><p>sync offset ? - 0x10</p></li>
<li><p>sync period   - 0x30</p></li>
</ul>
</div></blockquote>
<p>?? spare device space (32 bit bus ??)</p>
<div class="highlight-none notranslate"><div class="highlight"><pre><span></span>00 00 00 00 00 00 00 00  (19x8bytes)
.
.
00 00 00 00 00 00 00 00
</pre></div>
</div>
</section>
<section id="id4">
<h3>default set up is identical for 53c810a and 53c875 NVRAM<a class="headerlink" href="#id4" title="Link to this heading">¶</a></h3>
<p>trailer:</p>
<div class="highlight-none notranslate"><div class="highlight"><pre><span></span>fe fe   - ? end marker ?
00 00
00 00
</pre></div>
</div>
</section>
<section id="id5">
<h3>default set up is identical for 53c810a and 53c875 NVRAM<a class="headerlink" href="#id5" title="Link to this heading">¶</a></h3>
</section>
<section id="tekram-nvram-layout">
<h3>17.3 Tekram NVRAM layout<a class="headerlink" href="#tekram-nvram-layout" title="Link to this heading">¶</a></h3>
<p>nvram 64x16 (1024 bit)</p>
<p>Drive settings:</p>
<div class="highlight-none notranslate"><div class="highlight"><pre><span></span>Drive ID 0-15 (addr 0x0yyyy0 = device setup, yyyy = ID)
            (addr 0x0yyyy1 = 0x0000)

    x x x x  x x x x  x x x x  x x x x
            | | |      | |  | | | |
            | | |      | |  | | |  ----- parity check   0 - off
            | | |      | |  | | |                       1 - on
            | | |      | |  | | |
            | | |      | |  | |  ------- sync neg       0 - off
            | | |      | |  | |                         1 - on
            | | |      | |  | |
            | | |      | |  |  --------- disconnect     0 - off
            | | |      | |  |                           1 - on
            | | |      | |  |
            | | |      | |   ----------- start cmd      0 - off
            | | |      | |                              1 - on
            | | |      | |
            | | |      |  -------------- tagged cmds    0 - off
            | | |      |                                1 - on
            | | |      |
            | | |       ---------------- wide neg       0 - off
            | | |                                       1 - on
            | | |
                --------------------------- sync rate      0 - 10.0 Mtrans/sec
                                                        1 -  8.0
                                                        2 -  6.6
                                                        3 -  5.7
                                                        4 -  5.0
                                                        5 -  4.0
                                                        6 -  3.0
                                                        7 -  2.0
                                                        7 -  2.0
                                                        8 - 20.0
                                                        9 - 16.7
                                                        a - 13.9
                                                        b - 11.9
</pre></div>
</div>
<p>Global settings</p>
<p>Host flags 0 (addr 0x100000, 32):</p>
<div class="highlight-none notranslate"><div class="highlight"><pre><span></span>x x x x  x x x x  x x x x  x x x x
| | | |  | | | |           | | | |
| | | |  | | | |            ----------- host ID    0x00 - 0x0f
| | | |  | | | |
| | | |  | | |  ----------------------- support for    0 - off
| | | |  | | |                          &gt; 2 drives     1 - on
| | | |  | | |
| | | |  | |  ------------------------- support drives 0 - off
| | | |  | |                            &gt; 1Gbytes      1 - on
| | | |  | |
| | | |  |  --------------------------- bus reset on   0 - off
| | | |  |                                power on     1 - on
| | | |  |
| | | |   ----------------------------- active neg     0 - off
| | | |                                                1 - on
| | | |
| | |  -------------------------------- imm seek       0 - off
| | |                                                  1 - on
| | |
| |  ---------------------------------- scan luns      0 - off
| |                                                    1 - on
| |
 -------------------------------------- removable      0 - disable
                                        as BIOS dev    1 - boot device
                                                       2 - all
</pre></div>
</div>
<p>Host flags 1 (addr 0x100001, 33):</p>
<div class="highlight-none notranslate"><div class="highlight"><pre><span></span>x x x x  x x x x  x x x x  x x x x
           | | |             | | |
           | | |              --------- boot delay     0 -   3 sec
           | | |                                       1 -   5
           | | |                                       2 -  10
           | | |                                       3 -  20
           | | |                                       4 -  30
           | | |                                       5 -  60
           | | |                                       6 - 120
           | | |
            --------------------------- max tag cmds   0 -  2
                                                       1 -  4
                                                       2 -  8
                                                       3 - 16
                                                       4 - 32
</pre></div>
</div>
<p>Host flags 2 (addr 0x100010, 34):</p>
<div class="highlight-none notranslate"><div class="highlight"><pre><span></span>x x x x  x x x x  x x x x  x x x x
                                 |
                                  ----- F2/F6 enable   0 - off ???
                                                       1 - on  ???
</pre></div>
</div>
<p>checksum (addr 0x111111)</p>
<p>checksum = 0x1234 - (sum addr 0-63)</p>
<hr class="docutils" />
<p>default nvram data:</p>
<div class="highlight-none notranslate"><div class="highlight"><pre><span></span>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
0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0xfbbc
</pre></div>
</div>
</section>
</section>
<section id="support-for-big-endian">
<h2>18. Support for Big Endian<a class="headerlink" href="#support-for-big-endian" title="Link to this heading">¶</a></h2>
<p>The PCI local bus has been primarily designed for x86 architecture.
As a consequence, PCI devices generally expect DWORDS using little endian
byte ordering.</p>
<section id="big-endian-cpu">
<h3>18.1 Big Endian CPU<a class="headerlink" href="#big-endian-cpu" title="Link to this heading">¶</a></h3>
<p>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
added to the driver by Cort &lt;<a class="reference external" href="mailto:cort&#37;&#52;&#48;cs&#46;nmt&#46;edu">cort<span>&#64;</span>cs<span>&#46;</span>nmt<span>&#46;</span>edu</a>&gt; and is available in driver
version 2.5 and later ones. For the moment Big Endian support has only
been tested on Linux/PPC (PowerPC).</p>
</section>
<section id="ncr-chip-in-big-endian-mode-of-operations">
<h3>18.2 NCR chip in Big Endian mode of operations<a class="headerlink" href="#ncr-chip-in-big-endian-mode-of-operations" title="Link to this heading">¶</a></h3>
<p>It can be read in SYMBIOS documentation that some chips support a special
Big Endian mode, on paper: 53C815, 53C825A, 53C875, 53C875N, 53C895.
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
be avoided when the driver is running on a Big Endian CPU.
Driver version 2.5 is also, in theory, ready for this feature.</p>
</section>
</section>
</section>


          </div>
          
        </div>
      </div>
    <div class="clearer"></div>
  </div>
    <div class="footer">
      &#169;The kernel development community.
      
      |
      Powered by <a href="https://www.sphinx-doc.org/">Sphinx 8.1.3</a>
      &amp; <a href="https://alabaster.readthedocs.io">Alabaster 0.7.16</a>
      
      |
      <a href="../_sources/scsi/ncr53c8xx.rst.txt"
          rel="nofollow">Page source</a>
    </div>

    

    
  </body>
</html>

Filemanager

Name Type Size Permission Actions
scsi_transport_srp Folder 0755
53c700.html File 14.24 KB 0644
BusLogic.html File 40.51 KB 0644
FlashPoint.html File 17.51 KB 0644
NinjaSCSI.html File 14.65 KB 0644
aacraid.html File 24.06 KB 0644
advansys.html File 22.78 KB 0644
aha152x.html File 17.97 KB 0644
aic79xx.html File 39.05 KB 0644
aic7xxx.html File 39.95 KB 0644
arcmsr_spec.html File 47.74 KB 0644
bfa.html File 13.08 KB 0644
bnx2fc.html File 11.76 KB 0644
cxgb3i.html File 12.03 KB 0644
dc395x.html File 13.48 KB 0644
dpti.html File 12.29 KB 0644
g_NCR5380.html File 12.35 KB 0644
hpsa.html File 14.53 KB 0644
hptiop.html File 19.61 KB 0644
index.html File 13.43 KB 0644
libsas.html File 27.98 KB 0644
link_power_management_policy.html File 8.92 KB 0644
lpfc.html File 11.34 KB 0644
megaraid.html File 11.93 KB 0644
ncr53c8xx.html File 115.22 KB 0644
ppa.html File 8.8 KB 0644
qlogicfas.html File 11.85 KB 0644
scsi-changer.html File 16.8 KB 0644
scsi-generic.html File 13.62 KB 0644
scsi-parameters.html File 11.93 KB 0644
scsi.html File 10.65 KB 0644
scsi_eh.html File 36.79 KB 0644
scsi_fc_transport.html File 38.88 KB 0644
scsi_mid_low_api.html File 71.01 KB 0644
sd-parameters.html File 9.52 KB 0644
smartpqi.html File 11.98 KB 0644
st.html File 41.47 KB 0644
sym53c500_cs.html File 9.4 KB 0644
sym53c8xx_2.html File 66.19 KB 0644
tcm_qla2xxx.html File 9.28 KB 0644
ufs.html File 17.85 KB 0644
wd719x.html File 9.04 KB 0644
Filemanager