From owner-freebsd-doc Thu Oct 2 13:46:03 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id NAA21889 for doc-outgoing; Thu, 2 Oct 1997 13:46:03 -0700 (PDT) Received: from iafnl.es.iaf.nl (uucp@iafnl.es.iaf.nl [195.108.17.20]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id NAA21820 for ; Thu, 2 Oct 1997 13:45:34 -0700 (PDT) Received: by iafnl.es.iaf.nl with UUCP id AA19496 (5.67b/IDA-1.5 for doc@freebsd.org); Thu, 2 Oct 1997 22:45:50 +0200 Received: (from wilko@localhost) by yedi.iaf.nl (8.8.5/8.6.12) id WAA02984 for doc@freebsd.org; Thu, 2 Oct 1997 22:37:50 +0100 (MET) From: Wilko Bulte Message-Id: <199710022137.WAA02984@yedi.iaf.nl> Subject: please review update to scsi doc To: doc@freebsd.org (FreeBSD Doc Project) Date: Thu, 2 Oct 1997 22:37:50 +0100 (MET) X-Organisation: Private FreeBSD site - Arnhem, The Netherlands X-Pgp-Info: PGP public key at 'finger wilko@freefall.freebsd.org' X-Mailer: ELM [version 2.4 PL24 ME8a] Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-doc@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Below is a diff -c relative to the scsi.sgml taken from the 2.2.1R CD. I appreciate comments. Wilko ------------ *** scsi.sgml.orig Thu Oct 2 21:10:27 1997 --- scsi.sgml Thu Oct 2 22:04:01 1997 *************** *** 1,15 **** - --- 1,16 ---- *************** *** 29,35 **** This effort was recognized in the ANSI SCSI-1 standard. The SCSI-1 standard (approx 1985) is rapidly becoming obsolete. The current standard is SCSI-2 (see ), with SCSI-3 on the drawing boards. In addition to a physical interconnection standard, SCSI defines a logical (command set) standard to which disk devices must adhere. --- 30,38 ---- This effort was recognized in the ANSI SCSI-1 standard. The SCSI-1 standard (approx 1985) is rapidly becoming obsolete. The current standard is SCSI-2 (see ), with SCSI-3 almost finished. SCSI-3 is divided in a ! number of sub-standards, for the sake of simplicity I'll ignore this ! here. In addition to a physical interconnection standard, SCSI defines a logical (command set) standard to which disk devices must adhere. *************** *** 38,44 **** includes the (revised) CCS as part of the standard itself. The commands are dependent on the type of device at hand. It does not make much sense of course to define a Write command for a ! scanner. The SCSI bus is a parallel bus, which comes in a number of variants. The oldest and most used is an 8 bit wide bus, with --- 41,48 ---- includes the (revised) CCS as part of the standard itself. The commands are dependent on the type of device at hand. It does not make much sense of course to define a Write command for a ! scanner. SCSI-3 builds upon earlier work and adds more standard ! commands for newer device types. The SCSI bus is a parallel bus, which comes in a number of variants. The oldest and most used is an 8 bit wide bus, with *************** *** 60,74 **** parity line. In pre-SCSI-2 designs parity was optional. In SCSI-3 even faster bus types are introduced, along with a serial ! SCSI busses that reduces the cabling overhead and allows a higher ! maximum bus length. You might see names like SSA and Fiberchannel in this context. None of the serial buses are currently in widespread use (especially not in the typical FreeBSD environment). For this reason the serial bus types are not discussed any further. As you could have guessed from the description above, SCSI devices are intelligent. They have to be to adhere to the SCSI standard ! (which is over 2 inches thick BTW). So, for a hard disk drive for instance you do not specify a head/cylinder/sector to address a particular block, but simply the number of the block you want. Elaborate caching schemes, automatic bad block replacement etc --- 64,78 ---- parity line. In pre-SCSI-2 designs parity was optional. In SCSI-3 even faster bus types are introduced, along with a serial ! SCSI interconnects that reduces the cabling overhead and allows a higher ! maximum link length. You might see names like SSA and Fibrechannel in this context. None of the serial buses are currently in widespread use (especially not in the typical FreeBSD environment). For this reason the serial bus types are not discussed any further. As you could have guessed from the description above, SCSI devices are intelligent. They have to be to adhere to the SCSI standard ! (which is over 3 inches thick BTW). So, for a hard disk drive for instance you do not specify a head/cylinder/sector to address a particular block, but simply the number of the block you want. Elaborate caching schemes, automatic bad block replacement etc *************** *** 123,130 **** yourself a lot of grief by using good material. So, gold plated connectors, shielded cabling, sturdy connector ! hoods with strain reliefs etc are the way to go. Second golden ! rule: do no use cables longer than necessary. I once spent 3 days hunting down a problem with a flaky machine only to discover that shortening the SCSI bus by 1 meter solved the problem. And the original bus length was well within the SCSI specification. --- 127,138 ---- yourself a lot of grief by using good material. So, gold plated connectors, shielded cabling, sturdy connector ! hoods with strain reliefs etc are the way to go. For longer ! cabling you might want to consider Teflon insulated cabling. ! Expensive, but good. ! ! Second golden rule: do no use cables longer than necessary. I once ! spent 3 days hunting down a problem with a flaky machine only to discover that shortening the SCSI bus by 1 meter solved the problem. And the original bus length was well within the SCSI specification. *************** *** 168,187 **** and status messages etc are only performed on the lowest 8 data lines. The standard allows narrow devices to operate on a wide bus. The usable bus width is negotiated ! between the devices. You have to watch your device addressing ! closely when mixing wide and narrow. Single ended buses

A single-ended SCSI bus uses signals that are either 5 Volts or 0 Volts (indeed, TTL levels) and are relative to a COMMON ! ground reference. A singled ended 8 bit SCSI bus has approximately 25 ground lines, who are all tied to a single `rail' on all devices. A standard single ended bus has a maximum length of 6 meters. If the same bus is used with fast-SCSI devices, the maximum length allowed drops to 3 ! meters. Fast-SCSI means that instead of 5Mbytes/sec the bus ! allows 10Mbytes/sec transfers. Fast-20 (Ultra SCSI) and Fast-40 allow for 20 and 40 megatransfers/second respectively. So, F20 is 20 Mbytes/second --- 176,196 ---- and status messages etc are only performed on the lowest 8 data lines. The standard allows narrow devices to operate on a wide bus. The usable bus width is negotiated ! between the devices, and negotiation is always done via the 8bit ! path. You have to watch your device addressing closely when ! mixing wide and narrow. Single ended buses

A single-ended SCSI bus uses signals that are either 5 Volts or 0 Volts (indeed, TTL levels) and are relative to a COMMON ! ground reference. A single ended 8 bit SCSI bus has approximately 25 ground lines, who are all tied to a single `rail' on all devices. A standard single ended bus has a maximum length of 6 meters. If the same bus is used with fast-SCSI devices, the maximum length allowed drops to 3 ! meters. Fast-SCSI means that instead of 5 Mtransfers/sec the bus ! allows 10 Mtransfers/sec transfers. Fast-20 (Ultra SCSI) and Fast-40 allow for 20 and 40 megatransfers/second respectively. So, F20 is 20 Mbytes/second *************** *** 191,203 **** the limits quite a bit, so you will quickly find out if your SCSI bus is electrically sound. ! Please note that this means that if some devices on your bus use 'fast' to communicate your bus must adhere to the length restrictions for fast buses! ! It is obvious that with the newer fast-SCSI devices the ! bus length can become a real bottleneck. This is why the ! differential SCSI bus was introduced in the SCSI-2 standard. For connector pinning and connector types please refer to the SCSI-2 standard (see *************** *** 888,891 **** Most major SCSI device and host adapter suppliers operate ftp sites and/or BBS systems. They may be valuable sources of information ! about the devices you own. --- 926,930 ---- Most major SCSI device and host adapter suppliers operate ftp sites and/or BBS systems. They may be valuable sources of information ! about the devices you own. Some examples are www.adaptec.com, ! www.symbios.com, www.quantum.co, _ ____________________________________________________________________ | / o / / _ Bulte email: wilko@yedi.iaf.nl http://www.tcja.nl/~wilko |/|/ / / /( (_) Arnhem, The Netherlands - Do, or do not. There is no 'try' ----------------------------------------------------------------------Yoda