You are on page 1of 308

The

SCSI
Bench Reference

ENOL
PUBLICATIONS
Guidelines

Those of you who are familiar with the way the standards committee, X3T10, restructured SCSI-3 into
multiple documents will find this edition of the SCSI Bench Reference retains ready access to all the
information you really need to work with the Small Computer System Interface.

The biggest change you will find in these pages is the use of the new terms which were introduced by
SCSI-3. SCSI-2 has dominated shipments for the past several years, but the future belongs to a new kind
of SCSI, one that not only operates on the familiar parallel bus, but on serial interfaces.

The biggest technical change made in the SCSI-3 parallel standards has been the dramatic improvements
made to the physical interface. These advances have been made under pressure from the performance
and convenience promised by serial interfaces.

Should you happen to come across any discrepancies between the standards and the SCSI Bench
Reference, be sure to drop us a line so we can make a correction. If you discover a major boo-boo, you
will receive a free copy of the next edition.

SCSI Bench Reference assumes you have a working knowledge of both SCSI and the standard
documents. If you find the standards overwhelming, then you should check out the SCSI Encyclopedia.
This multi-copy reference work describes the parallel protocol and the disk commands in two Volumes:

Volume 1: SCSI Phases and Protocol A-M


SCSI Phases and Protocol N-Z
Volume II: SCSI Disk Operations A-L
SCSI Disk Operations M-Z

Each volume contains detailed information on all topics, with many examples to assist understanding.
Unlike the standard, the SCSI Encyclopedia has been written to assist comprehension. Lavish use of
figures, diagrams, and even pseudo code for complicated subjects such as queueing.

Each entry includes cross-references to relevant subjects so that learning is by inquiry rather than painful
searching of the standards. Information from all over the standards is gathered together under a single
heading.

If you are interested in serial SCSI, be sure to check out the Fibre Channel Bench Reference. It is to Fibre
Channel what this book is to parallel SCSI. For anybody planning to implement Fibre Channel, the Fibre
Channel Bench Reference is an invaluable tool.
The
SCSI
Bench Reference

Jeffrey D. Stai

ENDL Publications
Saratoga, California
Library of Congress Cataloging-in-Publication Data

Stai, Jeffrey D . , " 1 958-


The SCSI bench reference I Jeffrey D. Stai.
p. em. -- (ENOL SCSI Series)
Contents: v. " 1 , A-M . Phases and protocols -- v. 1 , N-Z. Phases and protocols.
ISBN i-879936-1 1-9 (v. "1, A-M). -- ISBN i-879936-"1 2-7 (v. "1 , N-Z) . -- ISBN "1-879936-"10-0 (set)
1 . Computer interfaces--Standards. 2. SCSI (Computer bus) 3. Local area networks (Computer
networks) I. Title. I I . Series.
TK7887.5.S73 "199"1
62"1.39'8"1 --dc20 9 "1 -"17 070
CIP

Copyright © 1989, 1992, 1996 ENOL Publicati o n s and Jeffrey D. Stai

All Rights Reserved. Except for brief passages to be published in a review or as citation of authority, no part of this book may
be reproduced or transmitted in any form or by any means, electronic or mechanical, including photocopying, recording, or by
any information storage and retrieval system, without written permission from the publisher. This means YOU!

Throughout this book, the trade names and trademarks of many companies and products have been used, and no such uses
are intended to convey endorsement of or other affiliations with the book. Any brand names or product names used within this
book are trademarks or registered trademarks of their respective holders.

Though the author and publisher have made evety effort to ensure the accuracy and completeness of information contained in
this book, we assume no responsibility for errors, inaccuracies, omissions, or any inconsistency therein.

ENOL SCSI Series

The publisher offers generous discounts on this book when ordered in bulk quantities. For more
information, write :

Special Sales/Library Marketing


ENOL Publications
"1 4426 Black Walnut Court
Saratoga, CA 95070

Printing H i story:
August " 1 989 First Edition
May 1 992 Second Edition Major Revision
May "1996 Third Edition Major Revision

Printed in the U nited States of America


"10 9 8 7 6 5 4 3 2 1

ISBN 1-879936-30-5

ENDL Publications, Saratoga, California


I
Dedicated to all those who have trouble
finding things in 42 different standards documents!

I'd also like to thank the following individuals for their contributions to this reference:

Paul Aloisi
Tak Asami
Peter Johansson
Larry Lamers
John Lohmeyer
Duncan Penman
George Penokie
Ralph Weber
About the Author

Jeffrey Stai has been doing standards (and real work,


mind you!) longer than anyone should be forced to do
so. He has designed boards, firmware, and/or chips for
SCSI, Fibre Channel, ATA, ISA, PCI, IEEE 1394, ESDI,
MCA, and even SSA. He has been a principal
representative to X3T10, X3T11, and IEEE P1394. He is
currently employed by Brocade Communications
Systems.

About the Publisher

Dal Allan has been working with computers a long time


(back when they were built with vacuum tubes yet), and
specializes in the issues of peripheral interfaces,
especially storage. He claims to have had a lot of hair
before he became connected (bad SCSI pun) with
interface standards. He has been and continues to be
active in the development of industry standards,
including SCSI, ATA, ATAPI, and Fibre Channel.
About the SCSI Series
You are holding one member of a family of books known as the SCSI Series from E N O L Publications.

The SCSI Bench Reference re-packages the SCSI- 1 , SCSI-2 and SCSI-3 standards into a form which
makes things easy-to-find. You also find things that are not found in any of the standards, like detailed
timing charts, examples, easy references and vastly improved table structures.

The SCSI Encyclopedia is designed to explain the complexities of SCSI for neophyte and expert alike, in a
format that was chosen so you can easily access information by subject. There are no chapters, you
simply look up the name you are interested in to find the material you care about.

Volume I comes in two hard cover books, covering A-M and N-Z, and deals with the phases and
protocols of the physical interface and the message system . If it has anything to do with cables,
connectors, drivers and receivers, signals and phases, messages and nexuses you'll find it in Volume I.
SCSI's message system includes upper-level principles like command queueing as well, so you find these
principles covered in great detail .

Volume I I deals with the most popular SCSI peripheral , t h e magnetic disk drive. Disks are not simple
devices, and once again two hard cover books are needed, covering A-L and M-Z. It takes much more
than coverage of the Direct Access Device commands to explain how disk drives are supported by SCSI.
You also need to be aware of how the commands common to all devices operate, so these are covered
from a disk drive point of view.

The following pages provide you a listing of titles on the subjects covered in the SCSI Encyclopedia. A
quick perusal will provide you with an overview of what is included.

What was SCSI is SCSI no longer. SCSI-3 incorporated some radical changes in language as the primary
task of the standards committee was to ' packetize' the interface in a form which could easily migrate to
serial interfaces.

The Fibre Channel Bench Reference is the first in the SCSI Series which covers progress towards a serial
world. Early implementations of serial interfaces will be led by the need for higher performance and
connectivity for disk drives. Therefore , the Fibre Channel Bench Reference concentrates on the Arbitrated
Loop and includes coverage of the SCSI-3 Fibre Channel Protocol .
The following subjects are covered in Volume I (A-M) of the SCSI Encyclope dia:

A Cable. COM MAND TERMINATED H EAD O F Q U E U E TAG


ABORT Message. Status. Message.
ABORT TAG message. Condition. Hold Time.
ACK Signal. Connect. Host Adapter.

ACKB Signal. Connected 1/0 Process. 1/0 Process.


Active 1/0 Process. Connection. 1/0 Signal.
Active Pointers. Connection Phases. I D ENTIFY M essage.
Active Pull-Up. Connectors. IGNORE WIDE R ESI D U E
Arbitration Delay. Contingent Allegiance. M essage.
ARBITRATION Phase. Control Byte. Information Transfer Phases.
Assertion Period. Controller. Initial Connection.
Assert Signal. Control Signals. Initialization.
Asynchronous Data Transfer. Current 1/0 Process. INITIATE R ECOVERY
Asynchronous Event Data Bus Signals. Message.
Notification (AEN) . DATA I N Phase. Initiator.
ATN Signal. DATA O UT Phase. INITIATOR DETECTED
Attention Condition . DATA Phase. ERROR Message.
B Cable. Data Pointer. LI N KED COMMAND
Between Phases. Data Release Delay. COMPLETE Messages.
BSY Signal. Deassert. Linked Commands.
Bus Clear Delay. Deskew Delay. Logical Block.
BUS D EVICE RESET Device. Logical Block Address (LBA) .
Message. Differential I nterface. Logical Unit.
Bus Free Delay. D I FFSENS. Logical U nit Number (LU N).
BUS FREE Phase. Disconnect. Message.
Bus I D . Disconnection Delay. M ESSAG E IN Phase.
Bus Phases. DISCONN ECT Message. M ESSAGE O UT Phase.
Bus Phase Signals. ECA. M ESSAG E PARITY ERROR
Bus Set Delay. Error Recovery. Message.
Bus Settle Delay. Etiquette. M ESSAG E REJ ECT M essage.
Bus Timing. Extended Contingent M essage System .
C / D Signal. Allegiance (ECA) Condition M O D I FY DATA POINTER
Cables. Extended Messages. M essage.
Cable Skew Delay. False. MSG Signal.
CAM (Common Access Fast Assertion Period.
Method) . Fast Cable Skew Delay.
Chips. Fast Data Transfer.
CLEAR Q U E U E Message. Fast Deskew Delay.
COMMAND COMPLETE Fast Hold Time.
Message. Fast Negation Period.
Command Descriptor Block. Forced Perfect Termination
COMMAND Phase. (FPT) .
Command Pointer. Hard Reset.
The following subjects are covered in Volume I (N-Z) of the SCSI Encyclopedia:

Negate Signal. SASI. Tagged Queuing.


Negation Period. SAVE DATA POINTER Target.
Nexus. Message. Target Routine.
NO OPERATION Message. Saved Pointers. Target Routine Number {TAN).
ORDERED Q U E U E TAG SCSI, SCSI-1 , and SCSI-2. TERMINATE 1/0 PROCESS
Message. SCSI-3?! M essage.
P Cable. SCSI Address. Termination.
Parity. SCSI Bus. Terminator Power
Path Control . SCSI Bus ID. {TERMPWR).
Peripheral Device. SCSI Commands. Timing.
Phase. SCSI Device. Transfer Period.
Pointers. SCSI ID. True.
Power-On to Selection Time. Selection Abort Time. U nexpected BUS FREE
Protocol Chips. S ELECTION Phase. Phase.
Pull-Up. Selection Time-out. Unit Attention Condition.
Queue. Selection Time-out Delay. U ntagged Queuing.
Queue Tag . SEL Signal. Vendor Specific or U nique.
Queue Tag Messages. Signal Levels. Wide Data Transfer.
Reconnect. SIM PLE Q U E U E TAG Wide Data Transfer
Reconnection. M essage. N egotiation.
RELEASE RECOVERY Single-Ended Interface. WID E DATA TRANSFER
Message. Soft Reset. REQU EST Message.
Release Signal. Status. Wire-OR Glitch.
REO/ ACK Offset. STATUS Phase. X3T9 . 2 Committee.
REO Signal . Status Pointer.
REQB Signal. Synchronous Data Transfer.
RESELECTION Phase. Synchronous Data Transfer
Reselection Timeout. Negotiation.
Reserved. SYN C H RONOUS DATA
Reset Condition. TRANSFER R EQ U EST
Reset Hold Time. Message.
Reset to Selection Time. Synchronous Offset.
RESTORE POINTERS Synchronous Transfer Period.
Message.
RST Signal .
The following subjects are covered in Volume II (A-L) of the SCSI Encyclopedia:

Aborting an 1/0 Process. Error Code.


Additional Sense Code. Error Correcting Codes.
Additional Sense Cod e Qualifier. Error Recovery.
Allegiance. Error Reporting.
Allocation Length. Etiquette.
Alternate Media. Extended Contingent Allegiance (ECA) Condition .
ASCII Fields. Extent Reservation.
Asynchronous Event Notification (AEN) . Field Pointer.
Automatic Reallocation. Flexible Disk M O D E Page.
BUFFER Commands. Format Device MODE Page.
Block Descriptor. FORMAT U N IT Command.
Cache. Force U nit Access (FUA) Bit.
Caching MODE Page. 1/0 Process.
CHAN G E DEFI N ITION Command. Immediate Commands.
Command. Initialization.
Command Descriptor Block. Initiator.
Contingent Allegiance. I N Q U I RY Command.
Control Mode Page. Linked Commands.
COPY Commands. LOCK U N LOCK CAC H E Command.
Data Encoding. Logical Block.
Defect Lists. Logical Block Address (LBA) .
Defect Management. Logical Unit.
Deferred Errors. Logical Unit Number (LU N).
Device Type. LOG Commands.
Diagnostics. LOG Parameters and Pages.
Diagnostic Parameters and Pages. LONG Commands.
Direct Access Device.
Disable Page Out (DPO) Bit.
Disconnect Reconnect M O D E Page.
Disk Drive.
Download Microcode .
The following subjects are covered in Volume II (M-Z) of the SCSI Encyclopedia:

Medium Type. SCSI, SASI, SCSI-1 , and SCSI-2.


Medium Types Supported M O D E Page. SCSI-3? !
·

Message. SCSI-4.
MODE Commands. S EARCH DATA Commands.
MODE Parameters and Pages. SEEK Command.
MODE SELECT Command. SEND Command.
MODE SENSE Command. SEND DIAGNOSTIC Command.
MODE SENSE and MODE S ELECT Examples. Sense Data.
Notches. Sense Key.
Notch MODE Page. Sense Keys.
Page. START STOP U NIT Command.
Parameter List Length . Status.
Peripheral Device MODE Page. Supported Diagnostics Page.
Power-On to Selection Time. SYNCHRONIZE CAC H E Command.
PRE-FETCH Command . Tagged Queuing.
PREVENT/ALLOW M E DI U M REMOVAL Target.
Command. Target Routine.
Queue. Terminating an 1/0 Process.
RAI D. TEST U NIT R EADY Command.
RAI D Advisory Board . Third Party Reservation.
READ CAPACITY Command. Transfer Length.
READ Command and WRITE Commands. Translate Address Diag nostic Page.
READ DEFECT DATA Command. U ntagged Queuin g .
Ready. Vendor Specific o r U nique.
Read-Write Error Recovery M O D E Page. VERIFY Command.
REASSIGN BLOCKS Command . Verify Error Recovery MODE Page.
Reassignment. WRITE AND VERIFY Command.
RECEIVE DIAG NOSTIC RESULTS Command. WRITE B U FFER Command.
ReiAdr Bit. WRITE Command.
Relative Addressing. WRITE LONG Command.
RELEASE Command . WRITE SAM E Command.
Removable Media. X3T9.2 Committee.
REQU EST SENSE Command.
Reservations.
RESERVE Command.
Reserved.
REZERO UNIT Command .
Rigid Disk Geometry MODE Page.
The following subjects are covered in the Fibre Channel Bench Reference:

Sources for Additional I nformation


Fibre Channel Logi<;:: a l Layers
Fibre Channel Roadmap
Fibre Channel Topologies
Fibre Channel Optical Physical Links
Fibre Channel Electrical Physical Links
Gigabaud Link Module (GLM) I nterface
1 O-bit Gigabit I nterface
FC-1 8B/ 1 0 B Transmission Code Encode and Decode Tables
Ordered Sets
Exchanges, Sequences, Frames, Words, Bytes, and Bits
Link Protocols
Fibre Channel Classes of Service
Fibre Channel Flow Control
Fibre Channel General Frame Format
Link Control Frame Formats
Basic Link Service Frame Formats
Extended Link Service Frame Formats
Fabric and N _ Port Login Procedures and Parameters
Arbitrated Loop (FC-AL)
Ordered Sets for the Arbitrated Loop
Arbitrated Loop Physical Addresses (AL_ PA) and Loop IDs
Arbitrated Loop Port State Machine
Arbitrated Loop Bypass Circuit
Loop Initialization Procedure
Loop Initialization Sequence (Frame) Formats
SCSI-3 Fibre Channel Protocol (FCP) I nformation Units
FCP Command (FCP_ C M N D) I nformation Unit
FCP Transfe� Ready (FCP_XFER_ R DY) I nformation Unit
FCP Data (FCP_ DATA) I nformation Unit
FCP Response (FCP_ RSP) I nformation Unit
FCP Process Login (PRLI) Extended Lin k Service Request
FCP Process Login Accept (PRLI ACC) Extended Lin k Service Reply
I nternet Protocol (IP) over Fibre Channel
TABLE O F CONTENTS

Sources for Additional References on SCSI 1


SCSI-3 Roadmap o o o o o 4
SCSI-3 Document,Summary o 5

SCSI-3 Features Not Included 6

Style Notes 0 0 6

System Layout Exam ples 7


Typical Desktop Configuration 7
Typical "Add On" Configuration 7

Connector Pin Numbers o 0 0 0 0 0 o o o o o o o 8


SCSI-2 Single Ended 50-pin "A" Cable Connector Pinouts 8
Low Density (Oo1" Spacing) Unshielded Header o 8
Low Density (Oo085" Spacing) "D" Style Shielded o 0 0 0 9
High Density (Oo05" Spacing) "D" Style Shielded and Unshielded 9
SCSI-2 Differential 50-pin "A" Cable Connector Pinouts 10
Low Density (Oo1" Spacing) Unshielded Header o o o o o o o 0 o 10
Low Density (Oo085" Spacing) "D" Style Shielded o o o o o 0 0 11
High Density (Oo05" Spacing) "D" Style Shielded and Unshielded 0 0 11
SCSI-3 Single Ended 68-pin Primary Bus (" P Cable") Connector Pinouts 12
High Density (Oo05" Spacing) "D" Style Shielded and Unshielded 0 0 12
SCSI-3 Differential 68-pin Primary Bus ("P Cable") Connector Pinouts 13
High Density (Oo05" Spacing) "D" Style Shielded and Unshielded 13
SFF-8015 Single Ended 80-pin SCA Connector Pinout 14
SFF-8015 Differential 80-pin SCA Connector Pinout 15
S F F-8046 Single Ended 80-pin SCA Connector Pinout 16
S F F-8046 Differential 80-pin SCA Connector Pinout 17
SCSI-3 Cabling Status o o o 18

Electrical Characteristics 19
SCSI-3 Single Ended Interface 0 0 0 19
Single Ended Cable Characteristics 0 o 21
Active Single Ended Termination Products o o 21
Fast-20 Single Ended Timing Measurement Points o 0 22
Future SCSI-3 Parallel Physical Interface Development 23
Differential Interface 0 0 0 0 o 0 23
Differential Cable Characteristics 25
Differential Termination 0 25

Bus Signals and Phases 26


Signal Names and Definitions 26
Bus ID Priority Levels 27
Bus Phases: Connections o 0 0 0 28
Bus Phases: Information Transfer 29
SCSI Bus Phase State Diagram 0 o o 0 30
SCSI Configured Auto-Magically (SCAM) 31
SCAM Tolerance o o 0 0 0 0 0 0 o 0 31
SCAM !dentification String Format 32
SCAM Requirement Levels 0 0 0 o 0 0 o o 0 0 34
SCAM Transfer Cycle Conditions for Isolation Stage 35
SCAM Function Codes 0 0 0 0 0 0 0 36
SCAM Action Codes 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 37
Bus Phases: SCSI Configured Auto-Magically (SCAM), Protocol Initiation 38
Bus Phases: SCSI Configured Auto-Magically (SCAM), Transfer Cycle 0 0 39

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 ENDL Publications


I SCSI Bus Timing . . . . . .
Basic SCSI Timing Values
Bus Reset Condition
Arbitration Phase
Selection Phase
Reselection Phase
Selection Timeout
. .
.
.
41
41
42
43
44
45
46
Reselection Timeout . . . . . . . . . . . . . . . . . . . . 47
Info Transfer Out Phase Transition to Info Transfer Out Phase 48
Info Transfer In Phase Transition to Info Transfer In Phase 49
Info Transfer Out Phase Transition to Info Transfer In Phase 50
Info Transfer In Phase Transition to Info Transfer Out Phase 51
Asynchronous Transfer Out to Target . . . 52
Asynchronous Transfer In to Initiator . . . . . . 53
Sl ow Synchronous Transfer Out to Target . . . . . . 54
Sl ow Synchronous Transfer In to Initiator . . . . . 55
Fast (Fast-10) Synchronous Transfer Out to Target . 56
Fast (Fast-10) Synchronous Transfer In to Initiator 57
Fast-20 Synchronous Transfer Out to Target 58
Fast-20 Synchronous Transfer In to Initiator 59
Synchronous Offset . . . . . . . . . . . . 60
Bus Free Phase . . . . . . . . . . . . . . . . . . . 60
Attention Condition (Asserted by Initiator During Any Phase) . 61
End of Attention (Negated by Initiator During Message Out Phase) 61
Initiator Disconnect Message Sequence . . . . . . . . . . . . . . 62
SCSI Configured Auto-Magicall y (SCAM) Sel ection Phase (Initiation) 63
SCSI Configured Auto-Magically (SCAM) End of Initiation 64
SCSI Configured Auto-Magically (SCAM) Transfer Cycl e 65

Bus State Examples . . . . . . . . . . . . . . . . . . 67


Example #1: Arbitrate, Select, IDENTIFY . . . . . . 67
Example #2: TEST UNIT READY Command . . . . . . . . 68

EXAMPLE #4: Reselect I Synchronous Data Transfer


Example #3: Synchronous Data Transfer Request (SDTR) Message 70
72
EXAMPLE #5: MESSAGE OUT Phase Parity Error Recovery 74

EXAMPLE #7: Reselect I Wide (Primary Bus) Synchronous Data Transfer


EXAMPLE #6: MESSAGE IN Phase Parity Error Recovery . . . 76
78
Example #8: Arbitrate, Select, IDENTIFY, SIMPLE (QUEUE TAG) Message 80
EXAMPLE #9: Initiate SCAM Protocol, Isolate, and Assign Bus ID 81

Pointers 84

SCSI Message System 87


Message Lengths . . . . . . . . . 87
One Byte Message Codes (Alphabetic) 87
One Byte Message Codes (Numeric) 88
IDENTIFY Message 89
SCSI-2 Format 89
SCSI-3 Format . . . 89
Two Byt� Message Codes 90
TAG and ACA Message Format 90
IGNORE WIDE RESIDUE Message . 90
Multiple Byte (Extended) Message Codes 91
Multiple Byte (Extended) Message Formats 92
SYNCHRONOUS DATA TRANSFER REQUEST (SDTR) 92
WIDE DATA TRANSFER REQUEST (WDTR) 93
MODIFY DATA POINTER . . . . . . . . . . 93
SCSI Target Response to Attention . . . . 94

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 ENDL Publications


SCSI Commands . . . . . . . . . . . . .
SCSI Command Descriptor Block (COB)
Operation Code
Logical Unit Number
Control Byte
. . .
. . . . . . . .
. . . . . . . . . . .

Commands for All Device Types (alphabetic listing)


95
95
96
96
97

98
I
Commands for All Device Types (numeric listing) 99
INQUIRY Command . . . . . 100
Standard INQUIRY Data Format 101
LOG SELECT Command 105
LOG SENSE Command . . . 106
MODE SELECT(6) Command 107
MODE SELECT(10) Command 107
MODE SENSE(6) Command . 108
MODE SENSE(10) Command . . 108
PERSISTENT RESERVE IN Command . . . . . . . . . . . . . . . 110
PERSISTENT RESERVATION IN Parameters for "Read Keys" Action . . . . 111
PERSISTENT RESERVATION IN Parameters for "Read Reservations" Action 112
PERSISTENT RESERVE OUT Command . . . . . 114
PERSISTENT RESERVATION OUT Parameter List 115
PREVENT/ALLOW MEDIUM REMOVAL Command 116
READ BUFFER Command . . . . . . . . . 116
READ BUFFER Header for Mode 000 117
READ BUFFER Descriptor for Mode 011 117
RECEIVE DIAGNOSTIC RESULTS Command 118
RELEASE(6) Command 119
RELEASE(lO) Command . . . . 119
RELEASE(lO) Parameter List 120
REPORT LUNS Command . . . . 120
REPORT LUNS Parameter List 121
REQUEST SENSE Command 122
RESERVE(6) Command . . . . 123
RESERVE(6) Extent Descriptor Format 123
RESERVE(lO) Command . . . . . . . . . . . . 124
RESERVE(lO) Parameter List and Extent Descriptors 125
SEND DIAGNOSTIC Command . . 126
Diagnostic Page Format . . 127
Diagnostic Page Codes 127
Supported Diagnostic Pages 128
TEST UNIT READY Command . . 128
WRITE BUFFER Command . . . 129
WRITE BUFFER Header for Mode 000 129

Log Select/Log Sense Standard Parameters 131


Log Page Data Format 131
Log Page Header Format 131
Log Parameter Format 132
Paramet�r Codes for Log Pages 133
Log Page Codes . . . . . . . . . . . . . . . . 133
Parameter Codes for Buffer Over-run/Under-run Page 134
Parameter Codes for Error Counter Pages 135
Parameter Codes for Last n Error Events Page 135
Parameter Codes for Non-Medium Error Page 135
Supported Log Pages Page Format . . . . . . 136

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 ENOL Publications


I Mode Select/Mode Sense Standard Parameters
Mode Parameter List Data Format . .
. . . . . . . . . . . . . .
. . . . . . . . . . . . . .
Mode Parameter Header for Use by Six Byte MODE SELECT/SENSE Command
Mode Parameter Header for Use by Ten Byte MODE SELECT/SENSE Command
Device Specific Parameter . . . . . . . . . . . . . . . .
General Mode P'arameter Block Descriptor . . . . . . . . .
SCSI-3 Block Device (Disk) Mode Parameter Block Descriptor
13 7
13 7
138
138
139
140
141
Mode Page Format 142
Mode Page Codes . . . . . . . . 143
Control Mode Page . . . . . . . 144
Disconnect Reconnect Page . . . 146
Informational Exceptions Control Page 148
Power Condition Page . . . . . 149

Commands for Direct Access Devices {alphabetic listing) 151

Commands for Direct Access Devices (numeric listing) 152


Common Fields Used In Direct Access Device Commands 153
COB/Bit Cross Reference . . . . . . . . . . . 154
FORMAT UNIT Command . . . . . . . . . . . . . 156
FORMAT UNIT Defect List Data Transfer Format ' 157
Defect Descriptor - Block Format . . . . . . 159
Defect Descriptor - Bytes From Index Format 159
Defect Descriptor - Physical Sector Format 159
Use of Defect Sources 160
LOCK/UNLOCK CACHE Command 162
PRE-FETCH Command . . 163
READ(6) Command . . . 164
READ(10} Command 164
READ CAPACITY Command 165
READ CAPACITY Data . 165
READ DEFECT DATA Command . . 166
READ DEFECT DATA Defect List 167
READ LONG Command . . . . . . 168
REASSIGN BLOCKS Command . . . 169
REASSIGN BLOCKS Defect List 169
REZERO UNIT Command 170
SEEK(6} Command . . . . . 170
SEEK(10} Command 170
START/STOP UNIT Command . 171
SYNCHRONIZE CACHE Command 172
VERIFY Command 172
WRITE(6) Command 173
WRITE(10) Command . . . 173
WRITE AND VERIFY Command 174
WRITE LONG Command 174
WRITE SAME Command 175

Direct Acc�ss Device Diagnostic Page Codes 176


Translate Address Page - SEND DIAGNOSTIC 176
Translate Address Page - RECEIVE DIAGNOSTIC 177
Drive Status Page - SEND DIAGNOSTIC 178
Drive Status Page - RECEIVE DIAGNOSTIC 179

Log Page Codes for Direct Access Devices 180


Parameter Codes for Format Status Page 180

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 ENOL Publications


Direct Access Device Mode Parameters
Mode Page Codes (alphabetic)
Mode Page Codes (numeric)
Caching Page . . . . . . .
Format Device Page
Notch and Partition Page . .
Read/Write Error Recovery Page
181
181
182
183
186
189
190
I
Rigid Disk Drive Geometry Page 192
Verify Error Recovery Page 193

Commands for Sequential Access Devices (alphabetic listing) 195

Commands for Sequential Access Devices (numeric listing) 196


Common Fields Used in Sequential Access Device Commands 197
COB/Bit Cross Reference 198
ERASE Command . . . . 200
FORMAT MEDIUM Command . 200
LOAD/UNLOAD Command . . 201
LOCATE Command 202
READ Command . . . . . 203
READ BLOCK LIMITS Command 204
READ BLOCK LIMITS Data . 204
READ POSITION Command . . . 205
READ POSITION - Short Data Format 206
READ POSITION - Long Data Format 208
READ REVERSE Command . . . . . . . 210
RECOVER BUFFERED DATA Command . . . 210
REPORT DENSITY SUPPORT Command 211
REPORT DENSITY SUPPORT Returned Data Format 212
REWIND Command . . . . 214
SPACE Command . . . . . 215
VERIFY Command 218
WRITE Command . . . . . 218
WRITE FILEMARKS Command 219

Log Page Codes for Sequential Access Devices 220


Parameter Codes for Sequential Access Device Page 221

Sequential Access Device Mode Parameters 222


Sequential Access Device Density Codes 222
Mode Page Codes (alphabetic) 224
Mode Page Codes (numeric) 225
Data Compression Page . . . 226
Device Configuration Page . 228
Medium Partition Page(l) 230
Medium Partition Page(2-4) . 232
Read Write Error Recovery Page 232

Commands for Processor Devices (alphabetic listing) 234

Commands for Processor Devices (numeric listing) 235


RECEIVE Command . . . . . . . . . . . 236
SEND Command . . . . . . . . . . . . 237
SCSI-2 SEND Command AEN Data Format 237
SCSI-3 SEND Command AER Data Format 238

Status . . . . . . . . . . 239
Status Byte Format 239
Status Byte Code Values 239
Status Definitions 239

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 ENDL Publications


Sense Data and Sense Keys . . . . . . . . . . . . 240
Sense Data Format . . . . . . . . . . . . . . 240
ILLEGAL REQUEST: Fiel d Pointer Bytes 242
RECOVERED ERROR, MEDIUM ERROR, HARDWARE ERROR: Actual Retry Cou nt 242
NOT READY: Progress Indication Bytes 242
Sense Keys (Al phabetic) 243
Sense Keys (Numeric) 244
TEST UNIT READY Responses . . 245

Additional Sense Codes . . . . . . . 247


Sense Codes for Direct Access Devices 247
Sense Codes for Sequential Access Devices 255
Sense Codes for Processor Devices 263
Sense Codes for Processor Devices 264

Unit Attention Condition 267

SBR Order Form 268

I ndex . . 269

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 ENOL Publications


INTRODUCTION 1
Sources for Additional References on SCSI

Copi es of SCSI Sta ndards : Copies of the SCSI-2 and SCSI-3 standards may be ordered from:

Global Engineering Documents


1 5 Inverness Way East
Englewood , CO 80 1 1 2-5704
(800) 854-7 1 79 or (303) 792-21 8 1 voice; (303) 792-2 1 92 facsimile

The following is a list of all relevant SCSI-3 standards and technical reports in the known universe, and
their current document numbers as of April 1 996, for ordering purposes :

Do c ume n t N ame A c ro nym D o c umen t Number


S C S I -3 A r c h i t e c t u re M o d e l S AM X 3 . 2 7 0-19 9 6
Sm a l l Comp u t e r Sys tem I n t e r f a c e - 2 S C S I -2 X 3 . 1 3 1- 1 9 9 4
S C S I -3 P a r a l l e l I n t e r f a c e SPI X 3 . 2 5 3- 1 9 9 6
S C S I -3 F a s t - 2 0 P a r a l l e l I n t e r f a c e F a s t -2 0 X 3 . 2 7 7- 1 9 9 6
SCS I Paral l e l I n terface - 2 S P I -2 X 3 Tl0 / 1 1 4 2 D r e v 6
S C S I En h a n c ed P a r a l l e l I n t e r f a c e EPI X 3 Tl0/ 1 1 4 3 DT r e v 5
S C S I -3 I n t e r l o c k e d P r o t o c o l SIP X 3 Tl0 / 0 8 5 6 D rev 9 a

S e r i a 1 B u s P ro t o c o 1
Fi bre C h a n n e l Protocol FC P X 3 . 2 69-19 9 6
SBP X 3 . 2 68-19 9 x rev 22
S C S I -3 P r i m a ry Comm a n d s S PC X 3 Tl0 / 0 9 9 5 D rev 10
S C S I -3 B l o c k C omm a n d s SBC X 3 Tl0 / 0 9 9 6 D rev 3
S C S I -3 S t re am Comm a n d s sse X 3 Tl0 / 0 9 9 7 D rev 7
S C S I -3 C o n t ro l l e r C omma n d s sec X 3 . 2 7 6-19 9 x rev 6
S C S I -3 M u l t i me d i a C omm a n d s MMC X 3 Tl0/1048D rev 4
S C S I -3 Me d i um C h a n g e r C omm a n d s SMC X 3 T10 / 0 9 9 9 D rev 5
S C S I E n c l o s u re S e rv i c e s S ES n o t a v a i l ab l e
S C S I -3 G r a p h i c s C omma n d s SGC X 3 T10 / 0 9 9 8 D rev 0

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 ENOL Publications


2 I NTRODUCTION

Tech nical Committee X3T1 0: The original SCSI- 1 standard, the SCSI-2 standard, and the new SCSI-3
standards were produced by Technical Committee X3T1 0 (formerly X3T9.2) of the Accredited Standards
Committee X3. The SCSI-3 standards are continuously evolving, and as such are subject to being revised
or changed. For the latest information on the progress of the standards and for information on joining
X3T10, contact:

John B. Lohmeyer, X3T1 0 Chairman


Symbios Logic Inc.
4420 Arrowswest Drive
Colorado Springs, CO 80907-3444
(7 1 9) 533-7000 voice; (71 9) 533-7036 facsimile
john.lohmeyer@symbios.com

There are fees associated with joining X3T1 0 as an observer and receiving the bi-monthly committee
mailings (which are now available on CD- RO M ! yay ! ) . Contact the X3 Secretariat at (202) 626-5741 for
exact prices. To become a voting member of X3T1 0, you must attend the committee meetings. Check the
SCSI BBS or X3T 1 0 web site (below) , or call John Lohmeyer for more information.

Latest, U p to the Mi n ute Electronic Information: For the serious user, there is an electronic Bulletin
Board System (BBS) operated by Symbios Logic. The latest electronic versions of SCSI-3 and related
working documents are available for download from the BBS.

SCSI BBS: (7 1 9) 533-7950 (300 baud - 28.8 Kbaud)

There is also an e-mail reflector on the I nternet. The traffic on the reflector is mostly related to current
topics and upcoming meetings. To join the reflector, just send a message to majordomo@symbios.com,
and include "subscribe scsi" in the message body.

Draft standards are available from an ftp site maintained by Symbios Logic. To access the site, ftp to the
following U RL:

ftp: / /ftp.symbios. comjpub/standards/io/

This information is also accessible from the World Wide Web site :

http : / ;www.symbios. com/x3t1 0/.

A SCSI newsgroup exists on Usenet called comp. periphs. scsi . Most of the traffic on this group is related
to user issues (e. g . , how to set up a particular disk drive) , but general technical questions are often
answered as well. Discussions on SCSI have also been seen on the comp. arch . storage newsgroup.

The SCSI Tra'de Association has been established to promote the understanding and use of parallel
SCSI. For more information call (507) 931 -0967; e-mail tforums@ic.mankato. m n . us. There is also a web
page at:

http : / ;www.scsita.com/

Be s u re to ch eck FaxAccess at 408-741-1 600 menu #5 for the latest set of i nformatio n on what
ENOL Publications h as to offer. It is a lways possible you wi ll fi nd additional refere n ce materia l on
SCSI which ca n assist you.

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 ENOL Publications


I NTRODUCT I O N 3
SFF Committee I n d u stry G r o u p: The SFF is an ad hoc industry group which crafts specifications for
various interconnects, particularly for the disk drive industry. The SFF SCA (Single Connector Attach) is
used by many SCSI disk drives, as described in SFF-80 1 5 and SFF-8046.

Copies of published SFF Specifications may be ordered from Global Engineering Documents, as
described on page 1 . The SFF Committee only provides copies of Specifications via a Documentation
Service. Individual copies of SFF Specifications under development are not sold, although they are
available over FaxAccess.

Be s u re to check FaxAccess at 408-741 - 1 600 menu #8 for the latest set of information o n what
ENOL P u blications has to offer. It is always possible you will find additio nal reference material on
SFF which ca n assist you.

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 ENOL Publications


4 I NTRODUCTION

SCSI-3 Road map

Transports Command Sets

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 ENO L Publications


INTR O D U CTION 5
SCSJ-3 Document S u m mary
For those of you (and u s ! ) who grew up with SCSI-2 and want to make sense out of the mass of SCSI-3
documents, we feature a brief summary:
• SAM : SCSI-3 Architecture Model. This document attempts to describe SCSI via a formal model
(didn't think it could be done, did you?) . It also contains the CDB formats, Auto Contingent
Allegiance rules, and command queuing rules (now called "Task Set Management"). In essence,
SAM ties all of the various SCSI-3 standards into one (hopefully) cohesive whole.
• S P I : SCSI-3 Parallel I nterface. This document includes the single cable 1 6-bit "Wide" SCSI
definition, and also improved single-ended electrical and cable specs. Also, buried in an Annex, is
SCAM (SCSI Configured Auto-Magically) ; SCAM does not appear in a separate document. (Yes, we
know that S PI says "Auto-Matically", but we like the original non-stuffy name better!)
• Fast-20: SCSI-3 Fast-20 Parallel I nterface. This document is an "add-on" to SPI that includes the
electrical , cable, and timing specs for running the SCSI bus at 20 megatransfers per second.

• S P I-2 : SCSI Parallel I nterconnect 2. This document will define a new type of differential interface
that can be integrated into a single package. Also will contain Fast-40 and possibly Fast-80 timing.
SPI-2 will replace S PI , and also contains several corrections to SCAM .

• S I P : SCSI-3 1nterlocked P rotocol. This document contains the rules for use of the SPI transfer
modes and for the message system. Really nothing new here, SIP mostly exists to hold the layer
between the parallel interconnect and the commands.

• SPC: SCS I-3 Primary Comma nds. This document is a compendium of all the commands that are
common to all device types.
• SBC: SCSI-3 Block Comma nds. This document contains commands used by block devices:
Direct-Access devices (you know, "hard disk drives") , Optical, and Write-Once Read-multiple disks.
• SSC: SCSI-3 Strea m Comma nds. This document contains commands used by stream devices:
Sequential Access devices (tapes) , printers , and communication ports.
• SCC: SCSI-3 Co ntroller Commands. This document contains commands used by array
controllers, such as RAI D controllers.
• M M C: SCS I-3 Mu ltimedia Comma nds. This document contains commands used by CD-ROM and
CO-Recordable devices.
• SMC: SCSI-3 Medium Changer Comma nds. This document contains commands used by
medium changer devices.
Other standards are used to connect transport layers other than parallel SCS I . A popular example is Fibre
Channel ; the FCP document describes how to use Fibre Channel instead of parallel SCSI. If you want to
know more, this would be a good time to buy a copy of The Fibre C h a n nel Bench Reference I
So, how do you tie all of these together? A couple of examples :

• To make a Fast-20 parallel wide SCSI disk drive, you need: SAM , SPI, Fast-20, SIP, SPC, and SBC.
• To make a Fibre Channel Arbitrated Loop tape drive, you need : SAM , FC-PH, FC-AL, FCP, SPC,
and sse.

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 ENDL Publications


6 I NTRODUCTION

SCSI-3 Features Not I ncluded


• Auto Contingent Allegiance (ACA)
• SCSI-3 Secondary Bus pinout
• Commands for All Devices :
• CHANGE DEFI N ITION
•COPY, COM PARE, COPY AND VERI FY
• I N Q U I RY : VPD Data Format
• MOVE M E D I U M and READ ELEMENT STATUS
• Disk Commands:
• SEARCH DATA
• S ET LI MITS
• XOR Commands (not ready at press time)
• Printer Commands
• Write Once Device Commands
• CD ROM Commands
• Optical Memory Device Commands
• Medium Changer Commands
• Communication Device Commands
• Array Controller (RAI D) Commands
• Enclosure Services Commands

Style Notes
• Command tables have been expanded : In the SCSI standards, multiple byte fields are compressed
to look like a two byte field. In this reference, these fields are expanded to full size. This is done to
eliminate errors ; the eye can see relative field sizes directly.

• Certain fields are self-explanatory. I n these cases, the fields are not described in the text.

• Various tables in this reference include a pointer to the SCSI-3 document and section in which the
table item is defined; for example, "SPC 7. 1 " refers to the SCSI-3 Primary Commands, section 7. 1 .

• In SCSI-3, the "Logical U nit N umber" fields are no longer used, and have been reclaimed. We have
maintained them in our CDB tables, but have put braces { } around them to remind you they are
reserved in SCSI-3.

• When a name or term has changed from SCSI-2 to SCSI-3, the SCSI-3 term is shown in brackets [] .

• This reference is accurate as of the document versions indicated on page 1 . The section on SCAM
is accurate as of the March 1 4, 1 996 amendment.

• This is the Third (!) Edition.

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 EN OL Publications


SYSTEM LAYO UT 7
System Layout Examples

Typical Desktop Confi g u ratio n

at least
TERMINATOR 0.3 m long (12")
INSTALLED
HERE INTERNAL
RIBBON
CABLE

INTERNAL
SCSI
DISK
TERMINATOR
SCSI INSTALLED
HOST HE RE
----....-r-1
A DA PTOR

SYSTEM EXTERNAL EXTERNAL


UNIT SCSI SCSI
CDROM OPTICAL
DISK
1. Every cable segment should be at least 0.3m (12 in.) long.

2. Total length of all cables is less than 6m (20ft) for single ended, 25m (85 ft) for differential.

3. Avoid running flat ribbon or other unshielded cables close to metal chassis because it will
lower cable impedance.

Typical "Add On" Configuratio n

TE R MINATOR
INSTALLED
HERE

SCSI
HOST
ADAPTOR---....-�


�I
SYSTEM UNIT CDROM TAPE

SCSI Bench Reference Copyright © 1989, 1992, 1996 ENOL Publications


8 CON N ECTOR P I N O UTS

Connector Pin Numbers

SCS I-2 S i n gle Ended 50- p i n "A" Cable Con necto r P i n o uts

Low Density (0.1 " S pacing) Unsh ielded Header

S i g n a l Name P i n N umber S i g n a l N ame


G ro u n d 1 2 -DB 0
G ro u n d 3 4 -DB 1
Ground 5 6 -DB 2
G ro u n d 7 8 -DB 3
G ro u n d 9 10 -DB 4
G ro u n d 11 12 -DB 5
Ground 13 14 -DB 6
-DB p
Ground 15 16 -DB 7
G ro u n d 17 18
G ro u n d 19 20 G ro u n d

{*)
G ro u n d 21 22 G ro u n d
Re s e rv e d ( * ) 23 24 Reserved

{*)
Open 25 26 T E RM P W R
Re s e rv e d ( * ) 27 28 Re s e rv e d
G ro u n d 29 30 G ro u n d
G ro u n d 31 32 -ATN
G ro u n d 33 34 G ro u n d
G ro u n d 35 36 -BSY
G ro u n d 37 38 -AC K
G ro u n d 39 40 -RST
G ro u n d 41 42 -MSG
Gro u n d 43 44 -S E L
G ro u n d 45 46 -C/D
G ro u n d 47 48 -REQ
G ro u n d 49 50 -1/0

( * ) " Reserved": SCS I-3 requires that t h e "Reserved" pins be l e ft open. They m ay be g rounded in earlier
SCSI-1 and SCSI-2 designs. New designs should leave these open.

SCSI Bench Reference Copyright © 1989, 1992, 1 996 EN DL Publications


CO N N ECTOR P I N O UTS 9

Low Density (0.085" S paci ng) " D " Styl e Sh ielded


H ig h Density (0.05" S pacing) " D " Style Shiel ded and U n s h i e l ded

Sig n a l Name P i n Number S i g n a l N ame


G ro u n d 1 26 -DB 0
G ro u n d 2 27 -DB 1
G ro u n d 3 28 -DB 2
G ro u n d 4 29 -DB 3
G ro u n d 5 30 -DB 4
G ro u n d 6 31 -DB 5
G ro u n d 7 32 -DB 6
-DB p
G ro u n d 8 33 -DB 7
G ro u n d 9 34
G ro u n d 10 35 G ro u n d
G ro u n d 11 36 G ro u n d
Re s e r v e d ( * ) 12 37 Re s e rv e d ( * )
Open 13 38 T E RM P W R
Re s e r v e d ( * ) 14 39 Re s e rv e d ( * )
G ro u n d 15 40 G ro u n d
G ro u n d 16 41 -AT N
G ro u n d 17 42 G ro u n d
G ro u n d 18 43 -BSY
G ro u n d 19 44 -AC K
G ro u n d 20 45 -RST
G ro u n d 21 46 -MSG
G ro u n d 22 47 -S E L
Ground 23 48 -C / D
G ro u n d 24 49 -REQ
G ro u n d 25 50 -I/O

(*) " Reserved": SCS I-3 requires that the " Reserved" pins be left open. They may be g rounded in earlier
SCSI-1 and SCSI-2 designs. New designs should leave these open.

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 EN DL Publications


10 CON N ECTOR P I NOUTS

SCSI-2 Differential 50- p i n " A" Cable C o n nector P i n o uts

Low Density (0. 1 " S paci ng) U n shiel ded Header

S i g n a l N ame P i n Number S i g n a l Name


S h i e l d G ro u n d 1 2 G ro u n d
+DB ( O 3 4 -DB 0
+DB ( l 5 6 -DB 1
+DB 2 7 8 -DB 2
+DB 3 9 10 -DB 3


+DB 4 11 12 -DB 4
+DB 5 13 14 -DB 5
+DB 6 15 16 -DB 6
+DB 7 17 18 -DB 7
+DB ( P 19 20 -DB P
D I FFS ENS 21 22 Ground
Reserved (* ) 23 24 Re s e rv e d ( * )
T E RM P W R 25 26 T E RM P W R
Re s e rv e d ( * ) 27 28 Re s e rv e d ( * )
+AT N 29 30 -ATN
G ro u n d 31 32 G ro u n d
+BSY 33 34 -BSY
+AC K 35 36 -AC K
+RST 37 38 - RS T
+MS G 39 40 -MSG
+S E L 41 42 -SEL
+C/D 43 44 -C/0
+REQ 45 46 - R EQ
+ I /O 47 48 - 1 /0
Ground 49 50 G ro u n d

(*) "Reserved": SCSI-3 requires that the "Reserved" pins b e left open. They may b e grounded in earlier
SCSI-1 and SCSI-2 designs. New designs should leave these open.

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 ENDL Publications


CON N ECTO R P I N O UTS 11

Low Density (0.085" S pacing) " D " Style S h i e l ded


High Density (0.05" S pacing) " D " Styl e Shielded and U n s h i e l d e d

S i g n a l N ame P i n N umb e r S i g n a l N ame


Shi el d Ground 1 26 G ro u n d
+DB 0 2 27 -DB 0
+DB 1 3 28 -DB 1
+DB 2 4 29 -DB 2
+DB 3 5 30 -DB 3
+DB 4 6 31 -DB 4
+DB 5 7 32 -DB 5
+DB 6 8 33 -DB 6
+DB 7 9 34 -DB 7
+DB P 10 35 -DB P
DI FFSENS 11 36 G ro u n d
Reserved (* ) 12 37 Re s e r v e d ( * )
T E RM P W R 13 38 T E RM P W R
Reserved (* ) 14 39 Reserved (*)
+ATN 15 40 -ATN
Ground 16 41 G ro u n d
+BSY 17 42 -BSY
+AC K 18 43 -ACK
+RST 19 44 -RST
+MSG 20 45 -MSG
+S E L 21 46 -SEL
+C / D 22 47 -C/D
+REQ 23 48 - R EQ
+ I /O 24 49 - I /O
Ground 25 50 G ro u n d

(*) "Reserved": SCSI-3 requires that the "Reserved" pins b e left open. They may b e g rounded in earlier
SCSI-1 and SCSI-2 designs. New designs should leave these open.

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 EN OL Publications


12 CON N ECTOR PI NOUTS

SCS I -3 S i n g l e Ended 68- p i n P ri mary B u s ( " P Cable") Co n n ecto r P i n o uts

High D e n s ity (0.05" Sp a ci n g ) "D"Style Shielded and Unshielded

S i g n a l Name P i n Number S i g n a l N ame


G ro u n d 1 35 -DB 1 2
Ground 2 36 -DB 13
G ro u n d 3 37 -DB 1 4
G ro u n d 4 38 -DB 15
G ro u n d 5 39 -DB P 1
G ro u n d 6 40 -DB 0
Ground 7 41 -DB 1
G ro u n d 8 42 -DB 2
G ro u n d 9 43 -DB 3
Ground 10 44 -DB 4
Ground 11 45 -DB 5
G ro u n d 12 46 -DB 6
G ro u n d 13 47 -DB 7
Ground 14 48 -DB P
Ground 15 49 Ground
Ground 16 50 G ro u n d
T E RMPWR 17 51 T E RMPWR
T E RMPWR 18 52 T E RM P W R
Reserved ( * ) 19 53 Re s e rved ( * )
G ro u n d 20 54 Ground
G ro u n d 21 55 -ATN
G ro u n d 22 56 Ground
G ro u n d 23 57 -BSY
Ground 24 58 -AC K
Ground 25 59 -RST
Ground 26 60 -MSG
G ro u n d 27 61 -SEL
G ro u n d 28 62 -C/ D
G ro u n d 29 63 - R EQ
Ground 30 64 - 1 /0
Ground 31 65

=��� � �
Ground 32 66
Ground 33 67 -DB 1 0 )
G ro u n d 34 68 -DB 11)

(*) "Reserved": SCSI-3 requires that the "Reserved" pins be left open. They may be grounded in earlier
designs. New designs should leave these open.

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N O L Publications


CON N ECTOR P I NOUTS 13

SCSI-3 Differential 68-pln Primary Bus ("P Cable") Con necto r P i n o uts

High Density (0.05" S pacing) "D"Style Sh ielded and U nshielded

S i g n a l Name P i n Numbe r S i g n a l N ame


+DB 1 2 1 35 -DB 1 2
+DB 1 3 2 36 -DB 13
+DB 1 4 3 37 -DB 14
+DB 15 4 38 -DB 15
+DB P l 5 39 -DB Pl
Ground 6 40 Ground
+DB 0 7 41 -DB 0
+DB 1 8 42 -DB 1
+DB 2 9 43 -DB 2
+DB 3 10 44 -DB 3
+DB 4 11 45 -DB 4
+DB 5 12 46 -DB 5
+DB 6 13 47 -DB 6
+DB 7 14 48 -DB 7
+DB P 15 49 -DB P
D I FFS ENS 16 50 G ro u n d
T E RM P W R 17 51 T E RM P W R
T E RM P W R 18 52 T E RM P W R
Reserved ( * ) 19 53 Re s e rv e d ( * )
+ATN 20 54 -ATN
Ground 21 55 Grou n d
+BSY 22 56 -BSY
+AC K 23 57 -ACK
+RST 24 58 -RST
+MSG 25 59 -MSG
+S E L 26 60 -SEL
+C/D 27 61 -C/D
+ R EQ 28 62 - R EQ
+ I /O 29 63 - 1 /0


!+DB� � ��1 0 ) �
Ground 30 64
=�- D B� �1 0� )
Ground
31 65
32 66
33 67
+DB 1 1 ) 34 68 -DB 1 1 )

(*) "Reserved": SCSI-3 requires that the "Reserved" pins b e lett open. They may b e grounded in earlier
designs. New designs should leave these open.

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 ENDL Publications


14 CON N ECTOR PI NOUTS

SFF-801 5 Single Ended 80-pln SCA Connecto r P i n o ut

NC = No Connect

S i g n a l Name P i n N umber S i g n a l Name


12V 1 41 Ground for 12V
12V 2 42 Ground for 12V
12V 3 43 Ground for 12V
12V 4 44 G ro u n d · fo r 1 2 V
Re s e rv e d / N C 5 45 Res e r v e d / N C

- r� l
Res e r v e d / N C 6 46 Ground
7 47 G ro u n d
- oD B 1 0 8 48 G ro u n d
-DB 9 9 49 Ground
-DB 8 10 50 Ground
- I /O 11 51 Ground
-REQ 12 52 Ground
-C/D 13 53 Ground
-SEL 14 54 Ground
-MSG 15 55 G ro u n d
-RST 16 56 Ground
-AC K 17 57 Ground
-BSY 18 58 Ground
-ATN 19 59 G ro u n d
-DB P 20 60 Ground
-DB 7 21 61 Ground
-DB 6 22 62 Ground
-DB 5 23 63 G ro u n d
-DB 4 24 64 G ro u n d
-DB 3 25 65 G ro u n d
-DB 2 26 66 G ro u n d
-DB 1 27 67 Ground
-DB 0 28 68 Ground
-DB P l 29 69 Ground
-DB 15 30 70 Ground
-DB 14 31 71 G ro u n d
-DB 13 32 72 G ro u n d
sv
-DB 1 2 33 73 Ground
34 74 Ground for 5V
sv
5V 35 75 Ground for 5V
36 76 G r o u n d for 5 V
S P I ND L E S Y N C 37 77 ACT I V E L E D OUT
RMT START
S C ST_I D O
SCSI ID 2
f� 38
39
40
78
79
80 SCS I I D 3
f�
D L Y D START
scs r :::: I D 1

Note: Termination Power i s not supplied. Terminators are powered on the platform backplane only.

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 EN DL Publications


CON N ECTOR P I NOUTS 15

SFF-801 5 Differential SO-pin SCA Con necto r P i n o ut

NC = No Connect

S i g n a l N ame P i n Number S i g n a l N ame


12V 1 41 G ro u n d for 1 2 V
12V 2 42 G r o u n d for 1 2 V
12V 3 43 G ro u n d for 1 2 V
12V 4 44 G ro u n d fo r 1 2 V

!
Res e r v e d / N C
Res e r v e d / N C
-DB l l )
-DB 1 0 )
5
6
7
8
45
46
47
48
49
!
Re s e rv e d / NC
D I FFS E N S
+DB l l )
+DB 10)
-DB 9 ) 9 +DB 9 )
-DB 8 ) 10 50 +DB 8 )
- I /O 11 51 + I /O
-REQ 12 52 + R EQ
-C/D 13 53 +C/D
-SEL 14 54 +S E L
-MSG 15 55 +MSG
-RST 16 56 +RST
-ACK 17 57 +AC K
-BSY 18 58 +BSY
-ATN 19 59 +ATN
-DB P 20 60 +DB P
-DB 7 21 61 +DB 7
-DB 6 22 62 +DB 6
-DB 5 23 63 +DB 5
-DB 4 24 64 +DB 4
-DB 3 25 65 +DB 3
-DB 2 26 66 +DB 2
-DB 1 27 67 +DB 1
- DB 0 28 68 +DB 0
-DB P 1 29 69 +DB P 1
-DB 1 5 30 70 +DB 1 5
-DB 1 4 31 71 +DB 1 4
-DB 1 3 32 72 +DB 1 3
-DB 1 2 33 73 +DB 1 2
5V 34 74 G ro u n d f o r 5 V
5V 35 75 G r o u n d for 5 V
5V 36 76 G r o u n d for 5 V
S P I ND L E S Y N C 37 77 ACT I V E L E D OUT
R M T S T A RT 38 78 DLYD S T A RT
S C SI I D ( O ) 39 79 S C S () D ( l )
S C S () D ( 2 ) 40 80 SCS I I D (3)
Note: Termination Power i s not supplied. Terminators are powered o n the platform backplane only.

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N O L Publications


16 CON N ECTOR PI NOUTS

SFF-8046 Single Ended 80-pin SCA Con necto r P i n o ut

NC No Connect
=

L Long Host Receptacle Contact; blank means Short Host Receptacle Contact
=

S i g n a l Name P i n Number S i g n a l Name


12V CHARG E 1 L L 41 G ro u n d for 1 2 V
12V 2 L 42 G r o u n d fo r 1 2 V
12V 3 L 43 G r o u n d fo r 1 2 V
12V 4 44 MAT E D 1
OPT 3 . 3V 5 L 45 OPT 3 . 3 V C H A RG E
OPT 3 . 3V 6 L 46 G ro u n d
7 47 G ro u n d

=������
8 48 G ro u n d
-DB 9 ) 9 49 Ground
-DB 8) 10 50 Ground
- I /O 11 51 Ground
- R EQ 12 52 Ground
-C/D 13 53 Ground
-SEL 14 54 Ground
-MSG 15 55 G ro u n d
-RST 16 56 Ground
-AC K 17 57 G ro u n d
-BSY 18 58 G ro u n d
-ATN 19 59 G ro u n d
-DB P 20 60 G ro u n d
-DB 7 21 61 G ro u n d
-DB 6 22 62 G ro u n d
-DB 5 23 63 G ro u n d
-DB 4 24 64 G ro u n d
-DB 3 25 65 G ro u n d
-DB 2 26 66 Ground
-DB 1 27 67 Ground
-DB 0 28 68 Ground
-DB P 1 29 69 Ground
-DB 1 5 30 70 Ground
-DB 1 4 31 71 Ground
- DB 1 3 32 72 G ro u n d
-DB 12 33 73 Ground
5V 34 74 MAT E D 2
5V 35 L 75 G ro u n d for 5 V
5 V C H A RG E 36 L L 76 G ro u n d f o r S V
S P I NDLE SYNC 37 L L 77 ACT I V E L E D OUT
RMT START 38 L L 78 DLYD START
S C ST I D ( O ) 39 L L 79 S C S () D ( l )
S C S I_ I D ( 2 ) 40 L L 80 SCS I I D (3)
Note: Termination Power is not supplied Terminators are powered o n the platform backplane only.
.

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 ENOL Publications


CON N ECTOR P I N O UTS 17

SFF-8046 Differential 80-pin SCA Connecto r Pi n out

NC = No Connect

S i g n a l N ame P i n Number S i g n a l N ame


12V 1 41 G ro u n d for 1 2 V
12V 2 42 G ro u n d f o r 1 2 V
12V 3 43 G ro u n d f o r 1 2 V
12V 4 44 G ro u n d f o r 1 2 V
Res e r v e d / N C 5 45 Res e r v e d / N C
Res e r v e d / N C 6 46 D I FFS ENS
-DB 1 1 ) 7 47 +DB 1 1 )
-DB 1 0 ) 8 48 +DB 1 0 )
-DB 9 ) 9 49 +DB 9)
-DB 8) 10 50 +DB 8)
- I /O 11 51 + I /O
- R EQ 12 52 + R EQ
-CI D 13 53 +C / D
-SEL 14 54 +S E L
-MSG 15 55 +MSG
-RST 16 56 +RST
-AC K 17 57 +AC K
-BSY 18 58 +BSY
-ATN 19 59 +ATN
-DB P 20 60 +DB P
-DB 7 21 61 +DB 7
-DB 6 22 62 +DB 6
-DB 5 23 63 +DB 5
-DB 4 24 64 +DB 4
-DB 3 25 65 +DB 3
-DB 2 26 66 +DB 2
-DB 1 27 67 +DB 1
-DB 0 28 68 +DB 0
-DB P 1 29 69 +DB P 1
-DB 1 5 30 70 +DB 1 5
-DB 1 4 31 71 +DB 1 4
-DB 1 3 32 72 +DB 13
-DB 1 2 33 73 +DB 12
5V 34 74 G ro u n d f o r 5 V
5V 35 75 Ground for 5V
5V 36 76 G ro u n d f o r 5 V
S P I N D L E S Y NC 37 77 AC T I V E L E D OUT
RMT S T A RT 38 78 DLYD S T A RT
S C ST_I D ( O ) 39 79 S C S () D ( 1 )
SCS I I D (2 ) 40 80 SCSI I D (3)
Note: Termination Power is not supplied. Terminators are powered o n the platform backplane only.

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N O L Publications


18 CON N ECTOR PI NOUTS

SCSI-3 Cabl ing Status

The SCSI-2 standard contains a solution for 16-bit and 32-bit bus "wide" extensions, known as the
"A/8 Cable" solution. This method adds a second 58-conductor "B Cable" to the SCSI-1 50-conductor "A
Cable" set. This second cable is used whether the bus size is 16-bits or 32-bits.

This solution fell out of favor with the SCSI-3 committee (and indeed the industry ! ) , which then
developed the SCSI-3 Primary Bus (formerly called the " P Cable") which is well on its way to becoming a
published standard. To get to 32-bits, you add the SCSI-3 Secondary Bus, which adds the extra data bits
and a second REO/ACK pair (called REQQ and ACKQ) .

The industry standard today is the SCSI-3 Primary Bus, which is used for all "wide SCSI" applications.
I n fact, the A Cable and P Cable (with its SCA variations) account for virtually all cabling today.

SCSI Bench Reference Copyright © 1989, 1992, 1996 E N O L Publications


ELECTRI CAL CHARACTERISTICS 19
Electrical Characteristics

SCSI-3 Single Ended I nterface

S IGNAL OUT

S ig n a l Negat i o n

,- I
3 . 7V max

\ I
f a l s e ------- 2 . 5V
\ I
output m i n imum

\ I
\ I
true ------ 0 . 5V
o . ov m i n_
output max imum
at 4 8 mA s inking

S ig n a l A s s e r t i o n

S I GNAL I N

S i gna l Negated S i gna l Negated

\ I
\ I
\ I
i nput fa l s e 1 . 9 V m i n imum

switch i ng thresho l d -------


\ 1
1 . 4 V nom i n a l

i nput true ------ 1 . OV max imum

S ig n a l As s e rted

S I GNAL IN - HYSTERE S I S

S igna l Negated S ignal Negated

\ I
\ I

\ 1\ 1\ I
\1 \ I \1
3 0 0 mv
m i n i mum

S ig n a l A s s erted

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 ENDL Publications


20 E LECT R I CAL CHARACTERISTICS

Other Single Ended electrical characteristics :

(1 ) Input low current is ±20 J.LA when Vin = 0.5V.

(2) I nput high current is ±20 J.LA when Vin = 2. 7V.

(3) Input peak current 1 0 ns after hot plugging is + 1 .5 mA when Vin = 2. 7V. M aximum transient duration
to 1 0% of peak current value is 20 J.LS.

(4) Devices should meet notes (1 ) and (2) even when powered down, except during hot plugging.

(5) An actively-negated output driver loaded at 7.0 mA has an output voltage between 2.0V and 3.24V.
Loaded at 20mA or more, it has an output voltage less than 3.0V. (This does not mean the driver has
to source 20mA, but if it can, this spec keeps it from being too powerful to burn a terminator! )
Actively-negated drivers should not source current above 3. 7V.

(6) The Fast-20 rise rate of a SCSI-3 output driver going between 0. 7V and 2.3V is 520 mV /ns or less;
the fall rate going between 2.3V and 0.7V is also 520 mV/ns or less. The SPI rise ti me is 5 ns
minimum between 1 0% and 90% of the full amplitude; the fall time between 90% and 1 0% of full
amplitude is also 5 ns minimum.

(7) Terminators each supply up to 24 mA (48 mA total) to any driver when signal line is pulled below 2.5V
by the driver. Note that the old 220/330 Ohm terminators are no longer allowed on a SCSI-3 Fast-20
bus.

(8) Terminators source no current when the signal is above 3. 24V. Minimum release voltage is 2.5V,

(9) Input capacitance is 25 pF maximum per input or terminator, measured at the connector, including
any PCB or stub effects. For Fast-20, getting below 15 pF is a good idea.

(1 0) Devices provide 1 .5A of Terminator Power (T ERM PWR) at 4.25V to 5. 25V. Current limiting should be
2.0A (via fuse, etc.). If no internal terminator is installed, then a device may not sink more than 1 .0mA
from the TERMPWR line. TER M PWR should be decoupled at each terminator with 2.2 J.L F and 0.01 11-F
capacitors.

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 ENDL Publications


ELECTRICAL CHARACTER I STICS 21

Single Ended Cable Characteristics


(1 ) SPI Cable impedance is 72 to 96 ohms, measured with one conductor of each pair grounded.
Maximum impedance difference between any two signals i s 1 2 ohms. Best results have been found
when the cable impedance is between 75% and 1 00% of the termination impedance. The exact
percentage is affected by cable attenuation, type of terminator, TERM PWR voltage level, cable
insulation and routing, the low voltage level of the single ended driver, and whether the cable is round
or flat. The phase of the moon has no effect known at this time. In other words, 75% to 1 00% is a
guideline only. Results of testing by members of X3T1 0 has shown that a cable impedance of 84
ohms works well with active termination.

(2) Fast-20 cable impedance is 80 to 1 00 ohms for all signals except REO and ACK, which must be
between 84 and 96 ohms.

(3) The maximum propagation delay of any conductor is 5.4 nsjm. The maximum propagation skew
between any two signals is 0. 1 5 ns/m.

(4) Terminator Power conductor size must be at least 28AWG (0.08098 mnf) in 50 conductor cables, and
must be at least 30AWG (0.05092 mnf) in 68 conductor cables.

(5) Cable must be spaced at least 0.050 inches (1 .25 mm) from itself, other cables, or any other
·

conductor (for example, a metal computer enclosure) .

(6) Stubs must be no longer than 4 inches (0. 1 m). Stubs must be spaced at least 1 2 inches (0.3 m)
apart. In other words, use at least a one foot cable between each device. Avoid stub clustering.

(7) The "nominal" maximum cable length for 5 megatransfer/second (5 MT/s) systems is Sm. For 1 0
MTjs systems, it i s 3m. For 20 MT/ s systems (Fast-20) , it i s 1 .5m. Some demonstrations have shown
that longer cables are possible at the higher rates. Proceed with caution, because what can be
acheived is a function of many interacting parameters. It pays to do your homework well l

(8) The conductors for REO and ACK should be i n the cable core of a round cable, and if there are more
than 3 pairs in the core, should not be adjacent. The data bus (DB) signals should be in the outer
layer.

A complete writeup on cabling and termination can be found in Volume I of The SCSI Encyclopedia.

Active Single Ended Terminatio n Products


These products are included here as a guide only. We have not tried them and do not endorse them. We
include them because we recognize that having a few part numbers as a starting place can be very
helpful when dealing with any vendor. Note that some of the following part numbers may be better suited
to a particular interface (e.g . , Fast-20) , and may come in 9-pin, 1 8-pin, and/or 27-pin versions. As always,
you should contact the vendor for the latest specifications.

Unitrode: UCC5606/ 1 4, UCC561 0/ 1 1 / 1 7 / 1 8, UCC561 9/20/21 /22

Dallas: DS21 1 4Z, DS2 1 09

Linfinity: LX5207, L..X5208, LX51 2/51 3

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N O L Publications


22 ELECTR I CAL CHARACTERI STICS

Fast-20 Single Ended Timing Measu rement Poi nts

I
I
I \\
\
\
< -As sert i o n P e r i o d - > 1 /
1 . 9V
\
\\
\

I
\
/

\ I
1 . 6V

=r
3V I 3V
- REQ or

I
-ACK 1.
\
1.

I \
I
l . OV
< -Nega t i o n Peri \\___
< - - s etup - - > < - -H o l d - - >

\\ I \\ I \\
-

I I
\\ \\ I \\
I I
\ XI I
1 . 9V

\ XI \X 1 . 6V

I \ I I \
-DB ( X )

I \ I \\ I \
1 . 3V

I I I
I \ I \ I
l . OV

_/

Data Setup: M easured from the 1 .3V point of the falling (assertion) edge of REO/ ACK to the 1 .0V point
(data is asserted) or 1 .9V point (data is negated) of the data signal.

Data Hold: M easured from the 1 .0V point of the falling (assertion) edge of R EO/ACK to the 1 .6V point
(data was asserted) or 1 .3V point (data was negated) of the data signal.

Assertion Period: M easured from the 1 .0V point of the falling (assertion) edge of REO/ACK to the 1 .6V
point of the rising (negation) edge of REO/ACK.

Negation Period : Measured from the 1 .9V point of the rising (negation) edge of REO/ACK to the 1 .3V
point of the falling (assertion) edge of REO/ACK.

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N O L Publications


ELECTRICAL CHARACTERISTICS 23
Futu re SCSI-3 Parallel P hysical I nterface Development
The current state of parallel interface development is focused in two areas: a new kind of differential
interface, and a new method for expanding parallel busses.

SPI-2 (SCSI Parallel Interconnect 2) contains a parallel low voltage differential (LVD) interface that uses a
low voltage swing which allows lower cost, more highly integrated devices to be produced. This LVD

I
interface should be able to operate at higher transfer rates and longer distances than single-ended
interfaces.

EPI (Enhanced Parallel Interface) introduces the concept of 'bus segments', where each bus segment
has its own TERM PWR distribution, and they are separated from one another by active components. EPI
is also expected to further define "hot-plugging", and to describe ways of extending SPI and Fast-20
beyond the limits defined in those standards.

Differential I nterface

S I GNALS OUT

+ S I GNAL

\ I \
--

\ I \

\ I \ -55
h i gh l ev e l 2 . 7 V m i n imum
at rnA

\ I \

\ +55
l ow l ev e l 1 . 7 V max imum
\_ at rnA

- S I GNAL

I \ I
I \ I

I \ I -55
h igh l evel 2 . 7 V min imum
at rnA

I \ I
\ +55
l ow l evel 1 . 7V maximum
at rnA

S ignal Negat i o n S ignal A s s er t i o n

( - S I GNAL) ( + S I GNAL)
- ( + S I GNAL ) > 1. ov - ( - S I GNAL ) > 1. ov

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N O L Publications


24 ELECT R I CA L C HARACTERISTICS

S I GNALS IN

+SIGNAL

I
\ I \

\. ________________ �

-SIGNAL
I \ I

\ ________________ _J

Signal Negated Signal Asserted


(-SIGNAL} (+SIGNAL) (+SIGNAL) (-SIGNAL}
> >

Oth er Differe ntial e lectrical characteristics :

(1 ) Input low or high current is ±2.0 mA when Vin is between -7.0V and + 1 2.0V.

(2) Terminators supply a total of 36.2 mA to the driver of the + SIG NAL line when pulled asserted.

(3) Terminators supply a total of 29.6 mA to the driver of the -SIG NAL line when pulled asserted.

(4) I nput capacitance is 25 pF maximum per input, measured at the connector, including any PCB or stub
effects.

(5) Devices should meet note (1 ) even when powered down .

(6) Differential output voltage (absolute value of ( + S IGNAL) minus (-SIG NAL) ) is 1 .0V minimum with
common mode voltage ranges from -7.0V to 1 2.0V. +
(7) Hysteresis of inputs is 35mV minimum.

(8) When a signal is released , the -SIG NAL is between 3.5V and 2. 1 V, and the + SIG NAL is between 2.4V
and 1 .4V. N ote that the voltages tend to track so that the proper difference is maintained.

(9) Devices provide 1 .0A of Terminator Power (TERM PWR) at 4.00V to 5 .25V. Current limiting should be
2.0A (via fuse, etc. ) . If no internal terminator is installed , then a device may not sink more than 1 .0mA
from the TER M PWR line .

. SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 ENDL Publications


ELECTRICAL CHARACTER I STICS 25

D ifferential Cable Characteristics


(1 ) Cable impedance is 1 1 5 to 1 60 ohms (nominal 1 22 ohms). M aximum impedance difference between
any two signals is 20 ohms.

(2) Terminator Power conductor size must be at least 28AWG (0.08042 mm2 ) .

I
(3) Cable must b e spaced at least 0.050 inches (1 .25 mm) from itself, other cables, o r any other
conductor (for example, a metal computer enclosure) .

(4) Stubs must be no longer than 8 inches (0.2 m). Total cable length is 25m or less.

Differential Terminatio n

TERMPWR
+..l


V.A A.

T
2.2 J..I F

T
330 1 50 T 330 330 1 50 T 330 +ATN
+DB (O)
DB (O) - ATN

T i 1
- A. oA

330 1 50 330 330 1 50 i 33o + BSY


+DB (1 )
DB ( 1 ) - BSY

T 1 50 T T T
33o
1'<.

330 3:30 330 1 50 +ACK


+DB (2)
DB (2) - ACK

T T
A.

T i
330 150 330 330 1 50 330 + RST
+DB (3)
DB (3) - RST

1 T T T
330 1 50 330 330 1 50 330 + MSG
+DB ( 4 )
DB ( 4 ) - MSG

T T
_...

T T
330 1 50 330 330 1 50 330 + SEL
+ D B (5)
DB (5) - SEL

T T T T
330 1 50 330 330 1 50 330 + CI D
+ D B (6)
DB (6) - C/ D

T i T T
-
330
'A

330 1 50 330 330 1 50 + REO


+ D B ( 7)
DB ( 7 ) - REO

T
""A

1 50 T 33vo
T i
330 1 50 330 330 + 110
+ D B ( P)
- DB ( P ) - 110

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 ENOL Publications


26 B U S SIG NALS A N D PHASES

Bus Signals and P hases

Signal Names and Defi n itions


ACK (ACKNOWLE D G E) : Driven by the Initiator to acknowledge an I nformation Transfer.

ACKB (ACKNOWLED G E for "Q Cable"): Used for SCSI-3 Secondary Bus wide data handshake.

I
ATN (ATTENTION): Driven b y the Initiator when connected to get the Target's attention so that it may
send it a M ESSAG E OUT (see page 6 1 ) . WAR N I N G : A SCSI-1 Target responds to the I nitiator pretty
much at its own convenience, though there are some requirements for SCSI-2 targets (see page 94) .
BSY ( B U S B U SY): I ndicates that the SCSI Bus is in use. Also used to gain control of the bus (see
ARBITRATION Phase, page 43) . (OR-tied : BSY is not actively driven false)
C/D (CO M MA N D OR DATA) : Driven by the Target to indicate the Bus Phase (see tables on pages 28
and 29) . In general, indicates whether data is being transfered or "other information" (COM MAND,
STATUS, or M ESSAG E). "True/Asserted" indicates other information is being transferred.
D B(7-0) (DATA B U S) : Driven by either device, as determined by the state of the 1/0 signal. Contains the
data that is sent from one device to the other during an 8-bit Information Transfer.
DB(1 5-8) ( DATA B U S) : Extends data bus for 1 6-bit wide data transfers.

DB(31-1 6) (DATA B U S) : Extends data bus for 32-bit wide data transfers.

DB(P) ( DATA BUS PAR ITY) : Driven by either device. Contains the parity bit for the data that is sent on
DB (0-7) from one device to the other during an I nformation Transfer. The parity is odd parity: when
DB (0-7) are all zero, DB (P) is set to one.
DB(P1), D B{P2), D B ( P3) ( DATA B U S PARITY) : Bus parity for DB(1 5-8) , DB (23- 1 6) , and DB(3 1 -24) ,
respectively.
DI FFS E N S ( D I FF E R E NTIAL S E N S E) : When high, enables the Differential I nterface. The new SPI-2
definition is (these are the values chosen at publication time and may very well change) :
• less than 0.6V = the bus is Singl e Ended ;
• 0.7V to 1 .9V = the bus is the new Low Voltage Differential ;
• greater than 2.2V = the bus is the old (High Voltage) Differential.
110 ( I N P U T OR OUTP UT): Driven by the Target to indicate the Bus Phase (see tables on pages 28 and
29) . In general, 1/0 indicates the bus information transfer direction. 1 / 0 also determines SELECTION
and RESELECTION phases. "True/Asserted" indicates the direction 1s from the Target to the I nitiator.
MSG ( M ESSAG E PHASE): Driven by the Target to indicate the Bus Phase (see tables on pages 28 and
29) . In general , indicates whether the "other" information alluded to under C/D is M ESSAGE I N ,
M ESSAG E OUT, COM MAND, or STATUS information.
REO ( R EQ U EST): Driven by the Target to request an Information Transfer.

REQQ (REQU EST for "Q Cable"): U sed for SCSI-3 Secondary Bus wide data handshake.

RST ( B U S R E S ET) : Driven by any device to clear all devices from the bus. May cause "power on reset"
type condition on many devices (see page 42) . (OR-tied: RST is not actively driven false)
SEL (SE LECT DEVI CE): Driven by: (1 ) an I nitiator to select a Target; (2) a Target to reselect an Initiator.
(OR-tied: SEL is not actively driven false)

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N O L Publications


BUS SIG N ALS A N D P HASES 27
Bus I D P r i o rity Level s

Bus ID Bus I D P r i o r i ty
Number B i t I m a g e ( DB 3 1 -> DBO) Level
7 1. hi ghest
6 . 1. 2

I
5 1. 3
4 1. 4
3 1. 5
2 1. 6
1 1. 7
0 1 8
15 1. 9
14 1. 10
13 1. 11
12 1. 12
11 . 1. 13
10 1. 14
9 .1. 15
8 .1 16
23 1. 17
22 1. 18
21 1. 19
20 1. 20
19 1. 21
18 1. 22
17 .1. 23
16 1 24
31 1. 25
30 1. 26
29 1. 27
28 1. 28
27 1. 29
26 1. 30
25 1. 31
24 1 l owe s t

NOT E : " 1 " m e a n s " a s s e r t e d "


m e a n s " re l e a s e d "

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 ENOL Publications


28 B U S SIG NALS A N D PHASES

B u s P h as e s : C o n n ecti o ns

B S Y S E L MSG C / D I / 0 REQ A C K ATN RST B u s P h a s e or C o n d i t i o n


0 0 X X X X X X 0 BUS FREE (*3)
0 0 X X X X X X 1 R E S ET CON D I T I ON ( * 3 )

1 0 0 0 0 0 0 0 0 A RB I T RAT I O N
1 1 X 0 X 0 0 X 0 (*1) bus wi nner takes b u s

0 1 0 0 0 0 0 1 0 S ELECT ION

�=��
1 1 0 0 0 0 0 1 0 T a rg e t res p o n d s to S e l e c t i o n
1 0 0 0 0 0 0 1 0 I n i t i a t o r re s po n d s t o T a rg e t

0 1 0 0 1 0 0 0 0 R E S E L ECT I ON

�=��
1 1 0 0 1 0 0 0 0 I n i t i a t o r re s po n d s t o Re s e l e c t i o n
1 0 0 0 1 0 0 0 0 T a rg e t re s p o n d s t o I n i t i a t o r ( * 4 )
0 1 1 0 0 0 0 0 0 S CAM S E L E C T I ON ( s e e p a g e 3 8 )
1 0 X X X 0 0 X 0 (*2 ) b e tween I n f o rma t i o n T r a n s fe r
Phases
1 0 X X X X X 1 0 (*2 ) ATT E N T I O N C O N D I T I O N

B S Y S E L MSG C / D I / 0 R EQ A C K A T N R S T Bus P h a s e o r Cond i t i o n

NOTE: Signal states are "generic":

0 = Negated or Released ; False


1 = Asserted ; True
X = Can be either state

(*1 ) : These states are essentially identical to each other. These states must be evaluated in the context of
the previous state. See Bus Phase State Diagram on page 30.

(*2): These states are essentially identical to each other. These states must be evaluated in the context of
the previous state. See Bus Phase State Diagram on page 30.

(*3) : The signals that are don't care ("X") during the BUS FREE Phase and the RESET Condition are
either false or are transitioning to a false state.

(*4) : Initiator then releases BSY; does not change Bus Phase since Target is asserting BSY.

BY TH E WAY (regarding Phases) : The SCSI-3 standards have done away with the term "phase". They are
still there, just named something else. This was done to facilitate the use of non-parallel ways of delivering
SCSI commands, but the new terminology (in our h umble opinion) will not n ecessarily catch on any time
soon. Therefore, we have opted to continue with the "old" terms for now.

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 ENOL Publications


B U S S I G NALS A N D P HASES 29
Bus P hases: I nformati o n Transfer

B S Y S E L MSG C / D I / 0 REQ ACK ATN RST B u s P h a s e or C o n d i t i o n


1 0 X X X 0 0 X 0 between I n fo rm a t i o n Tran s fe r
Phases
1 0 0 0 0 1 0 X 0 b eg i n n i n g o f DATA OUT Phase

!=�l
1 0 0 0 0 1 1 X 0 s ta t e d u r i n g DATA OUT Phase
1 0 0 0 0 0 1 X 0 s tate duri n g DATA OUT Phase
1 0 0 0 0 0 0 X 0 state duri ng DATA OUT Phase
1 0 0 0 1 1 0 X 0 begi nni ng of DATA IN Phase

!:!l
1 0 0 0 1 1 1 X 0 s t ate d u r i n g DATA IN Phase
1 0 0 0 1 0 1 X 0 s t a te d u r i n g DATA IN Phase
1 0 0 0 1 0 0 X 0 s t a te d u r i n g DATA IN Phase
1 0 0 1 0 1 0 X 0 b e g i n n i n g o f COMMAN D P h a s e
1 0 0 1 0 1 1 X 0 s t a t e d u r i n g COMMAN D P h a s e
1 0 0 1 0 0 1 X 0 s t a t e d u r i n g COMMAN D P h a s e
1 0 0 1 1 1 0 X 0 b e g i n n i n g o f STATUS P h a s e
1 0 0 1 1 1 1 X 0 s t a t e d u r i n g STATUS P h a s e
1 0 0 1 1 0 1 X 0 s t a t e d u r i n g STAT U S P h a s e
1 0 1 1 0 1 0 X 0 be g i n n i n g o f M E S SAG E OUT P h a s e
1 0 1 1 0 1 1 X 0 s t a t e d u r i n g M E S SAG E OUT P h a s e
1 0 1 1 0 0 1 X 0 s t a t e d u r i n g M E S SAG E OUT P h a se
1 0 1 1 1 1 0 X 0 b e g i n n i n g o f M E S SAG E I N P h a s e
1 0 1 1 1 1 1 X 0 s t a t e d u r i n g M E S SAG E I N P h a s e
1 0 1 1 1 0 1 X 0 s tate d u r i ng MESSAGE I N Phase
1 0 1 0 0 1 0 X 0 r e s e rved p h a s e
1 0 1 0 1 1 0 X 0 reserved phase
1 0 X X X X X 1 0 ATT E N T I ON C O N D I T I ON

BSY S E L MSG C/D I /0 REQ ACK ATN RST B u s P h a s e o r Co n d i t i on

(*5) : These states during DATA I N and DATA OUT Phases are true for both Asynchronous and
Synchronous data transfers.

(*6) : These states can occur during Synchronous DATA IN and DATA OUT phases when the number of
REQs issued is g reater than the number of ACKs issued.

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 ENOL Publications


30 B U S S I G NALS A N D P HASES

S C S I B u s P hase State Diagram

S C S I P H A S E S EQ U E N C E S

Reset. Message Result.


Target Failure. or
Protocol Failure

A word of explanation: First, Don't Be Frightened ! Take a minute to examine the diagram and it will
become a little clearer. The solid arrow lines represent "typical" phase sequences that occur during
normal command transfer and execution. The dashed arrow lines represent "exceptional" transitions to
the M ESSAGE IN and M ESSAGE OUT phases that would occur to send SYNCHRONOUS DATA
TRANSFER R EQUEST messages, or any error recovery procedure (e. g . , R ESTORE POINTERS).

(*) : Disconnect Message In may be preceeded by a Save Data Pointer Message ln.

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N O L Publications


BUS S I G NALS A N D P HASES 31
SCSI Config u red Auto-Mag ically (SCAM)
SCAM is a new protocol in SCSI-3 that allows bus IDs to be assigned over the bus. A summary of the
protocol :

• A "SCAM Initiator" is a SCSI Initiator that can initiate the SCAM protocol and assign bus I Ds to
SCAM Targets.

• A "SCAM Target" is a SCSI Device that can recognize the SCAM protocol and receive an ID
assignment from a SCAM Initiator.

• Even if all devices do not implement SCAM , they can peacefully exist with devices that do, provided
they are "SCAM tolerant" (see below) .

• Any SCAM device can initiate the SCAM protocol by arbitrating for the bus, winning, and entering
the SCAM selection "phase" : BSY, SEL, and MSG asserted. All participating SCAM devices then
complete the Initiation protocol.

• After the SCAM protocol has been initiated, SCAM transfer cycles are used to issue function codes,
action codes, and to isolate devices by comparing 'world wide I D ' strings.

• After SCAM protocol initiation, all SCAM Initiators compete to be the Dominant SCAM I nitiator
through an isolation process. The Dominant SCAM Initiator then controls future SCAM transfer
cycles and assigns I D s to SCAM Targets and to the now "Subordinate" SCAM Initiators.

• The Dominant SCAM Initiator then isolates SCAM Targets and assign bus I Ds to them.

• Once all devices have received a bus ID assignment, the SCAM protocol is complete and the bus is
released for normal operation.

NOTE: Several , um, "editorial errors" have been found in the original definition of SCAM i n SPI. These
errors are being fixed in SPI-2. Refer to SPI-2 for all new SCAM development.

See pages 63-65 for detailed SCAM timing.

SCAM Tolerance
A SCAM Tolerant-Target:

- Enables its response to S ELECTIO N phase within 5 seconds after power-on.

- Enables its response to S ELECTION phase within 250 ms after a reset.

- Recognizes a valid selection whether or not the data bus includes the I nitiator's ID bit (single bit
selection) .

- Responds to a valid selection within 1 .0 ms of the beginning of the SELECTION phase.

See page 34 for the other SCAM requirement levels.

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 ENOL Publications


32 B U S SIG NALS A N D P HASES

SCAM I d e ntification String Format

By�� t 7
I
6 5
1
4 3 2
l
1 0

0 P r i o r i ty C o d e M a x i mum I D C o d e Re s e r v e d ID Val i d SNA


1 Reserved 1 ID
2 (MSB ) -

3 -

4 -

5
Vendor Identi fi cati on -

6 -

7 -

8
9 ( LS�
10 (MSB) -

11 -

12 -

13 -

14 -

15 -

16 -

17 -

18 -

19
Vendor Speci fi c Code -

20 -

21 -

22 -

23 -

24 -

25
-

26
-

27
-

28 -

29
30 ( LS�
31 Re s e rv e d , s o rt a

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 ENDL Publications


B U S SIG NALS A N D P HASES 33

The SCAM ID String is used during any isolation process to select a single SCAM I nitiator or Target for
the next action, either Dominant SCAM Initiator Contention or SCAM Target isolation prior to bus ID
assignment. Bit 7 of each byte is sent first. The first two bytes are referred to as the "Type Code".

Priority Code: If the current SCAM Function is "Dominant Initiator Contention", the codes are:
00 = Level 1 SCAM I nitiator.
01 = Level 2 SCAM I nitiator that does not want to be dominant.
1 0 = reserved
1 1 = Level 2 SCAM Initiator that wants to be dominant (was dominant last time, etc.)

If the current SCAM function is " Isolate" or "Isolate and Set Priority Flag", the codes are:
00 = Priority Flag cleared
1 0 = Priority Flag set
0 1 , 1 1 = reserved

Maximum ID Code: largest bus I D assignment that the device can accept:
00 = SCSI bus ID may be up to 1 Fh (range 0-3 1 , 32-bit bus)
01 = SCSI bus ID may be up to OFh (range 0-1 5, 1 6-bit bus)
1 0 = SCSI bus ID may be up to 07h (range 0-7, 8-bit bus)
1 1 = reserved

ID Valid:
00 = ID field not valid
01 = ID contains current bus I D , but device has not been assigned an I D
10 = I D contains assigned I D
11 = reserved

SNA : 0 = t h e entire I D string is not available yet (e.g . , reading i t from disk) .
1 = the entire I D string is available.

10 : SCSI bus ID, as defined by ID Valid field (above) .

Vendor Identification Field: 8 byte ASCI I field identifying product vendor, same as I N Q U I RY data (see
page 1 00) .

Vendor Specific Code: 21 byte ASC I I field that is a unique (for the vendor) identification code for the
device. The recommended method is to concatenate the model ID with the serial number.

Reserved, sorta: The current SCAM definition is for a 3 1 byte ID string; however, SCAM also states
that the SCAM Initiator shall be capable of receiving 32 byte I D strings to permit future protocol
extensions. Presumably (but not necessarily) the extra byte will be tacked onto the end of the string.
Therefore, this reserved byte may or may not be sent during an isolation transfer cycle.

SCS I Bench Reference Copyright © 1 989, 1 992, 1 996 ENDL Publications


34 B U S S I G NALS A N D PHASES

SCAM Req u i rement Level s


(SCAM Tolerant Target is shown on page 31 t o make i t more obvious ! )

A Level 1 SCAM Target:

- responds to SCAM Selection;

I
- does not i nitiate the SCAM Protocol .

A Level 2 SCAM Target:

- will initiate SCAM Protocol if it has no assigned I D ;


- will initiate SCAM Protocol i f a reset has occurred.

A Level 1 SCAM Initiator:

- is not required to recognize SCAM Selection;


- can detect Dominant I nitiator Contention and participate in the Isolation Stage for Dominant Initiator;
- must have an assigned ID.

A Level 2 SCAM Initiator:

- must recognize SCAM Selection;


- must perform Dominant Initiator Contention each time the SCAM P rotocol is initiated;
- must have an assigned I D or be able to arbitrate without an ID.

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 ENDL Publications


B U S SIG NALS A N D PHASES 35
SCAM Transfer Cycle Conditions for Isolat i o n Stag e

The "Bit Value to Send" in the table below is the next bit of the SCAM Identification String to send in the
current Isolation Stage. The value asserted on DB (4-0) is the encoded value of the bit to send.

Bi t Val ue Ass ert on Then V a l u e R e c e i v ed The T r a n s fe r Cy c l e


to S e n d DB (4-0) IF . . . from D B ( 4 - 0 ) i s Cond i t i on i s . . .

I
0 0000 1 0000 1 Con t i n u e I so l ati on Stage
000 1 1 Defer I so l ati on S tage ;
De v i ce h a s l o s t ;
Re l e a s e D B ( 4 - 0 ) ( s e n d " n o n e " )
C o n t i n u e h a n d s h a ke u n t i l n e x t
Syn c h ro n i z a t i o n F u n c t i o n a n d
i g n o re a l l o t h e r c o d e s
1000 1 OR T e rm i n a t e I s o l a t i o n S t age ;
100 1 1 A c t i o n C o d e may f o l l ow
11111 Syn c h ro n i z a t i o n F u n c t i o n
anyth i ng e l se B u s e r r o r o r r e s e r v e d code
1 000 1 0 000 10 O R Cont i n ue I so l ati on Stage
000 1 1
100 10 OR T e rm i n a t e I s o l a t i o n S t age ;
1 00 1 1 A c t i o n C o d e may f o l l ow
11111 Syn c h ro n i z a t i o n F u n c t i o n
anyt h i n g e l s e B u s e r r o r o r re s e rv e d code
none 00000 0000 1 OR Cont i n u e h a n d s hake unti l next
000 10 OR Syn c h ro n i z a t i o n P a t t e r n
000 1 1
00000 OR T e rm i n a t e I s o l a t i o n S t age ;
1 0000 Ac t i o n C o d e m ay fo l l ow
11111 Syn c h ro n i z a t i o n F u n c t i o n
anyth i ng e l se B u s e r r o r o r r e s e r v e d code

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N O L Publications


36 B U S SIG NALS AN D PHASES

SCAM Function Codes

Function Codes are sent to begin a stage of the SCAM protocol. The Synchronization function is usually
sent prior to one of the other Function Codes to ensure that all devices are starting at the same place.

Funct i on Code
DB ( 4 - 0 ) De s c r i p t i o n
00000 I s o l a t e S CAM T a r g e t ( s )
( p e r fo rm Ac t i o n C o d e a f t e r i s o l a t i o n t e rm i n a te s )
0000 1 I s o l a t e S CAM T a r g e t ( s ) a n d S e t P r i o r i ty F l a g
( p e rfo rm Ac t i o n C o d e a f t e r i s o l a t i o n t e rm i n a t e s )
00 0 1 1 C o n f i g u r a t i o n P r o c e s s Comp l e t e
( n o rm a l e n d o f S CAM p r o t o c o l )
01111 Dom i n a n t I n i t i a t o r C o n t e n t i o n
( i s o l a t e Dom i n a n t S CAM I n i t i a t o r )
11111 Syn c h ro n i z a t i o n F u n c t i o n
( n e x t f u n c t i o n to p e r f o rm fo l l ows i n n e x t t r a n s f e r cyc l e )
a l l o t h e rs Re s e rv e d

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 ENOL Publications


B U S S I G NALS A N D P HASES 37
SCAM Action Codes
Action Codes are sent after SCAM Target Isolation Termination , and are sent in two SCAM Transfer
Cycles.

Ac t i o n C o d e
Fi r s t S e c o n d Descri pti on
1 1000 1 1000 As s i gn SCS I bus ID O
1 1000 1000 1 As s i gn SCS I bus ID 1
1 1000 100 1 0 As s i gn SCS I bus ID 2
1 1000 010 1 1 As s i gn SCS I bus ID 3
1 1000 10 100 As s i gn SCS I bus ID 4
1 1 000 01101 As s i gn SCS I bus ID 5
1 1 000 0 1 1 10 As s i g n SCS I bus ID 6
1 1000 00 1 1 1 As s i g n SCS I bus ID 7
1000 1 1 1 000 As s i gn SCS I bus ID 8
1000 1 1000 1 As s i g n SCS I bus ID 9
1000 1 100 10 As s i g n SCS I bus ID 10
1000 1 0 10 1 1 As s i g n SCS I bus ID 11
1000 1 10 100 As s i g n SCS I bus ID 12
1000 1 01 101 As s i g n SCS I bus ID 13
1000 1 0 1 1 10 As s i g n SCS I bus ID 14
1000 1 00 1 1 1 As s i g n SCS I bus ID 15
100 10 1 1 000 As s i gn SCS I bus ID 16
100 10 1000 1 As s i g n SCS I bus ID 17
100 10 100 10 As s i g n SCS I bus ID 18
100 10 01011 As s i g n SCS I bus ID 19
100 10 1 0 1 00 As s i g n SCS I bus ID 20
10010 01101 As s i g n SCS I bus ID 21
100 10 01110 As s i g n SCS I bus ID 22
100 10 00 1 1 1 As s i g n SCS I bus ID 23
0 10 1 1 1 1000 As s i g n SCS I bus ID 24
01011 1000 1 As s i g n SCS I bus ID 25
01011 100 10 As s i g n SCS I bus ID 26
01011 0 10 1 1 As s i g n SCS I bus ID 27
010 1 1 10 100 As s i g n SCS I bus ID 28
010 1 1 01101 As s i g n SCSI bus ID 29
01011 01110 As s i g n SCS I bus ID 30
01011 00 1 1 1 As s i g n SCS I bus ID 31
10 100 1 1 000 C l e a r P r i o r i ty F l a g
10 100 100 10 L o c a t e O n ( t u rn o n p hy s i c a l l o c a t i o n i n d i c a t o r )
1 0 1 00 0 1 0 1 1 L o c a t e O f f ( t u rn i t o f f ! )
a l l others Re s e rv e d

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 ENOL Publications


38 B U S S I G NALS A N D PHASES

Bus Phases : SCSI Confi g u red Auto-M ag ically(SCAM), Protocol I n itiati o n

(* 1 )
B S Y S E L M S G C / D I /0 D B 7 D B 6 D B 5 D B 4 - 0 B u s P h a s e o r C on d i t i o n
0 0 X X X X X X XXXXX BUS FREE
1
1 1 0X 00 00 00 00
0 0
0
00000
00000
A RB I T RAT I ON
b u s wi n n e r t a k e s b u s
0 11 01 00 00 00 00 0 00000 S CAM S E L E C T I O N

111 000 001 011 111 011


0 0 00000 MSG r e l e a s e { * 2 )
1 0 00000 a s s e r t B S Y o n MSG r e l e a s e d e t e c t
1 0 00000 S CAM T a rg e t re s p o n s e
1 0 00000 S CAM I n i t i a t o r res p o n s e

111 0
0
0
0
X
X
X
X
1
1
1
0
0
0
00000
00000
S E L rel ease
DB6 rel ease *4
� *3�
1
1
0
0
1
0
0
0
0
1
1
1
1
1
1
1
1
0
0
0
0
0
0
00000
00000
00000
S CAM I n i t i a t o r n o t p r e s e n t ( * 5 )
S CAM I n i t i a t o r p re s e n t
S CAM I n i t i a t i o n c omp l e t e
1 1 0 0 X X X X xxxxx e n d o f S CAM p ro t o c o l

BSY SEL MSG C/D I /0 DB7 DB6 DB5 DB4-0 Bus P h a s e or Cond i t i on

NOTE: Signal states are "generic":

0 = Negated or Released ; False


1 = Asserted; True
X = Can be either state

ANOTHER NOTE: REO, ACK, RST, ATN , and DB(1 5-8, P , P 1 ) are not used during the SCAM protocol and
may be considered to be "don't care".

(* 1 ) : The signals that are don't care ("X") during the BUS FREE Phase are either false or are transitioning
to a false state.

(*2) : Perform wire-OR glitch filtering before detecting MSG false.

(*3) : Perform wire-OR glitch filtering before detecting SEL false.

(*4) : Perform wire-OR glitch filtering before detecting 086 false.

(*5) : If no SCAM Initiator is present, SCAM protocol cannot be continued and the SCAM targets release
all signals.

See page 63 for detailed SCAM I n itiation timing .

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 ENOL Publications


B U S S I G NALS A N D P HASES 39
Bus Phases : SCSI Config u red Auto-Mag ically(SCAM), Transfer Cyc l e

BSY S E L MSG C/0 I /0 DB7 DB6 DBS DB4-0 Bus Phase o r Cond i t i on
1 1 0 1 1 1 0 0 X X X XX b e tween SCAM t r a n s fe r cyc l e s
1 1 0 1 1 1 0 0 ddddd s t a r t o f cyc l e ; a s s e r t v a l i d d a t a
1 1 0 1 1 1 0 1 ddddd a l l d e v i ces a s s e r t D B S
1 1 0 1 1 0 0 1 ddddd a l l devi ces rel ease DB7 (* 1 )
1 1 0 1 1 0 1 1 ddddd a l l devi ces read and l atch data
f rom D B 4 - 0 a n d t h e n a s s e rt D B 6
1 1 0 1 1 0 1 0 ddddd a l l d e v i c e s re l e a s e D B S ( * 2 )
1 1 0 1 1 1 1 0 X X XXX a l l dev i ces assert DB7
1 1 0 1 1 1 0 0 X X X XX a l l d e v i c e s re l e a s e D B 6 ( * 3 )

BSY S E L M S G C / D 1 / 0 DB7 DB6 DBS D B 4 - 0 Bus Phase or Cond i t i on

NOTE: Signal states are "generic":

0 = Negated or Released; False


1 = Asserted; True
X = Can be either state
d = Valid data

(*1 ) : Perform wire-OR glitch filtering before detecting 087 false and reading 084-0.

(*2) : Perform wire-O R glitch filtering before detecting 085 false and changing 084-0.

(*3) : Perform wire-O R glitch filtering before detecting 086 false.

See page 65 for detailed SCAM Transfer timing.

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 ENOL Publications


40 BUS SIGNALS AN D PHASES

This page is intentionally blank!

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 ENOL Publications


BUS T I M I N G 41
SCSI B u s Timing

NOTE: In the timing figures, the basic SCSI timing values referred to in the standard are given in
parentheses ( ) . Some of the timing values are not named in the SCSI standard and are so indicated.

ANOTH ER N OTE: Timing is shown as "generic" levels: a "high" level is true/asserted , and a low level is
falsejnegated , as shown below:
s i g n a l t ruej a s s e rt e d
s ig n a l f a l se/negated

YET ANOTH ER N OTE: The term "Data Bus" is used in the timing diagrams to refer to the set of data bus
signals appropriate to the bus transaction:

• 8-bit Data Bus is DB0-7, DBP. (SCSI-2 A Cable or SPI Primary Bus)
• 1 6-bit Data Bus is DB0-1 5, DBP, DBP1 . (SPI Primary Bus)
• 32-bit Data Bus is DB0-3 1 , DBP, DBP 1 , DBP2, DBP3. (S PI Primary and Secondary Buses)

Note that "REO" and "ACK" timing also applies to REOO and ACKQ.

Basic SCSI T i m i n g Val ues


T i mi n g V a l u e a syn c s l ow fast f a s t -2 0 fas t-40?

A rb i t r a t i o n D e l ay 2400 ns 2400 ns 2400 ns 2400 ns 2400 ns


B u s C l e a r D e l ay 800 ns 800 ns 800 ns 800 ns 800 ns
B u s Free D e l ay 800 ns 800 ns 800 ns 800 ns 800 ns
B u s S e t De l ay 1800 ns 1800 ns 1800 ns 1800 ns 1800 ns
B u s S e t t l e D e l ay 400 ns 400 ns 400 ns 400 ns 400 ns
D a t a Re l e a s e D e l ay 400 ns 400 ns 400 ns 400 ns 400 ns
D i s c o n n e c t i o n D e l ay 200 us 200 us 200 us 200 us 200 us
Res e t H o l d T i me 25 us 25 us 25 us 25 us 25 us
S e l e c t i o n A b o r t T i me 200 us 200 us 200 us 200 us 200 us
S e l e c t i o n T i m e o u t ( r e c omm . ) 250 ms 250 ms 250 ms 250 ms 250 ms

T r a n s fer P e r i o d n/a 200 ns 100 ns 50 ns 25 ns


C a b l e S k e w D e l ay 4 ns 4 ns 4 ns 3 ns 1 . 5 ns
Sys tem D e s k e w D e l ay 45 ns 45 ns 20 ns 15 ns 10 ns

A s s e rt i o n P e r i o d - T r a n s m i t : n/a 80 ns 30 ns 15 . 0 ns 9 . 00 ns
Rece i ve : n/a 70 ns 22 ns 11.0 ns 7 . 50 ns
N eg a t i o n P e r i o d - T r a n s m i t : n/a 80 ns 30 ns 15 . 0 ns 9 . 00 ns
Rece i ve : n/a 70 ns 22 ns 11.0 ns 7 . 50 ns
S e t u p T i me - T r a n sm i t : n/a 23 ns 23 ns 11.5 ns 8 . 25 ns
Re c e i v e : n/a 15 ns 15 ns 6.5 ns 4 . 75 ns
Hol d Ti me - Transmi t : n/a 53 ns 33 ns 16 . 5 ns 8 . 75 ns
Rec e i ve : n/a 25 ns 25 ns 11 . 5 ns 5 . 25 ns
NOTE: Fast-40 Times shown above are EXTR E M E LY PRELI M I NARY, have not been approved, and will
likely change. Be sure to check the latest version of SPI that you can find!

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 ENOL Publications


42 B U S TIMING

Bus Reset Co n d ition

I< ------ 'T rst


S
R T

1 <-Tbfd->
1 , -------
BSY

1
All
Signals Other _______
< - Tbcd->

x _____________________
_______

T i me Des c r i p t i o n Mi n Max Un i t s
Trst R S T a s s e rt b y a d e v i ce ( I n i t i a t o r 25 !.! S e c
o r T a rg e t ) t o R S T n e g a t e d b y t h e d e v i c e
( re s e t h o l d t i me )
Tbcd RST t r u e t o a l l o t h e r b u s s i g n a l s 800 nsec
re l e a s e d by a l l d e v i c e s
( b u s c l e a r d e l ay )
Tbfd R S T f a l s e to B U S F R E E v a l i d a t e d 800 nsec
( b u s f r e e d e l ay )

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 ENOL Publications


BUS TI M I N G 43
Arbitration Phase

BSY --\
1 <-Tbsd-> 1 <--Tbarb--> < Tarb > � <-Tbcd->
SEL
Data s--- X_SCSI - ID_Valid
Bu X
-- -- x __ x __

other
signals
(*1) -------
______ x
<-Twon-->
x
I __

(* 1 ) Other signals DBP, D B P 1 , D B P2, D B P3, C/D, 1/0, REO, ACK, and ATN . They are not asserted
=

during arbitration phase.

T i me De s c r i p t i o n Mi n Max Un i t s
Tbsd BSY fal se to val i date BUS FREE 400 nsec
( b u s s e t t l e d e l ay )
T b a rb BUS F R E E v a l i d a ted to a s sert BSY


a n d B u s I D b i t fo r A r b i t r a t i o n :
bus free de l a )
b u s s e t d e l ay
) 800
1 80 0
nsec
nsec
Tarb A s s e r t B S Y t o e x am i n e b u s f o r w i n 2400 nsec
( a r b i t r a t i o n d e l ay)
Tbcd A rb i t r a t i o n w i n n e r a s s e rt s S E L to 800 nsec
Arb i t rat i on l oser ( s ) rel ease a l l
s i g n a l s ( b u s c l e a r d e l ay )
Two n Arb i trat i on wi nner asserts S E L to 1200 nsec
wi nner chang i ng any bus s i gnal
( b u s c l e a r d e l ay p l u s b u s s e t t l e d e l ay )

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 ENOL Publications


44 BUS T I M I N G

Select i o n P h ase

1
BSY

Ttab- > <-T i r s - >


< -T i rb-> < -

1 <-Ttds->

SEL ___/
1 < - Two n - >
-
I/0

Data Bu s_Own_I D _ � _Own_ I O_and_Ta rget_ I C


I=
x_

-
ATN

other < -- Twfs-->


s i gn a l s -
(*1) ------- X

(* 1 ) Other signals = MSG, C / D , R E O , and ACK. They are not asserted d u ring selection phase.

T i me Descri pti on Mi n Max Un i t s


Two n Ar b i tra t i o n w i n n e r a s s e rt s S E L to 1 2 00 nsec
wi nner chang i ng any bus s i gnal
( b u s c l e a r d e l ay p l u s b u s s e tt l e d e l ay)
T i rb I n i t i a t o r a s s erts d a t a b u s a n d ATN 90 nsec
to r e l e as i n g B S Y ( two asyn c sys tem d e s kew d e l ays )

t
Ttab I n i t i a t o r re l e a s e s B S Y a t s t a rt o f S E LECT I ON
P h a s e t o T a rg e t a s s erts B S Y :
b u s s e t t l e d e l ay ) 400 nsec
s e l e c t i o n t i meou t ) 250 msec
Ttds T a rg e t l a s t v a l i d a t e s S e l ec t i on P h a s e t o 2 00 J.LSec
T a rg e t a s s e r t s B S Y ( s e l e c t i o n abort t i me )
T i rs T a rg e t a s s e r t s BSY t o I n i t i a t o r 90 nsec
re l e a s e s S E L ( two a syn c sys tem d e s kew d e l ays )
Twfs I n i t i a t o r re l e a s e s S E L to T a rg e t c h a n g e s 0 nsec
a n y o t h e r s i g n a l ( t i mi n g n o t n amed )

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 ENOL Publications


BUS TIMING 45
Reselecti o n P h ase
BSY

Tiab-> < -Ttrs->


<-Ttrb-> < -1 <-Tids->
__/,----
I
1 <-Twon->
SEL

I/0
Data Bus-o - -r=-=o:--
- =-wn--= - -,x, ,- f
-=-
-d--:- r=-n'i"t'i-a-:-t-or--=- r=-=o:--
ow-n--=-r=-=o:--
-a n-;- - --- ------- X
I
-- - -- --- ------- -
ATN __JI. ---- - -
( *2 )
________ _______ _______ -

other <---Twfs-->
signals______ - X
(*3)

(*2) ATN may be asserted during reselection phase, but i t i s not part o f the normal protocol . The Target
does not respond to the ATN signal until after the first M ESSAGE OUT phase (which includes
I D E NTI FY} .

(*3) Other signals = M S G , C / D , R E O , a n d ACK.


T i me Descri pti on Mi n Max Uni ts
Two n A rb i t r a t i o n w i n n e r a s s e r t s S E L t o 1200 n sec
wi n n e r c h a ng i n g any b u s s i g n a l
( b u s c l e a r d e l ay p l u s b u s s e t t l e d e l ay )
Ttrb Target a s serts data b u s and 1 /0 90 nsec
t o r e l e a s i n g B S Y ( two a syn c s y s t em d e s k e w d e l ays )
Ti ab T a r g e t re l e a s e s B S Y a t s t a r t o f R E S E L EC T I O N
P h a s e t o I n i t i a t o r a s s e rt s B S Y :
( b u s s e t t l e d e l ay ) 400 nsec
( s e l e c t i o n t i me o u t ) 250 msec
Ti ds I n i t i a t o r l a s t v a l i d a t e s R e s e l e c t i o n P h a s e to 200 J.L S e c
I n i t i a t o r a s s e r t s B S Y ( s e l e c t i o n a b o rt t i me )
T t rs I n i t i a t o r a s s e rt s B S Y t o T a r g e t 90 nsec
r e l e a s e s S E L ( two a s y n c sys t em d e s kew d e l ays )
Twfs T a r g e t re l e a s e s S E L t o T a r g e t c h a n g e s 0 nsec
a n y o t h e r s i g n a l ( t i m i n g n o t n amed )

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N D L Publications


46 B U S TI M I N G

Selection Timeout

BSY

<--Tstim >
SEL __) \
< -- Tsabt -- >
I/0
Data Bu s X_Own_ID_+_Target_ID __ X
ATN I \

other
signals
(*1)

(* 1 ) Other signals = MSG, C/ D , R E O , and ACK. They are not asserted during selection phase.

T i me Descri pti on Mi n Max Uni ts


Ts t i m I n i t i a t o r re l e a s e s B S Y a t s t a rt o f S E L EC T I ON 250 msec
P h a s e t o I n i t i a t o r re l e a s e s d a t a b u s f o r
t i me o u t ( s e l e c t i o n t i me o u t )
Tsabt I n i t i a t o r re l e a s e s S E L a n d ATN to comp l e t e 200 . 09 --- �sec
t i me o u t ( s e l e c t i o n a b o r t t i me p l u s
two a s y n c sys tem d e s k ew d e l ays ) ( * 2 )

(*2) : Yes, this is correct. The extra 90 nsec is to allow a window between the maximum time for the
Target to validate selection (Ttds, page 44, 63, 64, 65) and the minimum time for the Initiator to wait
before giving up.

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N D L Publications


BUS TI M I N G 47
Reselection Timeo ut

BSY
I< - Tstirn --- >
SEL __/ \
< -- Tsabt--> I _______

I/0 __ _J;·------- \ _______________

Data Bus X_Own_ID_+_Initiator_ID_X -------

ATN
( *3 )
other
signals
( *4 )

(*3) ATN may be asserted during reselection phase, but it is not part of the normal protocoL

(*4) Other signals = MSG, C/D, REO, and ACK.

T i me Descri pti on Mi n Max Uni ts


Ts t i m T a r g e t re l e a s e s B S Y a t s t a r t o f R E S E L E C T I ON 250 msec
P h a s e t o T a rg e t r e l e a s e s d a t a b u s f o r t i me o u t
( s e l e c t i o n t i me o u t )
Tsabt T a r g e t re l e a s e s S E L t o comp l e t e 200 . 09 .u s e e
t i me o u t ( s e l e c t i o n a b o r t t i me p l u s
a s y n c s y s t em two d e s k e w d e l ays ) { * 5 }

(*5) : Yes, this is correct The extra 90 nsec is to allow a window between the maximum time for the
Initiator to validate reselection (Tids, page 45) and the minimum time for the Target to wait before
giving up.

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 ENOL Publications


48 BUS TIMING

I nfo Transfer O ut P h ase Transition to I nfo Transfer O ut Phase


REQ - \·----,---'

ACK \ ______ -------�

xI
I <-Tbsd-> < ------ 'T taq· ------- >
MSG _______ ______________________

C/D __

_______
I
x ______

______________________

I/0 true _____ ------

Initiator
Data Bus _dri v ing
��.----
____
----
-----

Target
Data Bus - released ----

T i me Des cri p t i on Mi n Max Uni ts


Tbsd L a s t A C K o f p h a s e f a l s e t o T a rg e t c h a n g e 0 nsec
M S G , C / D , a n d 1 / 0 ( t i m i n g n o t n ame d )
Ttaq Target c hanges MSG and/or C/D 400 nsec
t o T a r g e t a s s e r t s R EQ ( b u s s e t t l e d e l ay)

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E NOL Publications


BUS TI M I N G 49
I nfo Transfer I n Phase Transiti o n to I nfo Transfer I n Phase
REQ
ACK
I <-Tbsd-> <------Tt aq------>
MSG _______
xI _______________________

C/D __

_______
xI _____

_______________________

I/O false
__
____ --
---

Target
Data Bus _driving ____ -----

Initiator
Data Bus released
- -----

T i me Descri pt i on Mi n Max U n i ts
Tbsd L a s t A C K o f p h a s e f a l s e to T a rg e t c h a n g e 0 nsec
M S G , C / D , a n d 1 / 0 ( t i m i n g n o t n amed )
Ttaq T a rg e t c h a n g e s M S G a n d / o r C / D 400 nsec
t o T a r g e t a s s e r t s R E Q ( b u s s e t t l e d e l ay )

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 ENDL Publications


50 BUS TIMING

I nfo Transfer O ut Phase Transition to I nfo Transfer I n Phase

REQ

ACK \
1 <-Tbsd-> 1 < Ttaq· ---- >
MSG X
C/D XI
I/0 I
Initiator <-Tird-> 1
Data Bus -_...,-dr-1.--.v--.i-n-g==== x released
-- ------

Target
Data Bus ---r eleased
<---'T tdd
-------
>
I --,--.--.----------
---

X_driving __________
---

T i me Des cri p t i on Mi n Max Uni ts


Tbsd Last ACK o f p h a s e fa l s e to Target c h a n g e 0 nsec
M S G , C / D , a n d 1 / 0 ( t i m i n g n o t n am e d )
T i rd T a r g e t a s s e r t 1 / 0 t o I n i t i a t o r re l e a s e s 400 nsec
d a t a b u s ( d a t a re l e a s e d e l ay )
Ttdd T a r g e t a s s e rt 1 / 0 t o T a r g e t d r i v e s 800 nsec
d a t a b u s ( d a t a re l e a s e d e l ay p l u s
b u s s e tt l e d e l ay)
Ttaq T a r g e t c h a n g e s M S G a n d / o r C / D , a n d a s s e rt s 849 nsec
1 / 0 t o T a rg e t a s s e r t s R E Q ( T t d d p l u s a s y n c
s y s t em d e s kew d e l ay p l u s c a b l e s k ew d e l ay ) ( * 1 )

(* 1 ) : Even though the standard states 400 nsec for this value (bus settle delay) , the data bus direction
switch delay plus the data setup to REO delay results in the larger value. If the bus phase is
changing from an IN phase to another IN phase , then 400 nsec is the minimum value of Ttaq.

SCSI Bench Reference Copyright © 1 989, 1 992 , 1 996 ENOL Publications


BUS T I M I N G 51
I nfo Transfer I n Phase Transiti o n to I nfo Transfer O ut P h ase

REQ
ACK \
1 <-Tbsd-> 1 < taq ·------ >

MSG X
C/D I
X
I/0 \
I
Target <-Ttrd-> 1
Data Bus _driving ---;--;--;-----
__ x released -- ------

< T idd--- >


Initiator ·xI _driving
---

Data Bus r eleased


--- -------
�-...------------
__________

T i me Des cri pti on Mi n Max Un i ts


Tbsd L a s t A C K o f p h a s e f a l s e to T a rg e t c h a n g e 0 nsec
M S G , C / D , a n d I / 0 ( t i m i n g n o t n amed )
T t rd T a r g e t a s s e r t I / 0 t o T a rg e t re l e a s e s 45 nsec
d a t a b u s ( a s y n c s y s t em d e s kew d e l ay)
Ti dd I n i t i a t o r d e t e c t s I /0 t o I n i t i a t o r d r i v e s 45 nsec
d a t a b u s ( a sy n c s y s t em d e s k e w d e l ay)
Ttaq T a rg e t c h a n g e s M S G a n d / o r C / D , a n d n e g a t e s 400 n sec
I /0 t o T a rg e t a s s e r t s R EQ ( b u s s e t t l e d e l a y )

SCSI Bench Reference Copyright © 1 989 , 1 992, 1 996 E N O L Publications


52 B U S TIMING

As y nchronous Transfer Out to Target

REQ I \
1 < Trtaa > 1 <
- - Tatrn > <-Trfan-> � <--Tafra--> 1
ACK \

Initiat or �X <-Tdvaa->
valid data
<-Trtdi-> 1
output s
Data Bu X

�___ Tsetu:> l
____ <-Thold-> �
Target
Data
Input Bus _______x valid data--- ����-----------------------
______ x ------

____________

T i me Des cri pti on Mi n Max Un i t s


Trtaa T a r g e t R EQ t r u e t o I n i t i a t o r a s s e r t AC K 0 nsec
( t i m i n g n o t n am e d )
T a t rn I n i t i a t o r A C K t r u e t o T a rg e t n e g a t e R E Q 0 nsec
( t i m i n g n o t n am e d )
Trfan Target REQ fa l s e to I n i t i ator negate ACK 0 nsec
( t i m i n g n o t n ame d )
Tafra I n i t i a t o r A C K f a l s e t o T a rg e t a s s e r t R E Q 0 nsec
( t i m i n g n o t n am e d )
Tdvaa I n i t i ator data output v a l i d to I n i t i ator 49 nsec
a s s e r t A C K ( a s y n c s y s t em d e s kew d e l ay p l u s
c a b l e s k ew d e l ay )
Trtd i Target neg ate REQ to I n i t i ator data output 0 nsec
i n v a l i d ( t i m i n g n o t n ame d )
Tsetup Target rece i ves data output v a l i d to 0 nsec
Target detects ACK asserted
{ t i m i n g n o t n am e d )
Thol d T a r g e t n e g a t e R EQ t o r e c e i v e d d a t a 0 nsec
i n v a l i d ( t i m i n g n o t n ame d )

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N O L Publications


BUS TIM I N G 53
Asynch ro n o u s Transfer In to I n itiato r

\
-

< Trtaa > � < Tatrn > 1 <-Trfan-> � <-Tafra-> l


REQ

- - - -

ACK \

Target
Data Bu s _
1X_<-Tdvra->
valid_data
<-Tatdi-> 1
X
Output
l
_

XI
<Tsetup> <-Thold->
Initiator IX v_a�l�i�d�d-a7ta
Input Bus
Data -
_ __________ _______ ______________________
__
__
-

--

T i me De s c r i p t i o n Mi n Max U n i ts
Trtaa T a rg e t R EQ t r u e t o I n i t i a t o r a s s e r t A C K 0 nsec
( t i m i n g n o t n amed )
T a t rn I n i t i ator ACK true to Target negate REQ 0 n s ec
( t i m i n g n o t n amed )
Trfan T a rg e t R EQ f a l s e t o I n i t i a t o r n e g a t e A C K 0 nsec
( t i m i n g n o t n amed )
Tafra I n i t i a t o r A C K f a l s e t o T a r g e t a s s e rt REQ 0 nsec
( t i m i n g n o t n amed )
Tdvra Target d r i ves data output v a l i d to Target 49 nsec
a s s e rt s R E Q ( a syn c sys t em d e s k e w d e l ay p l u s
c a b l e s k ew d e l ay )
Tatd i I n i t i a t o r a s s e r t A C K t o T a rg e t d a t a o u t p u t 0 nsec
i n v a l i d ( t i m i n g n o t n amed )
Tsetup I n i t i ator rece i ve s data output v a l i d to 0 nsec
I n i t i a t o r d e t e c t s R E Q a s s e rt e d
( t i m i n g n o t n amed )
Thol d I n i t i ator a s s ert ACK to rece i ved data 0 nsec
i n v a l i d ( t i m i n g n o t n amed )

SCSI Bench Reference Copyright © 1 989 , 1 992 , 1 996 E N D L Publications


54 B U S TI M I N G

Slow S y nchro n o u s Transfer Out to Target

��--Tasrt--���--Tnegt--�1 .------ .
REQ ___/ '- --- _/ \__
I< Trtaa < 1 <--Tnegt-->>
Txfer
> <--Tasrt--> �
I
-- -- -- --

. ------ .
ACK \
� <-Tdvaa-> <-Tatdi-> 1
'------

Initiator x_valid xxxxxx_valid xxxxxx.


OutputBus
Data ------
_ ______
___
_

<Tsetup> <Thold> l
Target
���� Bus
Ix valid xxxxxxxxx_valid xxxxxxxxx=====
t _______ ______

T i me Des c r i p t i o n Mi n Max U n i ts
Trtaa T a r g e t R EQ t r u e t o I n i t i a t o r a s s e rt A C K 0 nsec
( t i m i n g n o t n am e d )
Ta s r t T a r g e t R EQ t r u e t o T a rg e t n e g a t e R E Q o r 80 nsec
I n i t i ator A C K true to I n i t i ator n e g a t e ACK
( s l ow t r a n sm i t a s s e rt i o n p e r i o d )
Tnegt T a rg e t R E Q f a l s e t o T a r g e t a s s e r t R E Q o r 80 nsec
I n i t i ator A C K fa l s e to I n i t i ator a s s ert ACK
( s l ow t r a n sm i t n e g a t i on p e r i od )
Txfer T a rg e t R E Q t r u e t o T a rg e t a s s e r t R E Q o r 200 nsec
I n i t i a t o r A C K t r u e t o I n i t i a t o r a s s e rt A C K ( * 1 )
( s l ow t r a n s fe r p e r i o d )
Tdvaa I n i t i ator data outp ut v a l i d to I n i t i ator 23 nsec
a s s e rt A C K ( s l ow t r a n sm i t s e t u p t i me )
Tatd i I n i ti ator ACK true to data output i n val i d 53 nsec
( s l ow t r a n sm i t h o l d t i me )
Tsetup T a rg e t r e c e i v e s d a t a o u t p u t v a l i d to 15 nsec
T a r g e t d e t e c t s ACK a s s e r t e d
( s l ow r e c e i v e s e t u p t i me )
Thol d T a rg e t d e t e c t s A C K t r u e t o r e c e i v e d 25 nsec
d a t a i n v a l i d ( s l ow r e ce i v e h o l d t i me )
(* 1 ) As set by the Synchronous Data Transfer Request (SDTR) message (see page 92, 93) .

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 ENOL Publications


BUS T I M I N G 55
Slow Synch ro nous Transfer I n to I n itiator

� �--Tasrt_:� �� � Tnegt--� �
REQ \ . ------ \ ------

< --- T rtaa---> <<--Tasrt-->


I 1 <--Tnegt-->>
Txfer
I .
ACK \
1 <-Tdvra-> <-Trtdi-> 1
-----

Target
Data Bus __

x-v-a--:1:--i:-d,.--- xxxxxx_valid .xxxxxx


output ---
__ ______

I <Tsetup> <Thold> l
-- - -

Initiator
Data x---v a-..,l�i�d� -xxxxxxxxx_valid xxxxxxxxx
Input Bus
__

---
---- ----

T i me Descri pti on Mi n Max Uni ts


Trtaa T a rg e t R E Q t r u e t o I n i t i a t o r a s s e r t A C K 0 nsec
( t i m i n g n o t n amed )
T a s rt T a rg e t R EQ t r u e t o T a rg e t n e g a t e R E Q o r 80 nsec
I n i t i a t o r AC K t r u e t o I n i t i a t o r n e g a t e A C K
( s l ow t r a n s m i t a s s e r t i o n p e r i o d )
Tnegt T a rg e t R EQ f a l s e t o T a rg e t a s s e rt R EQ o r 80 nsec
I n i t i a t o r AC K f a l s e t o I n i t i a t o r a s s e r t A C K
( s l ow t r a n sm i t n e g a t i o n p e r i o d )
Txfer T a rg e t R E Q t r u e t o T a rg e t a s s e r t R E Q o r 200 nsec
I n i t i a t o r AC K t r u e t o I n i t i a t o r a s s e r t A C K ( * 1 )
( s l ow t r a n s f e r p e r i o d )
Tdvra T a rg e t d a t a o u t p u t v a l i d t o T a rg e t 23 nsec
a s s e r t R E Q ( s l ow t r a n sm i t s e t u p t i me )
Trtd i T a rg e t R EQ t r u e t o d a t a o u t p u t i n v a l i d 53 nsec
( s l ow t r a n sm i t h o l d t i me )
Tsetup I n i t i ator rece i ves data output v a l i d to 15 nsec
I n i t i a t o r d e t e c t s R E Q a s s e rt e d
( s l ow r e c e i v e s e t u p t i me )
Thol d I n i t i a t o r d e t e c t s R EQ t r u e t o r e c e i v e d 25 n s ec
d a t a i n v a l i d ( s l ow r e ce i v e h o l d t i me )
(* 1 ) As set by the Synchronous Data Transfer Request (SDTR) message (see page 92, 93) .

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N D L Publications


56 B U S TI M I N G

Fast (Fast-1 0) Synch ronous Transfer O u t t o Target

� �--Tasrt_:���--Tnegt--� 1
REQ __/ \ . ------- . '------' \ __
I< Trtaa Txfej <--Tnegt-->>
> <--Tasrt-->
<
I I
-- --

ACK \ , ----
1 <-Tdvaa-> <-Tatdi-> 1
. ------

Initiator x_valid xxxxxx_valid. xxxxxx


outputBus
Data ____

_ _____ ___

I Target I <Tsetup> <Thold> l


x_valid xxxxxxxxx_valid xxxxxxxxx
Input Bus
Data _______ ______ --

T i me Des c r i p t i on Mi n Max U n i ts
Trtaa T a rg e t R E Q t r u e t o I n i t i a t o r a s s e r t A C K 0 nsec
( t i m i n g n o t n am e d )
Tasrt T a r g e t R E Q t r u e t o T a rg e t n e g a te R EQ o r 30 nsec
I n i t i ator ACK true to I n i t i ator negate ACK
( fa s t t r a n sm i t a s s e rt i o n p e r i o d )
Tnegt Target REQ fa l s e to Target a s s ert REQ o r 30 nsec
I n i t i a t o r A C K f a l s e to I n i t i a t o r a s s e r t AC K
( fa s t t r a n sm i t n e g a t i o n p e r i o d )
Txfer T a rg e t R EQ t r u e t o T a rg e t a s s e r t R E Q o r 100 nsec
I n i t i a t o r A C K t r u e t o I n i t i a t o r a s s e rt A C K ( * 1 )
( fa s t t r a n s fe r p e r i o d )
Tdvaa I n i t i ator data outp ut v a l i d to I n i t i ator 23 nsec
a s s e rt A C K ( fa s t t r a n sm i t s e t u p t i me )
Tatd i I n i t i ator ACK true t o data output i n v a l i d 33 nsec
( fa s t t r a n sm i t h o l d t i me )
Tsetup Target rece i ves data output v a l i d to 15 nsec
T a r g e t d e t e c t s A C K a s s e rt e d
( fa s t r e c e i v e s e t u p t i me )
Thol d T a rg e t d e t e c t s A C K t r u e t o r e c e i v e d 25 n s ec
d a t a i n v a l i d ( fa s t r e ce i v e h o l d t i me )
(* 1 ) As set by the Synchronous Data Transfer Request (SDTR) message (see page 92, 93) .

SCSI Bench Reference Copyright © 1 989 , 1 992 , 1 996 E N O L Publications


BUS T I M I N G 57
Fast (Fast-1 0) Synchronous Transfer In to I n itiator

� �--Tasrt_:���:_Tnegt--� 1
REQ \ ;'. \
-----

------

<--Trtaa--> I <--Tasrt-->
< Txfer
1 <--Tnegt-->> I
.
ACK \
---

Target 1 <-Tdvra-> <-Trtdi-> 1


Data Bus
output
__
x valid
-��- ____

xxxxxx_valid. xxxxxx _____ _____

I
-
--
-

Initiator I <Tsetup> <Thold> l


Data
Input Bus
--
X valid _____ xxxxxxxxx_valid----xxxxxxxxx ----

T i me Descri pti on Mi n Max Un i ts


Trtaa T a rg e t R E Q t r u e t o I n i t i a t o r a s s e rt A C K 0 nsec
( t i m i n g n o t n amed )
Tas rt T a rg e t R EQ t r u e t o T a r g e t n e g a t e REQ o r 30 nsec
I n i t i a t o r AC K t r u e t o I n i t i a t o r n e g a t e A C K
( fa s t t r a n s m i t a s s e rt i o n p e r i o d )
Tnegt T a rg e t R E Q f a l s e t o T a rg e t a s s e r t R EQ o r 30 nsec
I n i t i a t o r AC K f a l s e t o I n i t i a t o r a s s e r t AC K
( fa s t t r a n sm i t n e g a t i o n p e r i o d )
Txfer T a rg e t R E Q t r u e t o T a r g e t a s s e r t R E Q o r 100 nsec
I n i t i ator ACK true to I n i t i ator ass ert ACK (* 1 )
( fa s t t ra n s fe r p e r i o d )
Tdvra T a rg e t d a t a o u t p u t v a l i d t o T a rg e t 23 nsec
a s s e r t R E Q ( fa s t t r a n s m i t s e t u p t i me )
Trtdi T a rg e t R EQ t r u e t o d a t a o u t p u t i n v a l i d 33 nsec
( f a s t t r a n sm i t h o l d t i me )
Tsetup I n i t i ator rece i ves data o u t p u t v a l i d to 15 nsec
I n i t i a t o r d e t e c t s R E Q a s s e rt e d
( fa s t r e c e i v e s e t u p t i me )
Thol d I n i t i ator detects REQ true to recei ved 25 nsec
d a t a i n v a l i d ( fa s t r e ce i v e h o l d t i me )
(* 1 ) As set by the Synchronous Data Transfer Request (SDTR) message (see page 92, 93) .

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N O L Publications


58 B U S TI M I N G

Fast-20 Synchro n o u s Transfer O ut to Target

� �--Tasrt���� � Tnegt--� �
REQ __/ \ . ------ . '-------' \__
I< Txfer
Trtaa--> <--Tasrt-->
< >
I , <--Tnegt-->
I
--

ACK \ --
--- \ _______

1 <-Tdvaa-> <-Tatdi-> 1
Initiator x_valid xxxxxx_valid xxxxxx.
outputBus
Data ------- _ _____ ____

<Tsetup> <Thold> l
Target Ix valid xxxxxxxxx_v_a�l�i�d�---- xxxxxxxxx
Input Bus
Data _______ -

T i me Des cri p t i on Mi n Max Un i ts


Trtaa T a rg e t R EQ t r u e t o I n i t i a t o r a s s e r t A C K 0 nsec
( t i m i n g n o t n am e d )
T a s rt T a rg e t R E Q t r u e t o T a rg e t n e g a t e R E Q o r 15 nsec
I n i t i ator ACK true to I n i t i ator negate ACK
( fa s t - 2 0 t r a n s m i t a s s e rt i o n p e r i o d )
Tnegt T a rg e t R E Q fa l s e t o T a rg e t a s s e rt R E Q o r 15 nsec
I n i ti ator ACK fal s e to I n i t i ator assert ACK
( fa s t - 2 0 t r a n s m i t n e g a t i o n p e r i od )
Txfer T a r g e t R EQ t r u e t o T a rg e t a s s e r t R EQ o r 50 nsec
I n i t i a t o r A C K t r u e t o I n i t i a t o r a s s e rt A C K ( * 1 )
( fa s t - 2 0 t r a n s fe r p e r i od )
Tdvaa I n i ti ator data output val i d t o I n i ti ator ll. 5 nsec
a s s e r t A C K ( fa s t - 2 0 t r a n s m i t s e t u p t i me )
Tatdi I n i t i ator A C K t r u e to d a t a output i n v a l i d 16 . 5 nsec
( fa s t -2 0 t r a n s m i t h o l d t i me )
Tsetup T a rg e t r e c e i v e s d a t a o u t p u t v a l i d t o 6.5 nsec
T a rg e t d e t e c t s A C K a s s e r t e d
( fa s t -2 0 r e c e i v e s e t u p t i me )
Thol d T a rg e t d e t e c t s A C K t r u e t o r e c e i v e d ll.5 - n s ec
d a t a i n v a l i d ( fa s t - 2 0 rec e i v e h o l d t i me )
(* 1 ) As set by the Synchronous Data Transfer Request (SDTR) message (see page 92, 93) .

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N O L Publications


BUS TI M I N G 59
Fast-20 Syn c h ro n o u s Transfer I n to I n itiato r

� �--Tasrt�� ��:_Tnegt--� �
REQ \----- \------ 1.
<--Trtaa--> <<--Tasrt--> 1 <--Tnegt-->>
Txfer
I I
.-----
ACK ------- ------�/ \

Target __ 1 <-Tdvra-> -
<-Trtdi-> 1
xxxxxx valid_____xxxxxx
Data Bus--x_v
output -_a__,l,.:-:.,i d,---
- ____

Initiator I <Tsetup> <Thold> \


Data --x-val id____xxxxxxxxx_valid____xxxxxxxxx
Input Bus ____

T i me Des cri pti on Mi n Max U n i ts


Trtaa Target REQ true to I n i t i ator a s s ert ACK 0 nsec
( t i m i n g n o t n ame d )
T a s rt T a rg e t R E Q t r u e t o T a rg e t n e g a t e R E Q o r 15 nsec
I n i t i ator ACK true t o I n i t i ator negate ACK
( fa s t - 2 0 t r a n sm i t a s s e rt i o n p e r i o d )
Tnegt T a rg e t R E Q f a l s e t o T a rg e t a s s e r t R E Q o r 15 nsec
I n i t i a t o r A C K f a l s e t o I n i t i a t o r a s s e r t AC K
( fa s t - 2 0 t r a n sm i t n e g a t i o n p e r i o d )
T x fe r T a r g e t R EQ t r u e t o T a rg e t a s s e r t R E Q o r 50 nsec
I n i t i ator ACK true to I n i t i ator assert ACK ( * 1 )
( fa s t - 2 0 t r a n s fe r p e r i o d )
T d v ra T a r g e t d a t a o u t p u t v a l i d t o T a rg e t 11.5 nsec
a s s e rt R E Q ( f a s t - 2 0 t r a n s m i t s e t u p t i me )
T rt d i )
Target R E Q t r u e to d a t a out ut i nval i d 16 . 5 nsec
( fa s t - 2 0 t r a n sm i t h o l d t i me
Tsetup I n i t i a t o r r e ce i v e s d a t a o u t p u t v a l i d t o 6.5 nsec
I n i t i ator detects REQ a s s erted
( fa s t - 2 0 r e c e i v e s e t u p t i me )
Thol d I n i t i a t o r d e t e c t s R E Q t r u e t o r e ce i v e d 11.5 - nsec
d a t a i n v a l i d ( fa s t - 2 0 rec e i v e h o l d t i me )
(* 1 ) A s set b y the Synchronous Data Transfer Request (SDTR) message (see page 92, 93) .

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N D L Publications


60 BUS TIMING

Synch ro n o u s Offset

In the followin g example, REO/ ACK offset = 3

REQ __/ \_/-\__/- '----_/ \__/-\__/-\__/ \__/-\__/ \_


� <-Toff-> 1
ACK \__/ \__/ \__/ \__/ \_/ \__/-\__/

T i me Des c r i p t i on Mi n Max Uni ts


Toff I n i t i a t o r A C K t r u e t o T a rg e t a s s e r t s R EQ 0 nsec
a ft e r s t a l l d u e t o re a c h i n g o f f s e t l i m i t ( * 1 )
( t i m i n g n o t n am e d )
(* 1 ) Offset i s set b y the Synchronous Data Transfer Request (SDTR) message (see page 92, 93) .

Bus Free Phase

BSY \
1 <-Tbsd-> 1 <-Tbcd->
______ __________________________________________

SEL ----- .

All other I <-----T clear----->


Signals ------
x _________________________

T i me Des c r i p t i on Mi n Max Un i ts
Tbsd B S Y a n d S E L n e g a t e d by a d e v i c e ( I n i t i a t o r 400 nsec
o r T a rg e t ) to B U S F R E E p h a s e v a l i d
( b u s s e t t l e d e l ay )
Tbcd BUS FREE v a l i d a ted to a l l b u s s i g n a l s 800 nsec
re l eased by a l l d e v i ces
( b u s c l e a r d e l ay )
Tcl ear BSY and S E L fa l s e t o a l l b u s s i g n a l s - 1200 nsec
re l e a s e d by a l l d e v i c e s
( b u s s e t t l e d e l ay p l u s b u s c l e a r d e l ay )

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N O L Publications


BUS TI M I N G 61
Attentio n Co n d iti o n (Asserted b y I n itiator D u ri ng A n y Phase)

REQ \ ______________________

ACK \
__

� <--Taatn-> 1
ATN

T i me Descri pti on Mi n Max Un i ts


Taatn I n i t i a t o r ATN t r u e t o I n i t i a t o r 90 nsec
n e g a t e s A C K ( two a s y n c sys t em d e s kew
d e l ays ) ( * 2 )
(*2) : ATN may b e asserted at ANY time as long as it meets this timing relative to ACK. Also, ATN must
meet this timing if it is being asserted in regard to the current byte being transferred.

End of Attenti o n (Negated by I n itiator D u r i n g Message O ut Phase)

REQ __/ \ ____________________

1 <-Tratn->
ACK \_
<-Tnatn-> 1
ATN \. ______________________________________________

T i me Des cri pti on Mi n Max Un i ts


Tratn T a r g e t a s s e rt s R E Q f o r M e s s a g e O u t P h a s e 0 nsec
t o I n i t i a t o r n e g a t e s ATN f o r l a s t m e s s a g e by t e
( t i m i n g n o t n amed )
Tnatn I n i t i a t o r ATN f a l s e t o I n i t i a t o r 90 nsec
a s s e r t s A C K o f l a s t me s s a g e by t e
( two a s y n c s y s t em d e s kew d e l ay s ) ( * 3 )
(*3) : ATN may not b e negated when ACK i s asserted during a M ESSAG E OUT phase.

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N O L Publications


62 B U S TI M I N G

I n itiator Disco n n ect Message Seq uence

BSY \ -
I <--Tdisc--> I
MSG \, ________

C/D \ ________

I/0 \ ________

REQ __/ \ _______/ \ ____________

ACK \, ___ __, \ ___________

Data Bus ___ X_ ( * l ) __ XXXXX_ ( * 2 ) __ X._____ X ________

ATN \, _________________________

(* 1 ) : DISCO N N ECT M ESSAG E OUT (see page 87) from I n itiator to Target requesting that the Target
Disconnect from the bus.

(*2) : DISCO N N ECT M ESSAG E I N from Target to I nitiator to inform the Initiator that the Target will
Disconnect from the bus.

T i me Des c r i pt i on Mi n Max Un i ts
Tdi s c T a r g e t n e g a t e s B S Y t o w h e n T a r g e t may 200 J.! S e c
p a rt i c i p a t e i n A R B I T RAT I O N p h a s e ( * 3 ) ;
f o l l ow i n g :
1 . A n I n i t i a t o r req u e s t for a
D i s c o n n e c t v i a a D I S CO N N E C T
M E S SAG E O U T , a n d
2 . T h e T a rg e t a g r e e s a n d s e n d s a
D I S CO N N E C T M E S S AG E I N
( d i s c o n n e c t i o n d e l ay )
( * 3 ) : I f t h e D i s c o n n e c t T i me L i m i t i n t h e D i s co n n e c t - R e c o n n e c t M o d e P a g e i s
l a r g e r , t h a n i t o v e r r i d e s t h e 2 0 0 J.! S e c d e l ay . S e e p a g e 1 4 6 .

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N O L Publications


BUS T I M I N G 63
SCS I Co nfig u re d Auto-Magically(SCAM) Selectio n P h ase ( I n itiati o n )

BSY
< Tsrb > 1 < Tssh->
\

- -
-

SEL __/
1 <-Twon-> I <Tmsd> I <Tmab>
MSG I \\\

I
X- OOh
( *1) Bu s-OwniD
Data X -

-- -

other
signals <-Tbao->
( *2 ) ------- X -

(*1 ) Data Bus is only D B (?-0). All other data bus signals and parity remain released during SCAM .

(*2) Other signals C/D, 1/0, DB(?) , and DB(6). They may b e asserted t o complete SCAM initiation (see
=

next page) . REO, ACK, and ATN remain released during the SCAM protocol.

T i me Des cri p t i on Mi n Max Un i ts


Two n A rb i t r a t i o n w i n n e r a s s e rt s S E L t o 1200 nsec
wi nner chang i ng any bus s i g n a l
( b u s c l e a r d e l ay p l u s b u s s e t t l e d e l ay )
Tsrb S CAM D e v i c e a s s e r t s M S G a n d re l e a s e s 90 nsec
D a t a B u s t o r e l e a s i n g B S Y ( two a syn c s y s t em
d e s k e w d e l ays )
Ts s h S CAM De v i c e s rema i n i n S CAM s e l e c t i o n p h a s e 250 msec
( S CAM s e l e c t i o n r e s p o n s e t i me )
Tm s d MSG f a l s e t o MSG f a l s e v a l i d ated 400 nsec
(wi re-OR g l i tc h f i l teri n g )
( b u s s e t t l e d e l ay )
Tma b MSG fal s e v a l i dated to assert BSY 0 nsec
( t i m i n g n o t n amed )
Tbao S CAM De v i c e a s s e r t s B S Y to S CAM Dev i c e 90 nsec
a s s e rt i n g o t h e r s i g n a l s ( two a s y n c s y s t em
d e s k ew d e l ays )

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 ENDL Publications


64 B U S TI M I N G

SCSI Confi g u re d Auto-Magically (SCAM) E n d o f I n itiati o n

BSY
<-Tbao-> <-Toas-> 1
SEL \\\ I
--

I <Tssd> , <Tsr6>
C/D --

I
I
I/0 --

Data Bus_ o h I , <-T6sd-> I <-T6as->


(*1)
o __ x_c o h______ xxxxxx s o h. ______ _

(* 1 ) Data Bus is only D B (?-0). All other data bus signals and parity remain released during SCAM.

(*2) Other signals C/D, 1/0, D B (?) , and D B (6) . They may be asserted to complete SCAM initiation (see
=

next page). R EO, ACK, and ATN remain released during the SCAM protocol.

T i me Des c r i p t i o n Mi n Max Un i ts
Tbao S CAM De v i c e a s s e r t s B S Y t o S CAM De v i c e 90 nsec

J
a s s e r t i n g C / D , 1 / 0 , DB ( ? ) , D B ( 6
( two a s y n c sys t em d e s kew d e l ays
To as S CAM D e v i c e a s s e rt s C / D , 1 / 0 , DB ( ? ) , D B ( 6 ) 90 nsec
t o re l e a s i n g S E L ( two a s y n c sys tem d e s kew d e l ays )
Tssd

S E L f a l s e t o S E L f a l s e v a l i d a t ed
wi re-OR g l i tc h f i l teri n g )
bus s e tt l e del ay)
400 nsec

Ts r6 S E L f a l s e v a l i d a t e d to r e l e a s e DB ( 6 ) 0 nsec
( t i m i n g n o t n amed )
T6sd

DB ( 6 ) fa l s e to DB ( 6 ) fal s e v a l i dated
wi re-OR g l i tc h f i l te r i n g )
b u s s e t t l e d e l ay )
400 nsec

T6as D B ( 6 ) f a l s e v a l i d a t e d t o a s s e rt S E L 0 nsec
( t i m i n g n o t n amed )

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N O L Publications


BUS T I M I N G 65
SCS I Confi g u red Auto-Mag ically(SCAM) Transfer Cycl e
DB ( 7 ) \\\ I
I <T7sd> <-T7a6-> ->
l < T7
I
- r6
_

DB (6)
-> I <-T5r7 T6r5-> <- T5a7-> <- \\\ I <T6sd>
_
I
DB (5) __/ \\\
> I <-Tda5 I <T5sd>
(4-0) ) X
DB(driven I -
<T6ad> l
-xxxxxxxxxxxxxxxxxxxxx
<T7dv> <T6di> -> � <-T5cd
DB (4-0) xxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
(received)
___

T i me Des cri p t i on Mi n Max U n i ts


Tda5 A s s e rt v a l i d data on DB (4-0) to as sert DB ( S ) (* ) 0 nsec
T5r7 A s s e rt D B ( S ) t o r e l e a s e D B ( ? ) ( * ) 0 nsec
T7sd DB ( ? ) f a l s e to DB ( ? ) fal se v a l i da ted 400 nsec
( w i r e - O R g l i t c h f i l t e r i n g ) ( b u s s e t t l e d e l ay)
T?dv DB ( ? ) fa l s e v a l i dated to DB (4-0) v a l i d ( * ) 0 n s ec
T7a6 DB ( ? ) fa l s e v a l i dated to a s s ert DB ( 6 ) ( * ) 0 n s ec
T6d i S CAM De v i c e r e a d s D B ( 4 - 0 ) t o a s s e r t D B ( 6 ) 0 nsec
and i nval i date data (*)
T6r5 A s s e r t D B ( 6 ) t o re l e a s e DB ( S ) ( * ) 0 nsec
T5sd DB ( S ) f a l s e to DB ( S ) fa l se v a l i d a ted 400 n s ec
( w i r e - O R g l i t c h f i l t e r i n g ) ( b u s s e t t l e d e l ay )
T5cd D B ( S ) f a l s e v a l i d a te d t o r e l e a s e D B ( 4 - 0 ) ( * ) 0 nsec
T5a7 D B ( S ) f a l s e v a l i d a t ed t o a s s e r t D B ( ? ) ( * ) 0 nsec
T7r6 A s s e r t D B ( ? ) t o re l e a s e D B ( 6 ) ( * ) 0 nsec
T6sd D B ( 6 ) f a l s e t o D B ( 6 ) f a l s e v a l i d a t ed 400 nsec
( w i r e - O R g l i t c h f i l t e r i n g ) ( b u s s e t t l e d e l ay)
T6ad D B ( 6 ) f a l s e v a l i d a t ed t o a s s e r t v a l i d d a t a 0 n sec
o n D B ( 4 - 0 ) , b eg i n n i n g t h e n e x t cy c l e ( * )
(*) : This timing parameter i s not named.
SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 ENOL Publications
66 B U S TIMING

This page is intentionally blank!

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N O L Publications


B U S STATE EXA M P LES 67
Bus State Exam ples

Example #1 : Arbitrate, Select, I D ENTI FY


Initiator (Bus I D 5) selects Target (Bus I D
= = 2) , Logical Unit 1 . SCSI Devices with Bus I Ds 4 and 0 also
Arbitrate and lose.

B S Y S E L MSG C / D I /0 R EQ A C K ATN D B 0 - 7 B u s P h a s e o r Cond i ti on


0 0 0 0 0 0 0 0 00 BUS F R E E
1 0 0 0 0 0 0 0 31 A R B I T RAT I O N
1 1 0 0 0 0 0 0 31 bus wi n ner takes bus
1 1 0 0 0 0 0 0 20 b u s l o s e rs c l e a r o f f t h e b u s
1 1 0 0 0 0 0 1 24 a s s e r t s ATN a n d D B w i t h I Ds
0 1 0 0 0 0 0 1 24 S E LECT ION
1 1 0 0 0 0 0 1 24 Target res ponds to s e l ect i on
1 0 0 0 0 0 0 1 XX I n i t i ator responds to Target
1 0 1 1 0 0 0 1 XX s t a rt o f p h a s e c h a n g e
1 0 1 1 0 1 0 1 XX b eg i n n i n g o f M E S SAG E OUT p h a s e
1 0 1 1 0 1 0 0 Cl I n i t i a t o r n e g a t e s ATN
1 0 1 1 0 1 1 0 C1 I n i t i a t o r s e n d s I D ENT I FY mes s a g e
1 0 1 1 0 0 1 0 C1 T a rg e t t a k e s I D ENT I FY mes s a ge
1 0 1 1 0 0 0 0 XX end of p h a s e
B S Y S E L M S G C / D I /0 R E Q AC K A T N D B 0 - 7 Bus P h a s e or Condi ti on

NOTE: Signal states are "generic":

0 = N egated or Released; False


1 = Asserted ; True
X = Can be either state

Data Bus (DB0-7) is shown in H EX; Data Bus Parity (DBP) is not shown.

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N O L Publications


68 B U S STATE EXA M P LES

Exa m p l e #2 : TEST U N I T R EADY Command


Initiator ( B u s I D = 6 ) issues TEST U N IT READY t o Target (Bus I D = 1 ) , Log ical U nit 3

B S Y S E L MSG C / D I / 0 R EQ A C K A T N D B 0 - 7 Bus Phase or Cond i t i on


0 0 0 0 0 0 0 0 00 BUS FRE E
1 0 0 0 0 0 0 0 40 A R B I T RAT I O N
1 1 0 0 0 0 0 0 40 bus wi n n e r t a kes b u s
1 1 0 0 0 0 0 1 42 a s s e r t s ATN a n d DB w i t h I D s

0 1 0 0 0 0 0 1 42 S E L E CT I O N
1 1 0 0 0 0 0 1 42 T a rg e t r e s p o n d s t o s e l e c t i o n
1 0 0 0 0 0 0 1 XX I n i t i a t o r r e s p o n d s t o T a rg e t
1 0 1 1 0 0 0 1 XX s tart of phase change
1 0 1 1 0 1 0 1 XX beg i n n i n g o f MESSAGE OUT phase
1 0 1 1 0 1 0 0 C3 I n i t i a t o r n e g a te s A T N
1 0 1 1 0 1 1 0 C3 I n i t i a t o r s e n d s I D E N T I FY me s s a ge
1 0 1 1 0 0 1 0 C3 T a r g e t t a k e s I D E N T I FY m e s s a g e
1 0 1 1 0 0 0 0 XX end of phase

1 0 0 1 0 0 0 0 XX s t a rt o f p h a s e c h a n g e
1 0 0 1 0 1 0 0 XX b e g i n n i n g o f COMMA N D p h a s e
1 0 0 1 0 1 1 0 00 I n i t i a t o r s e n d s COMMAND by t e 0
1 0 0 1 0 0 1 0 00 T a r g e t t a k e s COMMA N D byte
1 0 0 1 0 0 0 0 XX e n d o f t r a n s fe r
1 0 0 1 0 1 0 0 XX byte 1 o f COMMA N D p h a s e
1 0 0 1 0 1 1 0 00 I n i t i a t o r s e n d s COMMA N D byt e 1
1 0 0 1 0 0 1 0 00 T a rg e t t a k e s COMMA N D by t e ( * 1 )
1 0 0 1 0 0 0 0 XX end of trans fer

1 0 0 1 0 1 0 0 XX b y t e 2 o f COMM A N D p h a s e
1 0 0 1 0 1 1 0 00 I n i t i a t o r s e n d s COMMA N D byt e 2
1 0 0 1 0 0 1 0 00 T a r g e t t a k e s COMMA N D b y t e
1 0 0 1 0 0 0 0 XX e n d o f t r a n s fe r
1 0 0 1 0 1 0 0 XX by t e 3 o f C OMMA N D p h a s e
1 0 0 1 0 1 1 0 00 I n i t i a t o r s e n d s COMMAN D by t e 3
1 0 0 1 0 0 1 0 00 T a rg e t t a k e s COMMA N D byte
1 0 0 1 0 0 0 0 XX end of tran s fer
BSY SEL MSG C/D I /0 REQ ACK ATN DB0-7 Bus Phase or Cond i t i on

( * 1 ) : I D E NT I FY e s t a b l i s h e d t h e L o g i c a l U n i t N um b e r . I t i s n o t n e c e s s a ry t o
r e p e a t i t i n t h e Comm a n d B l o c k .

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N D L Publications


B U S STATE EXA M P LES 69

B S Y S E L M S G C / D I / 0 R EQ A C K A T N D B 0 - 7 Bus Phase or Cond i t i on


1 0 0 1 0 1 0 0 XX by t e 4 of COMMAN D p h a s e
1 0 0 1 0 1 1 0 00 I n i t i a t o r s e n d s COMMAN D byte 4
1 0 0 1 0 0 1 0 00 T a r g e t t a k e s COMMAN D byte
1 0 0 1 0 0 0 0 XX end of trans fer
1 0 0 1 0 1 0 0 XX byte 5 of COMMA N D p h a s e
1 0 0 1 0 1 1 0 00 I n i t i a t o r s e n d s COMMA N D by t e 5
1 0 0 1 0 0 1 0 00 T a rg e t t a k e s COMMAN D by t e
1 0 0 1 0 0 0 0 XX e n d o f t ra n s fe r
1 0 0 1 1 0 0 0 XX s t a rt of p h a s e c h a n g e
1 0 0 1 1 0 0 0 00 T a r g e t s e n d s S T A T U S by t e
1 0 0 1 1 1 0 0 00 beg i n n i n g of STATUS p h a s e
1 0 0 1 1 1 1 0 00 I n i t i a t o r t a k e s S TA T U S by t e
1 0 0 1 1 0 1 0 XX
1 0 0 1 1 0 0 0 XX e n d o f t ra n s fe r
1 0 1 1 1 0 0 0 XX s t a rt o f p h a s e c h a ng e
1 0 1 1 1 0 0 0 00 T a rg e t s e n d s COMMA N D COM P L E T E
1 0 1 1 1 1 0 0 00 b eg i n n i n g o f M ES S AG E I N p h a s e
1 0 1 1 1 1 1 0 00 I n i t i a t o r t a k e s M E S S AG E IN by te
1 0 1 1 1 0 1 0 XX
1 0 1 1 1 0 0 0 XX end of trans fer
0 0 0 0 0 0 0 0 00 BUS FREE
B S Y S E L M S G C / D I /0 R E Q A C K A T N D B 0 - 7 B u s Phase o r Cond i ti on

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 ENOL Publications


70 B U S STATE EXA M P LES

Example #3 : Synchronous Data Transfer Request (SDTR) M essage


Initiator (Bus I D 0) issues I N Q U I RY command to Target (Bus I D 3), Logical U nit 0. Initiator can
= =

accept transfers up to an Offset of 1 2 with 200 nsec Transfer Period. Target can accept transfers up to an
Offset of 1 6 with 250 nsec Transfer Period.

B S Y S E L MSG C / D 1 / 0 R EQ A C K ATN D B 0 - 7 B u s P h a s e or Cond i t i on


0 0 0 0 0 0 0 0 00 BUS FREE
1 0 0 0 0 0 0 0 01 A RB I T RAT I O N
1 1 0 0 0 0 0 0 01 b u s wi n n e r t a kes b u s
1 1 0 0 0 0 0 1 09 a s s e r t s A T N a n d D B w i t h I Ds

0 1 0 0 0 0 0 1 09 S E L ECT I ON
1 1 0 0 0 0 0 1 09 Target res pon d s to s e l ect i on
1 0 0 0 0 0 0 1 XX I n i t i a t o r r e s p o n d s t o T a rg e t

1 0 1 1 0 0 0 1 XX s tart of phase change


1 1 co
1 0 1 1 0 1 0 1 XX b e g i n n i n g o f M E S S AG E O U T p h a s e
1 0 1 1
1 0 1 1 0 1 I n i t i a t o r s e n d s I D E N T I FY me s s a g e
0 0 1 1 co T a rg e t t a k e s I D E N T I FY mes s a g e
1 0 1 1 0 0 0 1 XX e n d o f t r a n s fe r

1 0 1 1 0 1 0 1 XX n e x t by t e o f M E S SAG E OUT p h a s e
1 0 1 1 0 1 1 1 01 I n i t i a t o r s e n d s E X T E N D E D M E S S AG E
1 0 1 1 0 0 1 1 01 T a rg e t t a k e s byte
1 0 1 1 0 0 0 1 XX end of trans fer
1 0 1 1 0 1 0 1 XX n e x t b y t e o f M E S SAG E OUT p h a s e
1 0 1 1 0 1 1 1 03 I n i t i a t o r s e n d s me s s a g e l e n g t h
1 0 1 1 0 0 1 1 03 Target takes byte
1 0 1 1 0 0 0 1 XX e n d o f t r a n s fe r
1 0 1 1 0 1 0 1 XX n e x t byt e o f M E S SAG E O U T p h a s e
1 0 1 1 0 1 1 1 01 I n i t i a t o r s e n d s S D T R me s s a g e code
1 0 1 1 0 0 1 1 01 T a rg e t t a k e s byte
1 0 1 1 0 0 0 1 XX end of trans fer
1 0 1 1 0 1 0 1 XX n e x t by t e o f M E S S AG E O U T p h a s e
1 0 1 1 0 1 1 1 32 I n i t i a t o r s e n d s t r a n s fe r p e r i o d
1 0 1 1 0 0 1 1 32 T a rg e t t a k e s by t e
1 0 1 1 0 0 0 1 XX e n d o f t r a n s fe r
B S Y S E L M S G C / D I / 0 R EQ A C K A T N D B 0 - 7 Bus P h a s e or Con d i t i on

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N D L Publications


BUS STATE EXA M PLES 71

B S Y S E L M S G C / D I /0 R E Q A C K A T N D B 0 - 7 Bus Phase or Cond i t i on


1 0 1 1 0 1 0 1 XX l a s t byte of M E S S A G E OUT p h a s e
1 0 1 1 0 1 0 0 oc I n i t i ator negates ATN
1 0 1 1 0 1 1 0 oc I n i t i a t o r s e n d s R EQ / A C K o f fs e t
1 0 1 1 0 0 1 0 oc T a r g e t t a k e s byte
1 0 1 1 0 0 0 0 XX end o f trans fer
1 0 1 1 1 0 0 0 XX s t a rt o f p h a s e c h a n g e
1 0 1 1 1 0 0 0 01 T a rg e t s e n d s E X T E N D E D M E S SAGE
1 0 1 1 1 1 0 0 01 b eg i n n i n g o f M E S S AG E I N p h a s e
1 0 1 1 1 1 1 0 01 I n i t i a t o r t a k e s byte
1 0 1 1 1 0 1 0 XX
1 0 1 1 1 0 0 0 XX end of trans fer
1 0 1 1 1 0 0 0 03 Target sends mes sage l en g t h
1 0 1 1 1 1 0 0 03 n e x t b y t e o f M E S S AG E I N p h a s e
1 0 1 1 1 1 1 0 03 I n i t i a t o r t a k e s by t e
1 0 1 1 1 0 1 0 XX
1 0 1 1 1 0 0 0 XX e n d o f t ra n s fe r
1 0 1 1 1 0 0 0 01 T a r g e t s e n d s S DT R me s s a g e code
1 0 1 1 1 1 0 0 01 n e x t by t e o f M E S SAGE I N p h a s e
1 0 1 1 1 1 1 0 01 I n i t i a t o r t a k e s byte
1 0 1 1 1 0 1 0 XX
1 0 1 1 1 0 0 0 XX end of trans fer
1 0 1 1 1 0 0 0 3F T a r g e t s e n d s t ra n s fe r p e r i o d
1 0 1 1 1 1 0 0 3F next byte o f MESSAGE IN p h a s e
1 0 1 1 1 1 1 0 3F I n i t i a t o r t a k e s byte
1 0 1 1 1 0 1 0 XX
1 0 1 1 1 0 0 0 XX e n d o f t r a n s fe r
1 0 1 1 1 0 0 0 oc T a rg e t s e n d s R E Q / A C K o f f s e t
1 0 1 1 1 1 0 0 oc ( a g re eme n t w i t h I n i t i a t o r )
1 0 1 1 1 1 1 0 oc I n i t i ator takes byte
1 0 1 1 1 0 1 0 XX
1 0 1 1 1 0 0 0 XX end o f trans fer
1 0 0 1 0 0 0 0 XX s t a rt o f p h a s e c h a n ge
1 0 0 1 0 1 0 0 XX b e g i n n i n g o f COMMA N D p h a s e
1 0 0 1 0 1 1 0 12 I n i t i a t o r s e n d s byte 0
1 0 0 1 0 0 1 0 12 T a r g e t t a k e s by t e
1 0 0 1 0 0 0 0 XX end o f trans fer
and so on . . .
B S Y S E L MSG C / D I / 0 R E Q A C K A T N D B 0 - 7 Bus Phase or Cond i t i on

WAR N I N G : Synchronous negotiation may occur at any time! Another typical time when negotiation could
happen would be prior to a DATA IN or DATA OUT phase.

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 ENDL Publications


72 B U S STATE EXAM P LES

EXAM P LE #4: Reselect I Sync h ro n o u s Data Transfer

Target (Bus I D 0) , Logical Unit 1 , reconnect to I nitiator (Bus I D 3) . A 256 byte DATA OUT transfer
= =

then begins from the Initiator to the Target with a R EO/ ACK Offset of 4. The connection is completed with
a SAVE DATA POI NTER and DISCO N N ECT M ESSAG E I N .

B S Y S E L M S G C / D 1 / 0 REQ A C K ATN D B 0 - 7 Bus Phase or Cond i t i on


0 0 0 0 0 0 0 0 00 BUS FREE

1 0 0 0 0 0 0 0 01 A RB I T RAT I O N
1 1 0 0 0 0 0 0 01 b u s wi n n e r ta kes b u s
1 1 0 0 0 0 0 0 09 a s s e rt s D B w i t h I D s
0 1 0 0 1 0 0 0 09 R E S E L ECT I O N
1 1 0 0 1 0 0 0 09 I n i t i ator responds to R E S E LECT ION
1 0 0 0 1 0 0 0 XX T a rg e t r e s p o n d s to I n i t i a t o r ( * 1 )

1 0 1 1 1 0 0 0 XX s t a rt o f p h a s e c h a n g e
1 0 1 1 1 0 0 0 81 T a rg e t s e n d s I D E NT I FY mes s a g e
1 0 1 1 1 1 0 0 81 b e g i n n i n g o f M E S S AG E I N p h a s e
1 0 1 1 1 1 1 0 81 I n i t i a t o r t a k e s I D E NT I F Y mes s a g e
1 0 1 1 1 0 1 0 XX
1 0 1 1 1 0 0 0 XX e n d o f t r a n s fe r

1 0 0 0 0 0 0 0 XX s tart of phase change


1 0 0 0 0 1 0 0 XX f i r s t R EQ o f DATA O U T p h a s e
1 0 0 0 0 0 0 0 XX n eg a t e R E Q p u l s e
1 0 0 0 0 1 0 0 XX n e x t REQ
1 0 0 0 0 0 0 0 XX negate REQ p u l se
1 0 0 0 0 1 0 0 XX next REQ
1 0 0 0 0 0 0 0 XX n egate REQ p u l se
1 0 0 0 0 1 0 0 XX n e x t REQ : T a rg e t s t a l l s d u e t o
1 0 0 0 0 0 0 0 XX R EQ / A C K O f fs e t ; n e g a t e R EQ p u l s e
1 0 0 0 0 0 0 0 01 I n i t i a t o r : 1 s t d a t a byte o n b u s
1 0 0 0 0 0 1 0 01 I n i t i ator a s s erts 1 s t ACK p u l se
1 0 0 0 0 1 1 0 01 T a rg e t a s s e rt s n e x t R E Q p u l s e ( * 2 )
1 0 0 0 0 1 0 0 01 I n i t i ator negates ACK p u l se
1 0 0 0 0 0 0 0 02 n e x t d a t a byte o n b u s
B S Y S E L M S G C / D I / 0 R E Q A C K ATN D B 0 - 7 Bus Phase o r Con d i t i on
(*1 ) : The Initiator then negates BSY; the Target is still asserting BSY.

(*2) : The Target can assert REO anytime after the leading edge of the ACK. This example shows the
fastest timing.

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N O L Publications


B U S STATE EXA M P LES 73

BSY S E L MSG C / D I /0 R EQ ACK A T N D B 0 - 7 Bus P h a s e or Con d i t i on


1 0 0 0 0 0 1 0 02 I n i t i a t o r a s s e rt s n e x t A C K p u l s e
1 0 0 0 0 1 1 0 02 T a rg e t a s s e r t s n e x t R E Q p u l s e
1 0 0 0 0 1 0 0 02 I n i t i ator negates ACK p u l se
1 0 0 0 0 0 0 0 03 n e x t d a t a by t e o n b u s
1 0 0 0 0 0 1 0 03 I n i t i ator a s s e rts next ACK p u l se
1 0 0 0 0 1 1 0 03 T a rg e t a s s e rt s n e x t R E Q p u l s e
1 0 0 0 0 1 0 0 03 I n i t i ator negates ACK p u l se
1 0 0 0 0 0 0 0 04 next d a t a byte on b u s

and so on . . . . u n t i l end of trans fer . . . .


1 0 0 0 0 0 0 0 FB n e x t d a t a byte o n b u s
1 0 0 0 0 0 1 0 FB I n i t i ator as serts next ACK pul se
1 0 0 0 0 1 1 0 FB T a r g e t a s s e r t s L A S T R EQ p u l s e
1 0 0 0 0 1 0 0 FB I n i t i a t o r n e g a t e s AC K p u l s e
1 0 0 0 0 0 0 0 FC n ex t d a t a by t e o n b u s
1 0 0 0 0 0 1 0 FC I n i ti ator asserts next ACK pul se
1 0 0 0 0 0 0 0 FC I n i ti ator negates ACK pu l s e
1 0 0 0 0 0 0 0 FD n e x t d a t a by t e o n bus
1 0 0 0 0 0 1 0 FD I n i t i ator asserts next ACK pul se
1 0 0 0 0 0 0 0 FD I n i ti ator negates ACK pu l se
1 0 0 0 0 0 0 0 FE n e x t d a t a by t e o n bus
1 0 0 0 0 0 1 0 FE I n i t i ator a s s e rts next ACK pul se
1 0 0 0 0 0 0 0 FE I n i t i ator negates ACK p u l se
1 0 0 0 0 0 0 0 FF n e x t d a t a by t e o n bus
1 0 0 0 0 0 1 0 FF I n i t i ator a s s e rts next ACK pul se
1 0 0 0 0 0 0 0 FF I n i t i ator negates ACK p u l se
1 0 0 0 0 0 0 0 XX end of t r a n s f e r
1 0 1 1 1 0 0 0 XX s t a rt o f p h a s e c h a n g e
1 0 1 1 1 0 0 0 02 Target s e n d s SAV E DATA POI NTER
1 0 1 1 1 1 0 0 02 b e g i n n i n g o f M E S S AG E I N p h a s e
1 0 1 1 1 1 1 0 02 I n i t i a t o r t a k e s M E S S AG E I N byte
1 0 1 1 1 0 1 0 XX
1 0 1 1 1 0 0 0 04 T a rg e t s e n d s D I S C O N N E C T m e s s a g e
1 0 1 1 1 1 0 0 04 n e x t by t e o f M E S SAG E IN p h a s e
1 0 1 1 1 1 1 0 04 I n i t i a t o r t a k e s M E S S AG E IN byte
1 0 1 1 1 0 1 0 XX
1 0 1 1 1 0 0 0 XX e n d o f t r a n s fe r
0 0 0 0 0 0 0 0 00 BUS FREE
B S Y S E L M S G C / D I / 0 R EQ A C K A T N D B 0 - 7 Bus P h a s e o r Con d i t i on

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N O L Publications


74 B U S STATE EXA M P LES

EXAM PLE #5 : M ESSAG E OUT P h ase Parity Error Recovery

I nitiator is sending Synchronous Data Transfer Request to Target when the Target detects a parity error
during the transfer.

BSY S E L MSG C / D I / 0 R EQ A C K ATN D B 0 - 7 Bus Phase o r Cond i t i on


1 0 0 0 0 0 0 1 XX I n i t i a t o r h a s A T N a s s e rt e d
1 0 1 1 0 0 0 1 XX s tart of phase change
1 0 1 1 0 1 0 1 XX b e g i n n i n g o f M ES SAG E OUT p h a s e
1 0 1 1 0 1 1 1 01 I n i t i a t o r s e n d s E X T E N D E D M E S S AG E
1 0 1 1 0 0 1 1 01 T a rg e t t a k e s by t e
1 0 1 1 0 0 0 1 XX e n d o f t r a n s fe r
1 0 1 1 0 1 0 1 XX n e x t by t e o f M E S S AG E OUT p h a s e
1 0 1 1 0 1 1 1 03 I n i t i ator sends mes s age l ength
1 0 1 1 0 0 1 1 03 T a rg e t t a k e s by t e * P A R I T Y E R ROR ! *
1 0 1 1 0 0 0 1 XX e n d o f t r a n s fe r
1 0 1 1 0 1 0 1 XX n e x t by t e o f M E S S A G E O U T p h a s e
1 0 1 1 0 1 1 1 01 I n i t i a t o r s e n d s S D T R me s s a g e code
1 0 1 1 0 0 1 1 01 T a rg e t t a k e s by t e a n d i g n o re s i t
1 0 1 1 0 0 0 1 XX e n d o f t r a n s fe r

1 0 1 1 0 1 0 1 XX n e x t b y t e o f M E S SAG E O U T p h a s e
1 0 1 1 0 1 1 1 64 I n i t i a t o r s e n d s t r a n s fe r p e r i od
1 0 1 1 0 0 1 1 64 T a rg e t t a k e s byte and i g n o r e s i t
1 0 1 1 0 0 0 1 XX e n d o f t ra n s fe r
B S Y S E L MSG C / D I /0 R E Q A C K ATN D B 0 - 7 Bus Phase o r Con d i t i on

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N O L Publications


BUS STATE EXAM PLES 75

B S Y S E L M S G C / D 1 / 0 R EQ A C K A T N D B 0 - 7 Bus P h a s e o r Condi t i on
1 0 1 1 0 1 0 1 XX l a s t by t e o f M E S S AG E OUT p h a s e
1 0 1 1 0 1 0 0 oc I n i t i a t o r n e g a t e s ATN
1 0 1 1 0 1 1 0 oc I n i t i a t o r s e n d s R EQ / A C K o f f s e t
1 0 1 1 0 0 1 0 oc T a r g e t t a k e s byte a n d i g n o re s i t
1 0 1 1 0 0 0 0 XX end of trans fer
1 0 1 1 0 1 0 0 XX b eg i n n i n g o f M E S SAG E O U T r e t ry
1 0 1 1 0 1 0 1 XX I n i t i ator responds wi th ATN
1 0 1 1 0 1 1 1 01 I n i t i a t o r s e n d s E X T E N D E D M E S SAG E
1 0 1 1 0 0 1 1 01 T a r g e t t a k e s byte
1 0 1 1 0 0 0 1 XX e n d o f t r a n s fe r
1 0 1 1 0 1 0 1 XX n e x t byte o f M E S S AG E OUT p h a s e
1 0 1 1 0 1 1 1 03 I n i t i a t o r s e n d s m e s s ag e l e n g t h
1 0 1 1 0 0 1 1 03 T a r g e t t a k e s by t e * PA R I T Y O KA Y ! *
1 0 1 1 0 0 0 1 XX e n d o f t ra n s fe r
1 0 1 1 0 1 0 1 XX n e x t by t e o f M E S S AG E OUT p h a s e
1 0 1 1 0 1 1 1 01 I n i t i a t o r s e n d s S D T R me s s ag e code
1 0 1 1 0 0 1 1 01 T a r g e t t a k e s by t e
1 0 1 1 0 0 0 1 XX e n d o f t r a n s fe r
1 0 1 1 0 1 0 1 XX n e x t b y t e o f M E S S AG E OUT p h a s e
1 0 1 1 0 1 1 1 64 I n i t i a t o r s e n d s t r a n s fe r p e r i o d
1 0 1 1 0 0 1 1 64 T a r g e t t a k e s byte
1 0 1 1 0 0 0 1 XX e n d o f t r a n s fe r

1 0 1 1 0 1 0 1 XX l a s t by t e o f M E S S AG E O U T p h a s e
1 0 1 1 0 1 0 0 oc I n i t i a t o r n e g a t e s ATN
1 0 1 1 0 1 1 0 oc I n i t i ator sends REQ/ACK offset
1 0 1 1 0 0 1 0 oc T a r g e t t a k e s by t e a n d a c c e p t s i t
1 0 1 1 0 0 0 0 XX e n d o f t r a n s fe r
1 0 1 1 1 0 0 0 XX s t a rt o f p h a s e c h a n g e
and so on . . . .

B S Y S E L M S G C / D I /0 R E Q A C K A T N D B 0 - 7 Bus P h a s e or Con d i t i on

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 ENOL Publications


76 B U S STATE EXA M P LES

EXAM P LE #6 : M ESSAG E I N P hase Parity Error Recovery


Initiator is receiving Synchronous Data Transfer Request from Target when the Initiator detects a parity
error during the transfer.

B S Y S E L M S G C / D I /0 R EQ A C K ATN D B 0 - 7 B u s P h a s e o r C on d i t i o n
0
0
1 1 1 1 0 0 0 XX s tart of phase change

0
1 1 1 1 0 0 0 01 T a rg e t s e n d s EXT E N D E D M E S S AG E

0
1 1 1 1 1 0 0 01 b eg i n n i n g o f M E S S AG E I N p h a s e
0
1 1 1 1 1 1 0 01 I n i t i a t o r t a k e s byt e
0
1 1 1 1 0 1 0 XX
1 1 1 1 0 0 0 XX e n d o f t r a n s fe r

0
0
1 1 1 1 0 0 0 03 T a rg e t s e n d s me s s a g e l e n g t h

0
1 1 1 1 1 0 0 03 n e x t by t e o f M E S S A G E I N p h a s e

0
1 1 1 1 1 1 0 03 I n i t i a t o r t a k e s by t e
1 1 1 1 0 1 0 XX *PARITY ERROR ! *
1 0 1 1 1 0 1 1 XX I n i t i a t o r a s s e r t s A T N b e fo re
1 0 1 1 1 0 0 1 XX n e g a t i n g AC K ; e n d o f t r a n s fe r
1 0 1 1 1 0 0 1 01 T a rg e t s e n d s S DT R me s s a ge c o d e
1 0 1 1 1 1 0 1 01 n e x t by t e o f M E S SAG E I N p h a s e
1 0 1 1 1 1 1 1 01 I n i t i a t o r t a k e s by t e , i g n o r e s i t
1 0 1 1 1 0 1 1 XX
1 0 1 1 1 0 0 1 XX e n d o f t r a n s fe r

0
0
1 1 1 1 0 0 1 3F T a r g e t s e n d s t ra n s fe r p e r i o d

0
1 1 1 1 1 0 1 3F n e x t byte o f M E S S A G E I N p h a s e

0
1 1 1 1 1 1 1 3F I n i t i a t o r t a k e s byt e , i g n o r e s i t

0
1 1 1 1 0 1 1 XX
1 1 1 1 0 0 1 XX e n d o f t r a n s fe r

0
0
1 1 1 1 0 0 1 oc T a r g e t s e n d s REQ/ACK o f f s e t
1 1 1 1 1 0 1 oc n e x t byt e o f M E S S AG E I N p h a s e
1 0 1 1 1 1 1 1 oc I n i t i a t o r t a k e s byt e , i g n o re s i t
1 0 1 1 1 0 1 1 XX
1 0 1 1 1 0 0 1 XX e n d o f t r a n s fe r
1 0 1 1 0 0 0 1 XX s t a r t of p h a s e c h a n g e
1 0 1 1 0 1 0 1 XX b e g i n n i n g o f M E S S AG E O U T p h a s e
1 0 1 1 0 1 0 0 09 I n i t i ator negates ATN
1 0 1 1 0 1 1 0 09 I n i t i a t o r s e n d s M E S SAG E PAR I TY
E R ROR m e s s a g e
1 0 1 1 0 0 1 0 09 T a rg e t t a k e s mes s a g e
1 0 1 1 0 0 0 0 XX end of phase
B S Y S E L M S G C / D I /0 R E Q A C K A T N D B 0 - 7 Bus Phase o r Con d i t i on

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N D L Publications


BUS STATE EXA M P LES 77

B S Y S E L MSG C / D I /0 R EQ ACK ATN D B 0 - 7 Bus P h a s e o r Con d i t i on


1 0 1 1 1 0 0 0 XX s t a r t o f p h a s e c h a n g e f o r r e t ry
1 0 1 1 1 0 0 0 01 T a r g e t s e n d s E X T E N D E D M E S SAGE
1 0 1 1 1 1 0 0 01 beg i n n i ng o f MESSAGE I N phase
1 0 1 1 1 1 1 0 01 I n i t i a t o r t a k e s byte
1 0 1 1 1 0 1 0 XX
1 0 1 1 1 0 0 0 XX end of trans fer
1 0 1 1 1 0 0 0 03 Target sends mes s age l en g t h
1 0 1 1 1 1 0 0 03 n e x t by t e o f M E S SAG E I N p h a s e
1 0 1 1 1 1 1 0 03 I n i t i a t o r t a k e s byte
1
1 0 1 1 1 0 1 0 XX * P A R I T Y O KAY ! *
1 0 1 1 0 0 0 XX end of trans fer
1 0 1 1 1 0 0 0 01 T a r g e t s e n d s S D T R mes s a g e c o d e
1 0 1 1 1 1 0 0 01 n e x t byt e o f M E S SAG E I N p h a s e
1 0 1 1 1 1 1 0 01 I n i t i a t o r t a k e s byte
1 0 1 1 1 0 1 0 XX
1 0 1 1 1 0 0 0 XX e n d o f t r a n s fe r

1 0 1 1 1 0 0 0 3F T a rg e t s e n d s t r a n s fe r p e r i od
1 0 1 1 1 1 0 0 3F n e x t byte o f M E S S A G E I N p h a s e
1 0 1 1 1 1 1 0 3F I n i t i a t o r t a k e s byte
1 0 1 1 1 0 1 0 XX
1 0 1 1 1 0 0 0 XX end of trans fer
1
1
1 0 1 1 0 0 0 oc T a r g e t s e n d s R EQ / A C K o f f s e t
1 0 1 1 1 0 0 oc n e x t byt e o f M E S S AG E I N p h a s e
1 0 1 1 1 1 1 0 oc I n i t i ator ta kes byte
1 0 1 1 1 0 1 0 XX
1 0 1 1 1 0 0 0 XX e n d o f t r a n s fe r

1 0 0 1 0 0 0 0 XX s t a rt o f p h a s e change
1 0 0 1 0 1 0 0 XX b e g i n n i n g o f C OMMA N D p h a s e
1 0 0 1 0 1 1 0 12 I n i t i a t o r s e n d s Comm a n d byte 0
1 0 0 1 0 0 1 0 12 T a rg e t t a k e s by t e
1 0 0 1 0 0 0 0 XX e n d o f t ra n s fe r
and so on . . .
B S Y S E L M S G C / D I / 0 R EQ A C K A T N D B 0 - 7 Bus Phase o r Con d i t i on

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N O L Publications


78 B U S STATE EXAMPLES

EXAM PLE #7 : Reselect / Wide (Primary Bus) Synchro n o u s Data Transfer


Target (Bus ID =1 ) , Logical Unit 0, reconnect to Initiator (Bus I D 3) . A 5 1 2 byte (256 word) DATA IN
=

transfer then begins from the Target to the Initiator with a REO/ACK Offset of 3 . The connection is
completed with a SAVE DATA POI NTER and DISCO N N ECT M ESSAG E I N .

B S Y S E L M S G C / D I / 0 R EQ A C K A T N D B 0 - 1 5 B u s Phase or Cond i t i on
0 0 0 0 0 0 0 0 0000 BUS FRE E

1 0 0 0 0 0 0 0 0002 A R B I T RAT I O N
1 1 0 0 0 0 0 0 0002 bus wi n n e r takes b u s
1 1 0 0 0 0 0 0 OOOA a s s e rt s DB w i t h I D s

0 1 0 0 1 0 0 0 0002 R E S E L EC T I ON
xxxx
1 1 0 0 1 0 0 0 0002 I n i t i a t o r re s p o n d s t o R E S E L ECT I O N
1 0 0 0 1 0 0 0 T a rg e t re s po n d s t o I n i t i a t o r ( * 1 )
1 0 1 1 1 0 0 0 xxxx s tart of phase change
1 0 1 1 1 0 0 0 0080 T a rg e t s e n d s I D E NT I FY mes s a g e
1 0 1 1 1 1 0 0 0080 b e g i n n i n g of M E S S A G E I N p h a s e
xxxx
1 0 1 1 1 1 1 0 0 080 I n i t i a t o r t a k e s I D E N T I FY me s s a g e
xxxx
1 0 1 1 1 0 1 0
1 0 1 1 1 0 0 0 e n d o f t r a n s fe r

1 0 0 0 1 0 0 0 xxxx s t a rt o f p h a s e c h a n g e
1 0 0 0 1 0 0 0 0 1 00 Target puts 1 s t data word on bus
1 0 0 0 1 1 0 0 0 1 00 f i r s t R E Q o f DATA I N p h a s e
1 0 0 0 1 0 0 0 0 100 n e g a t e R EQ p u l s e
1 0 0 0 1 0 0 0 0302 next data word on b u s
1 0 0 0 1 1 0 0 0302 next REQ
1 0 0 0 1 0 0 0 0302 n e g a t e R EQ p u l s e
1 0 0 0 1 0 0 0 0504 n e x t d a t a w o r d on b u s
1 0 0 0 1 1 0 0 0504 n e x t REQ : T a r g e t s t a l l s d u e t o
1 0 0 0 1 0 0 0 0504 REQ/ACK Offset ; negate REQ p u l se
xxxx
0
1 0 0 0 1 0 1 0 I n i t i ator a s s e rts 1st ACK p u l se
1 0 0 1 0 1 0 0706 next data word on bus
1 0 0 0 1 1 1 0 0706 T a rg e t a s s e r t s n e x t R E Q p u l s e ( * 2 )
1 0 0 0 1 1 0 0 0706 I n i t i ator negates ACK p u l se
BSY SEL MSG C/D I /0 REQ ACK ATN DB0-7 Bus P h a s e o r Cond i t i on
(*1 ) : The Initiator then negates BSY; the Target is still asserting BSY.

(*2) : The Target can assert REO anytime after the leading edge of the ACK. This example shows the
fastest timing.

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N D L Publications


BUS STATE EXA M P LES 79

B S Y S E L M S G C / 0 I / 0 R EQ AC K A T N D B 0 - 7 Bus P h a s e or Con d i t i on
1 0 0 0 1 0 1 0 xxxx I n i t i ator a s s erts next ACK pul se
1 0 0 0 1 0 1 0 0908 next d a t a word on b u s
1 0 0 0 1 1 1 0 0908 T a r g e t a s s e rt s n e x t R EQ p u l s e
1 0 0 0 1 1 0 0 0908 I n i t i ator negates ACK p u l se
1 0 0 0 1 0 1 0 xxxx I n i t i a t or a s s erts next ACK pu l s e
1 0 0 0 1 0 1 0 OBOA n ex t d a t a w o r d o n b u s
1 0 0 0 1 1 1 0 OBOA T a rg e t a s s e rt s n e x t R EQ p u l s e
1 0 0 0 1 1 0 0 OBOA I n i ti ator negates ACK p u l se

a n d s o o n . . . . u n t i l e n d o f t r a n s fe r . . . .
1 0 0 0 1 0 1 0 xxxx I n i t i a t o r a s s e r t s next AC K p u l s e
1 0 0 0 1 0 1 0 FDFC n e x t d a t a word o n b u s
1 0 0 0 1 1 1 0 FDFC T a rg e t a s s e r t s n e x t R EQ p u l s e
1 0 0 0 1 1 0 0 FDFC I n i t i ator negates ACK p u l s e
1 0 0 0 1 0 1 0 xxxx I n i t i ator a s serts next ACK pu l s e
1 0 0 0 1 0 1 0 FFFE next data word on bus
1 0 0 0 1 1 1 0 FFFE T a rg e t a s s er t s L A S T R E Q p u l s e
1 0 0 0 1 1 0 0 FFFE I n i t i a t o r n e g a t e s AC K p u l s e
1 0 0 0 1 0 1 0 xxxx I n i t i a t o r a s s e rt s next ACK pul se
1 0 0 0 1 0 0 0 xxxx I n i ti ator negates ACK pul se
1 0 0 0 1 0 1 0 xx x x I n i ti ator asserts next ACK pu l se
1 0 0 0 1 0 0 0 xxxx I n i ti ator negates ACK pul se
1 0 0 0 1 0 1 0 xxxx I n i t i ator asserts next ACK pul se
1 0 0 0 1 0 0 0 xxxx I n i t i ator negates ACK p u l s e
1 0 0 0 1 0 0 0 xxxx end o f trans fer
1 0 1 1 1 0 0 0 xxxx s t a rt o f p h a s e c h a n g e
1 0 1 1 1 0 0 0 0002 T a rg e t s e n d s S A V E D A T A P O I N T E R
1 0 1 1 1 1 0 0 0002 b e g i n n i n g o f M E S SAG E I N p h a s e
1 0 1 1 1 1 1 0 0002 I n i t i a t o r t a k e s M E S S AG E IN byt e
1 0 1 1 1 0 1 0 xxxx

1 0 1 1 1 0 0 0 0004 T a rg e t s e n d s D I S C O N N E C T m e s s a g e
1 0 1 1 1 1 0 0 0004 n e x t by t e o f M E S S A G E I N p h a s e
1 0 1 1 1 1 1 0 0004 I n i t i a t o r t a k e s M E S S AG E I N byt e
1 0 1 1 1 0 1 0 xxxx
1 0 1 1 1 0 0 0 xxxx e n d o f t r a n s fe r
0 0 0 0 0 0 0 0 0000 BUS FREE
B S Y S E L M S G C / D I /0 R EQ A C K A T N D B 0 - 7 Bus Phase or Cond i ti on

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N O L Publications


80 BUS STATE EXA M P LES

Example #8 : Arbitrate, Select, I D ENTI FY, S I M P LE ( Q U E U E TAG ) M essag e


Initiator (Bus I D 7) selects Target (Bus I D
= = 3) , Logical U nit 0, Queue Tag 9. SCSI Devices with Bus
I Ds 4 and 0 also Arbitrate and lose.

B S Y S E L MSG C / D I / 0 REQ ACK ATN D B 0 - 7 B u s Phase or Cond i t i on


0 0 0 0 0 0 0 0 00 BUS FREE
1 0 0 0 0 0 0 0 91 A R B I T RAT I O N
1 1 0 0 0 0 0 0 91 b u s wi nner takes bus
1 1 0 0 0 0 0 0 80 bus l o s e r s c l e a r o f f t h e b u s
1 1 0 0 0 0 0 1 88 a s s e r t s A T N a n d DB w i t h I Ds

0 1 0 0 0 0 0 1 88 S E L ECT I ON
1 1 0 0 0 0 0 1 88 T a rg e t r e s p o n d s t o s e l e c t i o n
1 0 0 0 0 0 0 1 XX I n i t i a t o r r e s p o n d s t o T a rg e t

1 0 1 1 0 0 0 1 XX s tart o f p h a s e change
1 0 1 1 0 1 0 1 XX b e g i n n i n g o f M E S S AG E OUT p h a s e
1 0 1 1 0 1 0 1 co I n i t i a t o r p u t s by t e o n b u s
1 0 1 1 0 1 1 1 co I n i t i a t o r s e n d s I D E NT I FY m e s s age
1 0 1 1 0 0 1 1 co T a r g e t t a k e s I D E N T I FY me s s a g e
1 0 1 1 0 0 0 1 XX end of phase
1 0 1 1 0 1 0 1 XX T a rg e t req u e s t s n e x t byte
1 0 1 1 0 1 1 1 20 I n i t i a t o r s e n d s S I M P L E ( Q U E U E TAG
1 0 1 1 0 0 1 1 20 T a rg e t t a k e s t h e T A G me s s a g e
1 0 1 1 0 0 0 1 XX end of phase

1 0 1 1 0 1 0 1 XX T a rg e t req u e s t s n e x t by t e
1 0 1 1 0 1 0 0 09 I n i t i ator negates ATN
1 0 1 1 0 1 1 0 09 I n i t i ator sends the Queue Tag
1 0 1 1 0 0 1 0 09 T a rg e t t a k e s t h e T a g
1 0 1 1 0 0 0 0 XX end o f p h a s e
B S Y S E L MSG C / D I /0 REQ ACK ATN DB0-7 Bus Phase or Cond i t i on

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N O L Publications


B U S STATE EXA M P LES 81
EXAM PLE #9 : I n itiate S CAM P rotocol, I s o l ate, and Assig n Bus I D
The SCAM protocol is initiated , a SCAM Target i s isolated , and the SCAM I n itiator assigns bus 1 0 # 1 to
the isolated SCAM Target. N ote that the signal list in this example is different from the other examples.
The REO, ACK, ATN , and 0 8 (3 1 -8, Px) signals are not used by SCAM and are released during the
protocol.

BSY SEL MSG C / D 1 /0 DB? DB6 DBS DB4-0 B u s P h a s e or Condi ti on


0 0 0 0 0 0 0 0 00000 BUS F R E E
1 0 0 0 0 0 0 0 00000 A R B I T RAT I O N ( n o I D s a s s e r t e d ! )
1 1 0 0 0 0 0 0 00000 bus w i n n e r t a k e s bus
0 1 1 0 0 0 0 0 00000 S CAM S E L E C T I O N
0 1 0 0 0 0 0 0 00000 a l l d e v i c e s h a v e re l e a s e d MSG
1 1 0 0 0 0 0 0 00000 a l l devi ces a s s e rt BSY
1 1 0 0 1 1 1 0 00000 S CAM T a r g e t re s p o n d s
1 1 0 1 1 1 1 0 00000 t h e n S CAM I n i t i a t o r re s p o n d s
1 0 0 1 1 1 1 0 00000 a l l d e v i c e s re l e a s e S E L
1 0 0 1 1 1 0 0 00000 t h e n a l l d e v i c e s re l e a s e D B 6
1 1 0 1 1 1 0 0 00000 S CAM I n i t i a t i o n comp l e t e
1 1 0 1 1 1 0 0 11111 I n i t i a t o r a s s e r t s sy n c f u n c t i o n
1 1 0 1 1 1 0 1 11111 a l l dev i ces a s s ert DB5
1 1 0 1 1 0 0 1 11111 a l l dev i ces rel ease DB?
1 1 0 1 1 0 1 1 11111 a l l d e v i c e s r e a d D B 4 - 0 ; a s s e rt DB
1 1 0 1 1 0 1 0 11111 a l l d e v i c e s re l e a s e D B 5
1 1 0 1 1 1 1 0 xxxxx a l l d e v i c e s a s s e rt D B ?
1 1 0 1 1 1 0 0 XXXXX a l l dev i ces rel ease DB6
1 1 0 1 1 1 0 0 00000 I n i t i ator a s s erts i s o l ate fen .
1 1 0 1 1 1 0 1 00000 a l l devi ces as sert DB5
1 1 0 1 1 0 0 1 00000 a l l d e v i c e s r e l e a s e DB?
1 1 0 1 1 0 1 1 00000 a l l d e v i c e s r e a d D B 4 - 0 ; a s s e r t DB
xxxxx
1 1 0 1 1 0 1 0 00000 a l l d e v i c e s re l e a s e D B 5
1 1 0 1 1 1 1 0 a l l devi ces a s s ert DB?
1 1 0 1 1 1 0 0 X X XXX a l l d e v i c e s re l e a s e D B 6
BSY SEL MSG C/D 1 /0 DB? DB6 DB5 DB4-0 Bus Phase or Cond i ti on

more . . . .

SCSI Bench Reference Copyright © 1 989 , 1 992, 1 996 E N O L Publications


82 B U S STATE EXA M P LES

BSY S E L MSG C / D I /0 DB7 DB6 DBS DB4-0 Bus Phase or Cond i t i on


1 1 0 1 1 1 0 0 000 10 T a rg e t a s s e r t s P r i o r i ty C o d e ms b
1 1 0 1 1 1 0 1 000 10 a l l dev i ces assert DBS
1 1 0 1 1 0 0 1 000 1 0 a l l d e v i c e s re l e a s e D B 7
1 1 0 1 1 0 1 1 000 1 0 a l l d e v i c e s r e a d D B 4 - 0 ; a s s e rt DB
xxxxx
1 1 0 1 1 0 1 0 000 10 a l l d e v i c e s re l e a s e D B S
1 1 0 1 1 1 1 0 a l l d ev i c e s a s s e r t D B 7
1 1 0 1 1 1 0 0 XXXXX a l l dev i ces re l ea s e DB6

1 1 0 1 1 1 0 0 0000 1 T a rg e t a s s e r t s P r i o r i ty C o d e l s b
1 1 0 1 1 1 0 1 0000 1 a l l dev i ces assert DBS
1 1 0 1 1 0 0 1 0000 1 a l l d e v i c e s re l e a s e D B 7
1 1 0 1 1 0 1 1 0000 1 a l l dev i ces read DB4-0 ; ass ert DB
1 1 0 1 1 0 1 0 0000 1 a l l d e v i c e s re l e a s e D B 5
xxxxx
1 1 0 1 1 1 1 0 XXXXX a l l dev i ces as sert DB7
1 1 0 1 1 1 0 0 a l l d e v i c e s re l e a s e D B 6

a n d s o o n . . . u n t i l o n e S CAM T a rg e t i s 1 e f t . . .
1 1 0 1 1 1 0 0 10000 I n i t i a t o r a s s e r t s T e rm i n a te ( * 1 )
1 1 0 1 1 1 0 1 10000 a l l dev i ces a s sert DBS
1 1 0 1 1 0 0 1 1 0000 a l l d e v i c e s re l e a s e D B 7
1 1 0 1 1 0 1 1 1 0000 a l l d e v i c e s r e a d D B 4 - 0 ; a s s e r t DB
1 1 0 1 1 0 1 0 10000 a l l d e v i c e s re l e a s e D B S
1 1 0 1 1 1 1 0 XXXXX a l l d e v i c e s a s s e rt D B 7
1 1 0 1 1 1 0 0 XXXXX a l l dev i ces rel ease DB6

1 1 0 1 1 1 0 0 1 1000 I n i t i ator ass erts Ass i gn acti on


1 1 0 1 1 1 0 1 1 1000 a l l devi ces as sert DBS
1 1 0 1 1 0 0 1 1 1 000 a l l d e v i c e s re l e a s e D B 7
1 1 0 1 1 0 1 1 1 1 000 a l l dev i ces read DB4-0 ; ass ert DB
1 1 0 1 1 0 1 0 1 1 000 a l l d e v i c e s re l e a s e D B S
xxxxx
1 1 0 1 1 1 1 0 XXXXX a l l d e v i c e s a s s e rt D B 7
1 1 0 1 1 1 0 0 a l l d e v i c e s re l e a s e D B 6
1 1 0 1 1 1 0 0 1000 1 I n i t i ator ass erts I D code
1 1 0 1 1 1 0 1 1000 1 a l l dev i ces assert DB5
1 1 0 1 1 0 0 1 1 0 00 1 a l l d e v i c e s re l e a s e D B 7
1 1 0 1 1 0 1 1 1 0 00 1 a l l dev i ces read DB4-0 ; assert DB

xxxxx
1 1 0 1 1 0 1 0 1000 1 a l l d e v i c e s re l e a s e D B 5
xxxxx
1 1 0 1 1 1 1 0 a l l dev i ces as sert DB7
1 1 0 1 1 1 0 0 a l l dev i ces rel ease DB6 _
BSY S E L MSG C / D I /0 DB7 DB6 DBS DB4-0 Bus Phase or Cond i t i on
(*1 ) : Actually, the SCAM Initiator does not have to transfer the Terminate code if only one SCAM Target
remains (as indicated by the 00000 pattern on the previous transfer cycle). If more than one SCAM
Target remains, then the Terminate code must be asserted before an Action may be asserted.

even more . . . .

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N O L Publications


BUS STATE EXAM PLES 83

BSY S E L MSG C / D I / 0 D B ? D B 6 D B 5 D B 4 - 0 Bus Phase or Cond i ti on

other targets a s s i gned as needed . . .


0
0
1 1 1 1 1 0 0 11111 I n i t i a t o r a s s e r t s sy n c f u n c t i o n
0
1 1 1 1 1 0 1 11111 a l l dev i ces ass ert DB5
0
1 1 1 1 0 0 1 11111 a l l d e v i c e s re l e a s e D B ?
0
1 1 1 1 0 1 1 11111 a l l d e v i c e s r e a d D B 4 - 0 ; a s s ert D B
0
1 1 1 1 0 1 0 11111 a l l d e v i c e s re l e a s e D B 5
0
1 1 1 1 1 1 0 XXXXX a l l d e v i c e s a s s e rt D B ?
1 1 1 1 1 0 0 XXXXX a l l d e v i c e s re l e a s e D B 6
0
0
1 1 1 1 1 0 0 0 00 1 1 I n i t i a t o r a s s e rt s comp l e t e f e n .
0
1 1 1 1 1 0 1 00 0 1 1 a l l dev i ces ass ert DB5
1 1 1 1 0 0 1 000 1 1 a l l devi ces rel ease DB?
0
1 1 0 1 1 0 1 1 000 1 1 a l l dev i ces read DB4-0 ; a s s ert DB
1 1 1 1 0 1 0 000 1 1 a l l d e v i ces rel ease DB5
1 1 0 1 1 1 1 0 XXXXX a l l devi ces ass ert DB?
1 1 0 1 1 1 0 0 xxxxx a l l d e v i c e s re l e a s e D B 6
1 1 0 0 1 1 0 0 00000 I n i ti ator rel eases C/D
0 0 0 0 0 0 0 0 00000 BUS F R E E
BSY S E L MSG C / D I /0 DB? DB6 DB5 DB4-0 Bus P h a s e or Condi t i on

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N O L Publications


84 SCSI POI NTERS

Pointers
Pointers are "virtual" registers that refer to a byte position relative to a particular phase. The actual
physical structure within the Initiator for each pointer may be completely different. The structure and
arrangement of pointers are shown below:

Cu rrent Poi nters Saved Poi nters


(Used when connected) (Copied to Current Pointers
when connection is made or
on a "restore"

<
res tore
C u rre n t C omm a n d P o i n t e r S a v e d Comm a n d P o i n t e r

I<
re s t o re
C u rre n t D a t a P o i n t e r
s ave >I Saved Data Poi nter

r e s t o re
C u rre n t S t a t u s P o i n t e r < Saved Status Poi n ter

TYPES: There are two types of pointers:

• Current Pointers are incremented by one after the transfer of one byte in its corresponding phase.

• Saved Pointers retain initial values of the Current Pointers.

Within each type, there are three pointers, one for each type of non-message phase:
• Command Pointer refers to COMMAND Phase information (see SCSI Commands, page 95) .

• Status Pointer refers to STATUS Phase information (see Status Byte , page 239).

• Data Pointer refers to DATA Phase information (since a DATA OUT Phase and a DATA I N Phase
may not occur during the one command execution, only one pointer is defined) .

There are no pointers for M ESSAG E Phase information since messages are used to control the pointers.

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N O L Publications


SCSI POI NTERS 85
DEFI N ITIONS: The interpretation of each pointer is as follows :

• Current Command Pointer: points at the source of the next COM MAN D byte to transfer during a
COM MAN D Phase.

• Current Status Pointer: points at the destination of the next STATUS byte to transfer during a
STATUS Phase.

• Current Data Pointer: points at:

.. The source of the next byte to transfer during a DATA O UT Phase; or

.. The d estination of the next byte to transfer during a DATA IN Phase.

• Saved Command Pointer: set to point at the source of the first COMMAND byte . Does not change
during the execution of the command (The pointer retains its initial value) .

• Saved Status Pointer: set to point at the destination of the first STATUS byte. Does not change
during the execution of the command. (The pointer retains its initial value) .

• Saved Data Pointer: At the start of a command, this is set to point at the first DATA byte. If the
Target issues a SAVE DATA POI NTER message, then the contents of the Current Data Pointer is
copied into this pointer.

R ESTORE: The contents of a Saved Pointer is copied into its corresponding Current Pointer whenever:

• The Initiator makes the initial Selection of the Target (begins a command) ; or

• The Target Reconnects to the Initiator; or

• The Target issues a R ESTO R E POI NTERS M ESSAGE I N .

MODIFY: The Current Data Pointer may also b e modified by a M O D I FY DATA P O I NTER message. The
value passed in the message is two' s complement added to the Current Data Pointer. Subsequent
DATA phases occur from the new pointer value. This message does not affect the contents of the
Saved Data Pointer.

WAR N I NG : The contents of the Current Pointers usually cannot be trusted to contain meaningful
informatio n at the end of a transfer. This is due to pointer control (save and modify) by the Target.
Pointers cannot reliably be used to determine, for example, how many bytes were actually transferred
during a phase.

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N O L Publications


86 SCSI POI NTERS

This page is intentionally blank!

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N O L Publications


M ESSAG E SYSTEM 87
SCSI Message Sy s tem

Message Len gths


F i rs t M e s s ag e
C o d e Byte M e s s a g e F o rm a t
OOh O n e - B y t e Me s s a g e ( COMMAN D COMP L E T E )
Olh " E x t e n d e d " ( M u l t i p l e Byt e ) M e s s a g e s
0 2 h - l Fh O n e - B y t e Me s s a g e s
20h - 2Fh Two - B y t e Me s s a g e s
3 0 h - 7 Fh R e s e r v e d f o r f u t u re s t a n d a rd s
80h - FFh O n e - By t e M e s s a g e ( I D E NT I FY )

One Byte Message Codes (Al phabetic)


M u s t t h i s mes s a g e
be the l as t of a

I
Me s s a g e N a m e Code D i recti on M E S SAG E O U T ? ( * 2 )
ABO RT [ABORT TAS K S ET] ( * 3 ) 06h To Target on l y Yes
ABO RT TAG [ABORT TAS K] ODh To Target on l y Yes
B U S D EV I C E R E S ET [TARG E T R E S ET] OCh To Target on l y Yes
C L EAR A C A 16h To Target on l y No
C L EA R Q U E U E [ C L EA R TAS K S ET] OEh To Target on l y Yes
COMMAND C OM P L E T E [TAS K COM P L E T E] OOh To I n i t i ator on l y
CONT I N U E TAS K 12h To Target on l y Yes
D I SCONNECT 04h To I n i t i ator on l y
D I SCONNECT 04h To Target on l y Yes
I D E N T ! FY (* 1 ) B o t h ways No
I N I T I AT E R ECOV E R Y OFh B o t h ways Yes
I N I T I AT O R D E T E C T E D E R RO R 05h T o T a rg e t o n l y Yes
L I N K E D COMMAN D COM P L E T E OAh To I n i t i ator on l y
L I N K E D COMMAN D COMP L E T E ( W I T H F LAG ) OBh T o I n i t i a to r o n l y
LOG I CA L U N I T R E S E T 17h T o Target on l y Yes
M ES SAG E P A R I T Y E R RO R 09h To Target on l y Yes
M E S SAG E R EJ E C T 07h B o t h ways Yes
NO O P E RAT I O N 08h To Target on l y Yes
R E L EA S E R ECOV E RY lOh T o T a rg e t o n l y Yes
R E S T O R E P O I NT E R S 03h To I n i t i a t o r o n l y
SAV E DATA P O I NT E R 02h To I n i t i ator on l y
TARG ET T RA N S F E R D I S A B L E 13h To Target on l y Yes
T E RM I NAT E I / 0 P ROC E S S [ T E RM I NAT E TAS K] llh T o T a rg e t o n l y Yes
1 4h , 1 5 h , l8h - l Fh R e s e r v e d f o r o n e by t e me s s a g e s
3 0 h - 7 Fh R e s e r v e d , m i g h t ( o r m i g h t n o t ) b e o n e by t e m e s s a g e s
(* *) : see n ext page for notes.

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N D L Publications


88 M ESSAG E SYSTEM

One Byte M essag e Codes (Nu meric)


M u s t t h i s me s s a g e
Mes s a g e be the l ast of a
Code M e s s a g e N ame D i re c t i o n M E S SAG E O U T ? ( *2 )
OOh COMMAN D COMP L E T E [ TA S K COM P L ET E] To I n i t i ator on l y
02h SAV E DATA PO I NT E R To I n i t i ator on l y
03h R E S T O R E PO I NT E RS To I n i t i ator on l y
04h D I SCONN ECT To I n i t i ator on l y
04h D I S CO N N E C T To Target on l y Yes
05h I N I T I AT O R D E T EC T E D E R R O R T o T a rg e t o n l y Yes
06h ABORT [ABORT TAS K S ET] ( * 3 ) To Target on l y Yes
07h M E S S AG E R EJ E C T B o t h ways Yes
08h NO O P E RAT I O N To Target on l y Yes
09h M E S SAG E P A R I T Y E R R O R To Target on l y Yes
OAh L I N K E D COMMAN D COM P L E T E To I n i t i ator on l y
OBh L I N K E D COMMA N D COM P L E T E ( W I T H F LAG ) T o I n i t i a t o r o n l y
OCh B U S D E V I C E R E S ET [TARG ET R E S ET] To T a r g e t o n l y Yes
ODh ABORT TAG [A B O RT T A S K] To Target on l y Yes
OEh C L EA R Q U E U E [ C L EA R TAS K S ET] To T a r g e t o n l y Yes
OFh I N I T IATE RECOV ERY B o t h ways Yes
lOh R E L EA S E R ECOV E RY To T a r g e t o n l y Yes
llh T E RM I NAT E I / 0 P ROC E S S [T ERM I NAT E TAS K] To T a r g e t o n l y Yes
12h CONT I N U E TAS K To Target on l y Yes
13h TARG E T T RA N S F E R D I SAB L E To Target on l y Yes
16h C L EA R ACA To Target o n l y No
17h LOG I CA L U N I T R E S ET To Target on l y Yes
(*1 ) I D E N T I FY B o t h ways No
14h , l 5 h , l8h - l Fh Re s e rv e d for o n e byte m e s s a g e s
3 0 h - 7 Fh Re s e rv e d , m i g h t ( o r m i g h t n o t ) b e o n e byte m e s s a g e s

(*1 ) : S e e IDENTI FY message on page 8 9 for message code values.

(*2) : When sent by the Initiator. If this message must be the last message of a M ESSAG E OUT
phase, then the I nitiator must negate the ATN signal before asserting ACK for the last byte of
the message (see page 6 1 ). - =Not Applicable.

(*3) : Any message name changes between SCS I-2 and SCSI-3 are indicated by (] .

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 ENDL Publications


M ESSAG E SYSTE M 89
I D ENTI FY Message

SCS I -2 Format

By � �t 7 6 5 4 3 2
I
1
I
0

0 I d e n t i fy D i s c P r i v LUNTAR R e s e r v e d Res e rv e d LUNTRN

Identity: 0 = this is not an I D E NTI FY message


1 = this is an I D E NTIFY message

DiscPriv: when sent by the Initiator:


0 = the Target may not Disconnect
1 = the Target may Disconnect (the Target may send the DISCO N N ECT message

• N OTE: The DiscPriv bit m ust be 0 when I D E NTI FY is sent by a Target.

LUNTAR: 0 = LU NTR N is Logical U nit Number


1 = LUNTRN is Target Routine N umber

LUNTRN: indicates the Logical U nit N umber or Target Routine Number

Possible values for the SCSI-2 I D E NTI FY message:

SOh - S7h : "simple" I D E NTIFY for Logical Units 0-7, Disconnects disabled by the Initiator; sent by
Target after RESELECTION phase.
COh - C7h: I DENTI FY for Logical Units 0-7, Disconnects enabled by the Initiator.
AOh - A7h : I D E NTI FY for Target Routines 0-7, Disconnects disabled by the Initiator (SCSI-2 only) .
EOh - E7h : I D E NTI FY for Target Routines 0-7, Disconnects enabled by the Initiator (SCSI-2 only) .

All other values are reserved for future standardization.

SCS I -3 Format

By �� t 7 6 5
I 4
I 3
I 2
I 1
I 0

0 I d e n t i fy D i s c P r i v Lo g i c a l U n i t N u m b e r

Possible values for the SCSI-3 I DENTI FY message:

SOh - BFh: "simple" I D E NTIFY for Logical Units 0-63, Disconnects disabled by t h e I n itiator; sent by
Target after RESELECTION phase.
COh - FFh: I D E NTI FY for Logical U n its 0-63, Disconnects enabled by the I nitiator.

SCSI Bench Reference Copyright © 1 9S9, 1 992, 1 996 E N O L Publications


90 M ESSAG E SYSTEM

Two Byte Message Codes


M u s t t h i s me s s a g e
Mes s a g e be the l ast o f a
Code Mes s a g e N ame D i rect i on M ESSAGE OUT? ( * 1 )
20h S I M P L E TAG [ S I M P L E] ( * 2 ) B o t h ways No
21h H EA D O F TAG [ H EAD O F Q U E U E] To Target on l y No
22h O RD E R E D TAG [O R D E R E D ] To Target on l y No
23h IGNORE W I D E RES I DU E To I n i t i ator on l y
24h ACA To Target o n l y No
2 5 h - 2 FH Re s e r v e d f o r two-byte me s s a g e s

(* 1 ) : When sent b y the Initiator. I f this message must b e the last message of a M ESSAG E OUT
phase, then the I nitiator must negate the ATN signal before asserting ACK for the last byte of
the message (see page 6 1 ) . - Not Applicable.
=

(*2) : Any message name changes between SCSI-2 and SCSI-3 are indicated by (] .

TAG a n d ACA Message Format

Byte Val ue Des c r i p t i o n


0 20h , 2 1 h , TAG o r ACA Mes s a g e C o d e
22h , 24h
1 X Tag (OOh - FFh )

IGNORE W I D E R ES I D U E Message

Byte Val ue Des c r i p t i o n


0 23h I GN O R E W I D E R E S I DU E C o d e
1 X I g n o re C o d e

Ignore: Indicates the number of bytes t o ignore at the e n d of a data transfer:

I g n o re B i t s t o i g n o re a t e n d o f d a t a t ra n s fe r
Code 1 6 -b i t d a t a trans fers 3 2 - b i t d a t a t r a n s fers
OOh Reserved Reserved
Olh i g n o re D B ( l 5 -8 ) i g n o re D B ( 3 1 -2 4 )
02h Reserved i g n o re D B ( 3 1 - 1 6 )
03h Res e r v e d i g n o re D B ( 3 1 - 8 )
04h - FFH Reserved Reserved

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N O L Publications


M ESSAG E SYSTEM 91
M u ltiple Byte ( Extended) Message Codes
M u s t t h i s me s s a g e
Me s s ag e be the l as t o f a
Code M e s s a g e Name D i rect i o n M E S S AG E O U T ? ( * 3 )
MOD I FY DATA PO I NT E R To I n i ti ator on l y
S Y N C H RO N O U S DATA T RA N S F E R R EQU E S T B o t h ways Yes
W I D E DATA TRANS F E R R EQU E S T B o t h ways Yes

(*3) : When sent by the I nitiator. If this message must be the last message of a M ESSAGE O UT
phase, then the I n itiator must negate the ATN signal before asserting ACK for the last byte of
the message (see page 6 1 ) . - Not Applicable.
=

(*4) : See next table.

Ad d i t i o n a l
Extended Message Mes s a g e
Mes s a g e Le n g t h Code Total
( Byt e 0 ) ( Byte 1 ) ( Byte 2 ) Le n g t h Des cri pt i on
Olh 05h OOh 7 by t e s MOD I FY DATA P O I NT E R
Olh 03h Olh 5 by t e s S Y N C H RO N O U S DATA T RA N S F E R R EQU E S T
Olh 02h 03h 4 byt e s W I D E DATA T RA N S F E R R E Q U E S T

Olh 02h n o t u s ed
Olh 04h - 7 Fh Re s e rv e d f o r f u t u re s t a n d a r d s
Olh 80h - FFh Av a i l a b l e f o r V e n d o r U n i q u e
mes s ages

- = N ot Applicable

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N O L Publications


92 M ESSAG E SYSTEM

M u ltiple Byte (Exten d ed) Message Formats

SYNCH R O N O U S DATA TRANSFER R EQ U EST (SDTR)

Byte Val ue Des cri p t i on


0 Olh E x t e n d e d mes s a g e
1 03h E x t e n d e d mes s a g e l e n g t h
2 Olh S Y N C H RO N O U S DATA T RA N S F E R R E Q U E S T c o d e
3 m T r a n s fe r p e r i o d ( m t i me s 4 n a n o s e c o n d s )
4 X R EQ / A C K o f f s e t

Transfer Period: indicates the minimum time (in 4 nsec increments) between leading edges of R E O or
ACK that the device that sends this message can accept. Some interesting values include:

• 32h = 200 nsec; 5Mtransfersjsec maximum SCSI- 1 data transfer rate.

I
• 1 9h = 1 00 nsec; 1 0Mtransfersjsec maximum SCSI-2 " Fast" data transfer rate.

• OCh = 50 nsec (honest ! ) ; 20Mtransfersjsec maximum SCSI-3 " Fast-20" data transfer rate. (Note :
"OCh" is used because 50 nsec cannot be expressed as a multiple of four.)

• 06h? = 25 nsec; 40Mtransfersjsec maximum SCSI-3 " Fast-40" data transfer rate (this number is
not official by any means; we're just guessing ! )

REO/ACK Offset: indicates t h e maximum number of R E O pulses that the device that sends this
message can :

• (As a Target) send before receiving the leading edge of an ACK pulse.

• (As an Initiator) receive before sending the leading edge of an ACK pulse.

A value of OOh indicates asynchronous data transfer mode.

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N O L Publications


M ESSAG E SYSTEM 93

WIDE DATA TRANSFER REQU EST (WDTR)

Byt e Val ue Descri pti on


0 01h Extended mess age
1 02h Extended mes s age l en g t h
2 03h W I D E DATA T RA N S F E R R E Q U E S T c o d e
3 w T ra n s fe r W i d t h E x p o n e n t C o d e

Transfer Width Exponent Code : indicates the bus width as a power of 2 bytes :

• DOh = 8 bits/" 1 byte wide (SCS1-2 A Cable only) .

• 01 h = 1 6 bits/2 bytes wide (SCSI-3 Primary Bus, or SCSI-2 A/B Cable combination).

I
• 02h = 32 bits/4 bytes wide (SCSI-3 Primary/Secondary Bus combination, or SCSI-2 A/B Cable
combination) .

M O D I FY DATA P O I NTER

Byte Val ue Descri pti on


0 01h Extended mes s age
1 05h Extended mes s age l en g t h
2 OOh MOD I FY DATA PO I N T E R c o d e
3 X A r g ume n t ( M o s t S i g n i f i c a n t By t e )
4 X Arg ume n t
5 X Arg ume n t
6 X Arg ume n t ( Le a s t S i g n i f i c a n t By t e )

Argument: a two's complement value that i s added t o the Current Data Pointer value. The Saved Data
Pointer, or any other pointer, is not affected.

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N D L Publications


94 M ESSAG E SYSTEM

SCSI Target Res ponse to Attenti on

The following table summarizes t h e requirements for S C S I Targets when responding to t h e ATN Signal
(i.e., the Attention Condition) . Many SCSI-I Targets that are "Common Command Set (CCS)" compatible
will also behave as described. Other SCSI-I Targets will do as they please, as allowed by the SCSI-I
standard. (NOTE: These requirements were established in SCSI-2.)

If the ATN Signal goes true during : Then the Target must enter M ESSAG E O UT Phase:

COM MAND Phase After all or part of the Command bytes are transferred

DATA IN or DATA O UT Phase At the Target's earliest convenience ("whenever")

STATUS Phase After the Status byte has been acknowledged

I
M ESSAGE IN Phase Before it sends another message to the Initiator

SELECTIO N Phase, Right after the SELECTION Phase


before the I nitiator releases BSY

RESELECTION Phase Right after the Target sends the IDENTI FY Message in

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N O L Publications


SCSI G E N ERAL CO M MA N D S 95
SCSI Commands

SCSI commands are built from a common structure, shown below:

• Operation Code byte


• "N" bytes of parameters
• Control Byte

SCS I Command Descri pto r Block (COB)

1
By � �t 7
I
6
I
5
I 4
I 3
I
2
I J
0

0 Operat i on Code
1 P a rame t e r Byte 1
2 P a rame t e r By t e 2
. . . . . .

N P a rame t e r By t e N
N+l C o n t r o l Byte

The number of bytes of parameters ("N") can be determined from the Operation Code byte, which is
located in byte 0 of the Command Descriptor Block (CDB) . See next page . . .

SCSI Bench Reference Copyright © 1 989 , 1 992, 1 996 E N D L Publications


96 SCSI G E N ERAL COMMANDS

O perati o n Code

By � �t 7
I
6
I
5 4 J 3
I
2 I
1 I
0

0 G ro u p C o d e C omm a n d C o d e

Group Code : establishes the total command length , a s shown in the following table :

G ro u p C o d e Total Number of C o n t r o l By t e

4 5
Val ue C omma n d Le n g t h P a rame t e r Byt e s Locat i on
000 6 bytes byt e s by t e
00 1 1 0 byt e s 8 byt e s byte 9
1 0 byte s 8 by t e s by t e 9
141 0 byby tt ee ss
010

1151
011 n o t d e f i n e d - re s e rv e d
100
12
1 6 byt e s
bytes
�*1�
byte
by t e
*1
101
1 10 vendor speci fi c
111 vendor spec i fi c

Command Code : establishes the command function. Note that the same command code can indicate
different functions for d ifferent group codes.

(*1 ) : WAR N I N G : These groups have been defined as six byte commands for some vendors, while other
vendors have made these ten byte or twelve byte commands.

Log ical U n it N u m ber


In SCSI-3, the " Logical Unit Number" fields that have been in place (Parameter byte 1 , bits 7-5) are no
longer used, and have been reclaimed. We have maintained them in our C O B tables, but have put braces
{ } around them to remind you they are reserved in SCSI-3.

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N O L Publications


SCSI G E N ERAL COM MAN DS 97
The Control Byte, which i s located in the last byte of a Command Descriptor Block, contains control
bits that define the behavior of the command :

Control Byte

By�� t 7
I
6 5
I
4
I
3 2 1 0

Las
t Vendor speci fi c Re s e rv e d NACA Fl ag Li n k

Link: 0 = do not Link to next command


1 = Link to next command. The next phase after the LINKED CO M MAN D COM PLETE
message is COMMAN D PHASE for the next command.

Flag: 0 = no function . M ust be zero if Link is zero. If Link is one then the LI N KE D COMMAND
COM PLETE message is used to indicate the end of the command.
1 = use the LI N KE D COMMAND COM P LETE (WITH FLAG) message to indicate the end
of the command.

NACA: 0 =SCSI-2 Contingent Allegiance condition rules apply if the command causes the Target
to return C H EC K CON D ITION or COM MA N D TER M I NATED status. (* 1 )
1 = SCSI-3 Auto Contingent Allegiance (ACA) condition rules apply if the command
causes the Target to return C H ECK CON DITION or COM MAND TER M I NATED status.

The Vendor Specific bits allow the vendor to create special bits that affect all commands, if needed.

(* 1 ) : Note that this definition is true only for the parallel SCSI bus. Serial SCSI implementations do neat
things like returning Sense Data automatically with the Status response. Therefore, for Serial SCS I ,
NACA = O means "no ACA, just return Sense Data" .

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N O L Publications


98 SCSI G EN ERAL COM MAN DS

Commands for All Device Types (alphabetic listing)

Comm a n d N ame See P a g e SCS I -3 Sect i on OpCode


CHANG E D E F I N I T I O N S e e S PC S PC 7.1 40h
COM P A R E S e e S PC S PC 7.2 39h
COPY See S PC S PC 7.3 18h
COPY AND V E R I FY See SPC S PC 7.4 3Ah
I NQU I RY 100 S PC 7.5 12h
LOG S E L E C T 105 SPC 7.6 4Ch
LOG S EN S E

M O D E S E L EC T 6 )
106
107
S PC
S PC
7.7
7.8
4Dh
15h

MODE S E L E C T 1 0 )
MODE S EN S E 6 )
MODE S EN S E 1 0 )
107
108
1 08
S PC
S PC
S PC
7.9
7 . 10
7 . 11
55h
1Ah
5Ah
MOV E M ED I UM ATTACH ED S e e SMC SMC 6.3 A7 h
P E RS I S T E NT R E S E RV E I N 1 10 S PC 7 . 12 5 Eh
P E RS I S T EN T R E S E RV E OUT 1 14 SPC 7 . 13 5Fh
P R EV E N T / A L LOW M E D I UM R EMOVAL 116 SPC 7 . 14 1Eh
R EAD B U F F E R 116 SPC 7 . 15 3Ch
R EAD E L EM E N T S T A T U S ATTA C H E D S e e SMC
f
SMC 6.5 B4h
R E C E I V E D I AGNOS T I C R E S U LT S 1 18 SPC 7 . 16 1Ch
R E LEAS E 6 ) 1 19 SPC 7 . 17 17h
R E LEAS E 1 0 ) 1 19 SPC 7 . 18 57h
R E PORT L U N S 120 SPC 7 . 19 AO h
·


R EQU E S T S E N S E
:,R E S E R V E 6 )
R E S E RV E 1 0 )
122
123
124
SPC
S PC
SPC
7 . 20
7 .21
7 . 22
03h
16h
56h
S EN D D I AG N OS T I C 126 SPC 7 . 23 1Dh
T E S T U N I T R EADY 128 SPC 7 . 24 OOh
WRITE BUFFER 129 SPC 7 . 25 3Bh

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N O L Publications


SCSI GEN ERAL COM MANDS 99
Commands for All Device Types (numeric listing)

OpCode See Page S C S I - 3 S e c t i on C omm a n d N ame


OOh 128 SPC 7 . 24 T E S T U N I T R EADY
03h 122 SPC 7 . 20 R EQ U E S T S E N S E
12h 100 SPC 7.5 I NQ U I RY
15h
16h
17h
107
123
1 19
SPC
SPC
SPC
7.8
7 . 21
7 . 17
��
MOD E S E L E C T ( 6 )
R E S E RV E 6
R E L EAS E 6
18h S e e S PC SPC 7.3 COPY
1Ah 1 08 SPC 7 . 10 MOD E S E N S E ( 6 )
1Ch 1 18 S PC 7 . 16 R EC E I V E D I AG N O S T I C R E S U LT S
1Dh 126 SPC 7 . 23 S E N D D I AG N O S T I C
1 Eh 116 SPC 7 . 14 P R E V E N T / A L LOW M E D I UM R EMO VAL

39h See SPC SPC 7 . 2 COM P A R E


3Ah See SPC S PC 7 . 4 COPY AND V E R I FY
3Bh 129 S PC 7 . 2 5 WR I T E B U F F E R
3Ch 116 S PC 7 . 1 5 READ BUFFER

40h See SPC SPC 7.1 C HANG E D E F I N I T I ON


4Ch 105 SPC 7.6 LOG S E L E C T
4Dh 106 SPC 7.7 LOG S E N S E
55h
56h
57h
107
124
1 19
SPC
SPC
SPC
7.9
7 . 22
7 . 18
RESERVE 10 � �
MOD E S E L ECT ( 1 0 )
R E L EAS E 1 0
5Ah 108 SPC 7 . 11 MOD E S E N S E ( 1 0 )
5Eh 1 10 SPC 7 . 12 P E RS I S T E N T R E S E R V E I N
5 Fh 1 14 SPC 7 . 13 P E RS I S T E N T R E S E RV E OUT

AOh 120 SPC 7 . 19 R E PORT L U N S


A7 h S e e SMC SMC 6 . 3 MOV E M E D I UM ATTAC H E D
B4h See SMC SMC 6 . 5 R EA D E L EM E NT S TA T U S ATTAC H E D

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 ENOL Publications


100 SCSI G E N ERAL COMMANDS

INQU I RY Command

1
By r� t 7
I
6
I
5
I
4
I
3
I
2
I I
0

0 O p e ra t i o n C o d e ( 1 2 h )
1 { Lo g i c a l U n i t N u mb e r } I Reserved j Cmd D t l EVPD
2 Page Code o r Operat i on Code
3 Re s e rv e d
4 A l l o c a t i o n Le n g t h
5 C o n t r o l Byte

* I N Q U I RY is issued to determine the device type of a particular Logical U nit. I N Q U I RY is also used
to determine some basic information about implemented options and product name.

EVPD CmdDt: The Combination of EVP D and CmdDt determine the use of the Page Code or
-

Operation Code field , and the type of I N Q U I RY data returned :

(CmdDt I EVPD)
00 return standard I N Q U I RY data (as shown below)
=

01 return Vital Product Data (VPD) for the specified Page Code (see SPC)
=

1 0 return Command Support Data for the specified Operation Code (see SPC)
=

11 invalid bit combination


=

Allocation Length : maximum number of data bytes the Target may send.

Page Code or Operation Code : indicates which VPD page or Command Support data to return. VPD
pages are used to return vendor specific data. The SCSI-3 Primary Commands (SPC) currently
defines the following uses for VPD pages:

• Configuration data (e. g . , product I D)

• Manufacturing data (e.g . , date of manufacture)

• Field replaceable unit data (related to FRU code in Sense Data, see page 240)

• Identification data

• Any other device specific data

See SPC for specific details on VPD.

The Command Support data returns the COB length in bytes and also returns a bit map that indicates
which bits within the COB are implemented by the Target. See SPC for more details.

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N O L Publications


SCSI G E N ERAL CO M MAN DS 101
Stan dard I N Q U I RY Data Format

By � it 7
I 6
I 5 4
I 3
I
2
I
1
I
0

0 Peri p hera 1 Qual i fi er P e r i p h e r a l De v i c e Type


1 RMB I De v i c e -Type Q u a l i f i e r / R e s e rv e d
2 I S O V e rs i o n I E CMA V e rs i o n I AN S I - A p p r o v e d V e rs i o n
3 A E N C I T rm i O P j N o rmACA Res e r v e d ! R e s p o n s e D a t a F o rm a t
4 Ad d i t i o n a l L e n g t h ( n -4 )
5 Res e r v e d
6 Re s e rv e d ! E n c S e r v j V e n d S p e c M u l t i P _I MC h n g r j A C K Q R EQQ j A d d r 3 2 I Ad d r 1 6
7 Re l Ad r I WB u s 3 2 I WB u s 1 6 Syn c I L i n k e d j T ra n D i s I Cmd Q u e j V e n d S p e c
8 ( MS B ) -
9 -
10 -
11
Vendor I denti fi cat i on -
12 -
13 -
14
15 ( LS �

more . . . .

SCSI Bench Reference Copyrig ht © 1 989, 1 992, 1 996 E N D L Publications


102 SCSI G E N ERAL CO M MANDS

Standard I N Q U I RY Data Format (continued)

By ��
t 7
I
6
I
5
I
4
I
3
I
2
I
1
I
0

16 (MSB ) -

17 -

18 -

19 -

20 -

21 -

22 -

23
P ro d u c t I d e n t i f i c a t i o n -

24 -

25 -

26 -

27 -

28 -

29 -

30
31 ( LS �
32 (MSB) -

33
P ro d u c t Re v i s i o n L e v e l -

34
35 ( L S�
36
- - -
r- - Vendor Spec i fi c - -

55
56
- - -
1- - R e s e rv e d - -

95
96-nn V e n d o r - S p e c i f i c P a r ame t e r s

Peripheral Qualifier:
000 = peripheral is connected and is specified by Device Type field.
00 1 = peripheral not connected, Device Type indicates what could be connected.
010 = reserved
01 1 = Logical U nit not supported , Device Type must be set to 1 Fh (see Device Type table
below) .
1 00, 1 0 1 , 1 1 0, 1 1 1
= vendor specific Device Type.

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N O L Publications


SCSI G E N ERAL C O M M A N D S 103
Device Type : as defined below.

De v i c e Type R e f e re n c e
Code S t a n d a rd Des cri pti on
OOh SBC D i rect-acces s dev i ce ( e . g . , magnet i c d i s k )
Olh sse Sequent i a l -acce s s dev i ce ( e . g . , mag n et i c tape)
02h sse P r i n t e r dev i ce
03h SPC Processor dev i ce ( e . g . , host to h o s t )
04h SBC W r i t e - o n c e r e a d -m u l t i p l e d e v i c e ( s ome o p t i c a l d i s k s

!
05h MMC C D - ROM d e v i c e
06h SGC S c a n n e r dev i ce
07h SBC O p t i c a l memo ry d e v i c e e . g . , s ome o p t i c a l d i s k s )
08h SMC M ed i um C h a n g e r d e v i c e e . g . , j u k e b o x e s )
09h sse C omm u n i c a t i o n s d e v i c e e . g . , LAN b r i d g e )
OAh - O B h D e f i n e d b y A S C I TS fo r G r a p h i c s A r t s P r e - P re s s De v i c e s
OCh sec A r r ay C o n t r o l l e r ( e . g . , RA I D a r ray c o n t ro l l e r )
ODh SES E n c l o s u re S e r v i c e s De v i c e
OEh - lEh Re s e rv e d
l Fh U n k n ow n o r n o d e v i ce type

RMB: 0 = physical medium fixedjnot removable


1 = physical medium removable

Device-Type Qualifier: This is a vendor specific code that may further qualify the device type. NOTE:
This field has been reclaimed in SCSI-3 and is now reserved.

ISO Version : see ISO IS 93 1 6, or subsequent versions.

ECMA Version : see ECMA-1 1 1 . (Note : ECMA has withdrawn this standard. )

ANSI Version : 0 = the device might or might not be an ANSI standard device
1 = SCSI-1 device (X3. 1 3 1 -1 986)
2 = SCSI-2 device (X3. 1 3 1 -1 994)
3 = SCSI-3 device
4-7 = reserved for "The Future"

AENC [AERC] : 0 = cannot handle Asynchronous Event Notification (AEN ) . See SCSI-2 or SAM.
1 = device is a processor device that can accept AEN data.

TrmiOP [TrmTsk] : 0 = does not support TERMI NATE 1/0 P ROCESS message. See SCSI-2 or SAM .
1 = supports TERM I NATE 1/0 P ROCESS message.

NormACA: 0
1
=

=
does not support NACA bit in the Control Byte.
supports NACA bit in the Control Byte (NACA may be set to 1 ) .
Response Data Format:
0 SCSI-1 standard I N Q U I RY data format
=

1 CCS "standard" I N Q U I RY data format


=

2 SCSI-2/SCSI-3 (SPC) standard I N Q U I RY data format


=

3-F reserved
=

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N O L Publications


104 SCSI G E N E RAL COMMANDS

Additional Length : indicates the number of bytes following this field ; also equals total data bytes minus
four.

EncServ: 0 = device does not include Enclosure Services function


1 = device Enclosure Services function embedded or attached

VendSpec: Vendor specific/unique.

MultiP: 0 = device is a single SCSI port device


1 = device is a two or more SCSI port device

MChngr: 0 = device does not include medium changer function


1 = device is embedded within or attached to a medium changer

ACKQREQQ : 0 = the d evice does not support the Q cable.


1 = the device does support REQQ and ACKQ on a Q cable.

Addr32: 0 = the device does not support 32 bit SCS I addressing.


1 = the device does support 32 bit SCSI addressing.

Addr16: 0 = the device does not support 16 bit SCS I addressing.


1 = the d evice does support 16 bit SCSI addressing.

ReiAdr: 0 = Relative Addressing not supported


1 = Relative Addressing (ReiAdr bit, see page 1 53) supported (disk-like devices only)

WBus32 : 0 = does not support 32 bit data transfer


1 = supports 32 bit data transfer

WBus 1 6 : 0 = does not support 16 bit data transfer


1 = supports 1 6 bit data transfer

Sync: 0 = does not support Synchronous Data Transfer


1 = supports Synchronous Data Transfer

Linked: 0 = does not support Linked commands (see Control Byte, page 97)
1 = supports Linked commands

TranDis: 0 = does not support CONTI N U E TASK and TARGET TRANSFER D I SABLE messages
1 = supports CONTI N U E TASK and TARG ET TRANSFER D I SABLE messages

CmdQue : 0 = does not support Tagged command queueing


1 = supports Tagged command queueing

Vendor Identification : 8 byte ASCII field indicates the product vendor of the Target. See the file
"vendorid.txt" on the SCSI BBS or the X3T1 0 web pages (see page 2) for the current list.)

Product Identification : 1 6 byte ASC I I field indicates the product name of the Target.

Product Revision Level: 4 byte ASC I I field indicates the product revision level of the Target.

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N D L Publications


SCSI GEN ERAL COMMANDS 105
LOG SELECT Co m m a n d

aynt 7
I
6
I
5
I
4
I
3
I 2
I
1
I 0
0 O p e ra t i o n C o d e ( 4C h )
1 { Lo g i c a l U n i t N u m b e r } I Re s e r v e d I PCR I SP
2 PC I Res erved
3 R e s e rv e d
4 Res e r v e d
5 Res erved
6 R e s e rv e d
7 ( MS B )
P a r am e t e r L i s t Le n g t h -

8 ( LS B )
9 C o n t r o l Byte

* LOG S ELECT is issued to manage statistical information the Target maintains about the Logical
Unit.

PCR: 0 = do not reset parameters


1 = reset parameter to Target default values (parameter list length must be 0) .

SP: 0 = do not save Pages


1 = the Target saves the Log Pages it can to some non-volatile storage. The I n itiator
determines which Pages can be saved by looking at the DS bit in the returned LOG
SENSE Page data.

PC: Page Control:

00 = select current threshold values.


01 = select current cumulative values.
10 = select default threshold values.
11 = select default cumulative values.

Parameter List Length : the number of data bytes the Target fetches from the Initiator.

See page 131 for a descri ption of data formats for a l l devices. See specific device type for
defi ned codes for those devi ces :

o disk: page 1 80

o tape: page 220

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 ENOL Publications


106 S C S I G ENERAL COM M ANDS

LOG SENSE C o m m a n d

B yte
Bi t 7
I
6
I
5
I
4
_I
3
I
2
I
1
I
0

0 O p e ra t i o n C o d e ( 4 D h )
1 { Lo g i c a l U n i t N u m b e r } I Reserved I PPC I SP
2 PC I Page Code
3 Reserved
4 Reserved
5 (MSB)
6
P a r am e t e r P o i n te r
( LS"B)
7 (MSB)
8
Al l ocat i on Length
( LS"B)
9 C o n t r o l Byte

* L O G S E N S E is issued to read statistical information from t h e Target for t h e Logical Unit.

PPC: 0 = Target returns the page subject to limits described below.


1 = Target returns the page only parameters that changed since last LOG SENSE or LOG
S ELECT command , subject to the limits described below.

SP: 0 = do not save Pages


1 = the Target saves the Log Pages it can to some non-volatile storage. The Initiator
determines which Pages can be saved by looking at the DS bit in the returned LOG
SENSE Page data.

PC: Page Control:

00 = return threshold values.


01 = return cumulative values.
10 = return default threshold values.
11 = return default cumulative values.

Page Code: the Page Code requested by the Initiator.

Parameter Pointer: first parameter code to retu rn in the page.

Allocation Length : maximum number of data bytes the Target may send.

See page 131 for a descripti o n of data formats for all devices. See specific device type for
defi ned codes for those d evi ces :

• disk: page 1 80

• tape: page 220

SCSI Bench Reference Copyrig ht © 1 989, 1 992, 1 996 E N O L Publications


SCSI G E N E RAL COMMANDS 107
MODE SELECT(6) Command

By � �t 7
I
6
I 5
I
4
I 3
I
2
I
1
I
0
0 O p e ra t i o n C o d e ( 1 5 h )
1 { Lo g i c a l U n i t N u m b e r } I PF I Reserved I SP
2 Reserved
3 Res e r v e d
4 P a rame t e r L i s t L e n g t h
5 C o n t r o l Byte

MODE SELECT(1 0) Command

s A� t 7
I
6
I
5
I
4
I
3
I
2
I
1
I
0

0 O p e ra t i o n C o d e ( 5 5 h )
1 { Lo g i c a l U n i t N u m b e r } I PF I Reserved I SP
2 Res erved
3 Reserved
4 Re s e rv e d
5 Reserved
6 Reserved
7 ( MS B )
P a rame t e r L i s t Le n g t h
8 ( LS B)
9 C o n t r o l Byte

* MODE S E LECT is issued to set variable parameters in the Target for the Logical U n it.

PF: 0 = SCSI-1 data format


1 = SCSI-2/SCSI-3 data format

SP: 0 = do not save Pages


1 = the Target saves the Pages it can to some non-volatile storage. The Initiator deter­
mines which Pages can be saved by looking at the SP bit in the returned MODE
SENSE Page data. WAR N I N G : Some Targets can save different "data sets" for each
Logical U nit and for each Initiator. Other Targets can save only one "data set" per
Logical U nit.

Parameter List Length : the number of data bytes the Target fetches from the I nitiator.

See page 1 37 for a descri pti on of data formats for all devices. See specifi c devi ce type for
data formats for those devices:

• disk: page 1 8 1

• tape: page 222

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 ENOL Publications


108 SCSI G E N E RAL COM MANDS

MODE SENSE(G) Command

By �� t 7
I
6
J
5
I
4
I 3
I
2
I
1
I
0

0 Operat i on (
Code 1Ah )
1 { Log i c a l U n i t Number } ! Re s e rv e d ! DBD I Re s e rv e d
2 PC I Page Code
3 Re s e rv e d
4 A l l ocat i on Length
5 C o n t r o l Byte

M O D E SENSE( 1 0) C o m m a n d

By rk t 7
I
6
I
5
I
4
I
3
I
2
I
1
I
0

0 Opera t i on Code ( 5Ah )


1 { Lo g i c a l Un i t Number } ! R e s e rv e d ! DBD I Res e r v e d
2 PC I Page Code
3 Rese rved
4 Re s e r v e d
5 Re s e r v e d
6 Re s e rv e d
7 (MSB)
8
Al l ocat i on Length
( L S B)
9 C o n t r o l Byt e

* MODE S E N S E i s issued t o read variable and fixed parameters in the Target for the Logical Unit.

080: 0 = the Target may return Block Descriptors (see page 1 40, 1 4 1 ) if it so chooses.
1 = the Target does not return Block Descriptors.

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N D L Publications


SCSI G E N ERAL COM MANDS 109
PC: Page control :

00 = return Current Parameter settings ; i . e . , what t h e Target is using for current opera­
tions.

01 = return Changeable (variable) Parameters; i.e. , what can be changed by the Initiator.
The data requested by the I nitiator is a "mask" that indicates which parameters may
be changed by the Initiator. If a field (bit, bits, byte, or bytes) has all of its bits set to
one, then the field is variable. If all of the bits are zero, then it is fixed (constant) or
not implemented.

10 = return Default Parameter settings; i.e., what the Target uses at power-up until Saved
or Current Parameters are established by the I nitiator. These are the parameters
that the Target would use "right out of the box" , until the Initiator chooses new
Current and/or Saved Parameters.

11 = return Saved Parameter settings; i . e . , what the I nitiator designates as the defaults.
After setting up the Target parameters, the I n itiator can make those parameters the
default by saving them (see SP bit in MODE S ELECT, page 1 05, 1 06, 1 07) .

Page Code: the Page Code requested by the Initiator. A Page Code of 3Fh requests that the Target
return all implemented Pages. See the description of data formats on page 1 37 .

Allocation Length : maximum number of data bytes the Target may send.

See page 1 37 for a description of data formats for all devices. See specific device type for
data formats for those devices :

• disk: page 1 8 1

• tape: page 222

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 ENDL Publications


1 10 SCSI G E N ERAL COMMANDS

PERS I STENT RESERVE IN Command

By nt 7
I
6
I
5
I
4
I
3
I
2
I
1
I
0

0 Operat i on Code ( 5 E h )
1 { Lo g i c a l U n i t N u m b e r } I S e rv i c e A c t i o n
2 Reserved
3 Reserved
4 Reserved
5 Reserved
6 Reserved
7 ( MS B )
Al l ocat i on Len g t h
8 ( L S i3)
9 C o n t r o l Byte

* PERSISTENT R E S E RVE I N is issued t o retrieve reservations a n d reservation keys that are active
within a Logical U nit.

Service Action : Defines the service action to be performed by the command :

OOh Read Keys: return all registered Reservation Keys.


=

01 h Read Reservations : return all current reservations.


=

02h-1 Fh reserved .
=

Allocation Length : maximum number o f data bytes the Target may send.

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N O L Publications


SCSI G E N ERAL COM MANDS 111
PERSISTENT R ES E RVATION I N Parameters f o r " Read Keys " Acti o n

Bi t
B yte
7
I
6
J 5
I 4
J 3
I
2
I
1
I
0

0 (MSB)
-
1
Generat i on -
2
3 ( LS B)
4 (MSB) -
5 -
Ad d i t i o n a l Le n g t h
6
7 ( LS B)
Re s e r v a t i o n Key L i s t
0-7 F i r s t Re s e rv a t i o n Key

0-7 L a s t Re s e rv a t i o n Key

Generation : a 32 bit counter that is incremented every time a PERSISTENT R ESERVE O UT command
requests a Register, Preempt, or a Preempt and Clear operation.

Additional Length : length of the following bytes; also, the number of Reservation Keys times eight.

Reservation Key: the Key List contains all of the 8 byte Reservation Keys sent via a PERSISTENT
RESERVE O UT command.

SCSI Bench Reference Copyrig ht © 1 989, 1 992, 1 996 E N O L Publications


112 SCSI G E N ERAL COMMANDS

PERSISTENT RE SERVAT I O N IN Parameters for " Read Reservations" Acti o n

By �� t 7
I
6
I 5
I
4
I
3
I 2
I
1
I 0

0 ( MS B ) -

1
Generat i on -

2
3 ( LS B)
4 (MSB) -

5
Add i t i on a l Length -

6
7 ( LS B)
Re s e r v a t i o n D e s c r i p t o r s
0 (MSB) -

1 -

2 -

3
Re s e r v a t i o n Key -

4 -

5 -

6
7 ( LS B)
8 (MSB) -

9
Scope-Speci fi c Address -

10
11 ( LSB)
12 Rese rved
13 Scope I Type
14 (MSB)
E x t e n t Le n g t h
15 ( LS B)

Generation : a 32 bit counter that is incremented every time a PERSISTENT RESERVE OUT command
requests a Register, Preempt, or a Preempt and Clear operation.

Additional Length : length of the following bytes; also, the number of Reservation Descriptors times 1 6 .

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N D L Publications


SCSI GEN ERAL COM MAN DS 113
The following are repeated for each Reservation Descriptor:

ReseNation Key: the key under which the reservation is held.

(Scope = 1 ), or the address of the reserved Element (Scope = 2).


Scope-Specific Address: the Logical Block Address of the first block of the reserved Extent

Scope: the scope of the reservation :


0 = persistent reservation applies to the whole Logical Unit.
1 = persistent reservation applies to the specified Extent.
2 = persistent reservation applies to the specified Element.
3-F = reserved

Type : the type of the reservation:


0 = read shared for all; write prohibited for all I nitiators .
1 = read shared for all ; write exclusive for the reserving Initiator.
2 = read exclusive for the reserving Initiator; write shared for all.
3 = read exclusive and write exclusive for only the reserving Initiator.
4 = read shared for all ; write shared for all.
5-F = reserved

Extent Length : the number of blocks to reserve if scope is Extent.

SCS I Bench Reference Copyright © 1 989, 1 992, 1 996 E N O L Publications


1 14 SCSI G EN ERAL COM MANDS

PERSISTENT RESERVE O UT Command

By � �t 7
I
6
I
5
I
4
I
3
I
2
I
1
I
0

0 Operat i on Code ( 5 F h )
1 { Lo g i c a l U n i t N um b e r } I S e rv i c e A c t i o n
2 Scope I Ty pe
3 Re s e rved
4 Res e rved
5 R e s e rved
6 Re s e rved
7 ( MS B )
P a rame t e r L i s t Len g t h
8 ( LS �
9 C o n t r o l Byte

* PERSISTENT RES ERVE OUT is issued to reseNe a Logical Unit, an Extent within the Logical Unit,
or an Element within the Logical U nit.

Service Action : Defines the service action to be performed by the command :

DOh register a ReseNation Key.


=

0'1 h create a persistent reseNation using a ReseNation Key.


=

02h release a persistent reseNation.


=

03h clear all ReseNation Keys and all persistent reservations.


=

04h preempt presistent reseNations from another I nitiator.


=

05h preempt presistent reseNations and clear the preempted Initiator's task set.
=

06h-'1 Fh reserved.
=

Scope: the scope of the reservation:


0 persistent reservation applies to the whole Logical U nit.
=

'1 persistent reseNation applies to the specified Extent.


=

2 persistent reservation applies to the specified Element.


=

3-F reseNed =

Type: the type of the reservation:


0 read shared for all; write prohibited for all Initiators .
=

'1 read shared for all; write exclusive for the reseNing Initiator.
=

2 read exclusive for the reseNing Initiator; write shared for all.
=

3 read exclusive and write exclusive for only the reseNing Initiator.
=

4 read shared for all ; write shared for all.


=

5-F reseNed =

Parameter List Length : number of bytes in parameter list; must be set to 24 (1 8h) .

SCSI Bench Reference Copyright © '1 989, 1 992, '1 996 E N O L Publications
SCSI G E N E RAL COMMANDS 115
PERSISTENT RESERVATI ON O U T Parameter List

By � �t 7
I 6
I 5
I 4
I 3
I 2
I 1
I 0
0 (MSB) -

1
-

2
-

3
Re s e rv a t i o n Key -

4
-

5 -

6
7 ( LS Ei')
8 (MSB) -

9 -

10 -

11
S e rv i c e A c t i o n Re s e rv a t i o n Key -

12
-

13
-

14
15 ( LS'B')
16 (MSB) -

17
S co p e - S p e c i f i c A d d re s s -

18
( LSB )
-

19
20 Res e r v e d
21 Res e r v e d I APTPL
22 (MSB)
( Ls "Bf""
E x t e n t Le n g t h
23

Reservation Key: the Reservation Key of the I nitiator performing the command.

Service Action Reservation Key: the Reservation Key of the I nitiator whose reservation is being
changed, as indicated by the Service Action field.

Scope-Specific Address: the Logical Block Address of the first block of the reserved Extent
(Scope = 1 ) , or the address of the reserved Element (Scope = 2) .

APTPL : 0 = loss of power releases all persistent reservations .


1 = persistent reservations are retained through a power loss.

Extent Length : the number of blocks to reserve if scope is Extent.

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N O L Publications


116 S C S I G ENERAL COM MANDS

PREVENT/ALLOW M E D I U M REM OVAL C o m m a n d

By nt 7
I
6
J
5
I
4
I 3
I 2
I
1
I 0

0 O p e ra t i o n C o d e ( 1 E h )
1 { Lo g i c a l U n i t N umbe r } I Re s e r v e d
2 Re s e rv e d
3 Re s e rv e d
4 Re s e rved I Prevent
5 C o n t r o l Byte

* P R EVENT ALLOW M E D I U M R E M OVAL controls a mechanical interlock on the Target (if any) that
prevents the user from removing the medium.

Prevent: 00 = allow removal


01 = prevent removal from 1/0 device
10 = prevent removal from medium changer
11 = prevent removal from both 1/0 device and medium changer

READ BUFFER C o m m a n d

By r� t 7
I
6
I
5
I
4
I
3
I
2
I
1
I
0
0 Operat i on Code (3Ch )
1 { Log i c a l U n i t N u m b e r } I Reserved I Mode
2 Bu ffer I D
3 ( MS B )
-

4 Bu ffer Offset
5 ( LS�
6 (MSB)
-

7 A l l o c a t i o n Le n g t h
8 ( LSB)
9 C o n t r o l Byt e

* R EAD B U FFER is used to transfer data from the Target's data buffer to the I nitiator. It is usually
issued immediately following the WRITE BU FFER command.

Mode: indicates the command mode and data format:


000 transfer 4 byte Header followed by data
=

001 vendor specific


=

010 transfer data only


=

01 1 transfer a Buffer Descriptor only


=

1 00 - 1 1 1 reserved
=

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N O L Publications


SCSI G E N E RAL COM MANDS 117

Buffer 10 : selects a buffer in the Target. A Target that has any buffer will always have a Buffer I D zero.

Buffer Offset: indicates a byte offset from the beginning of the selected buffer.

Allocation Length: maximum number of data bytes the Target may send.

READ BUFFER Header for Mode 000

By rk t 7
I
6
I
5
I
4
I 3
I 2
I
1
I 0

0 Re s e rv e d
1 ( MS B )
B u ffer Capaci ty
-

2
3 ( LSEi")"

READ BU FFER Descri ptor for M o d e 01 1

By rk t 7
I 6 5
I I 3
I I 0
4 2 1
I J
0 Offset Boundary
1 ( MS B )
B u ffer Capaci ty
-

2
( LSB)
....,..--

Offset Boundary: "power-of-two" representation of the data size within the buffer. A value of zero
indicates byte (8-bit) boundaries. A value of one indicates word (1 6-bit) boundaries, and so on.

Buffer Capacity: size of the selected buffer in bytes.

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N O L Publications


1 18 SCSI G E N ERAL COMMANDS

RECEIVE D IAGNOST I C RESULTS C o m m a n d

sy n t 7
I 6
I 5
I
4
I
3
I 2
I
1
I 0

0 Operati on Code ( 1C h )
1 { Log i ca l Un i t Number} I Reserved I PVC
2 Page Code
3 (MS B ) Al l ocati on Length
4 ( LS�
5 Control Byte
* R ECEIVE DIAG NOSTIC R ES U LTS is used to retrieve data concerning the results of a d iagnostic
function com manded by a prior S E N D DIAG NOSTIC command; or to retrieve data related to the selected
Page Code.

PCV: 0 = Page Code not valid (SCSI-1 /SCSI-2 operation).


1 = Page Code field valid.

Page Code: indicates the function to perform. If Page Code is OOh , then return results based on the
previous S E N D DIAGNOSTIC command.

Allocation Length : m aximum number of data bytes the Target may send.

See page 1 27 for a descri pti on of parameter data formats for a l l devices. See specific
device type for data formats for those devices (disk o n ly: page 1 76).

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N O L Publications


SCSI G E N ERAL COM MAN DS 119
RELEASE(6) Com m a n d

By �� t 3 1
7
I
6
I
5
I
4
I I 2 I I 0

0 Operati on Code ( 17 h )
1 { Log i c a l Un i t Number} I 3 rd Pty I T h i rd Party Dev i ce I D T Extent
2 Reservati on Identi fi cati on
3 Reserved
4 Reserved
5 Control Byte
RELEASE(1 0) Co mmand

By �� t 7
I
6
I
5
I I 3
I 2 I 1 I 0
4

0 Operati on Code ( 5 7 h )
1 { Log i cal Un i t Number} I 3rdPty I Reserved I Lon g i D I Extent
2 Reserv at i on I dent i f i cati on
3 T h i rd Party Dev i ce I D
4 Reserved
5 Reserved
6 Reserved
7 (MS B ) Parameter Li st Length ( LSB)
-

8
9 Control Byte
* RELEASE is used to cancel a reservation made via a RESERV E command. It is not an error to
release non-existent reservations.

3rdPty: 0 = release the reservation that was made to the Initiator issuing the command.
1 = release the reservation that was made to the I nitiator specified in the Third Party
Device I D field.

Long/0: 0 = use Third Party Device ID in byte 3 of C O B and no parameter list.


1 = use parameter list for Third Party Device I D.

Extent: 0 = release reservation for entire disk


1 = release reservation for a partition ( Extent)

Reservation Identification : identifies the Extent to release

Third Party Device 10 : specifies which Initiator has the reservation to release when the 3rd Pty bit is 1 .

Parameter List Length : if LongiD = 0, this is zero; if Long i D = 1 , this is 8 .

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N O L Publications


120 S C S I G E N ERAL COM MANDS

RELEASE(1 0) Parameter List

3 1 0
syn t 7
I
6
I
5
I
4
I I
2
I I
0 {MSB) -
1 -
2 -
3 Th i rd Party Dev i ce I D -
4 -
5 -
6
7 ( LSB)

REPORT LUNS Command

By r� t 7 6 5 4 3 2 1 0
I I I I I I I
0 Operat i on Code ( AOh )
1 Reserved
2 Reserved
3 Reserved
4 Reserved
5 Reserved
6 (MSB) -
7 Al l ocat i on Length -
8
9 ( LSB)
10 Res erved
11 Control Byte
* R E PORT LU N S returns a list o f Logical U nit Numbers t o which commands may be issued.

Allocation Length : maximum number of data bytes the Target may send.

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N O L Publications


SCSI G E N E RAL COM MANDS 121
REPORT LUNS Parameter List

1
sy n t 7
I 6
I 5
I 4
I 3
I 2
I I 0
0 (MSB)
1
-

2
LUN Li s t Length -

3 ( LSB)
.....,...--

4 Reserved
5 Reserved
6 Reserved
7 Reserved
LUN Li st
0-7 Fi rst L U N

0 -7 Last LUN

LUN List Length : the number of LUNs reported times 8 .

LUN: a Logical Unit t o which commands may b e issued. The number i s justified t o the LSB ; for
example, LU N #1 would be 00 00 00 oo 00 00 00 01 h.

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N D L Publications


122 SCSI G E N ERAL COMMAN DS

REQU EST SENSE Command

By � � t 1 0
7
I 6
I 5
I 4
I 3
I 2
I I
0 Operati on Code {03 h )
1 { Log i cal Un i t Number} I Reserved
2 Reserved
3 Reserved
4 Al l ocat i on Length
5 Contro l Byte
* R E Q U EST S E N S E i s used t o retrieve Sense Data concerning a n error or other condition.
REQU EST SENSE is usually issued following the completion of a command that had C H ECK CONDITION
status. Commands that end with C O N D ITION M ET or COM MAN D TER M I NATED status may also have
Sense Data available.

Allocation L e ngth : maximum number of data bytes the Target may send.

The data format for Sense Data retu rned by this command is given in the sectio n o n
SENSE DATA, p a g e 240.

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N O L Publications


SCSI G E N ERAL COM MANDS 123
RESERVE(6) C o m m a n d

Bi t 7 6 5 4 3 2 0
I I I J I I I
1
Byte
0 Operati on Code ( 1 6 h )
1 { Log i cal Un i t Number} I 3rdPty I Thi rd Party Dev i ce I D I Exten t
2 Reservati on I dent i fi cati on
3 (MS B ) Exten t Li st Length
4 ( LS'B)
5 Contro l Byte
* RESERVE is used to reserve a disk or partition of a disk for exclusive use by an I nitiator.

3rdPty: 0 = reservation is made to the Initiator issuing the command.


1 = reservation is made to the Initiator specified in the Third Party Device ID field.

Third Party Device ID: specifies which I nitiator gets the reservation when the 3rdPty bit is 1 .

Extent: 0 = entire disk is reserved


1 = partition (Extent) is reserved

Reservation Identification : identifies Extent when issuing the R ELEASE command.

Extent List Length : number of bytes in the Extent list; also, number of Extents times eight.

RESERVE(6) Extent Descri ptor Fo rmat

3 0
By � � t 6 5
7 4 1
I I I I I
2

0 Reserved Re l Adr Reservati on Type


1 (MS B ) -
2 Number of Bl ocks
3 ( LS 'B)
4 (MSB) -
5
Log i cal B l ock Add ress -
6
7 ( LS "B)
Number of Blocks: if zero, then reserve the rest of the disk.

Reservation Type: indicates how access to Extent is to be reserved:


00 reserved for any write (no Initiator may write, all may read)
=

01 reserved for exclusive write (other Initiators may read only)


=

10 reserved for exclusive read (other I nitiators may write only)


=

11 reserved for all access (other Initiators may not read or write)
=

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N D L Publications


124 SCSI G E N ERAL CO M MAN DS

R ESERVE(1 0) Command

Bi t 7 6 5 3
I I I I I I 0
2
I
4 1
B yte
0 Operat i on Code ( 56h )
1 { Log i cal Un i t Number} I 3rdPty I Reserved I Lon g i D I Exten t
2 Reservat i on I denti fi cat i on
3 T h i rd Party Dev i ce I D
4 Reserved
5 Reserved
6 Reserved
7 (MSB) Parameter L i s t Length
8 ( LS B)
9 Contro l Byte
* RESERVE is used to reserve a disk or partition of a disk for exclusive use by an lnitiator.

3rdPty: 0 = reservation is made to the Initiator issuing the command.


1 = reservation is made to the I nitiator specified in the Third Party Device I D field.

LongtO: 0 = use Thi rd Pa rty Device ID in byte 3 of COB and no I D in the parameter list.
1 = use parameter list for Third Party Device I D.

partition ( Extent) is reserved; extent descriptors sent in Parameter List.


Extent: 0 = entire disk is reserved
1 =

Reservation Identification : identifies Extent when issuing the R ELEASE command.

Third Party Device /0 : specifies which Initiator gets the reservation when the 3rd Pty bit is 1 .

Parameter List Length : number of bytes in the Parameter List; length based on setting of LongiD and
Extent:

LongiD = 0, Extent = 0: length is 0.


LongiD = 0, Extent = 1 : length is number of Extents times 8.
LongiD = 1 , Extent = 0: length is 8.
Lon g i D = 1 , Extent = 1 : length is 8 plus number of Extents times 8.

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N O L Publications


SCSI G E N ERAL CO M MANDS 125
R ESERVE( 1 0) Parameter List and Extent Descri pto rs

B y� �
t 7 1 0
I I 5
I I I I I
6 4 3 2

0 (MSB )
1
-

2 -

3
4
T h i rd Party Dev i ce I D -

5 -

6
7 ( LSB)
Extent Des cri ptor ( s ) ( i f any)
0 Res erved I Rel Ad r I Reservat i on Type
1 ( MS B ) -

2 N umb e r o f B l o c k s
3 ( LSB)
4 ( MS B ) -

Log i c a 1 B l o c k Add res s


5 -

6
7 ( LSB)
The RESERVE(1 0) Parameter List may contain either a Third Party Device ID, an Extent list, or both ,
as determined by the setting of the Lon g i D and Extent bits in the COB (see above) .

Number of Blocks: if zero, then reserve the rest of the disk.

Reservation Type: indicates how access to Extent is to be reserved :


00 = reserved for any write (no Initiator may write, all may read)
01 = reserved for exclusive write (other I nitiators may read only)
10 = reserved for exclusive read (other I nitiators may write only)
11 = reserved for all access (other Initiators may not read or write)

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N O L Publications


1 26 SCSI G E N ERAL COM MANDS

SEND D I AGNOSTI C Command

By� � t 3
7
I 6 I 5 I 4
I I 2 I 1 I 0
0 Operati on Code ( l Dh )
1 { Log i cal Un i t Number} I PF I Reserved i Se l fTes t l DevOfL I Uni tOfL
2 Reserved
3 (MSB) Parameter Li s t Length
4 ( LSB)
5 Contro l Byte
* S E N D DIAG N OSTIC is used to request that the Target perform a diagnostic on all or part of the
Target.

PF: 0 = SCSI-1 data format


1 = SCSI-2/SCSI-3 Paged data format

SelfTest: 0 = perform function specified by parameter list


1 = perform self test

DevOfl: 0 = diagnostic does not affect later processes on other Logical Units
1 = diagnostic may affect later processes on other Logical Units

UnitOfl: 0 = diagnostic does not affect later processes on this Logical Unit
1 = diagnostic may affect later processes on this Logical Unit

Parameter List Length : the number of data bytes the Target fetches from the Initiator.

See page 1 27 for a des cr i pti o n of para m eter d ata formats for a l l d evices. See specific device
type for d ata formats for those devices (disk only: page 1 76).

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N D L Publications


SCSI G E N ERAL COM MAN DS 127
Diagnostic Page Format

By� � t 7 6 4
I I 5
I I 3 I 2
I 1
I 0
0 Page Code
1 Reserved
2 (MSB) Page Length ( n - 3 )
3 ( LSB)
4 Di agnost i c Parameters
n
- - - - - - -

The Diagnostic Page Format is used when the P F bit is set to one; it may also be used when PF is
zero in some devices. Diagnostic Pages are used to issue standard SCSI-2 and SCSI-3 diagnostic
functions; they are also used to perform SCSI-3 Enclosure Services functions.

Page Code: indicates the function to perform. The Page Codes for all device types are shown below:

Diagn ostic Page Codes

Page Code Des cri pti on SCS I -3 Secti on


OOh S upported Di agnos t i cs Pages S PC 7 . 3 . 1 . 1
01h - 3 Fh Reserved ( for a l l dev i ce type Page s )
40h - 7 Fh S e e speci fi c dev i ce type f o r defi n i ti on
( d i s k on l y : page 1 7 6 )
80h - FFh Vendor Speci fi c Pages
Page Length : the length of bytes following this field; also equal to the whole Page length minus 4.

Diagnostic Parameters: specific to the requested function.

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N O L Publications


1 28 SCSI G E N E RAL CO MMANDS

Supported Diag n o stic Pages

sy n t 7
I
6
I
5
I
4
I
3
I
2
I
1
I 0
0 Page Code ( O O h )
1 Reserved
2 (MS B ) Page Length (n-3)
3 ( LS B)
4
1- -
S upported Page Li st
- - - - -

n 1- -
- - - - -

Supported Diagnostic Pages is used to report to the Initiator which Page Codes are implemented
by the Target. First, the SEND D IAGNOSTIC command is issued and only the first four bytes of the Page
are sent (Set Page Length to zero) . The RECEIVE DIAGNOSTIC RESULTS command is then issued and
the Target returns the first four bytes of the Page followed by a list of supported Page Codes.

TEST U N IT R EADY Command

By� � t 7
I
6
I
5
I I
3
I I I
0
4 2 1

0 Operat i on Code ( OOh )


1 { Log i cal Un i t Number} I Reserved
2 Reserved
3 Res erved
4 Reserved
5 Control Byte
* TEST U N IT R EADY is used to check to see if the Logical Unit is powered up and ready to do reads
and writes. The Target responds with GOOD Status if all is ready, and returns CHECK CONDITION with
NOT READY Sense Key if it is not ready. See page 245 for a list of typical TEST U N IT R EADY responses.

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N O L Publications


SCSI G E N ERAL COM MANDS 129
WRITE B U FFER Command

7
By� � t I
6
I
5
I
4 3
I I
2
I
1
I 0
0 Operati on Code (3Bh )
1 { Log i c a l Un i t N umber} I Reserved I Mode
2 Bu ffer I D
3 (MS B )
4 Buffer Offset
-

5 ( LS'B")"
6 (MS B )
Parameter Li st Len gth
-

7
8 ( LS'B")"
9 Control Byte
* The WRITE B U FFER Command is used to transfer data to the Target's data buffer from the
Initiator. It is usually issued immediately prior to the R EAD BU FFER command.

Mode : indicates the command mode and data format:


000 transfer 4 byte header followed by data
=

00 1 vendor specific
=

0 1 0 transfer data only


=

01 1 reserved
=

1 00 download microcode
=

101 download microcode and save


=

1 10 download microcode with offsets


=

111 download microcode with offsets and save


=

Buffer ID: selects a buffer in the Target. A Target that has any buffer must at least have a buffer with a
Buffer I D of zero.

Buffer Offset: indicates a byte offset from the beginning of the selected buffer.

Parameter List Length : the number of data bytes the Target fetches from the Initiator.

WRITE BUFFER Header fo r M o d e 000

7 3 1 0
By �� t 6 5
I I I I
4 2
I I I
0 Reserved
1 Reserved
2 Reserved
3 Reserved
The WRITE B U FFER header 1s four reserved bytes {all zero) .

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N DL Publications


130 SCSI G E N ERAL COM MAN DS

This page is intentionally blan k !

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N O L Publications


SCSI G E N ERAL COM MANDS 131
Log Select/Log Sense Standard Parameters

Log Page Data Format

By�� t 4 3 0
7
I
6
I
5
I I I
2
I
1
I
0 - 3 Log Page Header Tab l e A bel ow)
4 - n Log Parameters Tab l e B bel ow)
The data sent by the Initiator during the LOG SELECT command , or sent by the Target during the LOG
SENSE command, is made up of:

• A Log Page Header; and

• Zero or more variable length Log Parameters.

Log Page Header Format


(Table A)
3 0
By r� t 7
I
6 5
I 4
I I 2
I 1
I
0 Res e rved Page Code
1 Reserved
2 (MSB) P a g e Length ( n -3 )
3 ( LSB)
-

The Log Page Header contains the page code and length of the data following.

Page Code: The code of the Log Page Code requested by the Initiator (LOG S ELECT) , or returned by
the Target (LOG S E N S E) . Most Log Pages contain one or more Log Parameters.

Page Length : I ndicates the length of following bytes in the Page, also equals the total Page length
minus three.

SCSI Bench Reference Copyright © '1 989, '1 992, '1 996 E N O L Publications
132 S C S I G E N ERAL CO M MANDS

Log Parameter Fo rmat


(Table B)

s A� t 6 5 3 0
I I I I I
2
I I
7 4 1

0 (MSB) Parameter Code


1 ( LSB)
2 DU I DS I TSD I ETC I TMC I LB I N I LP
3 Parameter Length (m 3 ) -

4 Parameter Val ue -

Each Log Para m eter begins with a four byte header followed by one or more bytes of parameter
data.

Parameter Code: identifies the parameter.

DU: 0 = Target updates the parameter by event.


1 = I n itiator updates the parameter by LOG S ELECT.

OS: 0 = Target supports saving the parameter via Initiator setting SP to one.
1 = Target does not support saving the parameter via the S P bit.

TSD : 0 = Target performs periodic implicit save o f t h e parameter.


1 = Target does not periodically save the parameter.

ETC: 0 = Target does not compare the parameter to the threshold when the parameter is
updated.
1 = Target compares the parameter to the threshold when the parameter is updated.

TMC: Threshold M et Criteria (enabled by ETC) :

00 = Threshold met on every update of the parameter.


01 = Threshold met when the cumulative value equals the threshold value.
10 = Threshold met when the cumulative value is not equal to the threshold value.
11 = Threshold met when the cumulative value is greater than the threshold value.

LBIN: 0 = the list parameter (LP bit must be 1 ) is an ASCI I string.


1 = the list parameter (LP bit must be 1) is binary information.

LP: 0 = the parameter is a data counter.


1 = the parameter is a list parameter.

Parameter Length : the length of bytes following this field; also equal to the whole log parameter length
minus 4.

Parameter Value : the actual value of the log parameter.

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N O L Publications


SCSI G E N ERAL COM MAN DS 133
Parameter Codes for Log Pages

Log Page Codes

Page Code Des cri p t i on SCS I -3 Secti on


OOh Supported Log Pages Page SPC 8 . 2 . 6
Olh Buffer Over-run/Under-run Page SPC 8 . 2 . 1
02h Error Counter Page (Wri te) S PC 8 . 2 . 2
03h Error Counter Page ( Read ) SPC 8 . 2 . 2
04h Error Counter Page ( Read Reverse) SPC 8 . 2 . 2
05h Error Counter Page (Veri fy) S PC 8 . 2 . 2
06h Non-Med i um Error Page SPC 8 . 2 . 5
07h Las t n Error Events Page SPC 8 . 2 . 4
08h - OAh Reserved
OBh Last n Deferred o r Asyn c h ronous Error Events Page S PC 8 . 2 . 3
OCh - 2 Fh Reserved
30h - 3 Eh Vendor speci fi c Pages
3Fh Reserved

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 ENDL Publications


134 SCSI G E N ERAL COM MAN DS

Parameter Codes for Buffer Over-ru n/U nder-run Page


NOTE: Byte 0 of the Parameter Code is Reserved and is always OOh .

Parameter Over-run or
Code Cou n t Bas i s Cause Under-run?
DOh Undefi ned Undefi ned under-run
Olh Undefi ned Undefi ned over-run
02h Undefi ned SCS I bus was busy under-run
03h Undefi ned SCS I bus was busy over-run
04h Undefi ned Trans fer rate too s l ow under-run
05h Undefi ned Trans fer rate too s l ow over-run
06h - 1 Fh Res erved Codes
20h I n c rement per Command Undefi ned under-run
21h I ncrement per Command Undefi ned over-run
22h I ncrement per Command SCS I bus was busy under-run
23h I n crement per Command SCS I bus was busy over-run
24h I n cremen t per Command Tran s fer rate too s l ow under-run
25h I n cremen t per Command Trans fer rate too s l'o w over-run
26h-3 Fh Reserved Codes
40h I ncremen t per Fai l ed Reconnect Undefi ned under-run
41h I ncremen t per Fai l ed Reconnect Undefi ned over-run
42h I ncremen t per Fai l ed Reconnect SCS I bus was busy under-run
43h I n c remen t per Fai l ed Reconnect SCS I bus was busy over-run
44h I n cremen t per Fai l ed Recon nect Tran s fer rate too s l ow under-run
45h I n c rement per Fai l ed Reconnect Trans fer rate too s l ow over-run
46h-5Fh Reserved Codes
60h I n cremen t per Un i t of T i me Undefi ned under-run
61h I ncremen t per Un i t of T i me Undefi ned over-run
62h I n cremen t per Un i t of T i me SCS I bus was busy under-run
63h I n cremen t per U n i t o f T i me SCS I bus was busy over-run
64h I n c remen t per Un i t o f T i me Trans fer rate too s l ow under-run
65h I n cremen t per Un i t o f T i me Tra n s fer rate too s l ow over-run
66h-FFh Reserved Codes

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N O L Publications


SCSI G E N ERAL COM MANDS 135
Paramete r Codes for Error Cou nter Pages

Parameter
Code Des c r i pti on
OOOOh Count of errors corrected wi thout " substanti al del ay "
OOO l h C o u n t of e rrors corrected wi th " poss i bl e del ays "
0002h Tot a l re-wri tes o r re-reads
0003h Tot a l errors corrected
0004h Tot a l t i mes error correct i on a l gori thm proces s ed
0005h Total bytes processed
0006h Total u n corrected errors
0007 h-7 F F F h Reserved
8000 h - F F F F h Vendor Speci fi c

Parameter Codes for Last n Error Events Page


The parameter codes i n d icate w h e n in t i m e t h e recorded event actually occurred. A higher code number
occurred later i n time. The contents of the parameter value field are a vendor specific ASCII string.

Parameter Codes for Non-Med i u m Error Page

Pa rameter
Code Des cri pt i on
OOOOh Non-med i um e rror count
OOO l h - 7 F F F h Res e rved
8000 h - F F F F h Vendor Spec i fi c

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 ENOL Publications


136 SCSI G E N ERAL CO MMANDS

S u p p o rted Log Pages Pag e Format

ByU t 6 5 3 0
7
I I I I I I
4 2 1

0 Reserved Page Code ( O O h )


1 Reserved
2 (MSB) Page Length (n-3)
3 ( LSB')
4 Supported Page Li st -

The Log Page Header contains the page code and length of the data following.

Page Length: Indicates the length of following bytes in the Page, also equals the total Page length
minus three.

Supported Page List: A list of page codes supported by the Target beginning with OOh in ascending
order.

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N D L Publications


SCSI GEN ERAL COMMANDS 137
Mode Select/Mode Sense Stan dard P arameters

Mode Parameter List Data Format


4
By �k t 7
J
6
I
5
I I 3 I 2 I 1 I 0
0 - n Mode Parameter Header Tab l e A or B bel ow)
0 - n B l oc k Descri ptor ( s ) Tab l e C or D bel ow)
0 - n Page ( s ) Tab l e E bel ow)
The data sent by the Initiator during the MODE S ELECT command, or sent by the Target during the
MODE SENSE command, is made up of:

• A Mode Parameter Header, the length of which is determined by the command that was issued
(6 byte or 10 byte versions) ; and

• Zero or more Block Descriptors (most Targets use just one) ; and

• Zero or more Pages for general parameter passing.

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N D L Publications


138 SCSI G E N ERAL COM MANDS

Mode Parameter Header for Use by Six Byte M O D E SELECT/SENSE Command


(Table A)
6 4
By n t I I I I 3 I 2 1 0
7 5
I I
0 Mode Data Length
1 Med i um Type
2 Dev i ce-Spec i fi c Parameter
3 Bl ock Descri ptor Length
Mode Parameter Header for U s e b y Ten Byte M O D E SELECT/SENSE Command
(Table B)

By n t 6 5 4 3 1 0
I I I I I I I
7 2

0 (MSB) Mode Data Length


1 ( LS B)
2 Med i um Type
3 D e v i c e - S p e c i f i c P a r amet e r
4 Res e rv ed
5 Res e rv ed
6 (MSB)
B l o c k Des c r i p t o r Le n g t h
7 ( LS B)
The Mode Param eter Header (Tables A and B) contains some variable parameters and also
indicates the organization of the rest of the data.

Mode Data Length : (MODE SENSE ONLY) used by the Target to indicate how many bytes were sent
to the Initiator. This field is set to zero for MODE S ELECT.

Medium Type: (MODE SELECT and MODE SENSE) one of two fields (see Density Code, page
1 40, 1 4 1 ) that indicates what physical medium is being used or is to be used . This field may also
indicate what physical format to use. This field is not used by Sequential Access devices.

Block Descriptor Length : (MODE SELECT AND MODE SENSE) indicates how many Block Descriptors
follow; equal to the number of Block Descriptors times eight. Zero indicates no Block Descriptors
follow. Eight indicates one Block Descriptor fol lows.

Device Specific Parameter: (MODE SELECT and MODE SENSE) a byte which indicates some optional
settings for a particular d evice type, as follows :

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N O L Publications


SCSI G E N ERAL COMMANDS 139
Device Specific Parameter

DevB i1 �c ! 5 4 3
7 6
I I 2
r 1
1 0
di sk I WP Reserved DPOFUA Reserved
tape I WP Bu ffered Mode Speed
WP: 0 = medium is write enabled
1 = medium i s write protected

DPOFUA: (MODE SENSE O N LY) (NOTE: This bit was formerly called the "Cache" bit)
0 = the Target does not support the DPO and FUA bits.
1 = the Target supports the DPO and FUA bits, which appear in the disk command set to
support cache functions.

Buffered Mode: tape mode to enhance streaming performance:


000 report status after data is written to tape
=

001 report status after data transfer complete to buffer


=

0 1 0 report status after data transfer complete to buffer and previous data from other
=

Initiators is written to tape


0 1 1 to 1 1 1 reserved=

Speed: indicates speed setting:


0000 default speed
=

000 1 lowest speed


=

00 1 0 next fastest speed


=

00 1 1 faster
=

0 1 00 faster! =

0101 YEEEE HAH !


=

0 1 1 0 to 1 1 1 1 faster and faster on up as needed


=

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 ENOL Publications


140 SCSI G E N ERAL COM MAN D S

General M o d e Parameter B l ock Descri ptor


(Table C)
7 6 5 3 0
By�� t I I I I I I
4 2 1
I
0 Den s i ty Code
1 (MS B )
Number of Bl ocks
-

2
3 ( LSB)
4 Reserved
5 (MSB)
6 B l ock Length
-

7 ( LSB)
The Block Descriptor describes a partition of the medium that is of a particular format, is a certain
size in blocks which are of a fixed size. Most Targets use only one Block Descriptor which defines all
blocks in the Logical Unit. See the next page for the SCSI-3 Block Descriptor for Disks.

Density Code: (M O D E SELECT and MODE SENS E) one of two fields (see M edium Type, page 1 38)
that indicates what physical medium is being used or is to be used . This field may also indicate what
physical format to use.

Number of Blocks: (MODE SELECT and MODE SENSE) indicates the size in logical blocks of the
medium partition.

Block L e ngth : (MODE SELECT and MODE SENSE) indicates the size of a logical block within the
partition in bytes.

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N O L Publications


SCSI G E N ERAL COM MAN DS 141
SCSI-3 Block Device (Disk) Mode Parameter Block Desc r i ptor
(Table D)

By�� t 6 5 4 0
I I I I I I I
7 3 2 1

0 (MS B )
1
-

Number o f B l ocks
2
-

3 ( LS�
4 Den s i ty Code
5 (MS B }
Bl ock Length
-

6
7 ( LS�
The Disk Block Descriptor describes a partition of the medium that is of a particular format, is a
certain size in blocks which are of a fixed size. Most Targets use only one Block Descriptor which defines
all blocks in the Logical U nit.

Number of Blocks: (MODE S ELECT and MODE SENS E) indicates the size in logica l blocks of the
medium partition.

Density Code: (MODE S ELECT and MODE SENSE) one of two fields (see Medium Type, page 1 38)
that indicates what physical medium is being used or is to be used. This field may also indicate what
physical format to use. This field is not used by Direct Access devices.

Block Length : (MODE SELECT and MODE SENSE) indicates the size of a logical block within the
partition in bytes.

SCSI Bench R eference Copyrig ht © 1 989, 1 992, 1 996 ENOL Publications


142 SCSI G E N ERAL COM MAN DS

Mode Page Format


(Table E)
7 6 5 3 0
By�� t
2
I I I I I
4 1

0 PS Res e rved Page Code


1 Page Length
2 - n Mode Parameters
The M o d e Para meter Page is used t o organize related parameters into a single data structure.

PS: 0 = Page cannot be saved (i. e . , is not retained after a hard reset or power down) .
1 = Page can be saved (see SP bit, page 1 05, 1 06, 1 07)

Page Code: The Page Code requested by the I nitiator (MODE SELECT) , or returned by the Target
(MODE SENSE) . Some Pages are defined for all devices and are shown below. Pages specific to
devices are shown i n the device sections.

Page Length : Indicates the length of following bytes in the Page, also equals the total Page length
minus two.

Mode Parameters : Parameters which can be read and perhaps controlled within a Page.

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N O L Publications


SCSI GEN ERAL COM MAN DS 143
Mode Page Codes

Page Code Des cri p t i on SCS I -3 Sect i on


OOh Vendor s peci fi c ( does n ot req u i re Page format )
Olh ( See speci fi c dev i ce type)
02h Di s connect-Reconnect Page S PC 8 . 3 . 5
03h - 08h ( See speci fi c dev i ce type)
09h Peri pheral Dev i ce Page ( s ee S PC standard) SPC 8 . 3 . 7
OAh Control Mode Page S PC 8 . 3 . 4
OBh - OCh ( See speci fi c dev i ce type)
ODh Power Cond i ti on Page ( D i rect Acces s dev i ce on l y) SPC 8 . 3 . 8
OEh - 19h (See speci fi c dev i ce type)
lAh Power Con d i t i on Page ( a l l other devi ce types ) SPC 8 . 3 . 8
lBh ( See speci fi c dev i ce type)
lCh I n format i on a l Except i on s Control Page SPC 8 . 3 . 6
lDh - l Fh ( See s peci fi c dev i ce type)
20h - 3 Eh Vendor s peci fi c ( Page format req u i red )
3Fh Return a l l Pages ( v a l i d on l y for the MODE S EN S E comman d )

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N O L Publications


144 SCSI G E N ERAL COM MANDS

Control Mode Page

By � � t 6 4 3 0
I I
5
I
7 2 1

0 PS Reserved Page Code ( OAh )


1 Page Length ( 0 6 h )
2 Reserved GLTSD RLEC
3 Queue Al gori thm Mod i fi er I Reserved QErr DQue
4 { E ECA} RAC Reserved I Reserved I SWP I RAENP UAAENP EAENP
5 Reserved
6 (MSB) Ready AEN Hol doff Peri od
7 ( LSB)
8 (MSB) Busy T i meout Peri od
9 ( LSB)
10 Reserved
11 Reserved
The Control M o d e Page is used t o control several d ifferent SCSI features: error logging, Tagged
Queueing, SCSI-2 Extended Contingent Allegiance (EGA) , and Asynchronous Event Notification (AEN).
NOTE: For what it's worth, SCSI-3 calls it "Asynchronous Event Reporting (AER)".

GLTSD: 0 = enable Target-defined method of saving log parameters


1 = disable Target-defined method of saving log parameters

RLEC: 0 = do not report log exception conditions


1 = report exception conditions caused by logging activities

Queue Algorithm Modifier: controls the ordering of Tagged commands when the order is not
otherwise indicated (commands were issued with the S I M PLE Q U E U E TAG message) . See the SPC
standard for more explanation :

0000 indicates that the Target is responsible to ensure data integrity.


=

000 1 = indicates that the I nitiator is responsible to ensure data integrity.


001 0-0 1 1 1 = reserved
1 000- 1 1 1 1 = vendor specific

QErr: 0 = continue remaining commands in queue after command error


1 = abort remaining commands in queue after command error

DQue: 0 = Tagged Queueing enabled (accept queue tag messages)


1 = Tagged Queueing disabled (reject queue tag messages)

EECA: 0 = Extended Contingent Allegiance disabled (SCSI-2 O N LY)


1 = Extended Contingent Allegiance enabled (SCSI-2 O N LY)

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N O L Publications


SCSI G E N ERAL COM MANDS 145
RAG: 0 = long busy conditions may be reported
1 = CHECK CONDITION status should be reported rather than a long busy condition

SWP: 0 = allow writing to the medium (subject to other settings, of course)


1 = inhibit writing to the medium after writing all cached or buffered write data

RAENP: 0 = Target does not do AEN/AER after initialization


1 = Target may do AEN/ AER after initialization

UAAENP: 0 = Target does not do AEN/AER for a Unit Attention condition


1 = Target may do AEN/ AER to report a Unit Attention condition

EAENP: 0 = Target does not do AEN/ AER to report deferred errors


1 = Target may do AEN/ AER to report deferred errors

Ready AEN Holdoff Period: delay time in milliseconds between the start of Target initialization and the
reporting of initialization complete via AEN/ AER.

Busy Timeout Period: maximum time in 1 00 millisecond increments that a Target may remain busy for
exception conditions that are not a routine part of command processing. FFFFh indicates the period
is unlimited.

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N O L Publications


146 S C S I G EN ERAL COM MANDS

D iscon nect Reco n nect Page

5 4 3 2 1 0
By�� t 7 6
I I I I I
0 PS Reserved Page Code { 02 h )
1 Page Length ( O E h )
2 Bu ffer Fu l l Ra ti o
3 Bu ffer Empty Rat i o
4 (MS B ) Bus I n act i v i ty L i m i t
5 ( LS'B)
6 (MSB) Di s connect T i me Limi t
7 ( LS'B)
8 (MSB) Connect T i me L i m i t
9 ( LS'B)
10 (MSB) Max i mum B u rs t S i ze
11 ( LS'B)
12 EMDP FARd FAWrt I FAStat I Dlmm I DTDC
13 Reser v ed
14 (MSB) Fi rst Burst S i ze
15 ( LS'B)
The Disco n n ect- Recon nect Page is used to control when the Target may or may not disconnect
during a command. This page allows control of the buffer in the following ways :

• as a function of data in the Target data buffer;

• as a function of time;

• as a function of Bus Phase.

I n general, the DTDC field dominates over the effects of all other fields. Also, the Time Limit fields
dominate over the effects of the Buffer Ratio fields.

NOTE: This page contains several parameters that are specific only to the parallel SCSI bus. Some
parameters have meaning only to serial SCSI implementations, and other have meaning for both parallel
and serial SCS I . We have listed the parallel SCSI meanings, and shown the serial SCSI parameters.
Check the specific serial SCSI standard (such as FCP) for the specific usage of this page.

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N O L Publications


SCSI GEN ERAL COMMANDS 147

Buffer Full Ratio (BFR) : indicates how full (BFR/256) the Target's data buffer should be during a read
before attempting to Reconnect to the Initiator. Zero equals Target's choice.

Buffer Empty Ratio (BER) : indicates how empty (BER /25 6) the Target's data buffer should be during a
write before attempting to Reconnect to the Initiator. Zero equals Target's choice.

Bus Inactivity Limit: the maximum time (in 0.1 millisecond increments) between R EO assertions while a
Target has BSY asserted. Zero equals no limit.

Disconnect Time Limit: the minimum time (in 0. 1 millisecond increments) between when the Target
releases the bus (goes to BUS FREE) before it may attempt to Reconnect to the Initiator. Zero
equals no limit.

Connect Time Limit: the maximum time (in 0. 1 millisecond increments) between the start of a
Connection to when the Target releases the bus. Zero equals no limit.

Maximum Burst Size : the maximum transfer size (in 0.5 KByte increments) that a Target may transfer
in one Connection. Zero equals no limit.

EMDP: 0 = Target may not re-order the data transfer


1 = Target is allowed to re-order the data transfer

Dlmm : 0 =the Target may transfer data in the same connection or tenancy in which it receives
the command.
1 the Target may not transfer data in the same connection or tenancy.
=

DTDC: Data Transfer Disconnect Control; field provides gross control over when the Target must
Disconnect {DTDC setting takes precedence over all other settings) :
000 no control
=

001 transfer all data with no Disconnect; Disconnect at other times is allowed. The
=

Connect Time Limit and Bus I nactivity Limit are ignored during the data transfer.
010 reserved
=

01 1 transfer all data and complete the command with no Disconnect; Disconnect
=

before data transfer starts is allowed. The Connect Time Limit and Bus I nactivity
Limit are ignored after the data transfer has started .
1 00-1 1 1 reserved
=

The following fields are NOT defined for parallel SCSI (they are provided for serial interfaces) but we're
including them anyway:

FARd: 0 = use unfair arbitration to get a tenancy for read data transfer
1 = use fair arbitration for read data transfer

FAWrt: 0 = use u nfair arbitration to get a tenancy for write data transfer
1 = use fair arbitration for write data transfer

FARStat: 0 = use unfair arbitration to get a tenancy for status/message transfer


1 = use fair arbitration for status/message transfer

First Burst Size: the maximum transfer size (in 0.5 KByte increments) that a Target may transfer in the
same tenancy in which it receives the command. Zero equals no limit.

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N O L Publications


148 SCSI G E N ERAL CO M MANDS

I nformational Exceptions Control Page

4 3 2 1 0
By�� t
5
I I I I I
7 6

0 PS Reserved Page Code ( 1Ch )


1 Page Length (OAh )
2 Perf Res erved I DExcpt I Test I Reserved I Log Err
3 Reserved I MRI E
4 (MS B ) -

5
I n terval T i mer
6
-

7 ( LS B)
8 (MS B ) -

9
Report Count
10
-

11 ( LSB)
The I nformational Exceptions Control Page is used to control the reporting and operations of
certain "informational exceptions" (that sounds Politically Correct ! ) ; in other words, this page controls the
behavior of a Target that has failure prediction capability. In the I DE/ATA world, this is known as
"SMART".

Perf: 0 = delays caused by performing informational exception operations are acceptable.


1 = the Target may not cause delays while performing informational exception operations.

DExcpt: 0 = enable informational exception operations.


1 = disable informational exception operations.

Test: 0 = do not generate false device failures.


1 = generate a false device failure at the next interval time.

LogErr: 0 = logging of informational exception conditions is vendor specific.


1 = logging of informational exception conditions is enabled.

MRIE: Method of Reporting I nformational Exceptions:


0 do not report informational exceptions.
=

1 report informational exceptions via Asynchronous Event Reporting.


=

2 report informational exceptions via U nit Attention.


=

3 report via R ECOVERED ERROR dependent on setting of PER bit (see page 1 9 1 ) .
=

4 report via R ECOVERED ERROR independent of setting of P E R bit.


=

5 report via C H EC K CON DITION and N O SENSE sense code.


=

6 report via unsolicited REQU EST SENSE command .


=

7-B reserved
=

C-F vendor specific


=

Interval Timer: minimum period in 1 00 millisecond intervals between reporting.

Report Count: the number of times to report an informational exception condition.

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 ENOL Publications


SCSI GEN ERAL COM MAN DS 149
Power Con d iti o n Page

7 6 5 4
By � � t I I 3 I 2 I
1
I
0
0 PS Re s e r v e d Page C od e (ODh or 1Ah )
1 Page Length (OAh )
2 Reserved
3 Reserved I I d l e I Standby
4 (MSB)
5
-

6 I d l e Cond i ti on T i mer -

7 ( LS B)
8 (MSB) -

9
Standby Condi t i on T i mer
10
-

11 ( LSB)
The Power Conditi o n Page is used to control how the Logical Unit transitions to lower power
modes.

Page Code: Yes, it's true. For Direct Access Devices, the Page Code is ODh. For all other device
types, the Page Code is 1 Ah.

Idle: 0 = the Logical U nit does not enter the Idle Condition
1 = wait based on the Idle Condition Timer before entering the Idle Condition.

Standby: 0 = the Logical U nit does not enter the Standby Condition
1 = wait based on the Standby Condition Timer before entering the Standby Condition.

Idle Condition Timer: minimum period in 1 00 millisecond increments before entering the Idle
Condition.

Standby Condition Timer: minimum period in 1 00 millisecond increments before entering the Standby
Condition.

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N O L Publications


1 50 SCSI G E N ERAL COM MANDS

This page is intentionally blank!

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N O L Publications


COMMANDS FOR D I R ECT-ACCESS DEVICES 151
Commands for Direct Access Devices (al phabetic l isting)

Command Name Type See Page SCS I -3 Secti on OpCode


CHANGE DEFI N I T ION 0 See SPC SPC 7.1 40h
COMPARE 0 See SPC SPC 7.2 39h
COPY 0 See SPC SPC 7.3 18h
COPY AND V ERI FY 0 See SPC SPC 7.4 3Ah
FORMAT UN I T M 1 56 SBC 6. 1. 1 04h
I NQU I RY M 100 S PC 7.5 12h
LOCK/UNLOCK CACH E 0 1 62 SBC 6. 1.2 36h
LOG SELECT 105 SPC 7.6 4Ch
1
0
LOG SENSE 106 SPC 7.7 4Dh
MODE S E L ECT 6 6
0
107 S PC 7 . 8/9 15h

0
MODE SELECT 1 ) 107 SPC 7 . 8/9 55h
MODE S ENSE 6
0
108 S PC 7 . 10/ 1 1 1Ah
MOVE MED I U A f TACHED
0
MODE SENSE 1 0 108 SPC 7 . 10/ 1 1 5Ah
0 See SMC SMC 6.3 A7 h
PERS I STENT RESERVE I N 0 1 10 SPC 7 . 12 5 Eh
PERS I STENT RES ERV E OUT 0 1 14 S PC 7 . 13 5Fh
PRE-FETCH 0 163 SBC 6.1.3 34h
PREVENT/ALLOW MED I UM R EMOVAL 116 SPC 7 . 14 1Eh
READ f 6 6
0
M 1 64 SBC 6.1.4 08h
READ BU � FER
READ 1 M 1 64 SBC 6. 1.5 28h
0 1 16 S PC 7 . 15 3Ch
READ CAPAC I TY M 165 SBC 6. 1.6 25h
READ DEFECT DATA 0 166 SBC 6.1.7 37h
READ ELEMENT STATUS ATTACHED 0 See SMC SMC 6.5 B4h
READ LONG 0 168 SBC 6. 1.8 3E h
REAS S IGN B LOCKS 0 1 69 SBC 6.1.9 07h
REC E I V E D I AGNOST I C RESULTS 1 18 SPC 7 . 16 1Ch
RELEAS E f 6 6
0
M 1 19 SPC 7 . 17 17h
RELEASE 1 � 1 19 S PC 7 . 18 57h
RE � U EST S EN S E
0
REPORT LUN 120 SPC 7 . 19 AOh

RE ERV E 6 6
0
M 122 SPC 7 . 20 03h
M 123 SPC 7 . 21 16h
RESERVE 1 f 0 124 S PC 7 . 22 56h
REZERO NI 170 SBC 6. 1. 10 01h
S E E K f 66
0
S EARCH DATA H I GH/ EQUAL/ LOW 0 See SBC SBC 6 . 1 . 1 1 30h / 3 1 h /32h
170 SBC 6 . 1 . 12 OBh
SEEK 1 A
0
0 170 S BC 6. 1. 12 2Bh
S END DI GNOST I C M 126 S PC 7 . 23 1Dh
S ET L I M I TS 0 See SBC SBC 6 . 1 . 13 33h
START STOP U N I T 0 17 1 SBC 6 . 1 . 14 1Bh
SYNCHRON I Z E CACHE 0 172 SBC 6 . 1 . 15 35h
T EST UNI T R EADY M 128 SPC 7 . 24 OOh
VERI FY 172 SBC 6 . 1 . 16 2Fh
WRITE f 6 6
0
M 173 SBC 6 . 1 . 17 OAh
WRITE 1 6 M 173 SBC 6 . 1 . 18 2Ah
WRITE AN V E R I FY 0 174 SBC 6 . 1 . 19 2Eh
WRITE BUFFER 0 129 SPC 7 . 25 3Bh
WRITE LONG 0 174 SBC 6 . 1 . 20 3Fh
WRITE SAME 0 175 SBC 6. 1 . 21 41h
Key: M = Command implementation i s mandatory; 0 = Command implementation is optional .

SCS I Bench Reference Copyright © 1 989, 1 992, 1 996 E N O L Publications


152 C O M M A N D S F O R D I R ECT-ACCESS D EVICES

Commands for Di rect Access Devices (nu meric listing)

OpCode Type See Page SCS I -3 Secti on Command Name


OOh M 128 S PC 7 . 24 TEST UN I T READY
01h 0 170 SBC 6 . 1 . 10 REZERO U N I T
03h M 122 SPC 7 . 20 REQUEST S ENS E
04h M 156 SBC 6.1.1 FORMAT U N I T
07h 0 1 69 SBC 6. 1.9 REAS S I GN BLOCKS
08h M 1 64 SBC 6. 1.4 READ � 6 )
OAh M 173 SBC 6 . 1 . 17 WRIT � 6 )
OBh 0 170 SBC 6 . 1 . 12 SEEK� �
12h M 100 SPC 7.5 I NQU R
0
RES ERV E f 6 �
15h 107 S PC 7 . 8/9 MODE S E LECT ( 6 )
16h M 123 S PC 7 . 21
17h M 1 19 S PC 7 . 17 RELEAS E 6
0
MODE S ENS E ( 6 �
18h See SPC S PC 7.3 COPY
1Ah 0 108 SPC 7 . 10/ 1 1
1Bh 0 171 SBC 6 . 1 . 14 START STOP U I T
1Ch 0 1 18 S PC 7 . 16 RECE I V E D I AGNOS T I C RESULTS
1Dh M 126 S PC 7 . 23 S END D I AGNOSTIC
1 Eh 0 1 16 SPC 7 . 14 PREVENT/AL LOW MED I UM REMOVAL
25h M 165 SBC 6.1.6 READ CAPAC I TY
28h M 164 SBC 6.1.5 READ 0 6
S E EK p o �
2Ah M 173 SBC 6 . 1 . 18 WRIT P( 1 )
2Bh 0 170 SBC 6 . 1 . 12
2Eh 0 174 SBC 6 . 1 . 19 WRIT A D VERI FY
2 Fh 0 172 SBC 6 . 1 . 16 VERI FY
30h/3 1 h /32h 0 See SBC SBC 6. 1 . 11 S EARCH DATA H I GH/ EQUAL/ LOW
33h 0 See SBC SBC 6 . 1 . 13 S ET LIMITS
34h 1 63 SBC 6.1.3 PRE-FETCH
0
0
35h 172 SBC 6 . 1 . 15 SYNCHRON I Z E CACHE
36h 0 1 62 SBC 6. 1.2 LOCK/UNLOCK CACH E
37h 166 SBC 6. 1.7 READ DE FECT DATA
0
0
39h See SPC S PC 7.2 COMPARE
3Ah 0 See SPC S PC 7.4 COPY AND VERI FY
3Bh 0 129 S PC 7 . 25 WRITE BUFFER
3Ch 0 116 SPC 7 . 15 READ BUFFER
3Eh 0 168 SBC 6. 1.8 READ LONG
3 Fh 0 174 SBC 6 . 1 . 20 WRITE LONG
40h 0 See SPC SPC 7.1 CHANG E DEFI N I T ION
41h 0 175 SBC 6. 1 . 21 WRITE SAME
4Ch 0 105 SPC 7.6 LOG S E LECT
4Dh 0 106 SPC 7.7 LOG S E N S E
55h
56h
0
0
0
107
124
SPC
SPC
7 . 8/9
7 . 22 r
RESERVE O �
MODE S E LECT ( l O )
MODE S E S E ( 10 �
57h 1 19 S PC 7 . 18 RELEAS E 10
5Ah 0 108 S PC 7 . 10/ 1 1
5 Eh 0 1 10 S PC 7 . 12 PERS I ST ENT RE ERV E I N
5 Fh 0 1 14 S PC 7 . 13 PERS I ST ENT RESERVE OUT
AOh 120 SPC 7 . 19 REPORT LUNS
0
0
A7 h See SMC SMC 6.3 MOV E MED I UM ATTACHED
B4h 0 See SMC SMC 6.5 READ ELEMENT STATUS ATTACHED
Key: M Command implementation is mandatory ; 0 Command implementation is optional.

SCS I Bench Reference Copyright © 1 989, 1 992, 1 996 ENDL Publications


COM MANDS FOR D I RECT-ACCESS D EVICES 153
Common Fields Used I n Di rect Access Device Commands

Allocation Length : the maximum number of bytes that the Target may send to the Initiator.

DPO: 0 = any blocks transferred by this command may force blocks in the cache out of the
cache
1 = any blocks transferred by this command do not force blocks in the cache out of the
cache

FUA: 0 = Target may access the medium or the cache to transfer the data
1 = Target must access the medium

Logical Block Address (LBA) : First logical block of requested operation.

ReiAdr: 0 = Logical Block Address is absolute address


1 = Logical Block Address is relative to last address of previous command if this
command is linked to the previous command:

• LBA field = 0 refers to the last block accessed in the previous command

• LBA field = 1 refers to the next block after the last block of the previous command

Transfer Length : Number of blocks or bytes to transfer.

The following "XOR" commands were not included in this edition of the SCSI Bench Reference. After they
get fully incorporated into SBC, and if they prove popular, they will be included in the next edition.

• REBUILD (81 h)
• REGENERATE (82h)
• XDREAD (52h)

I
• XDWRITE (SOh)
• XDWRITE EXTEN DED (SOh)
• XPWRITE (51 h)

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 ENOL Publications


154 COM MANDS FOR D I R ECT-ACCESS DEVICES

COB/Bit Cross Reference

CORRCT Extent Invert Pad PMI S e l fT s t W r i n h

Cmp L s t EVPD I mmed Long i D Plist S av e U n i tO f l

CmdDt D PO Glist LoE j PF Re l Adr Start

BytChk DevO f l FUA Lock PCR Rdi n h SpnDat

Command Name 3 rd P t y DBD Fmt Da t a LBda t a PBda t a PPC SP

CHANGE DE F I N I T I O N X

COMPARE X

CO P Y X

CO P Y A N D V E R I FY X

FORMAT U N I T X X

I NQU I RY X X

LO CK/ UNLO C K CAC H E X X

LO G S ELECT X X

LOG S E N S E X X

MO DE S E L E C T ( 6 ) X X

MO DE S E L E C T ( 1 0 ) X X

MO DE S E N S E ( 6 ) X

MO DE S E N S E ( 1 0 ) X

PERS I S TENT RES E RVE IN

PERS I S TENT R E S E RVE O U T

PRE- FETCH X X

PREVE N T / A L LO W ME D I UM REMOVAL

READ ( 6 )
X X

I
READ ( 1 0 ) X

READ B U F FE R

READ CAPAC I T Y X X

READ D E F E C T DATA X X

READ LO NG X X

REAS S I GN BLOCKS
Command Name 3 B C C C D D D E E F F G I I L L L L P p p p p p P R R S S s s s u w
r y m mO B e P V x m U l m n B o o o a B C F l M P d e a e P p t n r
d t d p R D v O P t t A i rn v d c E n d d R i I C i l v l n a i i
P C D L R 0 D e D s e e a k j g a s n A e f D r t n
t h t s C f n a t d r t I t t h d T a t O h
y k t T l t t t a D a r s t f
a t l

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 ENOL Publications


CO M MANDS FOR D I R ECT -ACCESS D EVICES 155

CORRCT Extent I nvert Pad PM! S e l f T s t W r i nh


CrnpLs t EVPD Irnrned Long i D Plist S ave Un i tO f l
CrndDt D PC Glist LoEj PF Re lAdr Start
BytChk DeVC f l FUA Lock PCR Rdinh SpnDat

C ommand Name 3rdPty DBD FrntData LBda t a PBda t a PPC SP

RECE I VE D I AGNO S T I C RE SULTS


RELEASE ( 6 ) X X

RELEASE ( 1 0 ) X X X

RE PC RT LUNS

REQUEST SENSE \

RE SERVE ( 6 ) X X

RE SERVE ( 1 0 ) X X X

RE ZERO UN I T
S EARCH DATA EQUAL X X

S EARCH DATA H I GH X X

S EARCH DATA ww X X

SEEK ( 6 )
SEEK ( 1 0 )
SEND D I AGNO S T I C X X X X

SET LIMITS X X

S TART / S TO P U N I T X X X

S YNCHRO N I ZE CACHE X X

TEST UN I T READY

I
VER I FY X X X

WRITE ( 6 )
WRITE ( l O ) X X X

WRITE AN D VER I FY X X X

WRITE BUFFER
WRITE WNG X

WR I TE SAME X X X

C ommand Name 3 B C C C D D D E E F F G I I L L L L P p p p p p P R R S S s s s u w
r y m rn O B e P V x rn U l m n B o o o a B C F 1 M P d e a e P p t n r
d t d p R D vO P t t A i mv d c E n dd R i l C i l v 1 n a i i
P C D L R 0 D e D s e e a k j g a s nA e f D r t n
t h t s C f n a t d r t I t t h d T a t O h
y k t T 1 t t t a D a r s t f
a t l

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N D L Publications


156 COMMANDS F O R D I R ECT-ACCESS D EVICES

FORMAT U N I T Command

7 6 5 3
sA � t I I I I I 2 I I 0
4 1

0 Operati on Code ( 04 h )
1 { Lo g i c a l Un i t N umber} I FmtData l Cmplst I Defect li st Format
2 Vendor-Speci fi c
3 (MSB) I n terl eave
4 ( LSB)
5 Control Byte
* FORMAT U N IT is used t o perform a "low level" format o f t h e disk. SCSI disks perform management
of defects from up to four different defect information sources:

Pri ma ry Defects (Piist): detected and stored on the disk by the manufacturer.

Certification (Cllst): detected during the FORMAT U N IT command by verify passes after the format
\Vrite passes.

Data list (Diist): Transferred from the Initiator to the Target as part of a data transfer.

Grown Defects (Giist): Detected and stored on the disk as a result of previous FORMAT U N IT
commands, REASSIGN BLOCKS commands, or automatic reassignments.

FmtData : 0 = no data transfer


1 = defect data and/or parameter data is transferred

CmpLst: 0 = add new Dlist to old Glist to make new Glist; use old Glist (see table, page 1 60 )

I
1 = do not use Glist; delete old Glist; new Dlist becomes new Glist

Defect List Format: format of all Defect Descriptors in the defect list (see page 1 59) :
000 ::= block format
001 -0 1 1 reserved
=

1 00 bytes from index format


=

101 physical sector format


=

1 10 vendor specific format


=

111 reserved
=

Interleave: usually specifies the average spacing between sectors:


OOh Target's default
=

01 h 1 : 1 interleave
=

02h and up not defined by SCS I , but usually means 2 : 1 interleave and up.
=

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N O L Publications


COMMANDS FOR D I R ECT-ACCESS DEVICES 157
FORMAT U N I T Defect List Data Transfer Format

6 4
By � � t I I I I 3 I 2 I
7 5 1 0
I
0 Reserved
1 FOV I DPRY I DCRT I STPF I I P I DSP I Immed I v u
2 (MSB) Defect Li s t Length
3 ( LSB)
I n i t i al i zati on Pattern Descri p tor ( i f any)
0 I P Mod i fi e r I Res erved
1 Pattern Type
2 (MS B ) I n i t i a l i zat i on Pattern Length
3 ( LSB)
0 -
XX
I n i ti al i zat i on Pa ttern ( i f any)
Defect Des cri pto r ( s ) ( i f any)
0 -
XX
Defect Descri ptor 0 ( see page 1 5 9 )

0 -
XX
Defect Descri ptor n

The Format Defect List i s used t o specify defects that are known b y the Initiator, t o control which
defect sources are used or not used, and to specify the pattern to which each sector is initialized. If only
part or none of the defect list is sent, the Target defaults hold.

FOV: 0 = no options set; DPRY, DCRT, STPF, IP, and DSP must be zero.
1 = DPRY, DCRT, STPF, IP, and DSP are valid. (see table, page 1 60)

DPRY: 0 = use the Primary Defect List (Piist) .


1 = do not use the Plist (see table, page 1 60).

DCRT: 0 = do a certify pass; "Ciist" is enabled (verify after format write) .


1 = do not certify ;verify after format write ; Clist is disabled (see table, page 1 60).

STPF: 0 = do not stop if Target cannot find Plist or Glist (see note after table, page 1 6 1 ) .
1 = stop i f Target cannot find Plist and/or Glist, if that list has been selected t o b e during
the format.

IP: 0 = no Initialization Pattern specified.


1 = initialization Pattern is included in the data transfer.

DSP: 0 = save all MODE SE LECT savable parameters.


1 = do not save.

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N O L Publications


1 58 COM MANDS FO R D I R ECT-ACCESS D EVICES

lmm e d: 0 = return status when format is complete.


1 = return status after all data is transferred from the Initiator.

VU: "vendor specific"

Defect List Length : length of Defect Descriptors (equals size of descriptor plus number of descriptors) ;
does not include Initialization Pattern Length.

Initialization Pattern : specifies the initial data in each logical block.

IP Modifier: indicates how the pattern that follows is modified (by overlaying the first four bytes of the
pattern) :

00 = do not modify pattern


01 = four byte Logical Block Address is written at the start of each logical block.
10 = four byte Logical Block Address is written at the start of each physical sector.
11 = reserved

Pattern Type : OOh default pattern ; Pattern Length must b e zero.


=

01 h repeat pattern to fill logical block; Pattern must be transferred.


=

02h - 7Fh reserved


=

SOh - FFh vendor specific


=

Pattern Length : length of following bytes of pattern (not including Defect Descriptors) .

Pattern : actual bytes that specify the pattern.

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N O L Publications


COM MANDS FOR D I RECT-ACCESS D EVI CES 159
Defect Descripto r - Block Format
By te Defect Descri ptor
0 ( MSB ) -

1
2
Defect i ve Bl ock Add ress -

3 ( LS B)"
WAR N I N G : Block Address may be a Logical Block Address or a physical block address, depending
on the implementation. This is a real oddball. Probably the best thing to do is to not use it. Instead, if you
must indicate logical blocks as defective, use the REASSIGN BLOCKS command before FORMAT U N IT.
Another method is to issue a SEND DIAGNOSTIC command with the Translate Address page, and get
back Bytes From I ndex defect data, which you can then use as Defect List data.

Defect Descripto r - Bytes From I n dex Format


Byte Defect Descri ptor
0 j_MSB )
Cyl i nder Number of Defect
-

1
2 ( LS 'B")"
3 Head Number of Defect
4 ( MSB ) -

5
6 Defect Bytes From I ndex -

7 ( LS B)"

I
Defect Descri ptor - Physical Sector Format
Byte Defect Des cri ptor
0 ( MSB )
Cyl i nder Number of Defect
-

1
2 ( LS B)"
3 Head Number of Defect
4 ( MSB ) -

5
6 Defecti ve Sector Number -

7 ( LS 'B")"

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N D L Publications


160 CO M MA N D S F O R D I R ECT-ACCESS D EVI CES

Use of Defect S o u rces

FmtData Cmplst FOV DPRY DCRT DLL Des cri pti on of Defect Sources
0 X X X X X Dl i st not used ;
P l i st , C l i st , G l i st per defau l t
1 0 0 X X 0 Dl i s t not used ;
G l i s t used ;
P l i s t , C l i s t , per defau l t
1 0 0 X X >0 Dl i st , G l i s t used ;
P l i st , C l i st , per defau l t
1 1 0 X X 0 Dl i s t , G l i s t not used ;
prev i ous G l i s t del eted ;
P l i s t , C l i s t , per defau l t
1 1 0 X X >0 Dl i s t used ;
Gl i s t not used ; prev i ous Gl i st del eted
Pl i s t , C l i st , per defau l t
1 0 1 0 0 0 Dl i s t not used ;
( * ) G l i s t , ( * ) P l i s t , Cl i s t used
1 0 1 0 0 >0 Dl i s t , ( * ) G l i s t , ( * ) Pl i s t , Cl i st used
1 1 1 0 0 0 Dl i s t , G l i s t not used ;
prev i o u s G l i s t del eted ;
(*) P l i s t , Cl i s t used
1 1 1 0 0 >0 Dl i st , ( * ) Pl i st , C l i st used ;
Gl i s t not used ; prev i ous G l i s t del eted

I 1

1
0

0
1

1
0

0
1

1 >0
0 Dl i s t , C l i s t not used ;
( * ) G l i s t , (*) P l i st used
Dl i s t , ( * ) G l i st , ( * ) Pl i s t used ;
C l i s t not used
1 1 1 0 1 0 Dl i s t , G l i s t , C l i st not used ;
prev i ous G l i s t del eted ;
(*) P l i s t used
1 1 1 0 1 >0 Dl i s t , ( * ) Pl i s t used ;
C l i s t not used ;
Gl i s t not used ; prev i ous Gl i s t del eted
"
DLL = Defect List Length in Defect List, > 0" means "length greater than zero"

(*) : see footnote on next page . . . .

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N O L Publications


COM MANDS FOR D I R ECT -ACCESS D EVICES 161
U s e o f Defect Sou rces

FmtData Cmplst FOV DPRY DCRT DLL Descri pti on of Defect Sou rces
1 0 1 1 0 0 Dl i st , Pl i s t not used ;
( * ) Gl i st , C l i st used
1 0 1 1 0 >0 Dl i st , ( * ) G l i st , C l i s t used ;
P l i st not used
1 1 1 1 0 0 Dl i st , P l i s t , Gl i st not used ;
prev i ous Gl i s t del eted ;
C l i s t u s ed
1 1 1 1 0 >0 Dl i st , C l i s t used ;
Pl i st not used ;
G l i st not used ; prev i ous G l i st del eted
1 0 1 1 1 0 Dl i s t , P l i s t , Cl i s t not used ;
G l i s t used
1 0 1 1 1 >0 Dl i s t , (*) G l i s t used ;
P l i s t , C l i s t not used
1 1 1 1 1 0 Dl i s t , Pl i s t , G l i s t , Cl i s t not used
previ ous G l i s t del eted
1 1 1 1 1 >0 Dl i s t used ;
C l i st , P l i st not used ;
Gl i st not used ; p rev i ous G l i s t del eted
"
DLL = Defect List Length in Defect List, > 0 " means "length greater than zero"

(*) : Whe n the Initiator commands the Target to use the Plist and/or Glist, and either or both lists
cannot be found, the STPF bit controls whether or not the format completes successfully
(see page 1 57) :

• STPF = 0: the Target continues even if the list (s) cannot be recovered.

• STPF = 1 : the Target stops formatting the disk.

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N O L Publications


162 COM MA N DS F O R D I R ECT-ACCESS DEVICES

LOCK/UN LOCK CACHE Command

6 3 1 0
By � � t
5 4 2
I I I I I I I
7

0 Operati on Code ( 3 6 h )
1 { Log i ca l Un i t Number} I Reserved I Lock I Rel Adr
2 (MSB)
3
-

Log i cal Bl ock Address -

4
5 ( LS'B")
6 Reserved
7 (MSB) Number o f B l ocks
8 ( LS'B")
9 Control Byte
* LOCK/U N LOCK CAC H E is used t o specifify which logical blocks are t o be kept available in cache.
Usually u s ed to keep often-used blocks handy. WAR N I N G : Data must already be in tl1e cache (use
READ or PRE-FETCH) for the data to be locked.

Lock: 0 = allow blocks specified to be removed (unlock)


1 = lock specified blocks in cache if they are currently in the cache.

Number of Blocks: rang e of blocks to lock or unlock. Zero means do the rest of the disk.

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N O L Publications


COMMANDS FOR D I R ECT-ACCESS D EVICES 163
PRE-FETCH Command

6 4 3 2 1 0
By � � t
5
I I I I I I I
7

0 Operat i on Code ( 34h )


1 { Log i cal Uni t Number} I Reserved I Immed I Rel Adr
2 (MS B ) -
3 Log i cal Bl ock Addres s -
4
5 ( LS 'B")"
6 Reserved
7 (MSB) Trans fer Leng t h
8 ( LSB)
9 Control Byte
* PRE-FETCH i s used to get the specified logical blocks into the cache memory. N o data phase
occurs.

lmmed: 0 = return status when pre-fetch is complete


1 = return status after command is validated

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 ENOL Publications


164 CO M MAN DS F O R D I R ECT -ACCESS DEVICES

READ(6) Command

6 3 0
BA � t 5 4
I I I I I I I
7 2 1

0 Operat i on Code (08h )


1 { Logi cal U n i t Number} I (MSB)
Log i cal B l ock Address
-

2
3 ( LSB)
4 Trans fer Length
5 Control Byte

READ(1 0) Command

By�� t 6 3 2 1 0
7
I I 5
I 4
I I I I
0 Operat i on Code ( 28h )
1 { Log i c a l Un i t Number} I DPO I FUA I Reserved I Rel Adr
2 (MSB) -

3
Log i cal B l ock Address -

4
5 ( LS B)
6 Reserved
7 (MSB) Trans fer Length
8 ( LSB)
9 Control Byte
* T h e R EAD commands are used t o transfer logical blocks from the Target t o the Initiator.

See page 1 53 for a descri ption of the DPO, FUA, ReiAdr, Logical B lock Address, and Transfer
Le ngth fields.

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N O L Publications


COM MANDS FO R D I R ECT-ACCESS D EVICES 165
READ CAPACITY Command

By� � t 5 3 2 1
7
I 6
I I I I I I
4 0

0 Operat i on Code ( 2 5 h )
1 { Log i c a l U n i t Number} I Reserved I Rel Adr
2 (MS B ) -

3
Logi cal B l ock Address -

4
5 ( LS�
6 Reserved
7 Reserved
8 Reserved I PMI
9 Contro l Byte
* READ CAPACITY i s used t o report t h e total number of blocks a n d block size o f t h e disk.

PM/: 0 = report total capacity; the Logical Block Address in the R EAD CAPACITY Data is the
last valid address
= report the next Logical Block Address after which a delay in access may occur.
Causes for the delay may include:
• cylinder boundary
• head switch
• zone crossing
• seek to alternate sector or track

WAR N I N G : Different SCSI disks will have different criteria for a delay.

READ CAPACITY Data

Byte Descri pt i on
0 (MSB)
1
-

2
Log i cal B l ock Address -

3 ( LSB)
4 (MS B ) -

5
B l ock Length -

6
7 ( LS'B)

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N O L Publications


166 CO M MAN DS FOR D I R ECT-ACCESS D EVICES

READ DEFECT DATA Co mmand

7 6 4 1 0
By ��
t
I I 5
I I 3
I 2
I I
0 O p e ra t i o n C o d e ( 3 7 h )
1 { Log i c a l U n i t N umb e r } I Reserved
2 Re s e rv e d I P L i s t I G L i s t I D e f e c t Li s t F o rmat
3 -

4
Reserved -

5
6
-

7 (MSB)
A l l o c a t i o n Le n g t h
8 ( LS B )
9 C o n t r o l Byte

* READ DEFECT DATA reports the contents of the Plist and Glist which are recorded on the disk.

See FORMAT U N IT command , page 1 56.

PList: 0 = do not return primary list (see page 1 56)


1 = return primary list

GUst: 0 = do not return grown list (see page 1 56)


1 = return grown list

NOTE: If both the Plist and G Ust bits are set to one, then both the lists are returned. The order in
which they are returned is up to the Target.

Defect List Format: format of all defect descriptors in the defect list:
000 = block format
1 00 = bytes from index format
101 = physical sector format
1 10 = vendor specific format

Allocation Length : the maximum number of bytes that the Target may send to the Initiator.

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N O L Publications


COM MANDS FOR D I R ECT-ACCESS DEVICES 167
READ DEFECT DATA Defect List

6 3 2 0
I I
4
By�� t 7
I
5
I I I
1
I
0 Res e r v e d
1 Re s e rv e d I PLi st I GLi st I D e f e c t L i s t F o rmat
2 (MS B ) Defect Li s t Length
3 ( LS�
Defect D e s c r i p t o r s
O-n

The READ DEFECT DATA Defect List begins with a four byte header which is followed by Defect
Descriptors. See the FORMAT U N IT command for Defect Descriptor formats (page 1 56) .

PList: 0 = Target did not return Plist data (see page 1 56)
1 = Target returned PList data

GUst: 0 = Target did not return Glist data (see page 1 56)
1 = Target returned G Ust data

Defect List Format: format of the returned list:


000 block format
=

1 00 bytes from index format


=

101 physical sector format


=

1 10 vendor specific format


=

Defect List Length: number of following bytes ; also, total data block length minus fou r.

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 ENOL Publications


168 COM MAN DS F O R D I R ECT-ACCESS DEVICES

READ LONG Co mmand

6 2
By r� t 7
I I
5
I
4
I
3
I I
1
I
0

0 O p e r a t i o n C o d e 13 E �
1 { Lo g i c a l U n i t Num b e r } I Reserved I C O R RCT I Re l Ad r
2 ( MS B )
3
-

Log i c a l B l o c k A d d re s s -

4
5 ( LS�
6 Re s e rv e d
7 ( MS B )
Byte T r a n s f e r Le n g t h
8 ( LSB)
9 C o n t r o l By te

* R EAD LO N G is used t o transfer t o the I nitiator the physical data recorded in a logical block,
including the error correcting codes (ECC) and synchronization data.

COARCT: 0 = do not correct errors with ECC


1 = correct data with ECC if necessary

Byte Transfer Length: exact number of bytes in physical sector data. See product documentation for
physical sector size plus overhead byte length . Or, use the Quick and Dirty Method:

(1 ) Issue READ LON G with Byte Transfer Length equal to one. C H EC K CONDITION Status is
returned.

(2) Then issue REQU EST SENSE. If the I Ll bit equals one, then the I nformation Bytes in the Sense
Data will equal the number of bytes of physical data minus one.

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 ENOL Publications


COM MAN DS FOR D I R ECT-ACCESS D EVICES 169
REASS I G N BLOCKS Command

6 5 3 2 1
By r� t 7
I I I
4
I I I I
0

0 Ope ra t i o n C o d e ( 0 7 hl
1 { Lo g i c a l U n i t N u m b e r } I Reserved
2 Re s e rv e d
3 Re s e rv e d
4 Re s e r v e d
5 C o n t ro l Byte

* REASS I G N B LOCKS is used to map out bad blocks without performing a FORMAT U N IT
command.

WAR N I N G : The Target does not have to move the data from the old physical location to the new
location, though some do. The Initiator should perform data recovery before issuing this command.

REASSIGN BLOCKS Defect List

Byte Defect L i s t H e a d e r
0 Reserved
1 Res e r v e d
2 ( MS B )
D e f e c t L i s t Len g t h
3 ( LSB")
Defect Des cri ptor ( s )
0 ( MS B ) -

1
D e fe c t Lo g i c a l B l o c k A d d re s s -

2
3 ( LSB")
The R EASS I G N B LOCKS Defect List specifies the bad blocks to relocate.

Defect List Length: length of following bytes; also, number of bad blocks times four.

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 ENOL Publications


170 COMMANDS F O R D I R ECT-ACCESS DEVICES

R EZERO U N IT Command
6 3 2
By r� t 7
I I
5
I
4
I I I
1
l
0

0 O p e ra t i o n C o d e ( O l h )
1 { Lo g i c a l U n i t N u m b e r } I Re s e rv e d
2 Reserved
3 Reserved
4 Re s e rv e d
5 C o n t r o l Byt e

* R EZERO U N IT requests that the disk b e brought t o a known state. Some disks will seek t o physical
track zero, others will seek to a location near logical block 0, others will do nothing.

S EEK(6) Command
6 3 2
By r� t 7
I l
5
l
4
I l l
1
l
0

0 Opera t i on Code ( 0Bh )


1 { Lo g i c a l U n i t N um b e r } I (MSB)
2
-

Lo g i c a l B l o c k A d d re s s
3 ( LS�
4 Re s e rved
5 C o n t ro l By t e

S E E K( 1 0 ) Command
7
By r� t I
6
l
5
l
4
l
3
j
2
l
1
l
0
0 Operat i on Code ( 2 B h )
1 { Lo g i c a l U n i t N um b e r } I Re s e rv e d
2 (MSB) -

3
Lo g i c a l B l o c k A d d re s s -

4
5 ( Lssr--
6 Re s e rv e d
7 Re s e rv e d
8 Reserved
9 C o n t r o l By t e

* The S E E K Co m mands request the Target t o seek t o the logical block, o r somewhere near it. Some
Targets do nothing in response to this command.

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N O L Publications


COMMANDS FOR D I R ECT-ACCESS D EVICES 171
START/STO P UNIT Command
4
Bi t
By t e
7
l
6
I 5
I I 3
I 2
I 1
I 0

0 O p e ra t i o n C o d e ( 1 B h )
1 { Lo g i c a l U n i t N um b e r } I Re s e r v e d I I mmed
2 Re s e rv e d
3 Reserved
4 Powe r C o n d i t i o n s I Re s e rv e d I L o Ej I S t a rt
5 C o n t r o l Byt e

* START/STO P U N IT is typically used to spin up and spin down a rotating disk d rive.

Jmmed: 0 = return status after operation is done


1 = return status after validating command

Power Conditions: controls the power condition of the Logical Unit:


0 no change in power condition
=

1 change to Active condition


=

2 change to Idle condition


=

3 change to Standby condition


=

4 reserved
=

5 change to Sleep condition


=

6 reserved
=

7 give control of power conditions to Logical U nit


=

8-9 reserved
=

A force Idle Condition Timer to zero


=

B force Standby Condition Timer to zero


=

C-F reserved =

LoEj: 0 = don't load or unload/eject the medium


1 = load on start or unload/eject on stop

Start: 0 = stop (spin down)


1 = start (spin up)

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N O L Publications


172 COM MAN DS FOR D I R ECT-ACCESS DEVICES

SYNCHRON IZE CAC H E Command

5 3
By r� t
6 4
7
I I I I I 2
I 1
I 0

0 Operati on Code ( 35h )


1 { Log i c a l Un i t Number} I Reserved I Immed I Rel Adr
2 (MSB) -

3 Log i cal B l o c k Address -

4
5 ( Lssr--
6 Reserved
7 (MSB) Number of B l ocks
8 ( Lssr--
9 Control Byte
* SYNCHRON IZE CAC H E is used t o ensure that any data in the cache that has not been written to
the medium is safely recorded on the medium.

Number of Blocks: Indicates the range (starting with the LBA) in which to ensure data is recorded on
the medium. If this field is set to zero, then do all remaining logical blocks.

VER I FY Command

By r� t 6 5 34
I I I I I
2
I I
7 1 0

0 Operati on Code ( 2Fh )


1 { Log i c a l Un i t Number} I DPO I Reserved i Reserved l BytCh k I Rel Adr
2 (MSB)
3
-

4
Log i cal B l o c k Address -

5 ( Lssr--
6 Reserved
7 (MSB) Veri fi cat i on Length
8 ( LS B )
9 Control Byte
* V E R I FY i s used t o verify data on the medium.

BytChk: 0 = do verify without data compare (use ECC, etc. ) ; no data is transferred
1 = do verify with data com pare ; data is transferred

Verification Length: number of blocks to verify

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N D L Publications


COM MANDS FOR D I R ECT-ACCESS D EVICES 173
WRITE(6) Command

By �� t 6 3 2
I I I I I I I
7 5 4 1 0

0 Operat i on Code ( OAh )


1 { Log i c a l U n i t Number} I (MSB ) -
2 Log i c a l B l ock Addres s
3 ( LS'B)
4 Tran s fer Length
5 Contro l Byte

WRITE(1 0) Command

By �� t 7 6 3 2
I I I
1
I I I I
5 4 0

0 Operat i on Code (2Ah )


1 { Log i c a l Un i t Number} I DPO I FUA I Reserved i Reserved l Rel Ad r
2 (MS B ) -
3
4
Log i cal B l ock Address -

5 ( LS'B)
6 Reserved
7 (MS B ) Tra n s fer Length
8 ( LSB )
9 Control Byte
* T h e WR ITE Co m m a n d s are used to transfer logical blocks to t h e Target from t h e Initiator.

See page 1 53 for a descripti o n of the DPO, FUA, Re iAdr, Logical Block Address, a n d Transfer
Le ngth fields.

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N O L Publications


174 COM MAN DS FOR D I R ECT-ACCESS D EVICES

WR ITE AND VER I FY Command

6 3 2
By n t I
1
I I I
4
I
7 5 0
I l
0 Operat i on Code 12 Ehl
1 { Log i c a l Un i t N umber} I DPO I Reserved i Reserved l BytCh k 1 Rel Adr
2 (MS B ) -

3
Log i cal B l ock Add ress -

4
5 ( LS'B')
6 Reserved
7 (MSB) Tran s fer Length
8 ( LSB)
9 Control Byte
* WRITE AND VER I FY is used t o transfer logical blocks t o the Target from the Initiator and then
verify the write.

BytChk: 0 = do verify without data compare (use ECC, etc.)


1 = do verify with data compare

WRITE LONG Command


6
By �� t 7
I I
5
I
4
I
3
I
2
I
1
l
0

0 Operat i on Code ( 3 Fh )
1 { Log i cal Un i t Number} 1 Reserved 1 Rel Ad r
2 (MSB) -

3
4
Log i c a l Bl ock Address -

5 ( LSB)
6 Reserved
7 (MSB) Byte Tran s fer Length
8 ( LSB)
9 Contro l Byte
* WRITE LON G i s used to transfer the physical data t o b e recorded in a logical block, including the
error correcting codes (ECC) and synchronization data.

Byte Transfer Length: exact number of bytes in physical sector data. See R EAD LONG, page 1 68.

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 ENOL Publications


COM MANDS FOR D I R ECT-ACCESS D EVI CES 175
WRITE SAM E Command

6 1
By �� t 7
I I 5
I
4
I 3
I 2
I I 0

0 Operati on Code ( 4 1 h )
1 { Log i c a l Uni t Number} I Reserved I PBdata I LBdata I Rel Ad r
2 (MS B ) -

3
4
Log i c a l B l ock Address -

5 ( LSi3)
6 Reserved
7 {MS B ) Number o f B l ocks
8 ( LSB)
9 Control Byte
* W R I T E SAM E i s used t o initialize a large number o f blocks to t h e same data pattern. O n e logical
block's worth of data is transferred from the Initiator.

PBdata: 0 = no function
1 = replace first eight bytes of data written to each physical sector with the physical
sector address (the first eight bytes of data in each sector are overwritten).

LBdata: 0 = no function
1 = replace first four bytes of data written to each logical block with the Logical Block
Address (the first four bytes of data in each sector are overwritten).

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 ENOL Publications


176 COM MAN DS FOR D I R ECT-ACCESS D EVICES

Direct Access Device Diagnostic Page Codes

Page Code Des c r i pt i on S C S I -3 S e c t i o n


OOh L i s t o f s u p p o r t e d P a g e s ( s ee p a g e 1 2 8 ) S PC 8 . 1 . 1
01h - 3Fh R e s e r v e d ( fo r a l l d e v i c e typ e P a g e s )
40h T r a n s l ate Ad d re s s P a g e SBC 7 . 1 . 1 . 1
41h Dri ve Status Page SBC 7 . 1 . 1 . 3
42h - 7 Fh Re s e rv e d
80h - F F h Vendor-spec i fi c Pages

Translate Add ress Page - SEND D IAGN OSTI C

Bi t 7 6 4 3 2 1 0
I I I I I I I
5
Byte
0 Page Code (40h )
1 Re s e rv e d
2 (MSB)
P a g e Len g t h ( OO O A h )
3 ( LS �
4 Re s e rv e d I S u p p l i ed F o rmat
5 Reserved I T r a n s l a t e F o rmat
6
7
-

8 -

9
A d d re s s t o T r a n s l a t e -

10 -

11
12
-

13

SCS I Bench Reference Copyright © 1 989, 1 992, 1 996 E N O L Publications


CO M MANDS FOR D I R ECT-ACCESS D EVICES 177
Translate Ad d ress Page - R ECEIVE D IAGNOSTIC

rt
By �
7
I
6
l
5
I
4
l
3
l
2
l
1
l
0

0 P a g e C o d e ( 40 h )
1 Re s e rv e d
2 (MS B )
P a g e Le n g t h
3 ( LS B)
4 Re s e rv e d l S u p p l i ed F o rmat
5 RA R E A I A LT S E C I ALTTRK I Re s e rv e d I T r a n s l a t e d F o rmat
6 -

7 -

8 -

9
T r a n s l a t e d Ad d r e s s 1 -

10 -

11 -

12 -

13
14 -

15 -

16
17
-

T r a n s l a t e d Ad d r e s s 2 ( i f req u i red ) -

18 -

19 -

20 -

21
- - - r - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
n
- - -
-
r - T r a n s l a t e d Ad d re s s n ( i f req u i red ) -

nn

The Tra nslate Address Pages are used to convert a n address into another kind of address; usually
a Logical Block Address into a physical address of some kind.

Page Length: the length of following bytes; also, equal to total Page length minus four.

Supplied Format and Translate Format:

000 = logical block format


1 00 = bytes from index format
1 01 = physical sector format
1 10 = vendor specific format

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 ENDL Publications


178 COMMANDS FO R D I R ECT-ACCESS D EVICES

Address to Translate: format is specified by Supplied Format field

Translated Addresses: format is specified by Translate Format. More than one is returned if the
physical position is not certain .

RAREA : 0 = translated address does not fall into a reserved area of the disk
1 = all or part of translated address lands in a reserved area of the disk

AL TSEC: 0 = translated address does not fall into an alternate sector of the disk
1 = all or part of translated address lands in an alternate sector of the disk

AL TTRK: 0 = translated address does not fall into an alternate track of the disk
1 = all or part of translated address lands in an alternate track of the disk

D rive Status Page - S END D IAG NOSTIC

rt 0
7
I I I I I 2
I I
6 5 4 3 1
By �
0 Page Code (4 1 h )
1 Re s e rv e d
2 (MS B )
3
P a g e Le n g t h ( 0 0 08 h )
( LS�
4 Re s e rv e d
5 Re s e rv e d
6 Re s e rv e d
7 Re s e rv e d
8 Reserved
9 Re s e rv e d
10 Reserved
11 Re s e r v e d

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N O L Publications


CO M MANDS FOR D I R ECT-ACCESS D EVICES 179
D rive Status Page - R ECEIVE D IAGNOST I C

By�� t 7
I 6
I 5
I 4
I 3
I 2
I 1
I 0

0 Page Code ( 4 1 h )
1 Reserved
2 (MSB)
P a g e Le n g t h
3 ( LS B)
4 Res e r v e d
5 Res e r v e d
6 Re s e rv e d I Syn c h ro n i z a t i o n I RPL
7 Res e r v e d I SSIS I SSI E l SSSL
8
- - -- - - -
Reserved
47
4
- -
8 - - - -
, Ven d o r S p e c i f i c
nn

The Drive Status Pages are used to determine the operational status of the drive.

Page Length : the length of following bytes; also, equal to total Page length minus four.

Synchronization : spindle sync status:


00 status reporting not supported or status cannot be determined.
=

01 spindle is synchronized with the reference signal.


=

10 spindle cannot synchronize with the reference signal or reference signal is not
=

present.
11 spindle is in process of synchronizing with the reference signal.
=

RPL : as reported in Rigid Disk Drive Geometry Mode Page:


00 = sync disabled or not supported
01 = disk is a Slave
10 = disk is a Master
11 = disk is a Master Control

SS/S: 0 = valid spindle reference signal is being received.


1 = spindle reference signal is invalid.

SSIE: 0 = no internal failure.


1 = synchronous spindle electronics detected an internal failure.

SSSL : 0 = spindle reference signal is being received.


1 = no spindle reference signal is being received.

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 ENOL Publications


180 C O M MANDS FOR D I R ECT-ACCESS DEVICES

Log Page Codes for Direct Access Devices

Page Code Des cri pti on S C S I -3 S e ct i o n


OOh S u p p o rted Log P a g e s P a g e SPC 8.2.6
Olh B u ff e r O v e r - r u n / U n d e r - r u n P a g e SPC 8.2. 1
02h Error Counter Page (Wri te) S PC 8.2.2
03h Error Counter Page ( Read ) S PC 8.2.2
04h Re s e rv e d
05h E r r o r C o u n t e r P a g e ( V e r i fy ) S PC 8 . 2 . 2
06h N o n -Med i um E r r o r P a g e SPC 8 . 2 . 5
07h Last n Error Events Page SPC 8 . 2 . 4
08h F o rmat S t a t u s Page
0 9 h - OAh Re s e rv e d
OBh L a s t n D e f e r r e d o r Asyn c h ro n o u s E r r o r E v e n t s P a g e SPC 8 . 2 . 3
OCh - 2 F h Reserved
30h - 3Eh Vendor speci fi c Pages
3Fh Re s e rv e d

Parameter Codes for Format Status Page

P a rame t e r
Code Des cri pti on
OOOOh F o rm a t DATA OUT P h a s e D a t a
OOO l h N u m b e r o f G rown D e fe c t s d e t e c t e d d u r i n g C e rt i f i c a t i o n
0002h T o t a l b l o c k s re a l l o c a t e d s i n c e l a s t F o rm a t
00 0 3 h To t a l b l o c k s re a l l o c a t e d
0004h P owe r-on m i n u t e s s i n c e l a s t F o rmat
0005 h-7 F FFh Re s e rved
800 0 h - F F F F h Vendor Speci fi c

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N O L Publications


COM MAN DS FOR D I R ECT-ACCESS DEVICES 181
Direct Access Device Mode Parameters
The Density Code field in the Block Descriptor is not used for Direct Access devices.

Mode Page Codes (al p h a betic)

Des c r i p t i o n Page Code S C S I -3 S e ct i o n


Cach i ng Page 08h SBC 7.1.3.1
Control M o d e Page ( s e e page 1 4 4 ) OAh SPC 8.3.4
D i s co n n e c t - R e c o n n e c t P a g e ( s e e page 1 4 6 ) 02h S PC 8.3.5
Fl exi bl e D i s k Page ( s ee SBC) 05h SBC 7 .1.3.2
Format De v i c e P a g e 03h SBC 7.1.3.3
I n f o rmat i o n a l E x c e p t i o n s C o n t r o l P a g e 1Ch S PC 8.3.6
( s ee p a g e 1 4 8 )
Med i um Typ e s S u p p o r t e d P a g e ( s e e S B C ) OBh SBC 7.1.3.4
P e r i p h e r a 1 De v i c e P a g e ( s ee S P C )
Notch and Parti t i on Page OCh SBC 7.1.3.5
09h SPC 8.3.7
Powe r C o n d i t i o n P a g e ( s e e p a g e 1 4 9 ) ODh SPC 8.3.8
Re a d -Wr i t e E r r o r Re c o v e ry P a g e 01h SBC 7.1.3.6
Ri g i d D i s k G e ome t ry P a g e 04h SBC 7.1.3.7
V e r i fy E r r o r R e c o v e ry P a g e 07h SBC 7. 1.3.8
X O R Con t r o l Mode P a g e ( s ee S B C ) 10h S BC 7.1.3.9
Re s e rved 06h
Re s e rved ODh - OFh
Re s e rved l l h - 1Bh
Re s e rved 1 D h - 1 Fh
V e n d o r - S p e c i f i c (no Page f o rm a t ) OOh
Vendor-Spec i fi c 20h - 3Eh
Re t u rn a l l P a g e s 3Fh

I
( v a l i d o n l y f o r t h e MOD E S EN S E c omm a n d )

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N O L Publications


182 CO M MANDS FO R D I R ECT-ACCESS D EVICES

Mode Page Codes ( n u meric)

Page Code Des c r i p t i on S C S I -3 S e c t i o n


OOh V e n d o r S p e c i f i c ( d o e s n o t req u i re P a g e f o rm a t )
Olh Re a d -W r i t e E r r o r Re c o v e ry P a g e SBC 7.1.3.6
02h D i s c o n n e c t - Re c o n n e c t P a g e ( s e e p a g e 1 4 6 ) S PC 8.3.5
03h F o rm a t D e v i c e P a g e SBC 7.1.3.3
04h R i g i d D i s k G e om e t ry P a g e SBC 7.1.3.7
05h Fl exi bl e Di s k Page ( see SBC) SBC 7.1.3.2
06h Re s e rv e d
07h V e r i fy E r r o r R e c o v e ry P a g e SBC 7.1.3.8
08h Cach i ng Page SBC 7 .1.3.1
09h Peri pheral Dev i ce Page ( see SPC ) SPC 8.3.7
OAh Control Mode Page ( see page 144) S PC 8.3.4
OBh M e d i um Ty p e s S u p p o r t e d P a g e ( s e e S B C ) SBC 7. 1.3.4
OCh Notch a n d P a r t i t i on Page SBC 7. 1.3.5
ODh P owe r C o n d i t i o n P a g e ( s e e p a g e 1 4 9 ) SPC 8.3.8
ODh - OFh Re s e rv e d

lOh XOR Control Mode Page ( see SBC ) SBC 7 . 1 . 3 . 9


l lh - 1Bh R e s e rv e d

1Ch I n f o rm a t i o n a l E x c e p t i o n s C o n t ro l P a g e ( s e e p a g e 1 4 8 ) S P C 8 . 3 . 6

1 Dh - 1 Fh Re s e rv e d
20h - 3Eh Vendor Speci fi c
3Fh R e t u r n a l l P a g e s ( v a l i d o n l y f o r t h e MO D E S E N S E comm a n d )

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N O L Publications


COM MANDS FOR DIR ECT-ACCESS D EVICES 183
Caching Pag e

t 7 6 5 4 3 2 1 0
By � � I I I I I
0 PS Res erved Page Code (08h )
1 Page Length ( 1 2 h )
2 IC ABPF C A P I D I S C I S I Z E I WC E I MF I RCD
3 Demand Read Reten t i o n Pri ori ty I Wr i te Reten t i on Pri o r i ty
4 (MSB)
D i s a b l e Pre-fetch Tran s fer Len g t h ......,....--

5 ( LS B )
6 (MSB)
Mi n i mum Pre-fetch ......,....--

7 ( LS B )
8 (MSB)
Maxi mum Pre-fetch -

9 ( LS B )
10 ( MS B )
Maxi mum Pre-fe t c h C e i l i n g
11 ( LSB)
12 FS W LBCSS ORA I VendSpec i VendSpec l Res e rved
13 Number o f C ac h e Segme n t s
14 (MSB)
Cache Segmen t S i z e -

15 ( LS B )
16 Res erved
17 (MSB) -

18 Non -Cache Segmen t S i z e -

19
The Caching Page i s used to control the behavior of the cache memory .

/C: 0 = use Logical Units own caching algorithm.


1 = use Number of Cache Segments or Cache Segment Size field to establish the
caching algorithm .

ABPF: 0 = Minimum Pre-fetch field is used to end a pre-fetch.


1 = abort prefetch upon selection, overrides Minimum Pre-fetch setting.

CAP: 0 = do not perform caching analysis.


1 = perform caching analysis during subsequent operations.

DISC: 0 = truncate pre-fetch at time discontinuity (e. g . , cylinder boundary)


1 = pre-fetch may continue across a time discontinuity

SIZE: 0 = N umber of Cache Seqments field is used to control cache segmentation.


1 = Cache Segment Size field is used to control cache segmentation.

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N D L Publications


184 CO M MANDS FOR D I R ECT -ACCESS D EVICES

WCE: 0 = write cache disabled: return status after data is written to disk
1 = write cache enabled : Target may return status after data is written to cache

MF: see Minimum Pre-fetch and Maximum Pre-fetch next page.

RCD: 0 = read cache enabled: Target can transfer data from cache
1 = read cache disabled: Target must get data from disk

Demand Read Retention Priority:


0000 = Target default
0001 = replace read data sooner than pre-fetch data
1 1 1 1 = replace pre-fetch data sooner than read data
001 0 - 1 1 1 0 = reserved

Write Retention Priority:


0000 = Target default
0001 = replace write data sooner than pre-fetch data
1 1 1 1 = replace pre-fetch data sooner than write data
001 0 - 1 1 1 0 = reserved

Disable Pre-fetch Transfer Length (DPTL) : (advisory)


o if READ command transfer count > DPTL: don't do hidden pre-fetch' after READ
command is complete
o if R EAD command transfer count < DPTL: do hidden pre-fetch after R EAD command is
complete

Minimum Pre-fetch : (adivsory) value that defines the minimum number of blocks to pre-fetch before
servicing new read or write command. A value of zero indicates that the Target should stop pre­
fetching whenever a n ew command is received:

if M F = 0 : minimum pre-fetch blocks = M inimum Pre-fetch field


if MF = 1 : minimum pre-fetch blocks = Minimum Pre-fetch field * Command Transfer Length
from current command block

Maximum Pre-fetch : (advisory) value that defines the maximum number of blocks to pre-fetch. If the
resulting value of this field is g reater than the Maximum Pre-fetch Ceiling field, then the ceiling is
used as the maximum number of blocks to pre-fetch:

if MF = 0 : maximum pre-fetch blocks = Maximum Pre-fetch field


if MF = 1 : maximum pre-fetch blocks = M aximum Pre-fetch field * Command Transfer Length
from current command block

Maximum Pre-fetch Ceiling: (advisory) maximum number of blocks to pre-fetch if maximum pre-fetch
blocks is greater than this field (see above) .

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N O L Publications


COM MANDS FOR D I R ECT-ACCESS D EVICES 185
FSW: 0 = the Logical Unit may re-order a write transfer to achieve faster completion .
1 = multiple block writes a r e transferred a n d written in ascending sequential logical block
order.

LBCSS: 0 = Cache Segment Size field is the number of bytes in a cache segment.
1 = Cache Segment Size field is the number of Logical Blocks in a cache segment.

ORA: 0 = enable read-ahead.


1 = disable read-ahead (overrides all other pre-fetch fields) .

Number of Cache Segments: (advisory) the number of segments to divide the cache.

Cache Segment Size: (advisory) the size of each segment i n the cache, i n units defined by the LBCSS
bit (see above).

Non-Cache Buffer Size: (advisory) the size of the buffer in bytes to use for data transfer in the event of
a cache miss.

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 ENOL Publications


186 COM MANDS FOR D I R ECT-ACCESS DEVICES

Format Device Page

7 6 5 4 2 1
I I
t 3 0
By �� I I
0 PS R e s e rved Page Code ( 0 3 h
1 P a g e L e n g t h i n byt e s ( 1 6 h )
2 ( MS B )
Tracks per Zone
3 ( L S 'B)
4 ( MS B )
A l tern a t e S e c t o r s p e r Z o n e
5 ( L S 'B)
6 ( MS B )
A l tern a t e T r a c k s p e r Z o n e
7 ( LS B)
8 ( MS B )
A l t e r n a t e T r a c k s p e r Lo g i c a l U n i t
9 ( LS B)
10 (MSB)
Sectors per Track
11 ( LS 'B)
12 (MSB)
D a t a Byt e s p e r P h ys i c a l S e c t o r
13 ( LS 'B)
14 ( MS B )
I n terl eave
15 ( LS B)
16 ( MS B )
T r a c k S k ew F a c t o r
17 ( LS B)
18 ( MS B )
Cy l i n d e r S k ew F a c t o r
19 ( LS B)
20 S S EC H S EC RMB I SURF I Re s e rv e d
21 Re s e rv e d
22 Re s e rv e d
23 Re s e rv e d

The FORMAT D EVICE Page is used t o establish defect management a n d performance parameters
relative to the d isk format :

• N�mber a n d location o f alternate sectors a n d tracks

• Physical sectors per track, sector size, and type

• I nterleave and skew factors

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N D L Publications


COM MAN DS FOR D I R ECT-ACCESS DEVICES 187

I n the following definitions, do not confuse the 'zones' defined here with what is sometimes known as
'Zoned Bit Recording' (ZBR). SCSI calls these zones ' N otches' . Zones here are defined only for alternate
sector and track allocation, and may be allocated over a whole disk or over a N otch. When using a
'Notched' disk, the fields below may have different values defined for each Notch .

Tracks per Zone : N umber of tracks (not cylinders) in which alternate sectors and tracks may be
allocated. For example, if alternate sectors are allocated per cylinder, and there are eight tracks
(heads) per cylinder, then set this field to eight.

Alternate Sectors per Zone : Specifies the number of alternate sectors in each of the zones defined by
the Tracks per Zone field.

Alternate Tracks per Zone : Specifies the number of alternate tracks in each of the zones defined by
the Tracks per Zone field.

Alternate Tracks per Logical Unit: Specifies the number of alternate tracks allocated for use by the
entire disk. This field allocates alternate tracks separate from the Alternate Tracks per Zone field.

Sectors per Track: Number of physical sectors within a track.

Data Bytes per Physical Sector: Physical sector size ; not necessarily the same as the logical block
size.

Interleave: Same as the value passed in the FORMAT U N IT command. This field is only for reporting
via MODE SENSE, and cannot be set via MODE S ELECT.

Track Skew Factor: Number of physical sectors between the last logical block of one track and the
first logical block of the next track within a cylinder.

Cylinder Skew Factor: N umber of physical sectors between the last block on one cylinder and the first
block of the next cylinder.

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N D L Publications


188 COM MANDS FO R D I R ECT-ACCESS DEVICES
SSEC - HSEC: The combination of the two bits are defined d iffe re nt ly for MODE S ELECT and for
different types of MODE SENSE data (WAR N I N G : use these carefully) :

MODE SENSE default values:

(SSEC I H SEC)
00 = invalid combination
01 = supports hard sector only
10 = supports soft sector only
11 = supports both

MODE SENSE changeable values:

(SSEC I HSEC)
00 = not changeable
01 = invalid combination
10 = invalid combination
11 = supports both

MODE SENSE current values:

(SSEC I HSEC)
00 = invalid combination
01 = currently set to format as hard sector
10 = currently set to format as soft sector
11 = invalid combination

MODE SENSE saved values:

(SSEC I HSEC)
00 = invalid combination
01 = currently formatted as hard s ecto r

I
10 = currently formatted as soft sector
11 = invalid combination

MODE SELECT:

(SSEC I HSEC)
00 = invalid combination
01 = commands Target to format as hard sector
10 = commands Target to format as soft sector
11 = invalid combination

RMB (MODE SENSE O N LY) :


0 fixed media
=

1 removable media
=

SURF: 0 = format by cylinder


1 = format by surface

SCSI Bench Reference Co py r ight © 1 989, 1 992, 1 996 E N O L Publications


COM MANDS FOR D I R ECT-ACCESS D EVICES 189
Notch and Partitio n Page

t 7 6 5 2 0
By �� I 4
I 3
I I 1
I
0 PS Res e rved Page Code ( OCh )
1 Page Len g t h ( 1 6 h }
2 NO LPN Res erved
3 Res e rved
4 ( MSB )
Maxi mum Number o f Notches .....,....--
5 ( LSB )
6 ( MSB )
Act i ve Notch _,....--

7 ( LSB )
8 ( MSB ) -

9
Start i ng Boundary -

10
.....,....--
11 ( LSB )
12 ( MS B ) -

13
En d i n g B o u n d a ry -

14 -

15 ( LSB )
16 ( MSB ) -

17 -

18 -

19
Pages Notched -

20 -

21 -

22
__,....-.
23 ( LSB )

The N OTCH Page is used to establish partitions or ' N otches' for what is sometimes called 'zoned bit
recording' or 'constant bit density recording' , where cylinders near the outer edge of the disk have more
sectors per track than cylinders near the inner edge.

ND: 0 = no Notches
1 = Notched

LPN: (see Starting Boundary and Ending Boundary below) :


0 Notch boundaries defined by physical parameters
=

1 Notch boundaries defined by Logical Block Addresses


=

SCSI Bench Reference Copyright e> 1 989, 1 992, 1 996 ENOL Publications
190 CO M MANDS FO R D I R ECT-ACCESS D EVICES

Maximum Number of Notches: (MODE SENSE ONLY) number of Notches on the disk.

Active Notch: indicates the current Notch setting for MODE SELECT and MODE SENSE purposes.
Zero indicates that subsequent MODE SELECT or MODE SENSE commands apply to all Notches.
Any other value (less than the M aximum) indicates the Notch to which subsequent MODE SELECT
or MODE SENSE commands apply.

Starting Boundary: determined by the state of the PLN bit (see above) :
(LPN 0) Four bytes indicate CYL:CYL:CYL: H EAD.
=

(LPN = 1 ) Four bytes indicate LBA.

Ending Boundary: determined by the state of the PLN bit (see above) :
(LPN 0) Four bytes indicate CYL:CYL: CYL: H EAD.
=

(LPN = 1 ) Four bytes indicate LBA.

Pages Notched: indicates which pages have parameters that can be set for each Notch. Bit 7 of
Byte 1 6 corresponds to Page Code 3Fh, Bit 6 is 3Eh, and Bit 0 of Byte 23 is Page Code DOh.

Read/Write Error Recovery Page

By �� t 7 6 5
I
4
I
3
I
2
I
1
I 0

0 PS Re s e rv e d Page Code ( 0 1 h )
1 P a g e L e n g t h ( OA h )
2 AWR E ARRE TB I RC I E E R I P E R I DT E I OCR
3 R e a d Retry C o u n t
4 C o rrect i o n S p a n
5 Head Offset Count
6 D a t a S t ro b e O f f s e t C o u n t
7 Re s e rved
8 W r i t e Ret ry C o u n t
9 Re s e rved
10 (MSB)
R e c o v e ry T i me L i m i t
11 ( LS 'B)

The Read/Write Error Recovery Page is used to control the error recovery algorithm of the disk.

AWRE: 0 = do not reallocate on error during write


1 = reallocate defective blocks during write

ARRE: 0 = do not reallocate on error during read


1 = reallocate defective blocks during read

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N D L Publications


COMMANDS FOR D I R ECT-ACCESS D EVICES 191
TB: 0 = do not transfer unrecoverable block
1 = transfer unrecoverable block

RC: 0 = error recovery may cause delay


1 = error recovery may not cause delay; data may be fabricated

EER: 0 = minimize miscorrection probability


1 = use most expedient error recovery

PER: 0 = do not report recovered errors


1 = report recovered errors

DTE: 0 = do not stop on recovered error


1 = stop after recovered error

OCR: 0 = use of ECC for error correction is allowed


1 = use ECC for error detection only

WAR N I N G : The E E R , P E R , DTE, and D C R bits have "combination" meanings a s well a s separate
definitions. Refer to the SBC standard for more detailed information.

NOTE: I nvalid combinations of EER : P E R : DTE: DCR are: 00 1 0, 001 1 , 1 00 1 , 1 01 0, 1 0 1 1 , 1 1 0 1 , 1 1 1 1 .

Read Retry Count: number of times to apply read recovery algorithm.

Correction Span : size in bits of largest error burst on which to attempt error correction.

WAR N I N G : Different disk drives may handle the Correction Span field differently, particularly those
with multiple burst capability. In any case, refer to the product documentation when using this
field to regulate miscorrection probability.

Head Offset Count: signed position from track center.

Data Strobe Offset Count: signed position from nominal position of disk's read data recovery circuit.

Write Retry Count: number of times to apply write recovery algorithm.

Recovery Time Limit: number of milliseconds allowed for data recovery. NOTE: When this field and the
Retry Counts are specified, use the lowest time duration.

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 EN D L Publications


192 COM MAN D S F O R D I R ECT -ACCESS DEVI CES

Rigid Disk D rive Geometry Page

By �� t 7 6 5
I
4
I
3
I
2
I
1
I
0

0 PS Reserved P a g e C o d e ( 04 h )
1 P a g e L e n g t h i n bytes ( 1 6 h )
2 (MSB) -

3 N um b e r o f Cy l i n d e rs
4 ( LS B')
5 N um b e r o f H e a d s
6 (MSB) -

7 S t a rt i n g Cy l i n d er-Wr i te P re c omp e n s a t i o n
8 ( LS 'B'")
9 (MSB) -

10 S t a rt i n g Cy l i n d e r- Red u c e d W r i te C u rrent
11 ( LS 'B'")
12 (MSB)
D r i v e S tep Rate
13 ( LS B)
14 ( MS B ) -

15 L a n d i n g Z o n e Cy l i n d e r
16 ( LS 'B'")
17 Res e r v e d I RP L
18 Rota t i o n a l O f f s e t
19 Re s e rv e d
20 (MSB)
Med i um Rot a t i o n Rate
21 ( LS B)
22 Re s e rv e d
23 Re s e r v e d

The Rigid Disk Drive Geometry Page i s used t o read or set the physical geometry o f the disk drive.
It is mostly used for "bridge" controllers that must interface to a wide variety of separate disk drives (e.g . ,
ST506 type) .

Number of Cylinders: cylinders used for "data storage".

Number of Heads: heads used for "data storage", not counting heads dedicated for servo.

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N O L Publications


COM MANDS FOR D I R ECT-ACCESS D EVICES 193
Drive Step Rate: number of 0.1 microsecond steps for a seek pulse.

RPL: used to control synchronize spindles:


00 = sync disabled or not supported
01 = disk is a Slave
10 = disk is a Master
11 = disk is a Master Control

Rotational Offset: rotational skew when synchronized (R0/256) t o another disk spindle. A value of 1 28
indicates 1 /2 revolution skew.

Medium Rotation Rate: disk rotation speed in revolutions per minute.

Verify Error Recovery Page

t 7 6 5 4 2 0
I I I I I
3 1
By ��
0 PS Reserved Page Code ( 07 h )
1 P a g e Le n g t h ( OA h )
2 Re s e rv e d I EER I PER I DT E I DCR
3 V e r i fy R e t ry C o u n t
4 V e r i fy C o r r e c t i on S p a n
5 Res e rv e d
6 Res e r v e d
7 Re s e rv e d
8 Re s e rv e d
9 Reserved

I
10 ( MS B )
11
V e r i fy R e c o v e ry T i me L i m i t
(LSB)
The Verify Error Recovery Page is used to control the error recovery algorithm of the disk during
verify.

SCS I Bench Reference Copyright © 1 989, 1 992, 1 996 ENDL Publications


194 COM MANDS FOR D I R ECT -ACCESS DEVICES

EER: 0 = minimize miscorrection probability


1 = use most expedient error recovery

PER: 0 = do not report recovered errors


1 = report recovered errors

DTE: 0 = do not stop on recovered error


1 = stop after recovered error

OCR: 0 = use of ECC for error correction is allowed


1 = use ECC for error detection only

WAR N I N G : The EER, PER, DTE, and DCA bits have "combination" meanings as well as separate
definitions. Refer to the SCSI-2 or SBC standard for more detailed information.

NOTE: I nvalid combinations of EER : P E R : DTE: DCR are : 001 0, 001 1 , 1 00 1 , 1 0 1 0, 1 0 1 1 , 1 1 01 , 1 1 1 1 .

NOTE: Most rigorous verify is achieved when EER:PER : DTE: DCR is set to 01 1 1 and retries and
recovery limit are set to zero. This is probably the fastest verify as well .

Verify Retry Count: number o f times to apply verify recovery algorithm.

Verify Correction Span : size in bits of largest error burst on which to attempt error correction.

Verify Recovery Time Limit: number of milliseconds allowed for data recovery. NOTE: When this field
and the retry counts are specified, use the lowest time duration.

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N O L Publications


COMMANDS FOR SEQ U ENTIAL-ACCESS DEVICES 195
Commands for Sequential Access Devices (al phabetic listing)

Command Name Type See Page SCS I -3 Sect i on OpCode


CHANG E D E F I N I T I ON 0 See S PC S PC 7.1 40h
COMPARE 0 See S PC SPC 7.2 39h
COPY 0 See S PC SPC 7.3 18h
COPY AND V E R I FY 0 See S PC S PC 7.4 3Ah
ERAS E M sse
0
200 5.2. 1 19h
FORMAT M ED I UM 200 sse 5.2.2 04h
I NQU I RY M 100 SPC 7.5 12h
LOAD/UN LOAD 0 201 sse 5.2.3 1Bh
LOCAT E sse
0
0 202 5.2.4 2Bh
LOG S E L ECT SPC
0
105 7.6 4Ch
LOG S EN S E
MODE S E L ECT 6 )� M
106
107
S PC
SPC
7.7
7.8
4Dh
15h

MODE S E L ECT 1 0 )
MODE S EN S E 6 )
MODE S EN S E 1 0 )
0
M
0
107
108
108
SPC
S PC
SPC
7.9
7 . 10
7. 11
55h
1Ah
5Ah
MOV E MED I UM ATTACH E D 0 See SMC SMC 6.3 A7h
P ERS I ST ENT RESERVE I N SPC
0
0 1 10 7 . 12 5Eh
P E RS I ST ENT RES ERV E OUT 1 14 SPC 7 . 13 S Fh
PREV ENT/ALLOW MED I UM R EMOVAL 0 116 S PC 7 . 14 1 Eh
READ M 203 sse 5.2.5 08h
READ B LOCK L I M ITS M 204 sse 5.2.6 05h
READ BUFFER 0 116 S PC 7 . 15 3Ch
READ E L EM ENT STATUS ATTACHED 0 See SMC SMC 6.5 B4 h
READ POS I T ION 0 205 sse 5.2.7 34h
READ REVERS E 0 210 sse 5.2.8 O Fh
REC E I V E D I AGNOST I C R E S U LTS 0 1 18 S PC 7 . 16 1Ch

RECOV ER B U F FERED DATA
RE LEAS E 6 )
RE LEAS E 1 0 )
0
M
M
210
1 19
1 19
sse
SPC
SPC
5.2.9
7 . 17
7 . 18
14h
17h
57h
REPORT DENS I TY S U P PO RT M 211 sse 5 . 2 . 10 44h
REPORT LUNS 0 120 SPC 7 . 19 AOh

REQUEST S EN S E
RES ERV E 6 )
RES ERV E 1 0 )
M
M
M
122
123
124
SPC
S PC
S PC
7 . 20
7 . 21
7 . 22
03h
16h
56h
REW I ND M 214 sse 5.2. 11 01h
S END D I AGNOS T I C M 126 SPC 7 . 23 1Dh
S PACE M 215 sse 5 . 2 . 12 11h
TEST UN I T READY M 128 S PC 7 . 24 OOh
VERI FY 0 2 18 sse 5 . 2 . 13 13h
WRITE M 2 18 sse 5 . 2 . 14 OAh
WRI T E B U F F E R 0 129 SPC 7 . 25 3Bh
WRITE F I LEMARKS M 219 sse 5 . 2 . 15 10h
Key: M = Command implementation i s mandatory; 0 Command implementation is optional.

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 ENOL Publications


196 COM MANDS FOR S EQ U E NTIAL-ACCESS DEVICES

Commands for Sequential Access Devices (nu meric listing)

OpCode Type See P a g e SCS I -3 Secti on C omm a n d N ame


OOh M 1 28 SPC 7 . 24 T E ST U N I T R EADY
01h M 2 14 sse 5.2. 11 R EW I N D
0
03h M 122 S PC 7 . 20 R EQU E S T S EN S E
04h 200 sse 5.2.2 FO RMAT M E D I UM
05h M 204 sse 5.2.6 R EAD B LO C K L I M I T S
08h M 203 sse 5.2.5 R EAD
sse
0
OAh M 2 18 5 . 2 . 14 WRITE
OFh 2 10 sse 5.2.8 R EAD R EV E R S E
10h M 2 19 sse 5 . 2 . 15 W R I T E F I L EMARKS
11h M 215 sse 5 . 2 . 12 S PA C E
0
12h M 100 SPC 7.5 I NQ U I RY
sse
0
13h 2 18 5 . 2 . 13 VERI FY
14h 210 sse 5.2.9 R ECOV E R B U F F E R E D DATA
15h
16h
M
M
107
123
SPC 7 . 8
SPC 7 . 2 1 ��
MODE S E L E C T ( 6 )
R E S E RV E 6
0
17h M 1 19 SPC 7 . 17 R E L EA S E 6
18h S e e S PC SPC 7 . 3 COPY
19h M 200 sse 5 . 2 . 1 E RAS E
0
1Ah M 108 SPC 7 . 10 MOD E S E N S E ( 6 )
sse 5 . 2 . 3
0
1Bh 201 LOA D / U N LOAD
1Ch 1 18 S PC 7 . 1 6 R E C E I V E D I AG N O S T I C R E S U LT S
0
1Dh M 126 S PC 7 . 2 3 S E N D D I AGNOST I C
1 Eh 116 S PC 7 . 1 4 P R E V E N T / A L LOW M E D I UM R EMOVAL
0 sse
0
2Bh 202 5.2.4 LOCAT E
sse
0
34h 205 5.2.7 R EAD POS I T I ON
0
39h See SPC S PC 7.2 COM P A R E
0
3Ah S e e S PC SPC 7.4 C O P Y A N D V E R I FY
0
3Bh 129 SPC 7 . 25 WRITE BUFFER
3Ch 116 SPC 7 . 15 R EAD B U F F E R
40h 0 S e e S PC SPC 7 . 1 CHANG E D E F I N I T I O N
sse
0
44h M 211 5 . 2 . 10 R E PO RT D E N S I T Y S U P PO RT
0
4Ch 105 S PC 7 . 6 LOG S E L EC T
0
4Dh 106 S PC 7 . 7 LOG S E N S E

P�
55h 107 SPC 7 . 9 MODE S E L ECT ( l O )
56h M 124 S PC 7 . 2 2 R E S E RV E O
0
57h M 1 19 SPC 7 . 18 R E L EA S E 1 0
0
5Ah 1 08 SPC 7 . 1 1 MOD E S E N S E ( l O )
0
5Eh 110 SPC 7 . 12 P E RS I S T E N T R E S E RV E I N
5 Fh 114 SPC 7 . 13 P E RS I S T ENT R E S E R V E OUT
0
0
AOh 120 SPC 7 . 19 R E PO RT L U N S
S e e SMC SMC 6 . 3
0
A7 h MOV E M E D I UM ATTAC H ED
B4h S ee SMC SMC 6 . 5 R EAD E L EM E N T STATUS ATTACH ED
Key: M Command implementation is mandatory ; 0 Command implementation is optional.

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N O L Publications


COM MANDS FOR SEQUENTIAL-ACCESS DEVICES 197
Common Fields Used in Seq uential Access Device Commands
Allocation Length : t h e maximum number of bytes that the Target may s e n d t o t h e I nitiator.

Fixed: 0 = transfer one variable length block with length in bytes specified by the Transfer
Length
1 = return the number of fixed length blocks specified by the Transfer Length ; block
length is specified in the MODE S ELECT command

lmmed: 0 = return status when operation is completed


1 = return status when command block has been validated

SILl: 0 = report incorrect block length when it occurs


1 = do not report incorrect block length when it occurs

Transfer Length : number of blocks or bytes to transfer.

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N D L Publications


198 COM M A N D S FOR S E Q U ENTIAL-ACCESS D EVICES

COB/Bit Cross Reference

CmdDt EVPD Long i D PPC SP

B y t Cmp ED T Long PF S I LI WSmk

BytChk De vO f l Load PCR S e l fT s t Ve r i f y

BT DBD I mm e d Pad Save U n i tO f l

Command Name 3rdPty CP Fixed Media ReTen TCLP

READ BUFFER

READ PO S I T I O N X X X

READ REVERSE X X

REC E I VE D IAGNO S T I C R E S U L T S

RECOVER BUFFERED DATA X X

RELEASE ( 6 ) X

RELEASE ( 1 0 ) X X

REPORT DENS I T Y S U P PO R T X

REPORT LUNS

REQU E S T S E N S E

R E S E RVE ( 6 ) X

RE S E RVE ( 1 0 ) X X

REW I N D X

S E N D D I AGNO S T I C X X X X

S PACE

TEST UN I T READY

VER I F Y X X X

WRITE X

W R I T E B U FFER

W R I T E F I LEMARKS X X

Command Name 3 B B B C C D D E E F I L L L M P P P P R S S S S T U V W
r T y y rr P B e O V i rn o o o e a C F P e a e I P C n e S
d t t d D v T P x m a n n d d R C T v 1 L L i r m
p c e o 0 D e e d g g i e e f i P t i k
t h m t f d d I a n T 0 f
y k p 1 D s f y
t 1

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N O L Publications


COM MANDS FOR SEQUENTIAL-ACCESS D EVICES 199

CmdDt EVPD Long i D PPC SP

B y t Cmp EO T Long PF SILI WSmk

BytChk D e vO f l Load PCR S e 1 f T s t Ve r i f y

BT DBD Immed Pad Save U n i tO f l

Command Name 3 rd P t y CP Fixed Media R e Te n TCLP

CHANGE D E F I N I T ION X

COMPARE X

CO PY X

CO PY AN D VER I F Y X X

ERASE X X

FORMAT ME D I UM X X

I NQ U I RY X X

LOA D / UNLO A D X X X X

LO CATE X X X

LO G S E L E C T X X

LO G S E N S E X X

MO D E S E L E C T ( 6 ) X X

MO D E S E L E C T ( l O ) X X

MO DE S E N S E ( 6 ) X

MO DE S E N S E ( l 0 ) X

PERS I S TENT R E S E RVE IN

PERS I S TENT R E S E RVE O U T

PREVE N T / ALLO W ME D I UM REMOVAL

READ X X

READ B LO C K L I M I T S
Command Name 3 B B B C C D D E E F I L L L M p p p P R S S S S T U V W
r T y y m P B e O V i m o o o e a C F P e a e i P C n e S
d t t d D v T P x m a n n d d R C T v 1 L L i r rn
p C C D 0 D e e d g g i e e f i p t l k
t h m t f d d I a n T 0 f
y k p 1 D s f y
t 1

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 ENDL Publications


200 COM MANDS FOR SEQU ENTIAL-ACCESS DEVICES

ERASE Comman d

5 2
By ��
t 7
I 6
I I 4
I 3
I J
1
I
0

0 O p e ra t i o n C o d e ( 1 9 h )
1 { Lo g i c a l U n i t N um be r } I Re s e r v e d I Immed I Lo n g
2 Reserved
3 Re s e rv e d
4 Re s e rv e d
5 C o n t r o l Byte

* ERASE causes all or part of the tape to be erased. Position at completion is not defined.

Long : 0 = writejerase a gap on the tape (see device configuration M O D E S ELECT Page, on
page 228)
1 = erase from present position to End-Of-Medium

FORMAT MEDIUM Co mmand

By nt 7
I
6
I
5
I
4
I
3
I
2
I
1
I 0

0 Operat i on C o d e ( 04 h )
1 { Log i c a l Un i t N um b e r } I Reserved I V e r i fy I I mmed
2 Reserved I F o rmat
3 ( MS B )
T r a n s fe r Le n g t h
4 ( Ls -sr-
5 C o n tro l Byte

* FOR M AT M E D I U M is used to prepare a tape for use by the Logical U nit.

Verify: 0 = do not perform a verify check.


1 = perform a verify check after the format.

Format: Specifies the format to use:


0 use default format
=

1 -7 reserved=

8-F vendor specific


=

Transfer Length : number of bytes of format information to transfer. The format information is vendor
specific.

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 ENOL Publications


COM MANDS FOR SEQUENTIAL-ACCESS DEVICES 201
LOAD/UNLOAD Command

By nt 7
I
6
I
5
I
4
I
3
I
2
I
1
I
0

0 O p e ra t i o n Code ( l B h )
1 { Log i c a l U n i t Number} I Re s e rved I I mmed
2 Re s e rv e d
3 Re s e r v e d
4 Re s e rv e d I EOT I Re-Ten I Load
5 C o n t ro l Byte

* LOAD/U N LOAD is used t o bring a tape on-line or take i t off-line. Also does tape re-tension.

WAR N I N G : This command does NOT transfer buffered data and f or marks to the medium. Do a
WRITE FILEMARKS command (or similar operation) to complete transfer to tape before unload.

EOT: 0 = position tape at Beginning-Of-Medium when unloading


1 = position tape at End-Of- Medium when unloading

Re-Ten : 0 = do not re-tension


1 = re-tension the tape

Load: 0 = unload
1 = load and position to Beginning-Of-Partition zero

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N D L Publications


202 CO M MA N D S FOR S E Q U E N TIAL-ACCESS D EVICES

LOCATE Command

5
ByUt 7
I
6
1 1
4
l
3
l
2
1
1
l
0

0 O p e ra t i o n C o d e ( 2 B h )
1 { Log i c a l U n i t N um b e r } I Res e r v e d I BT I CP 1 I mmed
2 R e s e rved
3 (MSB) -

4
B l o c k Ad d re s s -

5
6 ( LSB)
7 Reserved
8 Parti t i on
9 C o n t r o l Byt e

* LOCATE positions the tape t o a location before the specified logical block and partition.

WAR N I N G : This command does NOT transfer buffered data andjor marks to the medium. Do a
WRITE FILEMARKS command (or similar operation) to complete transfer to tape before moving the
tape to a new location.

BT: 0 = Block Address is SCSI Logical Block Address


1 = Block Address is vendor specific interpretation

CP: 0 = do not change partition; ignore Partition field


1 = change partition to the one specified in the Partition field prior to positioning to the
Block Address

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N O L Publications


COM MAN DS FOR SEQ U ENTIAL-ACCESS DEVICES 203
READ Command

By � �
t 7
I 6
I
5
_I
4
I 3
I
2
I
1
I
0

0 O p e r a t i o n C o d e ( 08 h )
1 { Log i c a l U n i t N um b e r } I Reserved I S I Ll I F i xed
2 ( MS B ) -

3 T ra n s fe r Le n g t h
4 ( LS �
5 C o n t ro l By t e

* R EAD is used t o transfer o n e or more blocks from the Target t o the Initiator beginning with the next
block on the tape. Position at completion is after the last block transferred.

SILl: 0 = report incorrect block length when it occurs


1 = do not report incorrect block length when it occurs

Fixed: 0 = return one variable length block with length in bytes specified by the Transfer Length
1 = return the number of fixed length blocks specified by the Transfer Length ; block
length is specified in the MODE S ELECT command (see page 1 40, 1 4 1 ) .

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 ENOL Publications


204 COMMANDS FOR SEQU ENTIAL-ACCESS DEVICES

READ BLOCK LI M ITS Command

7 5 4 3 2 1
I I I I I I I
t 6 0
sy u
0 Opera t i o n C o d e ( 0 5 h )
1 { Log i c a l U n i t Number} I R e s e rved
2 Re s e rv e d
3 Re s e rv e d
4 Reserved
5 C o n t r o l Byte

* READ BLOCK LI M ITS returns the possible block lengths for the logical unit. Position at completion

is not defined; in most cases, position does not change.

READ BLOCK LIM ITS Data

6 5 4 3 2 1 0
I I
t
I I I I
7
By ��
0 Re s e rv e d Gra n u l a r i ty
1 ( MS B ) -

2 M a x i mum B l o c k Le n g t h
3 ( LS B)
4 ( MS B )
M i n i m um B l o c k L e n g t h
5 ( LS B)

Granularity: supported block size granularity. The Granularity is a power of two ; the desired block
length minus the Minimum Block Length must be a multiple of 2 G ranularity

Maximum Block Length and Minimum Block Length :

• If the Maximum Block Length equals the Minimum Block Length , then only fixed length blocks of
the indicated length are supported.

• If the M aximum Block Length is set to zero, there is no upper limit.

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N O L Publications


COM MANDS FOR SEQU ENTIAL-ACCESS DEVICES 205
READ POSITION Command

7 5
By ��
t
I
6
I I
4
I 3
I
2
I
1
I
0

0 O p e r a t i o n Code ( 3 4 h )
1 { Log i c a l U n i t N um b e r } I R e s e rved I TCLP I LONG I BT
2 R e s e rved
3 Reserved
4 Re s e rv e d
5 Re s e rv e d
6 Re s e rv e d
7 Reserved
8 Re s e rv e d
9 Con t ro l Byte

* R EAD POSITION reports the current partition and logical position of the tape; and also reports on

the state of the data buffer. Tape does not move.

TCLP: 0 = return data specifying the first and last block location with the number of bytes and
blocks in the buffer.
1 = return data specifying the partition, file, and set number with the current logical
position.

LONG : 0 = return 20 bytes of data (short data format) ; TCLP must be 0.


1 = return 32 bytes of data (long data format) ; TCLP must be 1 .

BT: 0 = Block Address is SCSI Logical Block Address.


1 = Block Address is vendor specific interpretation.

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 ENOL Publications


206 CO M MANDS FOR S E Q U E NTIAL-ACCESS D EVICES

READ POSITION - Sh o rt Data Format

t 7 6 5 4 3 2 1 0
By ��
0 BOP EOP BCU BYCU Reserved BPU PERR Res e rved
1 P a r t i t i o n Number
2 Res e rv e d
3 Re s e rv e d
4 (MSB) -

5
F i r s t B l o c k Locat i on -

6
7 ( LS �
8 ( MS B ) -

9
Last B l ock Locati on -

10
11 ( LS �
12 Re s e rv e d
13 (MSB) -

14 Number o f B l o c k s i n B u ffer
15 ( LS �
16 (MSB) -

17
N u m b e r o f Byt e s i n B u f f e r -

18
19 ( LS�

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N O L Publications


COM MANDS FOR SEQUENTIAL-ACCESS DEVI CES 207

BOP: 0 = current position is not Beginning-Of-Current-Partition


1 = current position is Beginning-Of-Current-Partition

EOP: 0 = current position is not between Early-Warning and End-of-Current-Partition


1 = current position is between Early-Warning and End-of-Current-Partition

BCU: 0 = Number of Blocks in Buffer field is valid.


1 = Number of Blocks in Buffer field is invalid ; block count is unknown.

BYCU: 0 = Number of Bytes in Buffer field is valid.


1 = Number of Bytes in Buffer field is invalid; byte count is unknown.

BPU: 0 = First Block Location and Last Block Location fields are valid
1 = block positions are unknown

PERR: 0 = no overflow has occurred.


1 = the Logical Unit cannot return position data due to an overflow.

Partition Number: current partition number; zero if only one partition is supported

First Block Location : current logical block position: where a R EAD or WRITE would access next

Last Block Location : block address where last block of data currently in the buffer will be written.

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N D L Publications


208 COM MA N D S FOR SEQU ENTIAL-ACCESS DEVICES

READ POSITI O N - Long Data Format

7
By��t 6 5
I
4 3 2 1
I
0

0 B OP EOP Re s e r v e d MPU BPU Re s e rved


1 Reserved
2 Re s e rv e d
3 Re s e rv e d
4 (MSB) -

5
Parti t i on Number -

6
7 ( LS�
8 (MSB) -

9 -

10 -

11
B l o c k Number -

12 -

13 -

14
15 ( LS'B)
16 (MSB) -

17 -

18 -

19
Fi l e Number -

20 -

21 -

22
23 ( LS'B)
24 (MSB) -

25 -

26 -

27
Set Number -

28 -

29 -

30
31 ( LSB)

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N D L Publications


COM MANDS FOR SEQ U ENTIAL-ACCESS DEVICES 209

BOP: 0 = current position is not Beginning-Of-Current-Partition


1 = current position is Beginning-Of-Current-Partition

EOP: 0 = current position is not between Early-Warning and End-of-Current-Partition


1 = current position is between Early-Warning and End-of-Current-Partition

MPU: 0 = File Number and Set N umber fields are valid


1 = File Number and Set Number fields are unknown

BPU: 0 = Partition Number and Block N umber fields are valid


1 = Partition N umber and Block N umber fields are unknown

Partition Number: current partition number; zero if only one partition is supported

Block Number: number o f logical blocks between t h e beginning o f partition a n d t h e current logical
position.

File Number: number of file marks between the beginning of partition and the current logical position.

Set Number: number of setmarks between the beginning of partition and the current logical position.

SCS I Bench Reference Copyright © 1 989, 1 992, 1 996 E N O L Publications


210 COMMANDS FOR SEQUENTIAL-ACCESS DEVICES

READ R EVERSE Command

7
By�� t J
6
J
5
I 4
I 3
J
2
I
1
I
0

0 Operati on Code ( OFh )


1 { Log i c a l U n i t Number} I Re s e rv e d I S I Ll I F i xed
2 (MSB) -

3 T r a n s fe r Len g t h
4 ( LS �
5 C o n t r o l Byte

* R EAD R EVERSE acts just like the READ command except tape motion is in the reverse direction.

Byte order in the block (s) is reversed, but bit order is not. Position at completion is before the last block
transferred.

RECOVER BUFFERED DATA Command

7 4 3
I
2
I I I I I I
6 5 1 0
By�� t
0 Ope ra t i on C o d e ( 1 4 h )
1 { Log i c a l U n i t N u m b e r } I Re s e rv e d I S I Ll I F i xed
(MSB)
3
2 -

T r a n s fer Len g t h
4 ( LS �
5 C o n t r o l Byte

* R ECOVER BU FFERED DATA acts just like the READ command except that data is transferred

from the buffer instead of the tape. Block order is as defined by the RBO bit (see MODE SELECT Device
Configuration Page, on page 228) ; default is: blocks are transferred to the Initiator in the same manner as
they would be transferred to the medium. Tape does not move.

SCS I Bench Reference Copyright © 1 989, 1 992, 1 996 ENDL Publications


COMMANDS FOR SEQU ENTIAL-ACCESS DEVICES 211
REPORT DENSITY SUPPORT Command

7 6 4 3
By�! t I I
5
I I I
2
I
1
I 0
0 Operat i o n Code ( 4 4 h )
1 { Lo g i c a l U n i t N umb e r } I Re s e rved I Med i a
2 Reserved
3 Re s e rv e d
4 Re s e rv e d
5 Re s e r v e d
6 Reserved
7 (MSB) A l l o c a t i o n Len g t h
8 ( LSB)
9 C o n t ro l Byte

* REPORT D E N S ITY S U P PORT returns information regarding the supported densities.

Media : 0 = return density support information for any supported media.


1 = return density support information for the mounted medium.

SCS I Bench Reference Copyright © 1 989, 1 992, 1 996 E N O L Publications


212 COMMANDS F O R SEQ U E NTIAL-ACCESS DEVICES

REPORT DENSITY S U P P O RT Retu rned Data Format

By Ut 7
I 6
I 5
I
4
I
3
I 2
I 1
I
0

0 (MSB)
1
A v a i l a b l e De n s i ty S u p p o r t Len g t h
( LSB)
2 Re s e rv e d
3 Re s e rv e d
De n s i ty S u p p o r t D a t a B l o c k s ( )
0 P r i m a ry D e n s i ty C o d e
1 S e c o n d a ry D e n s i ty C o d e
2 WrtOK I Dup I Defl t I R e s e rv e d
3 Re s e rv e d
4 Re s e rv e d
5 (MSB) -

6 B i t s p e r mm
7 ( LS B)
8 (MSB)
9
Med i a W i d t h
( LSB)
10 (MSB)
11
Tracks
( LSB)
12 (MSB) -

13
C a p a c i ty -

14
15 ( LSB)
16 (MSB) (ASC I I )
23
Ass i gn i n g Organ i z ati on
( LS B) -
24 (MSB ) ( AS C I I )
31
De n s i ty N ame
( LS B) -
32 (MSB ) (ASC I I )
51
De s c r i p t i o n
( LS B) -
Available Density Support Length : number of bytes in following data; also, the number of Density
Support Data Blocks times 52, plus 2.

The four byte header is followed by one or more Density Support Data Blocks.

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N O L Publications


COM MAN DS FOR SEQU E NTIAL-ACCESS D EVICES 213

Primary Density Code: t h e M O D E S ELECT/ M O D E SENSE Density Code for the density described by
this data block. See page 222 for the list of "recommended" Sequential Access Density Codes.

Secondary Density Code: if the density being reported can also be assigned to another Density Code
value, the code is reported here. Otherwise, this is set equal to the Primary Density Code.

WrtOK: 0 = the Logical Unit cannot write this density.


1 = the Logical Unit is capable of writing this density.

Dup: 0 = this density has exactly one Density Support Data Block.
1 = this density has more than one Density Support Data Block.

Def/t: 0 = this density is not the default.


1 = this density is the default for the Logical Unit.

Bits per mm : the number of bits per millimeter per track, rounded to the nearest m m .

Media Width: t h e width o f t h e medium in units o f 0 . 1 millimeter.

Tracks: the number of tracks supported on the medium by this density.

Capacity: if the M e d i a bit in the COB is zero, this is the approximate capacity In megabytes of the
longest supported medium in this density using one partition. If the Media bit is one, this is the
approximate capacity in megabytes of the current medium. (One megabyte 1 ,000,000 bytes.)
=

Assigning Organization : eight bytes of ASCII data that identifies the organization responsible for the
specifications for this density.

Density Name: eight bytes of ASCI I data that identifies the name of this density.

Description : twenty bytes of ASCI I data that describes this density.

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N D L Publications


214 COMMANDS F O R SEQU ENTIAL-ACCESS DEVICES

REWI N D Co mmand

4 3
I
6 5 2 1
J I
0
By�� t 7
l l J 1
0 Operat i on Code { O l h )
1 { Log i c a l U n i t Number} I Re s e rved I Immed
2 Re s e rv e d
3 Reserved
4 Re s e rv e d
5 C o n t r o l Byte

Medium If there Is only one partition.


* R EWI N D causes t h e tape t o be positioned t o t h e Beginning-Of-Current-Partition ; Beginning-Of­

SCSI Bench Reference Copyright ® 1 989, 1 992, 1 996 E N D L Publications


COM MANDS FOR SEQ U ENTIAL-ACCESS DEVICES 215
S PACE Command

7
By � �t I
6
I
5
I
4
I
3
I
2
I
1
I
0

0 Operat i o n ( l l h )
1 { Log i c a l U n i t N umb e r } I Re s e rved I Code
2 ( MS B ) -

3 Count
4 ( LSB)
5 C o n t r o l Byte

* SPACE causes the tape to be positioned as specified by the Count and Code fields. The following

table summarizes the possible combinations of Code, Count, and other parameters that affect the
behavior of this command. The SPACE command is also affected by the setting of the RSmk and R EW
bits in the MODE SELECT Device Configuration Page (see page 228) .

SCS I Bench Reference Copyright © 1 989, 1 992, 1 996 E N O L Publications


216 COMMANDS F O R S E Q U E NTIAL-ACCESS DEVICES

Code Count Di r (*1 ) Space over : Stop pos i t i on i n g :


000 N forward bl ocks • a ft e r N b l o c k s
• a f t e r a f i l em a r k
. a f t e r a s e tm a r k w h e n RSm k = 1
. a ft e r E a r l y-Warn i n g w h e n R EW = 1
. a ft e r E n d -O f - D a t a
. a t E n d -Of- P a rt i t i o n
000 -N reverse bl ocks 0
a ft e r N b l o c k s
. a f t e r a f i l em a r k
• a ft e r a s e tm a r k w h e n RSm k = 1
• a f t e r E a r l y-Warn i n g w h e n R EW 1
• a f t e r Be g i n n i n g -Of- D a t a
• a t B eg i n n i n g -O f - P a rt i t i o n
000 0 none bl ocks • d o n o po s i t i o n i n g
001 N forward f i l ema r k s • a ft e r N f i l em a r k s
• a ft e r a s e tm a r k w h e n RSm k =1
• a ft e r E a r l y-Warn i n g w h e n R EW = 1
. after End-Of-Data
. a t E n d -Of- P a rt i t i on

001 -N reverse f i l em a r k s . a ft e r N f i l ema r k s


. a ft e r a s e tm a r k w h e n RSm k = 1
. a ft e r E a r l y-Warn i n g w h e n R EW 1
• a ft e r Beg i n n i n g -Of-Da t a
. a t Be g i n n i n g -O f - P a rt i t i o n

00 1 0 none f i l ema r k s • d o n o po s i t i o n i n g
010 N f o rward s e q u en t i a l . a f t e r a g ro u p o f N c o n s e c u t i v e
f i l ema r k s f i l em a r k s a re d e t e c t e d
. a ft e r a s e tm a r k wh e n RSm k = 1
. a ft e r E a r l y-Wa r n i n g w h e n R EW 1=

. a ft e r E n d -O f - D a t a
• a t E n d -O f - P a rt i t i o n
010 -N reverse s e q u en t i a l • a ft e r a g ro u p o f N c o n s e c u t i v e
f i l em a r k s f i l em a r k s a r e d e t e c t e d
• a f t e r a s e tm a r k w h e n RSm k = 1
. a ft e r E a r l y-Warn i n g w h e n REW 1
• a ft e r Beg i n n i n g -O f - D a t a
. a t B e g i n n i n g -O f - P a rt i t i o n

010 0 none s e q u en t i a l • d o n o po s i t i o n i n g
f i l ema r k s

(*1 ) : see footnote next page . . .

SCS I Bench Reference Copyright © 1 989, 1 992, 1 996 ENOL Publications


COM MANDS FOR SEQUENTIAL-ACCESS D EVICES 217

Code Count Di r (* 1 ) S p ace o v e r : S t o p po s i t i o n i n g :


011 N forward E n d Of Data • after E n d -O f - D a t a
011 -N fo rward E n d Of Data • after E n d -O f - D a t a
011 0 f o rward E n d o f Data • a f t e r E n d -O f - D a t a
100 N forward s e tma r k s • a f t e r N s e tma r k s
• afte r E a r l y-W a r n i n g wh e n R EW 1
• a f t e r E n d -O f - D a t a
• at E n d -O f - P a r t i t i o n
100 -N reve r s e s e tma r k s • a f t e r N s e tma r k s
• a f t e r E a r l y-Warn i n g w h e n R EW 1
• a f t e r E n d -O f - D a t a
• at Beg i n n i n g - O f - P a rt i t i o n
100 0 none s e tma r k s • do n o po s i t i o n i n g
101 N f o rw a r d sequen t i al • a f t e r a g ro u p o f N c o n s e c u t i v e
s e tma r k s s e tma r k s a r e d e t e cted
• after E a r l y-Wa r n i n g when REW =
1
• a f t e r E n d -O f - D a t a
• at E n d - O f- P a rt i t i o n
101 -N re v e r s e sequen t i al • a f t e r a g ro u p o f N c o n s e c u t i v e
s e tma r k s s e tma r k s a r e d e t e c t e d
• a ft e r E a r l y-W a r n i n g w h e n R EW =
1
• a f t e r B e g i n n i n g -Of-Data
• at Beg i n n i n g - O f - P a rt i t i o n
101 0 none sequenti al • d o n o po s i t i o n i n g
s e tma r k s
1 10 X none none Reserved
111 X none none Reserved

(*1 ) : Direction t o S PACE:

• forward indicates that the tape stops on the End-Of-Partition side of the object.

• reverse indicates that the tape stops on the Beginning-Of-Partition side of the object.

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N O L Publications


218 COM MANDS F O R SEQUENTIAL-ACCESS DEVICES

VER I FY Command

7 5 4 3 2 1
I I
0
I I I I I
t 6
By ��
0 O p e r a t i on C o d e ( 1 3 h )
1 { Log i c a l U n i t Number} I Re s e rv e d I I mmed I BytCmp I F i xed
2 ( MS B ) -

3 V e r i f i c a t i o n Len g t h
4 ( LSB)
5 C o n t r o l Byte

* VER I FY requests the verification of one or more blocks of data beginning with the next block on the
tape. Position at completion is after the last block transferred.

BytCmp: 0 = verify with CRC, ECC, etc.


1 = transfer data from I nitiator and do byte by byte compare

Verification Length : the number of bytes or blocks to verify, as defined by the Fixed bit.

WR ITE Command

I I I I I
t 7 6 5 4 3 2 1 0
By �� I I
0 Operat i o n C o d e ( OAh )
1 { Log i c a l Un i t Number} I Reserved I F i xed
2 (MSB) -

3 T r a n s f e r Le n g t h
4 ( LSB)
5 C o n t ro l Byt e

* WRITE requests the writing o f o n e o r more blocks of data beginning with the next block o n the
tape. Position at completion is after the last block transferred .

Fixed: 0 = write one variable length block with length in bytes specified by the Transfer Length
1 = write the number of fixed length blocks specified by the Transfer Length ; Block
Length is specified in the MODE SELECT command (see page 1 40, 1 41 ) .

SCSI Bench Reference Copyright ® 1 989, 1 992, 1 996 ENOL Publications


COM MAN DS FOR SEQUENTIAL-ACCESS DEVICES 219
WRITE FI LEMARKS Command

7 6
By � �t I I
5
I
4
I
3
I
2
I
1
I
0

0 Operat i o n Code ( 1 0 h )
1 { Lo g i c a l U n i t N umb e r } I Rese rved I WSmk I I mmed
2 (MSB) -

3 Tran s fe r Len g t h
4 ( LS'B")"
5 Con t r o l Byte

* WRITE FILEMARKS is used to write one or more filemarks on the tape starting at the current
position.

WSmk: 0 = Transfer Length is the number of filemarks to write


1 = Transfer Length is the number of setmarks to write

SCS I Bench Reference Copyright © 1 989, 1 992, 1 996 ENOL Publications


220 CO M MA N D S F O R S EQ U ENTIAL-ACCESS D EVICES

Log Page Codes for Sequential Access Devices

Page C o d e Descri pti on S C S I -3 S e c t i o n


OOh S u p p o rted L o g P a g e s P a g e SPC 8.2.6
Olh B u ffer Ov e r - r u n / U n d e r - r u n P a g e S PC 8.2. 1
02h E r r o r C o u n t e r Page ( W r i t e ) S PC 8.2.2
03h E r r o r C o u n t e r P a g e ( Re a d ) SPC 8.2.2
04h E r r o r C o u n t e r P a g e ( Re a d Reve r s e ) S PC 8.2.2
05h E r r o r C o u n t e r Page ( Ve r i fy ) S PC 8.2.2
06h N o n -Med i um E r r o r P a g e SPC 8.2.5
07h La s t n E r r o r Ev e n t s P a g e S PC 8.2.4
08h - OAh Re s e rv e d
OBh La s t n De ferred o r Asyn c h ro n o u s E r r o r E v e n t s P a g e S PC 8 . 2 . 3
OCh S e q u e n t i a l A c ce s s D ev i c e P a g e sse 5 . 3 . 2 . 1
O D h - 2 Fh Res e rv e d
30h - 3 E h V e n d o r speci fi c Pages
3Fh Reserved

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N D L Publications


COMMANDS FOR SEQU ENTIAL-ACCESS DEVICES 221

Parameter Codes for Sequential Access Device Page

P a rame t e r
Code Des c r i p t i on
OOOOh N u m b e r o f byt e s r e ce i ved from I n i t i a t o r by W R I T E comma n d s
OOO l h N um b e r o f d a t a byt e s w r i t t e n to me d i a b y W R I T E c omm a n d s
0002 h N u m b e r o f d a t a byt e s read f rom med i a b y READ c omma n d s
0003 h Number o f d a t a byt e s s e n t t o I n i t i a t o r b y R E A D c omman d s
0004 h - O O F F h Re s e rv e d
O lOOh C l e a n i n g req u i red
0101h-7 FFFh Re s e rv e d
8000 h - F F F F h Vendor Speci fi c

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N O L Publications


222 COM M A N D S FOR SEQU ENTIAL-ACCESS D EVICES

Sequential Access Device Mode Param ete rs

Sequential Access Device Density Codes


--Wi d t h --- --Den s i ty--- S t a n d a rd Record
Code V a l ue mm ( I n c h ) Tracks bpmm ( b p i ) Code Type Reference Mode
� 1
-- --

N RZ 1
OOh Defau l t Target o r peri p h e r a l dev i ce ' s defau l t or o n l � d en s i ty)
01h 12 . 7 .5 9 32 (BOO R X 3 . 2 - 1 9 8 3 paral l e l


02h 12 . 7 0 . 5 9 63 1 , 60 0 PE R X 3 . 3 9 - 1 9 8 6 paral l el
03h 12 . 7 0 . 5 9 246 6 , 250 GCR R X 3 . 5 4 - 1 9 8 6 P.aral l e l


04h 6.3 0.2 4/9 315 8 , 000 GCR C X3 . 1 3 6 - 1 986 ( * 1 )

1i
05h 6 . 3 0 . 25 4/9 3 15 8 , 00 0 GCR C X 3 . 1 3 6 - 1 9 8 6 seri a l
06h 12 . 7 0 . 5 9 126 3 , 200 PE R X 3 . 1 5 7 - 1 9 8 7 paral l e l
6.3 0.2 ) X 3 . 1 1 6 - 1 98 6 seri a l
b �
07h 4 252 6 , 40 0 I M FM C
cs X 3 . 1 5 8 - 1 987 seri a l
f
08h 3 . 81 0 . 15) 4 3 15 8 , 00 0 GCR
09h 12 . 7 .5 18 1 4 9 1 ( 7 , 87 1 GCR c X 3 B 5 / 8 7 - 0 9 9 paral l e l
c
f
OAh X 3 B 5 / 8 6 - 1 9 9 seri a l

12 . 7 0 . 5 22 262 6 , 667 M FM
OBh 6.3 0.2 ) 4 63 1 , 60 0 PE c X 3 . 5 6 - 1 986 seri a l
OCh 12 . 7 0 . 5 24 500 1 2 , 690 GCR c H I -TC l seri a l
ODh 12 . 7 0 . 5 24 9 9 9 2 5 , 380 GCR c H I -TC2 seri a l
c seri a 1
O Eh Reserve for ECMA

� �
O Fh 6 . 3 ( . 25) 15 394 ( 1 0 , 0 0 0 ) GCR Q I C 120
10h 6 . 3 . 25 18 3 9 4 1 0 , 000 GCR c QIC150 seri a l
c
!b �
11h 6 . 3 . 25 26 630 1 6 , 00 0 GCR Q I C320 seri a l
12h 6 . 3 . 25 30 2034 5 1 , 667 RLL c QIC1350 seri a l
13h 3 . 81 0 . 15 1 2400 6 1 , 000 DDS cs X 3 B 5 /88- 185A h e l i ca l
14h 8.0 . 315 1 1703 43 , 245 RLL cs X 3 . 2 0 2 - 1 9 9 1 h e l i cal
15h
16h
17h
8.0 0 . 315
12 . 7 0 . 5
12 . 7 0 . 5
� 1
48
48
1 7 89 4 5 , 4 3 4
3 9 4 1 0 , 00 0
1 6 7 3 42 , 5 0 0
RLL
M FM
M FM
cs ECMA TC 1 7 h e l i ca l
c
c
X 3 . 1 9 3 - 1 9 9 0 seri a l
X 3 B 5 / 9 1 - 1 7 4 seri a l
18h 12 . 7 ( 0 . 5) 1 12 1 6 7 3 ( 42 , 5 0 0 ) M FM c X 3 B 5 / 9 2 - 5 0 seri a l

{:i� r 1 r
19h
1Ah
1Bh
1Ch c seri al

! 1
6.3 0 . 25 34 1654 2 · 000 M FM C-385M
1Dh c
seri a 1
6.3 0 . 25 32 1 5 12 38 , 400 GCR I C - 4 1 0Mseri a l
c
seri a 1
1 Eh 6.3 0 . 25 30 1 38 5 36 , 000 GCR I C - 1 000C
RLL c
�� t
1 Fh 6.3 0 . 25 30 2666 67 , 733 I C -2 1 0 0 C


U r o�r l
20h 6.3 . 25 144 2666 67 , 733 RLL c Q I C-6GB (M seri a l
21h 6.3 0 . 25 144 2666 67 , 7 3 3 RLL c I C- 2 0 G B ) seri a l
22h 6.3 0 . 25 42 1 60 0 4 0 , 640 GCR c I C -2GB ) seri a l
23h 38 2666 67 , 733 RLL c Q I C-87 5 seri a l

I I
cs
�=i�
24h 1 1 2400 6 1 ' 000 DDS-2 h e l i ca l
cs
f �
25h 3 . 81 0 . 15 1 3816 97 , 000 DDS-3 h e l i ca l
26h 3 . 81 0 . 15 1 3816 97 , 000 cs DDS-4 h e l i cal
27h 8.0 . 315 1 3056 77 , 611 RLL cs *3 ) h e l i ca l
28h 12 . 7 0 . 5) 36 149 1 3 7 , 87 1 GCR c X B 5 / 9 4-043A seri a l
29h - 7 E h Res e rved
7 Fh No change from prev i o u s dens i ty ( NO-O P ) ( *2 )
80h F F h V e n d o r Un i q u e
-

SCS I Bench Reference Copyright © 1 989, 1 992, 1 996 ENDL Publications


COM MAN DS FOR S EQ U ENTIAL-ACCESS D EVICES 223

Key:
Code Typ e

NRZI Non Ret u rn to Zero , c h a n g e on o n e s R Ree l - t o - Ree l


GCR G r o u p Code Record i n g C C a rt r i d g e
PE P h a s e E n coded CS Cassette
I M FM I n verted Mod i f i ed Freq u e n cy M o d u l a t i o n
OAT D a t a S t o ra g e
M FM Mod i f i ed Freq u e n cy M o d u l a t i o n
DDS

(* 1 ) : Old format known a s QIC-1 1 ; serially recorded .


(*2) : MODE SELECT only; this code i s not returned b y MODE SENSE.
(*3) : Information not available when we went to press.

GEN ERAL NOTE: With SCSI-3, Logical Units are n o longer required t o use the density codes listed in this
table. However, it is highly recommended!

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 ENDL Publications


224 CO M MA N D S FO R S EQ U ENTIAL-ACCESS D EVI CES

Mode Page Codes (al phabetic)

Des cri pti on Page Code SCS I -3 Secti on


Control Mode Page ( see page 144 ) OAh SPC 8.3.4
Data C omp res s i o n P a g e OFh sse 5.3.3.1
Dev i ce C o n f i g u r a t i o n P a g e lOh sse 5.3.3.2
Di s co n n e c t - Re c o n n e c t P a g e ( s e e p a g e 1 4 6 ) 02h S PC 8.3.5

l
I n form a t i on a l E x c e p t i o n s C o n t ro l P a g e lCh SPC 8.3.6
( s ee p a g e 1 48 )
Med i um P a r t i t i o n P a g e 1 l lh sse 5.3.3.3
Med i um P a r t i t i o n P a g e 2 12h sse 5.3.3.4
Medi um P a r t i t i o n P a g e 3 13h sse 5.3.3.4
Med i um P a r t i t i o n P a g e 4 14h sse 5.3.3.4
P e r i p h e ra l De v i c e P a g e ( s e e S P C ) 09h SPC 8.3.7
Powe r C o n d i t i o n P a g e ( s ee p a g e 1 4 9 ) 1Ah SPC 8.3.8
Read-Wr i te E r r o r R e c o v e ry P a g e 01h sse 5.3.3.5
Re s e rved 0 3 h - 08h
Rese rved OBh - OEh
Reserved 15h - 19h
Re s e rved 1Bh
Re s e rved 1 D h - 1 Fh
Vendor S p e c i f i c ( n o P a g e f o rma t ) OOh
V e n d o r S p e c i f i c ( P a g e f o rm a t r e q u i re d ) 15h - 3Eh
Re t u r n s a l l P a g e s 3Fh
( v a l i d o n l y fo r t h e M O D E S E N S E comm a n d )

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N O L Publications


COM MANDS FOR SEQUENTIAL-ACCESS DEVI CES 225
Mode Page C o d es (numeric)

P a g e Code Des c r i p t i on S C S I - 3 Sec t i on


OOh V e n d o r S p e c i f i c (does not req u i re P a g e fo rma t )
Olh Read -Wr i te E r r o r Recov e ry P a g e sse 5.3.3.5
02h D i s c o n n e c t - Re c o n n e c t P a g e ( s ee p a g e 1 4 6 ) S PC 8 . 3 . 5
03 h - 08h Res e rved
09h P e r i p h e r a l D ev i ce P a g e ( s ee S P C ) SPC 8 . 3 . 7
OAh C o n t r o l Mode P a g e ( s ee p a g e 1 4 4 ) S PC 8 . 3 . 4

!l
OBh - OEh Re s e r v e d
O Fh D a t a C om p re s s i o n Page sse 5.3.3. 1
10h De v i c e C o n f i g u ra t i o n P a e sse 5.3.3.2
llh Med i um P a r t i t i o n Page 1 sse 5.3.3.3
12h Med i um P a r t i t i o n P a g e 2 sse 5.3.3.4
13h Med i um P a r t i t i o n Page 3 sse 5.3.3.4
14h Med i um P a r t i t i o n P a g e 4 sse 5.3.3.4
15h - 19h Re s e r v e d
1Ah Power Cond i t i on Page ( s ee page 149 ) SPC 8 . 3 . 8

1Bh Re s e rv e d
1Ch I n f o rm a t i o n a l E x c e p t i o n s C o n t ro l P a g e ( s ee p a g e 1 4 8 ) S P C 8 . 3 . 6
1 D h - 1 Fh Re s e rv e d
20h - 3 Eh V e n d o r S p e c i f i c ( P age format re q u i red )

3 Fh Ret u r n s a l l P a g e s ( v a l i d o n l y f o r t h e MOD E S E N S E c omma n d )

SCSI Bench Reference Copyright © "1 989, "1 992, 1 996 E N O L Publications
226 C O M M A N D S FOR SEQU ENTIAL-ACCESS DEVICES

Data Compressio n Page


3 2
I I I I I
5 4 0
By�� t 7 6 1

0 PS Reserved Page Code ( OFh )


1 Page Length ( O E h )
2 DCE DCC Re s e rv e d
3 DO E RED I Re s e rv e d
4 (MSB) -
5 -
C ompres s i o n A l g o r i thm
6
7 ( Lssr--
8 (MSB) -
9 -
Decompres s i o n A l g o r i t hm
10
11 (Lssr--
12 Re s e rv e d
13 Res e r v e d
14 Reserved
15 Reserved

The Data Compression Page i s used t o control data compression.

DCE: 0 = disable data compression


1 = enable data compression

DCC: 0 = device does not support data compression


1 = device supports data compression

ODE: 0 = disable data decompression


1 = enable data decompression

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 ENOL Publications


COMMANDS FOR SEQUENTIAL-ACCESS DEVICES 227

RED: 00 return C H ECK CON DITION when boundary between


=

decompressiblejuncompressed data and un-decompressible data is detected.


01 same as 00, also return C H ECK CONDITION when boundary between un­
=

decompressible data and decompressiblejuncompressed data is detected.


10 same as 01 , also return C H EC K CON DITION when boundary between
=

uncompressed data and decompressible data, or when boundary between data


compressed using two different algorithms is detected.
11 reserved
=

Compression Algorithm : indicates the algorithm to use when compressing data:


OOOOOOOOh no algorithm selectedjuncompressed data
=

0000001 0h = IBM IDRC data compaction algorithm


00000020h = DCLZ data compression algorithm
OOOOOOFFh unregistered (with ISO/I EC JTC 1 ) algorithm
=

all other values reserved.


=

Decompression Algorithm : indicates the algorithm to use when decompressing data, or the algorithm
that was last used. Same values in table above.

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N O L Publications


228 COM MA N D S FOR S E Q U ENTIAL-ACCESS D EVICES

Device Configu ration Page

4 3 2 1
I I I I I 0
7 6 5
Byut
0 PS Re s e rv e d Page Code ( lOh )
1 P a g e Len g t h ( O E h )
2 Reserved CAP CAF I A c t i v e F o rm a t
3 Act i ve Parti t i on
4 W r i te B u f f e r F u l l R a t i o
5 R e a d B u f f e r Empty R a t i o
6 (MSB) W r i te D e l ay T i me
7 ( LS B)
8 DBR BIS RSmk I AVC I SOCF I RBO I R EW
9 Gap S i ze
10 EOD D e f i n e d I E EG I S EW I SWP I Re s e rved
11 (MSB) -

12 B u f f e r S i z e a t E a r l y-W a r n i n g
13 ( LS B)
14 S e l e c t D a t a Compres s i o n A l g o r i t hm
15 Re s e r v e d

The Device Configuration P age i s used for assorted sequential access device parameters.

CAP: 0 = do not change partition


1 = c h ang e logical partition to the one specified by the Active Partition field

CAF: 0 = do not change active format


1 = c h ang e the active format to the one specified by the Active Format field

Active Format: 00000 default recording format


=

00001 - 1 1 1 1 1 format to use with selected density code


=

Active Partition : Current logical partition

Write Buffer Full Ratio ('NBFR) : indicates how full the buffer should be (WB FR/256) on a WRITE
command before writing the data to the tape.

Read Buffer Empty Ratio (RBER) : indicates how empty the buffer should be (RBER/256) on a READ
command before reading the data from the tape

Write Delay Time : maximum time (in 0 . 1 second increments) to hold data in the buffer before writing
data to the tape

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N O L Publications


COMMANDS FOR SEQUENTIAL-ACCESS DEVICES 229
DBR: 0 = Target does not support RECOVERED B U FFERED DATA command
1 = Target supports RECOVERED B U FFERED DATA command

8/S: 0 = tape format does not support block identifiers


1 = tape format supports block identifiers relative to a partition

RSmk: 0 = do not report setmarks


1 = report setmarks

AVC: 0 = use speed selected by the Speed field in the MODE SELECT/MODE SENSE Header
(see page 1 39)
1 = select speed appropriate for best streaming activity (e. g . , less "shoe-shine" on
streaming tape)

SOCF: DO = in Buffered Mode, pre-read to buffer limit ignoring filemarks


01 = in Buffered Mode, stop read if one consecutive filemark is detected
10 = in Buffered Mode, stop read if two consecutive filemarks are detected
11 = in Buffered Mode, stop read if three consecutive filemarks are detected

RBO: 0 = for a RECOVERED BU FFERED DATA command (see page 2 1 0) , data is returned in
First-In-First-Out order relative to the order written into the buffer
1 = for a R ECOVERED B U FFERED DATA command, data is returned in Last-In-First-Out
order relative to the order written into the buffer

REW: 0 = do not report Early-Warning during R EAD or S PACE; report Early-Warning during
write
1 = report Early-Warning as End-Of-Medium

Gap Size: DOh = Target defined gap size


01 h = gap size big enough to perform update-in-place
02h - OFh = multiples of Target defined gap size
1 Oh - 7Fh = reserved
80h - FFh = Target defined

EOD Defined:
ODD = Target defined End-Of-Data definition
001 = End-Of-Data is defined by an erased area of medium appropriate to the format
0 1 0 = End-Of-Data is equivalent to the number of consecutive filemarks indicated by the
SOCF field (see above)
0 1 1 = Target cannot detect or generate End-Of-Data area
1 00-1 1 1 = reserved

EEG: 0 = End-Of-Data generation indicated by the EOD Defined field is disabled


1 = End-Of-Data generation indicated by the EOD Defined field is enabled

SEW: 0 = do not write buffered data, filemarks, or setmarks to tape when Early-Warning is
detected
1 = write buffered data, filemarks, or setmarks to tape when Early-Warning is detected

SWP: 0 = do not inhibit writes due to this bit


1 = inhibit all writes to medium for subsequent commands

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 ENOL Publications


230 C O M M A N D S F O R SEQU ENTIAL-ACCESS D EVICES

Buffer Size at Early-Warning: th e reduced size of the Target data buffer when tape is positioned
between Early-Warning and End-Of-Partition

Select Data Compression Algorithm :


DOh do not do data compression
=

0 1 h Target default compression algorithm


=

02h - 7 Fh reserved
=

80h - FFh Target defined


=

Med i u m Partiti o n Page(1 )

1
By r� t 7 6 5
I 4
I 3
I 2
I I
0

0 PS Re s e rv e d Page Code ( l l h )
1 P a g e Len g t h ( n - 1 )
2 M a x i mum Ad d i t i o n a l P a r t i t i o n s
3 Ad d i t i o n a l P a r t i t i o n s D e f i n e d
4 FDP SDP I DP I P S UM I Re s e r v e d l C L EA R I ADDP
5 Med i um Form a t R e c o g n i t i o n
6 Reserved I Part i t i on Un i ts
7 Re s e rved
8 - n P a r t i t i o n S i z e De s c r i p t o r ( s )
0 (MSB)
Parti ti on S i z e
1 ( LS B)

The Medium Partition Page (1) i s used t o specify the first group of partitions.

Page Length : set to the number of Partition Size Descriptors plus eight.

Maximum Additional Partitions: maximum n umber of partitions supported by the Target. Zero indicates
that the maximum is not specified.

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N O L Publications


COM MANDS FOR SEQ U E NTIAL-ACCESS DEVICES 231
The following table defines the use of the Additional Partitions Defined (APD) field, the FDP, SOP, and
IDP bits, the PSUM field, and the Partition Size Descriptors (PSDs) :

FOP S O P I D P P S UM APD defi n i ti on PSD defi n i t i on De s c r i p t i on


0 0 0 XX no f u n c t i o n n o fun c t i o n no funct i on
1 0 0 XX no f u n c t i o n n o fu n c t i o n Target defi ned
p a r t i t i o n a s s i g nme n t
0 1 0 XX n um b e r o f p a rt i - n o fun ct i on I n i t i a t o r d e f i n ed
t i o n s to create n um b e r o f p a r t i t i o n s
0 0 1 00 n um b e r o f p a rt i - s i ze of each I n i t i a t o r d e f i ned
t i ons to create p a rt i t i o n i n n um b e r a n d s i z e
byt e s of parti ti ons
0 0 1 01 n umber o f p a rt i - s i ze of each I n i t i a t o r d e f i ned
t i ons to create p a rt i t i o n i n n um b e r a n d s i z e
k i l o by t e s o f p a rt i t i o n s
0 0 1 10 n um b e r o f p a r t i - s i ze of each I n i t i a t o r d e f i ned
t i o n s to create p a rt i t i o n i n n um b e r a n d s i z e
m e g a by t e s of parti ti ons
0 0 1 11 n um b e r o f p a rt i - s i ze of each I n i t i a t o r d e f i ned
t i o n s to create p a rt i t i o n i n n um b e r a n d s i z e
1 0 A P . U . byt e s of parti ti ons
1 1 0 XX not a l l owed
1 0 1 XX not a l l owed
0 1 1 XX not a l l owed
1 1 1 XX not a l l owed

CLEAR: 0 = do not erase partitions.


1 = erase partitions based on ADOP bit.
ADDP: 0 = when CLEAR = 1 , logically erase every partition if l O P , FOP, or SOP is one.
1 = when CLEAR = 0, do not logically erase existing partitions even if size changes.
when CLEAR = 1 , logically erase only existing partitions whose size changes.
Medium Format Recognition :
DOh = Logical U nit cannot recognize format or partition
01 h = Logical Unit can only recognize format
02h = Logical U nit can only recognize partition
03h = Logical Unit can recognize both format and partition
04h - FFh = reserved
Partition Size Descriptors : define the sizes (when l O P is set) of partitions 0 255. Units are defined by
-

the PSUM field as shown in the table above. Partitions 64 255 are defined by the Pages described
-

on the next page.


Partition Units: the power of 1 0 units of measure when PSU M = 1 1 ; e . g . , when P . U . = 9, the units of
measure are gigabytes.

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 ENOL Publications


232 CO M MA N D S F O R S E Q U ENTIAL-ACCESS DEVICES

Medium Partiti o n Page(2-4)

4 3 2 1 0
I I I I I
t 7 6 5
By ��
0 PS Re s e rved Page Code ( p )
1 Page Length ( n - 1 )
2 - n P a r t i t i o n S i z e De s c r i p t o r ( s )
0 ( MS B )
1
Parti t i on S i z e
( LS B)
The Mediu m Partitio n Pages (2), (3), a n d (4) are used to specify the sizes of partitions beyond the
ones that can be specified by Medium Partition Page (1 ) .

Page Code (p) : is set corresponding t o t h e range o f Partition Sizes t o define (see below) .

Page Length : set t o the number o f Partition Size Descriptors plus two.

Partition Size Descriptors : the units of the size field are defined in the Medium Partition Page (1 )
(above). The partition size descriptor is not used if the I D P bit of Page (1 ) is zero .

• Medium Partition Page (2) : Page Code 1 2h . Define the sizes of partitions 64 - 1 27.
• Medium Partition Page (3) : Page Code 1 3h . Define the sizes of partitions 1 28 - 1 9 1 .
• Medium Partition Page (4) : Page Code 1 4h. Define the sizes of partitions 1 92 - 255.

Read Write Erro r Recovery Page

By r�
t 7 6 5
I 4
I 3
I 2
J
1
I
0

0 PS R e s e rved Page C o de ( 0 1 h )
1 P a g e Le n g t h ( OA h )
2 Reserved Reserved TB j Reserved j E E R I PER I DT E I DCR
3 Read Retry C o u n t
4 Re s e rv e d
5 Re s e r v e d
6 Re s e rv e d
7 Reserved
8 W r i te Ret ry C o u n t
9 Reserved
10 Reserved
11 Reserved

SCS I Bench Reference Copyright © 1 989, 1 992, 1 996 E N O L Publications


COM MANDS FOR SEQ U ENTIAL-ACCESS DEVICES 233
The Read-Write Error Recovery Page is used t o specify t h e error recovery b y the Logical Unit when
transferring data between the Initiator and the medium.

TB: 0 = unrecoverable data block is not transferred to the Initiator


1 = unrecoverable data block is transferred to the Initiator

EER: 0 = use most deliberate error recovery algorithm


1 = use most expedient error recovery algorithm

PER: 0 = do not report recovered errors


1 = report recovered errors

DTE: 0 = do not terminate on a recovered error


1 = terminate on a recovered error

DCR: 0 = use of error correcting codes is allowed


1 = do not use error correcting codes

WARN I N G : Unlike disk, the EER, PER, DTE, and DCR bits have no combination meanings or invalid
combinations.

Read Retry Count: number of read recovery attempts before reporting an unrecoverable error. Zero
means disable recovery.

Write Retry Count: number of write recovery attempts before reporting an unrecoverable error. Zero
means disable recovery.

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N O L Publications


234 C O M M A N D S FOR PROCESSOR D EVICES

Commands for Processor Devices (al phabetic listing)


C omm a n d N ame Type See P a g e SCS I -3 Sect i on OpCode
0
0
C HANG E D E F I N I T I ON See SPC S PC 7. 1 40h
0
COMPAR E See SPC S PC 7.2 39h
0
COPY See SPC S PC 7.3 18h
COPY AND V E R I FY See SPC S PC 7.4 3Ah
0
I NQ U I RY M 100 S PC 7.5 12h
0
LOG S E L ECT 105 S PC 7.6 4Ch
0
LOG S EN S E 106 S PC 7.7 4Dh
0
R EAD B U F F E R 1 16 S PC 7 . 15 3Ch
0
R EC E I V E 236 S PC 9.1 08h

R EC E I V E D I AGNOST I C R E S U LT S
R E L EAS E 6 ) M
1 18
1 19
S PC
S PC
7 . 16
7 . 17
1Ch
17h
0
R E L EAS E 1 0 ) M 1 19 S PC 7 . 18 57h
R EPORT LUNS 120 SPC 7 . 19 AOh

REQUEST S ENS E
RES E RV E 6 )
R E S E RV E 1 0 )
M
M
M
122
123
124
S PC
S PC
SPC
7 . 20
7 . 21
7 . 22
03 h
16h
56h
126
S END M 237 S PC 9.2 OAh
S EN D D I AGNOST I C M S PC 7 . 23 lDh
T EST UN I T READY M 128 S PC 7 . 24 OOh
WRITE BUFFER 0 129 S PC 7 . 25 3Bh

Key: M = Command implementation i s mandatory ; 0 = Command implementation i s optional.

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N O L Publications


COM MANDS FOR PROCESSOR D EVICES 235
Commands for P rocessor Devices (numeric listing)

OpCode Typ e See Page S C S I -3 S e c t i o n C omm a n d N ame


OOh M 128 S PC 7 . 24 T E S T U N I T R EA D Y
0
03h M 122 S PC 7 . 20 REQUEST S EN S E
08h 236 S PC 9.1 R EC E I V E
OAh M 237 S PC 9.2 S EN D
12h
16h
17h
M
M
100
123
1 19
S PC
SPC
7.5
7. 21
I NQ U I RY
f�
R E S E RV E 6

0
M S PC 7 . 17 R E LEAS E 6
18h
0
See SPC S PC 7.3 COPY
1Ch 1 18 S PC 7 . 16 R EC E I V E D I AGNO S T I C R E S U LTS
1Dh M 126 S PC 7 . 23 S E ND D I AGNOS T I C
0
0
39h S e e S PC SPC 7.2 COM P A R E
0
3Ah S e e S PC S PC 7.4 C O P Y A N D V E R I FY
0
3Bh 129 S PC 7 . 25 WRITE BUFFER
3Ch 116 S PC 7 . 15 R EAD B U F F E R
0
0
40h See SPC SPC 7.1 C HA N G E D E F I N I T I ON
0
S PC 7.6 LOG S E L E C T
po�
4Ch 105
4Dh 106 S PC 7.7 LOG S E N S E
56h M 124 S PC 7 . 22 RESERVE
57h M 1 19 S PC 7 . 18 R E L EA S E 1 0
AOh 0 120 S PC 7 . 1 9 R E PO RT L U N S

Key: M = Command implementation i s mandatory; 0 = Command implementation i s optional.

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 ENDL Publications


236 C O M M A N D S FOR PROCESSOR D EVICES

RECEIVE Command

By ��
t 7
I
6
I 5
I
4
I
3

O p e r a t i on C o d e ( 08 h )
I
2
I 1
I
0

0
1 { Log i c a l U n i t N um b e r } I Reserved
2 (MSB) -

3 A l l o c a t i o n Le n g t h
4 ( LSB)
5 C o n t r o l Byte

* RECEIVE requests a data packet from the Target.

Allocation L e ngth : maximum number of bytes that the Target may send.

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N O L Publications


COMMANDS FO R PROCESSOR D EV I C ES 237
SEND Co mmand

By ��t 7
I 6
I 5
I 4
I 3
I 2
I
1
I 0

0 O p e ra t i o n C o d e ( O A h )
1 { Log i c a l U n i t N u m b e r } I Reserved I AEN
2 (MSB) -

3 T ra n s fe r Len g t h -,---

4 ( LSB )
5 C o n t r o l Byte

* S E N D is used to send a data packet to the Target.

AEN: Called "AER" in S P C :


0 : data not defined b y SCSI standard
1 : data format is as shown below

Transfer Length: number of bytes the Initiator wishes to send.

SCSI-2 SEND Command AEN Data Format

3 2
Bi t
Byt e
7 6 5 4
I I 1
I 0

0 S C S I -3 Re s e r v e d LUNTAR Re s e r v e d Lo g i c a l U n i t N um b e r / LUNTRN
1 S u b- l ogi c a l Un i t Number
2 Res e r v e d
3 Reserved
4 to S e n s e D a t a By t e ( 0 ) - -
- - -- -

- - -- - - -

n -4 S e n s e D a t a By t e ( n )
. .
The Asynchronous Event N ot1f1 cat1 on (AE N ) Data Format 1s used by a dev1ce to 1nform another
device in the system of a deferred error or other exception without waiting for the other device to send a
command. This data is only sent to Processor devices that return I N Q U I RY data with the AENC bit set to
one.

SCSI-3: 0 = SCSI-2 format as shown above.


1 = SCS I-3 format as shown on the following page.

LUNTAR: 0 = bits 2-0 of this byte indicate the Logical Unit that had the error
1 = bits 2-0 of this byte indicate the Target Process that had the error

LUNTRN: as defined by LU NTAR.

Sense Data : as it would be returned using the REQU EST SENSE command .

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N O L P ublications


238 COM MA N D S FO R P R O C E S S O R D EVICES

SCSI-3 SEN D Command AER Data Format

4
I I I I I I
Bi t 7 6 5 3 2 1 0
B yte
0 S C S I -3 Reserved
1 Reserved
2 Reserved
3 Reserved
4 ( MS B ) -

5 -

6 -

7
Lo g i c a l U n i t N u m b e r -

8 -

9 -

10
11 ( LS B)
1 2 to S e n s e D a t a By t e ( 0 )
- - -
f- - - -

-
- -
f- - - -

n+l2 S e n s e D a t a Byte ( n )

The Asynchro n o u s Event R eporti ng (AER) Data Format is used b y a device t o inform another
device in the system of a deferred error or other exception without waiting for the other device to send a
command. This data is only sent to Processor devices that return I N Q U I RY data with the AENC bit set to
one.

SCS/-3: 0 = SCSI-2 format as shown on the previous page.


1 = SCSI-3 format as shown above.

Logical Unit Number: Logical U nit that had the event to report.

Sense Data : as it would be returned using the REQU EST SENSE command.

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N O L Publications


STATUS CODES 239
Status

Status Byte Format


1
I I I I I
t 7 6 5 4 3 2
By � �
0

0 Re s er v e d S t a t u s By t e C o d e Reserved

Status Byte C o d e Val u es


B i t s o f S t a t u s Byt e
Hex
7 6 5 4 3 2 1 0 Val ue S t a t u s ( e s ) R e p re s e n t e d
R R 0 0 0 0 0 R OOh GOOD
1
R R 0 0 0 0 1 R 02h C H E C K CON D I T I O N
R R 0 0 0 0 R 04h C O N D I T I O N M ET / GOOD
R R 0 0 1 0 0 R 08h BUSY
R R 0 1 0 0 0 R 10h I NT E RM E D I AT E / GOOD
R R 0 1 0 1 0 R 14h I NT E RM E D I AT E / C O N D I T I ON M E T / GOOD
1
R R 0 1 1 0 0 R 18h R E S E RVAT I O N C O N F L I C T
R R 1 0 0 0 R 22 h COMMA N D T E RM I NAT E D
R R 1 0 1 0 0 R 28h Q U E U E F U L L [TA S K S ET F U L L]
R R 1 1 0 0 0 R 30h A C A ACT I V E
Al l Other Codes Rese rved
Key: A - Reserved bit

Status Defi n itions


GOOD : The command completed successfully; no errors. LI N K bit in command block is zero.

CH ECK CON DITION : Literally, "check for Sense Data". U sually means some error or failure occurred, or
any condition that Initiator should be informed of.

CONDITION M ET : See SCSI-2 or SAM .

BUSY : Too busy t o talk t o another I nitiator. Try again later.

I NTERMEDIATE : Equivalent to GOOD status, except LI N K bit set to one in command block. I ndicates
good status for a command that is part of a series of Linked commands.

RESERVATION CONFLICT : Reserved to another I nitiator. Try again later.

COM MAN D TER M I NATED : Command completed successfully after being prematurely terminated by a
TERM I NATE 1/0 P ROCESS [TE R M I NATE TASK] message. Sense Data indicates what was left to do.

Q U E U E FULL [TASK S ET FU LL] : The Queue [Task Set] is full.

ACA ACTIVE : An ACA condition exists. Try again later.

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N O L Publications


240 SENSE DATA

Sense Data and Sense Keys

Sense D ata Format

6
syut 7
I 5
I 4
I 3
I 2
I 1
I
0

0 Val i d E r r o r C o d e [ Re s p o n s e C o d e ]
1 S e gm e n t N u m b e r
2 F i l em a r k EO M I I Ll I Reserved I S e n s e Key
3 (MSB) -

4
I n fo rm a t i o n -

5
6 ( LS �
7 A d d i t i o n a l S e n s e Le n g t h ( n -7 )
8 (MSB) -

9
C omm a n d - S p e c i f i c I n fo rm a t i o n -

10
11 ( LS �
12 Add i t i on a l S e n s e Code
13 Ad d i t i o n a l S e n s e C o d e Q u a l i f i e r
14 F i e l d Re p l a c e a b l e U n i t C o d e
15 S KS V -

16 S e n s e - Key S p e c i f i c -

17
18 o
- - t r- -
-
Ad d i t i o n a l S e n s e Byt e s - -

Sense Data Fields:

Valid: 0 = bytes 3 thru 6 are not valid


1 = bytes 3 thru 6 contain valid data

Error Code: indicates format of the Sense Data. Error Codes 70h and 7 1 h are the only two codes
defined as standard for SCSI-2/3, and both codes use the sense data format shown here. (For
SCSI-3, this field has been renamed " Response Code" .)
70h not a d eferred error
=

71 h deferred error
=

Segment number: number of COPY segment in error. See SPC.

Filemark (Tape) : 0 = n ot positioned at filemark on tape


1 = positioned at filemark on tape

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 ENOL Publications


SENSE DATA 241

EOM (Tape) : 0 = not positioned at end of medium


1 = positioned at end of medium

ILl (Tape) : 0 = no length error


1 = block length requested did not match block length on medium. The Information Bytes
(see below) indicate the difference between the requested length and the length on
the medium.

ILl (Disk) : 0 = no length error


1 = READ LON G or WRITE LONG Byte Transfer Length was incorrect. The Information
Bytes (see below) indicate the difference between the requested length and the length
on the medium.

Sense Key: error recovery indication (see Sense Key Table, page 243)

Information : contains data concerning the error if the Valid bit is one. For example:
• the logical block address where the error indicated by the sense key occurred
• the magnitude of the length mismatch indicated by I ll {above) .
• residue between a requested operation and the actual result.

Additional Sense Length : the first eight bytes of sense data are "Standard". This field indicates how
many more bytes follow. For example, if this field = 1 0, then a total of 1 8 bytes are valid in the
sense data.
Command Spe cific Information: contains data that varies by command:
• REASSIGN BLOCKS: first defective block not reassigned.
• SEARCH DATA: see SBC.
• COPY: see SPC.
• All other commands: not used.

Additional Sense Code : additional information that describes cause of error associated with Sense Key
(see Additional Sense Code tables beginning on page 247) .

Additional Sense Code Qualifier: modifier of Additional Sense Code (see Additional Sense Code tables
beginning on page 247) .

Field Replaceable Unit (FRU) Code: vendor specific value that indicates which part of the device failed
miserably. Zero indicates no unit failed or failed unit unknown .

Additional Sense Bytes: contain vendor specific data.

Sense Key Sp e cific Bytes: contains data that varies by sense key. These bytes are currently defined
for the data formats shown on the next page.

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N O L Publications


242 SENSE DATA

I LLEGAL REQU EST: Fiel d Pointer Bytes

I I
4
By�� t 7 6 5 3 2 1 0

15 SKSV C/D R e s e r v e d Re s e rv ed BPV B i t Poi n ter


16 (MSB) F i e l d P o i n te r
17 ( LSB)
SKSV: 0 = Sense Key Specific Bytes invalid
1 = Sense Key Specific Bytes contain valid data

C/D: 0 = error is in data parameters sent during DATA OUT phase


1 = error is in command sent during COMMAND phase

BPV: 0 = Bit Pointer field not used: error was a whole byte
1 = Bit Pointer field valid: error was one or more bits in byte

Bit Pointer: indicates which bit in the byte was illegal

Field Pointer: indicates which byte was illegal

RECOVERED ERROR, M E D I U M ERROR, HARDWARE ERRO R : Actual Retry Count

By�� t 7 6
I 5
I 4
I 3
I 2
I
1
I
0

15 SKSV Reserved
16 (MSB) A c t u a l R e t ry C o u n t
17 ( LS�
SKSV: 0 = Sense Key Specific Bytes invalid
1 = Sense Key Specific Bytes contain valid data

Actual Retry Count: the number of retries attempted during error recovery

NOT READY: P ro g ress I n d i cati on Bytes

I I I I I I
4
By�� t 7 6 5 3 2 1 0

15 SKSV Res e rved


16 (MSB) P r o g r e s s I n d i c at i o n
17 ( LS'B)
SKSV: 0 = Sense Key Specific Bytes invalid
1 = Sense Key Specific Bytes contain valid data

Progress Indication {PI) : percent completion (PI/65536) of a command (such as FORMAT U N IT


(disk)) which was issued with the immediate (lmmed) bit set to one.

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N D L Publications


SENSE DATA 243
Sense Keys (Al phabetic)

Name S e n s e Key
ABORT ED COMMAN D B
B LA N K C H E C K 8
COPY ABORT E D A
DATA P ROT ECT 7
EQUAL c
HARDWARE E RROR 4
I LLEGAL REQU E S T 5
M ED I UM E R R O R 3
M I S COMPA R E E
NO S EN S E 0
NOT R EADY 2
R ECOV E R E D E R RO R 1
Rese rved F
UNIT ATT E N T I O N 6
Vendor Speci fi c 9
VO LUME O V E R F LOW D

SCS I Bench Reference Copyright © 1 989, 1 992, 1 996 ENOL Publications


244 SENSE DATA

Sense Keys (Numeric)

S e n s e Key N am e
0 NO S EN S E
1 RECOV E R E D E RRO R
2 NOT R EADY
3 M ED I UM E R RO R
4 HARDWAR E E RRO R
5 I L L E G A L REQU E S T
6 U N I T ATT ENT I O N
7 DATA P RO T E C T
8 B LA N K C H E C K
9 Vendor Speci fi c
A COPY ABORTED
B ABORT E D COMMAND
c EQUA L
D VOLUM E O V E R F LOW
E M I SCOMPARE
F Re s e rv e d

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N D L Publications


SENSE DATA 245
TEST UNIT READY Res ponses
BY CODE

Status Sense Sense Sense Code


Byte Key Code Q u a l i fi e r Des c r i p t i o n o f C a u s e
OOh 0 OOh OOh u n i t i s r e a dy
02h 5 25h OOh Lo g i c a l U n i t n o t s u p p o rted
02h 2 05h OOh Log i c a l U n i t d o e s n o t r e s p o n d
t o s e l ec t i o n
02h 2 3Ah OOh med i um n o t p r e s e n t
02h 2 04h OOh Log i c a l U n i t n o t r e a dy , c a u s e n o t
reporta b l e
02h 2 04h Olh Lo g i c a l U n i t i s i n p r o ce s s o f
b e c om i n g ready
02h 2 04h 02h Lo g i c a l U n i t n o t ready ,
i n i t i a l i z i n g c omma n d req u i red
02h 2 04h 03h Log i c a l U n i t n o t ready , man u a 1
i n t e r v e n t i o n re q u i red
02h 2 04h 04h Lo g i c a l U n i t n o t ready , f o rm a t
i n p r o g re s s

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 ENDL Publications


246 SENSE DATA

TEST UNIT READY Responses

BY NAME

Status S e n s e Key Ad d i t i on a l S e n s e C o d e a n d Ad d i t i o n a l
Sense Code Qual i fi er
GOOD NO S EN S E n o a d d i t i o n a l s e n s e i n fo rmat i o n
o r o t h e r v a l i d ad d i t i o n a l s e n s e c o d e .
C H E C K COND I T I ON I L L EGAL R EQU EST Log i c a l U n i t n o t s u p p o r t e d
CHECK COND I T I ON NOT READY Log i c a l U n i t d o e s n o t r e s p o n d
to s e l ect i on
C H E C K COND I T I ON NOT READY med i um n o t p r e s e n t
C H E C K CON D I T I ON NOT READY Log i c a l U n i t n o t ready , c a u s e n o t
reportab l e
C H E C K CON D I T I ON NOT READY Log i c a l U n i t i s i n p r o c e s s o f
b e c om i n g ready
CHECK COND I T I ON NOT READY Log i c a l U n i t not ready , i n i t i a l i z i n g
comm a n d req u i red
C H E C K COND I T I ON NOT READY Log i c a l U n i t not ready , man u a l
i n t e r v e n t i o n req u i red
C H E C K CON D I T I ON NOT READY Log i c a l U n i t not ready , FO RMAT
i n p rogres s

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 ENOL Publications


ADDITIONAL SENSE CODES 247
Additional Sense Codes

Sense Codes for Direct Access Devices


ALPHABETIC ORDER

Des c r i pt i on A S C ASCQ
address m a r k n o t fo u n d for d a t a f i e l d 13 0 0
oc 06
a d d re s s m a r k n o t fo u n d for I D f i e l d 1 2 00
b l o c k n o t c omp res s a b l e
B U S D EV I C E R E S ET fu n ct i o n o c c u rred 29 03
cannot d ecomp r e s s u s i n g d e c l a red a l g o r i thm 11 O E
cannot form a t med i um - i n comp a t i b l e med i um 30 06
c a n n o t read med i um - i n compa t i b l e form a t 30 02
c a n n o t read med i um - u n k n own format 30 0 1
cannot wri t e med i um - i n comp at i b l e fo rmat 3 0 05
cannot wri te med i um - u n k n own format 30 04
c h a n ged operat i n g d e f i n i t i o n 3 F 02
c l e a n i n g c a r t r i d g e i n s t a l l ed 3 0 03
c l e an i n g f a i l u re 30 07
c l e a n i n g req u e s ted 00 17
COMMAND p h a s e error 4A 0 0
command s e q u e n c e e r r o r 2 C 00

oc 04
comm a n d s c l e a re d b y a n o t h e r I n i t i a t o r 2F 00
compres s i o n c h e c k m i s comp a r e e rr o r
oc 05
COPY c a n n o t e x e c u t e s i n c e h o s t c a n n o t d i s co n n e c t 2 8 00
d a t a expa n s i o n o c c u rred d u r i n g compre s s i o n
d a t a p a t h f a i l u re ( s h o u l d u s e 4 0 n n ) 4 1 00
DATA p h a s e e r r o r 48 00
d a t a syn c error - d a t a a u to-rea l l o c a t e d 16 03
d a t a syn c error - d a t a rewr i tten 16 01
d a t a syn c error - recommen d reas s i g nme n t 1 6 04
d a t a syn c e r r o r - recomme n d rewr i te 1 6 02
d a t a syn c h ro n i z a t i o n mark error 16 00
d e -compres s i on C RC e r r o r 11 OD
d e fe c t l i s t e r r o r 19 00
d e fe c t l i s t e rror i n g rown l i s t 19 03
d e fe c t l i s t e r r o r i n p r i m a ry l i s t 1 9 02
defect l i s t n o t a v a i l a b l e 19 0 1
d e fe c t l i s t n o t fo u n d 1C 00
d e fe c t l i s t u p d ate f a i l u re 32 01
d i a g n o s t i c f a i l u re o n compo n e n t n n ( 8 0 h - f f h ) 40 NN
error l og o v e r f l ow OA 0 0
50 00
error too l on g to correct 1 1 02
50 FF
f a i l u re pred i c t i on t h re s h o l d exceeded
fa i l u re pred i c t i o n t h re s h o l d exceeded ( fa l s e )
FORMAT comm a n d fa i l ed 31 0 1
Grown defect l i s t n o t fo u n d 1 C 02
h e a d s e l ect fa u l t 09 04

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 ENOL Publications


248 ADDITIONAL SENSE CODES

Sense Codes for D irect Access Devices


ALPHABETIC ORDER (CONTI N U ED)

Des c r i p t i o n A S C AS CQ
I /0 proce s s t e rm i n a ted 00 06
ID C RC o r ECC e r r o r 10 00
i d l e con d i t i on a c t i v ated by comm a n d SE 03
i d l e con d i t i o n a c t i v a ted by t i me r SE 01
i l l eg a l f u n ct i o n ( s h o u l d u s e 20 00 , 2 4 0 0 , o r 2 6 0 0 ) 22 00
i mport o r export e l eme n t a c c e s s e d 28 01
i n comp at i b l e med i um i n s t a l l ed 30 00
I n i t i a t o r detected e r r o r me s s age rece i v ed 48 00
I NQU I RY data has c h a n g e d 3F 03
i n tern a l T a r g e t f a i l u re 44 00
i n v a l i d b i t s i n I D E N T I FY m e s s age 30 00
i n v a l i d comm a n d o p e r a t i o n code 20 00
i n v a l i d e l emen t a d d r e s s 21 01
i nv a l i d fi e l d i n COB 24 00
49 00
i n v a l i d f i e l d i n p a r ame t e r l i s t 26 00
i n v a l i d mes s a g e error
i n v a l i d re l e a s e o f a c t i v e pers i s ten t r e s e rv a t i o n 26 04
l og c o u n t e r a t m a x i m um SB 02
l og except i on SB 00
l og l i s t c o d e s ex h a u s t e d SB 03
l og p a rameters c h a n g ed 2A 02
Log i c a l B l o c k A d d r e s s o u t o f r a n g e 21 00
Log i c a l Un i t c ommu n i c a t i o n f a i l u re 08 00
Log i c a l Un i t commu n i c a t i o n p a r i ty e r r o r 08 02
Log i c a l Un i t commu n i c a t i o n t i me-o u t 08 01
Log i c a l U n i t d o e s n o t res p o n d t o s e l e c t i o n 05 00
Log i c a l U n i t fa i l ed s e l f - c o n f i g u r a t i o n 4C 00
Log i c a l U n i t h a s n o t s e l f - c o n f i g u re d yet 3E 00
Log i c a l U n i t i s i n p ro c e s s o f b e c om i n g ready 04 01
Log i c a l U n i t n o t r e a dy , c a u s e n o t re p o r t a b l e 04 00
Log i c a l Un i t n o t r e a dy , FO RMAT i n prog r e s s 04 04
Log i c a l U n i t n o t r e a dy , i n i t i a l i z i n g comm a n d req u i red 04 02
Log i c a l Un i t not r e a dy , m a n u a l i n t e r v e n t i o n req u i red 04 03
Log i c a l U n i t not ready , o p e r a t i o n i n p r o g re s s 04 07
Log i c a l U n i t n o t s u pported 25 00
l ow powe r con d i t i o n o n SE 00
mec h a n i c a l po s i t i o n i n g e r r o r 15 01
med i a l oa d o r ej e c t fa i l ed 53 00
med i um d e s t i n a t i o n e l eme n t f u l l 3B OD
med i um form a t c o r r u p ted 31 00
med i um m a g a z i n e i n s e rted 3B 13
med i um m a g a z i n e l o c k ed 3B 14
med i um m a g az i n e not a c c e s s i b l e 3B 11

SCS I Bench Reference Copyright © 1 989, 1 992, 1 996 E N O L Publications


ADDITIONAL SENSE CODES 249
Sense Codes for D irect Access Devices
ALPHABETIC ORDER (CONTI N U ED)

Des c r i p t i o n A S C ASCQ
med i um m a g a z i n e remov e d 3B 12
med i um m a g a z i n e u n l o c k e d 38 15
med i um n o t p r e s e n t 3A 00
med i um remo v a l p r e v e n t e d 53 02
med i um s o u rc e e l emen t empty 3B OE
mes s a g e error 43 00
m i c rocode has been c h a n ged 3F 01
m i s compare d u r i n g v e r i fy o p e r a t i o n 1D 00
m i s corrected e rror 11 OA
Mode p a rameters c h a n g e d 2A 01
m u l t i p l e p e r i p h era l d e v i ces s e l ected 07 00
m u l t i p l e read e rrors 11 03
n o ad d i t i o n a l s e n s e i n fo rma t i o n 00 00
n o defect s p a re l o c a t i o n a v a i l a b l e 32 00
no i ndex/sector s i gnal 01 00
n o refere n c e p os i t i o n fo u n d 06 00
n o s e e k c omp l ete 02 00
n o t ready t o ready t r a n s i t i o n , med i um may h a v e c h a n ge d 28 00
opera t i o n i n p rog re s s 00 16
operator m ed i um remo v a l req u e s t 5A 01
operator req u e s t o r s t ate c h a n g e i n p u t ( u n s p ec i f i e d ) 5A 00
operator s e l ected w r i t e perm i t 5A 03
operator s e l ected w r i te protect 5A 02
o ve r l apped comm a n d s a t temp ted 4E 00
Pa rame ter L i s t Len g t h e r r o r 1A 00
p a rameter n o t s u pported 26 01
p a rame t e r v a l u e i n v a l i d 26 02
p a rameters c h a n g e d 2A 00
p a r t i a l d e f e c t l i s t t r a n s fe r IF 00
p e r i p h e r a l d ev i ce wri t e fa u l t 03 00
po s i t i o n i n g e rror d e t e cted by read o f med i um 15 02
power o n o c c u r red 29 01
power o n , res e t , o r BUS D E V I C E R E S ET o c c u rred 29 00
power-on or s e l f - t e s t fa i l u re ( s h o u l d use 4 0 n n ) 42 00
P r i mary d e fe c t l i s t n o t fo u n d 1C 01
RAM f a i l ure ( s h ou l d u s e 40 n n ) 40 00
r a n d om pos i t i o n i n g e r r o r 15 00
read retri e s e x h a u s t e d 11 01
record n o t f o u n d 14 01
record n o t fo u n d - d a t a a u to - r e a l l o c a t e d 14 06
record n o t fo u n d - recomme n d r e a s s i g nme n t 14 05
recorded e n t i ty n o t fo u n d 14 00

SCSI Bench Reference Copyright o 1 989, 1 992, 1 996 E N O L Publications


I
250 ADD ITIONAL S E N S E CODES

Sense Codes for D irect Access Devices


ALPHABETIC ORDER (CONTI N UED)

Des cri p t i o n A S C ASCQ


recovered d a t a - d a t a a u t o - re a l l ocated 18 02
recovered data - recomme n d re a s s i g nme n t 18 05
recovered d a t a - recomme n d rewr i te 18 06
recovered d a t a u s i n g p re v i o u s s e c t o r I D 17 05
recovered d a t a w i t h e rror correct i o n & r e t r i e s a p p l i e d
recovered d a t a w i t h ECC - d a t a rewr i tten 18 07
18 01
recovered d a t a w i t h e rror correct i o n a p p l i ed 18 00
recovered d a t a w i t h n e g a t i v e h e a d o f f s e t 17 03
recovered d a t a wi t h n o error correct i o n a p p l i ed 17 00
recovered d a t a w i t h po s i t i v e h e a d o f f s e t 17 02
recovered d a t a w i t h ret r i e s 17 01
recove red d a t a w i t h o u t E C C - d a t a a u to - r e a l l o c a t e d 17 06
recovered d a t a w i t h o u t E C C - d a t a rewr i t ten 17 09
recovered d a t a w i t h o u t E C C - recomme n d reas s i g nme n t 17 07
recovered d a t a w i t h o u t E C C - recomme n d rewr i te 17 08
recovered ID wi t h ECC correct i o n IE 00
ro u n d e d p a rame t e r 37 00
RPL status change 5C 00
reserv a t i o n s p re emp t e d 2A 03
s av i n g p a rameters n o t s u p p o rted 39 00
S C S I bus reset o c c u rred 29 02
S C S I p a r i ty error 47 00
s e l ect o r rese l e c t f a i l u re 45 00
s p i n d l e s n o t syn c h ro n i z ed 5C 02
s p i n d l e s syn c h ro n i z e d 5C 01
s t a n d by con d i t i on a c t i v a t e d b y comm a n d 5E 04
s t a n d by con d i t i o n a c t i v a t e d b y t i me r 5E 02
syn c h ro n o u s d a t a t r a n s fe r e r r o r 18 00
system b u ffer f u l l 55 01
tagged o v e r l apped comman d s ( n n = queue tag ) 40 NN
Target opera t i n g con d i t i o n s h a v e c h a n g e d 3F 00
t h res h o l d con d i t i o n met 58 01
t h res h o l d p a rameters not s u p po rted 26 03
track fo l l ow i n g error 09 00
u n recovered read error 11 00
u n recovered re a d e r r o r - a u to re a l l o c a t e fa i l ed 11 04
oc
u n recovered read error - recomme n d r e a s s i gnme n t 11 OB
u n recovered r e a d e r r o r - recommen d rewr i te t h e d a t a 11
u n s u cces s f u l s o ft reset 46 00
v o l tage f a u l t 65 00
warn i n g OB 00
o c 02
warn i n g - s pec i f i e d t emp e r a t u r e exceeded OB 01
oc 03
wri te error - auto rea l l o c a t i o n f a i l ed
w r i te e rror - recommend reas s i g nme n t
wri te p rotected 2 7 00

.. SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 ENDL Publications


ADDITIONAL SENSE CODES 251
Sense Codes for D irect Access Devices
N U M ERIC ORDER ·

A S C ASCQ Des c r i p t i o n
00 00 n o a dd i t i on a l s e n s e i n forma t i o n
00 06 1 /0 proce s s t e rm i n a ted
00 16 operat i on i n progress
00 17 c l e an i n g req u e s ted
01 00 n o i ndex/sector s i g n a l
02 00 n o s e e k comp l ete
03 00 p e r i p h e r a l d ev i c e wri te fa u l t
04 00 Log i c a l U n i t n o t ready , c a u s e n o t reporta b l e
04 01 Log i c a l U n i t i s i n p roces s o f becom i n g ready
04 02 Log i ca l Un i t n o t ready , i n i t i a l i z i n g comm a n d re q u i red
04 03 Log i c a l U n i t not ready , m a n u a l i n t e r v e n t i o n req u i red
04 04 Log i c a l U n i t n o t ready , FORMAT i n p r o g re s s
04 07 Log i c a l U n i t n o t ready , o p e ra t i o n i n p r o g re s s
05 00 Log i c a l U n i t d o e s n o t res po n d to s e l ec t i o n
06 00 n o refere n c e po s i t i on fo u n d
07 00 m u l t i p l e p e r i p h e ra l d ev i c e s s e l e c t e d
08 00 Log i c a l U n i t commu n i c a t i o n f a i l u re
08 01 Log i ca l Un i t comm u n i c a t i o n t i me-o u t
08 02 Log i c a l U n i t commu n i c at i o n p a r i ty e r r o r
09 00 t ra c k f o l l ow i n g e r r o r
09 04 head s e l ect fau l t
OA 00 error l og o v e r f l ow
OB 00 warn i n g
oc
OB 01 warn i n g - s p e c i f i ed tempe r a t u re e x c e e d e d
oc
02 wri te e rror - a u t o re a l l o c a t i o n f a i l ed
oc
03 wri te error - recommend rea s s i g nmen t
oc
04 comp re s s i o n c h e c k m i s comp a re e r r o r
oc
05 d a t a e x p an s i o n o c c u rred d u r i n g compres s i o n
06 b l o c k n o t compres s a b l e
11
10 00 I D C RC o r ECC e r r o r
00 u n re c o v e red read e r r o r
11 01 read retri e s exh a u s ted
11 02 e rror too l o n g to correct
11 03 m u l t i p l e read errors
11 04 u n recovered read e r r o r - auto r e a l l o c a t e f a i l e d
11 OA m i s corrected error
oc
11 OB u n recove red read e r r o r - recomme n d r e a s s i g nme n t
11 u n recovered read e r r o r - recomm e n d rewr i te t h e d a t a
11 OD d e - comp re s s i o n C RC e r r o r
11 OE c a n n o t d e com p re s s u s i n g d e c l a re d a l g o r i t hm
12 00 a d d re s s m a r k n o t f o u n d for I D f i e l d
13 00 a d d re s s m a r k n o t fo u n d for d a t a f i e l d

SCSI Bench Reference Copyclght • 1 989, t 992, 1 996 ENOL Publications


I
252 A D DITIONAL S E N S E CODES

Sense Codes for D irect Access Devices


NUMERIC ORDER (CO NTI N U ED)

ASC A S CQ Des c r i p t i o n
14 00 recorded e n t i ty n o t fo u n d
14 01 record n o t fo u n d
14 05 record n o t fo u n d - recomme n d reas s i g nment
14 06 record n o t fo u n d - d a t a a u to - rea l l o c a ted
15 00 r a n d om p os i t i o n i n g error
15 01 mec h a n i c a l po s i t i o n i n g e r r o r
15 02 p os i t i o n i n g e r r o r detected by re a d o f med i um
16 00 d a t a syn c h ron i z a t i o n m a r k e r r o r
16 01 d a t a syn c error - d a t a rewr i tten
16 02 data s y n c e r r o r - recomme n d rewr i te
16 03 data sync e r r o r - data a u to-re a l l o c a t e d
16 04 d a t a syn c e r ro r - recomme n d rea s s i g nmen t
17 00 recovered d a t a w i t h no e r r o r correc t i on a p p l i e d
17 01 recov e r e d d a t a w i t h ret r i e s
17 02 reco vered d a t a w i t h po s i t i v e h e a d o f f s e t
17 03 recovered d a t a w i t h n e g a t i v e h e a d o f f s e t
17 05 re c o v e red d at a u s i n g p r e v i o u s s e c t o r I D
17 06 rec o v e r e d d a t a w i t h o u t E C C - d a t a a u t o - rea l l o c a te d
17 07 re c o v e red d a t a w i t h o u t E C C- re comm e n d re a s s i g n m e n t
17 08 recovered d a t a w i t h o u t E C C - recomm e n d rewr i te
17 09 re c o v e red data w i t h o u t ECC - data rewr i t t e n
rec o v e red d a t a w i t h error correc t i o n & r e t r i e s a p p l i ed
18 00 r e c o v e r e d d a t a w i t h error c o r rec t i o n a p p l i ed
18 01
18 02 recov e red d a t a - d a t a a u to-rea l l o c a t e d
18 05 recov e red d a t a - recomme n d rea s s i g nm e n t
18 06 recovered d a t a - recommend rewr i te
18 07 re covered d a t a w i t h ECC - d a t a rewr i t t e n
19 00 d e f e c t l i s t e rr o r
19 01 defect l i s t not avai l ab l e
19 02 d e f e c t l i s t e rror i n p r i m a ry l i s t
19 03 d e fe c t l i s t e r r o r i n g rown l i s t
1A 00 P a rame t e r L i s t Le n g t h e r r o r
1B 00 syn c h ro n o u s d a t a t r a n s f e r e r r o r
1C 00 d e f e c t l i s t n o t fo u n d
1C 01 P r i m a ry d e fect l i s t n o t fou n d
1C 02 Grown d e f e c t l i s t n o t fo u n d
10 00 m i s com p a re d u r i n g v e r i fy o p e r a t i o n
1E 00 re covered I D w i t h E C C correct i o n
1F 00 p a rt i a l d e fect l i s t t r a n s fe r
20 00 i n v a l i d comm a n d o p e r a t i o n c o d e
21 00 Log i c a l B l o c k A d d r e s s o u t o f r a n g e
21 01 i n v a l i d e l eme n t a d d re s s
22 00 i l l eg a l f u n c t i o n ( s h o u l d u s e 20 0 0 , 2 4 00 , o r 2 6 0 0 )
24 00 i nval i d fi el d i n COB
25 00 Log i c a l U n i t n o t s u pported

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N O L Publications


ADDITIONAL SENSE CODES 253
Sense Codes for D i rect Access Devices
NUMERIC ORDER (CONTI N U ED)

ASC ASCQ Des c r i p t i o n


26 00 i n v a l i d f i e l d i n p a rameter l i s t
26 01 p a rame t e r n o t s u p ported
26 02 p a ramet e r v a l u e i n v a l i d
26 03 t h res h o l d p a rame ters n o t s u p p o rted
26 04 i n v a l i d r e l e a s e o f a c t i v e p e r s i s t e n t re s e rv a t i o n
27 00 w r i te p r o t e c t e d
28 00 n o t ready t o ready t r a n s i t i o n , med i um m a y h a v e c h a n g e d
28 01 i mport o r export e l eme n t a c ce s s ed
29 00 power o n , r e s e t , o r B U S D EV I C E R E S E T o c c u rred
29 01 powe r o n o c c u rred
29 02 S C S I bus reset o c c u rred
29 03 B U S D EV I C E R E S ET f u n c t i o n o c c u r re d
2A 00 p a rame ters c h a n g e d
2A 01 Mode p a r ameters c h a n g e d
2A 02 l og p a rame ters c h a n g ed
2A 03 r e s e rv a t i o n s preempted
2B 00 C O P Y c a n n o t exe c u t e s i n c e h o s t c a n n o t d i s c o n n e c t
2C 00 c omm a n d s e q u e n c e e r r o r
2F 00 comma n d s c l e a re d by a n o t h e r I n i t i a t o r
30 00 i n comp a t i b l e med i um i n s t a l l ed
30 01 c a n n o t r e a d med i um - u n k n own f o rmat
30 02 c a n n o t read med i um - i n comp a t i b l e f o rm a t
30 03 c l e an i n g c a rt r i d g e i n s t a l l ed
30 04 c a n n o t w r i t e med i um - u n k n own f o rm a t
30 05 c a n n o t w r i te med i um - i n c omp a t i b l e f o rm a t
30 06 c a n n o t form a t med i um - i n c omp a t i b l e med i um
30 07 c l e an i n g f a i l u r e
31 00 med i um form a t c o r r u p t e d
31 01 FO RMAT comm a n d fa i l e d
32 00 n o d e fe c t s p a re l o c a t i o n a v a i l a b l e
32 01 d e fect l i s t u p d a t e fa i l u r e
37 00 ro u n d e d p a rame t e r
39 00 s a v i n g p a r ameters n o t s u p p o r t e d
3A 00 m e d i um n o t p r e s e n t
3B OD m e d i um d e s t i n a t i o n e l eme n t f u l l
3B OE med i um s o u rce e l eme n t emp ty
3B 11 med i um m a g a z i n e n o t a c c e s s i b l e
3B 12 med i um m a g a z i n e remov e d
3B 13 med i um m a g a z i n e i n s e rted
3B 14 med i um m a g a z i n e l o c k e d
3B 15 med i um m a g a z i n e u n l o c ked
3D 00 i n v a l i d b i t s i n I D ENT I FY mes s a g e
3E 00 Log i c a l U n i t h a s n o t s e l f - co n f i g u re d y e t

SCSI Bench Reference Copycight • 1 989, t 992, 1 996 E N O L Publications


I
254 ADDITIONAL SENSE CODES

Sense Codes for Di rect Access Devices


NU MERIC ORDER (CONTI N U ED)

ASC A S CQ De s c r i p t i o n
3F 00 Target o p e r a t i n g con d i t i o n s h av e c h a n g e d
3F 01 m i crocode h a s been c h a n ge d
3F 02 c h a n g ed operat i n g d e f i n i t i o n
3F 03 I NQ U I RY d a t a h a s c h a n ge d
40 00 RAM fa i l u re ( s h o u l d u s e 40 n n )
40 NN d i a g n o s t i c fa i l ure o n comp o n e n t n n ( 8 0 h - f f h )
41 00 d a t a p a t h fa i l u re ( s h o u l d u s e 40 n n ) ·

42 00 power-on o r s e l f-test f a i l u re ( s h o u l d u s e 40 n n )
43 00 mes s ag e error
44 00 i n tern a l Target f a i l u r e
45 00 s e l e c t o r res e l ect f a i l u re
46 00 u n s u c c e s s f u l s o ft res e t
47 00 S C S I p a r i ty e r r o r
48 00 I n i t i a t o r d e t e c t e d e r r o r me s s a ge rec e i v e d
49 00 i nv a l i d mess age error
4A 00 COMMAND p h a s e e rror
48 00 DATA p h a s e e r ro r
4C 00 Log i c a l U n i t f a i l ed s e l f - c o n f i g u ra t i o n
40 NN tagged o v e r l a p p e d comm a n d s ( n n = queue tag )
4E 00 o v e r l a p p e d comm a n d s a t temp t e d
53 00 med i a l o a d o r ej e c t fa i l ed
53 02 med i um remo v a l p r e v e n t e d
55 01 sys t em b u f f e r f u l l
SA 00 operator req u e s t o r s t a t e c h a n g e i n p u t ( u n s p e c i f i ed )
SA 01 o p e r a t o r med i um remo v a l req u e s t
SA 02 o p e r a t o r s e l e c t e d wri t e p rotect
SA 03 operator s e l e c t e d wri te p e rm i t
58 00 l og e x c e p t i o n
58 01 t h re s h o l d c o n d i t i o n met
58 02 l og c o u n t e r a t m a x i mum
58 03 l og l i s t codes ex h a u s te d
5C 00 RP L s t a t u s c h a n g e
5C 01 s p i n d l e s syn c h ron i z e d
5C 02 s p i n d l e s n o t syn c h ron i z e d
50 00 fa i l u re pred i c t i o n t h re s h o l d exceeded
50 FF fa i l u re pred i c t i o n t h re s h o l d e x c e e d e d ( fa l s e )
5E 00 l ow powe r con d i t i on o n
5E 01 i d l e co n d i t i o n a c t i v a ted b y t i me r
5E 02 s t a n d by c o n d i t i o n a c t i v a t e d b y t i me r
5E 03 i d l e c o n d i t i on a c t i v a ted by comm a n d
5E 04 s t a n d by con d i t i o n a c t i v a ted b y comm a n d
65 00 vol tage faul t

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 ENDL Publications


ADDITIONAL SENSE CODES 255
Sense Codes for Sequ ential Access Devices
ALPHABETIC ORDER

Descri p t i o n A S C ASCQ
b eg i n n i n g-of-part i t i o n /med i um detected
oc 0 6
0 0 04
b l o c k n o t c ompres s ab l e
b l o c k s e q u e n c e error 14 04
B U S D EV I C E R E S ET f u n ct i o n o c c u rred 29 03
cannot d e c ompr e s s u s i n g de c l a red a l g o r i t hm 11 O E
c a n n o t format med i um - i n comp a t i b l e me d i um 30 0 6
c a n n o t read med i um - i n comp at i b l e form a t 3 0 02
c a n n o t read medi um - u n k n own form a t 30 0 1
c a n n o t wri t e med i um - i n comp at i b l e fo rma t 3 0 05
c a n n o t wri te med i um - u n k n own f o rmat 30 04
cartri d g e fa u l t 52 00
c h a n ged o p e r a t i n g d e f i n i t i o n 3 F 02
c l e an i n g c a rt r i d g e i n s t a l l ed 30 03
c l e a n i n g f a i l u re 30 07
c l e a n i n g req u e s te d 00 17
COMMAND p h a s e e r r o r 4A 0 0
command s e q u e n ce e rr o r 2C 00
oc 04
comma n d s c l e a red b y a n o t h e r I n i t i a t o r 2 F 00
compres s i on c h e c k m i s comp a re e rr o r
oc 05
COPY c a n n o t e x e c u t e s i n c e h o s t c a n n o t d i s co n n e c t 2B 00
d a t a expan s i o n o c c u rred d u r i n g comp re s s i o n
DATA p h a s e error 4B 00
d e -compre s s i o n CRC error 11 OD
d ecompre s s i o n e x c e p t i o n l o n g a l g o r i thm I D 71 00
d ecompres s i on except i o n s h ort a l g o r i thm I D o f n n 7 0 NN
d i a g n os t i c f a i l u r e o n compo n e n t n n ( 80 h - f f h ) 4 0 NN
e n d -of-d a t a detected 0 0 05
e n d -of-d a t a n o t fo u n d 1 4 03
e n d -of-part i t i on /med i um detected 00 02
erase fai l ure 5 1 00
error l og o v e r f l ow OA 0 0
error too l on g to c o r r e c t 11 02
exces s i v e wri t e e r r o r s 03 02
f a i l ure pred i c t i o n t h re s h o l d exceeded 50 00
f a i l u r e pred i c t i o n t h re s h o l d e x c e e d e d ( fa l s e ) 50 FF
f i l emark detected 00 01
f i l emark o r s e tma r k n o t fo u n d 14 02
head sel ect fau l t 09 04
I /0 p ro c e s s t e rm i n a ted 00 06
i d l e con d i t i on a c t i v a t e d by comm a n d 5 E 03
i d l e con d i t i o n a c t i v a ted b y t i me r 5E 0 1
i mport o r e x p o rt e l eme n t a c ce s s ed 28 01
i n compa t i b l e med i um i n s t a l l ed 30 0 0
i n comp l e t e b l o c k read 1 1 08

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 ENDL Publications


256 ADDITIO NAL SENSE CODES

Sense Codes f o r Sequential Access Devices


ALPHABETIC ORDER (CONTIN UED)

Descri p t i o n A S C ASCQ
I n i t i ator detected e r r o r mes s age rec e i v e d 48 00
I NQU I RY d a t a h a s c h a n ge d 3F 03
i n tern a l Target f a i l u re 44 00
i n v a l i d b i t s i n I D E NT I FY mes s age 30 00
i n v a l i d comm a n d o p e r a t i o n code 20 00
i n v a l i d e l emen t a d d r e s s 21 01
i nval i d fi e l d i n COB 24 00
i n v a l i d f i e l d i n p a rame t e r l i s t 26 00
i n v a l i d mes s ag e e r r o r 49 00
i n v a l i d re l e a s e o f a c t i v e p e r s i s t e n t r e s e rv a t i o n 26 04
l og c o u n t e r a t max i mum 5B 02
l og excep t i on 5B 00
l og l i s t codes e x h a u s te d 5B 03
l og p a rameters c h a n g e d 2A 02
Log i c a l B l o c k A d d re s s o u t o f r a n g e 21 00
Log i c a l Un i t comm u n i c a t i o n f a i l u re 08 00
Log i c a l Un i t comm u n i c a t i o n p a r i ty e r r o r 08 02
Log i c a l Un i t commu n i c a t i o n t i me-o u t 08 01
Log i c a l U n i t d o e s n o t re s p o n d to s e l e c t i on 05 00
Log i c a l Un i t f a i l ed s e l f-co n f i g u ra t i o n 4C 00
Log i c a l Un i t h a s n o t s e l f-con f i g u red yet 3E 00
Log i c a l U n i t i s i n p r o ce s s o f becom i n g ready 04 01
Log i c a l Un i t n o t re a dy , c a u s e n o t r e p o r t a b l e 04 00
Log i c a l U n i t n o t ready , FO RMAT i n p r o g r e s s 04 04
Log i c a l U n i t n o t ready , i n i t i a l i z i n g c omm a n d req u i red 04 02
Log i c a l U n i t not ready , m a n u a l i n terve n t i o n req u i red 04 03
Log i c a l U n i t not ready , o p e r a t i on i n p r o g re s s 04 07
Log i c a l Un i t n o t s u p ported 25 00
l ow power con d i t i on o n 5E 00
mec h a n i ca l po s i t i o n i n g e rr o r 15 01
med i a l o ad o r ej e c t f a i l ed 53 00
med i um d e s t i n a t i o n e l emen t f u l l 3B OD
med i um format c o r r u p ted 31 00
med i um m a g az i n e i n s e rted 3B 13
med i um m a g a z i n e l o c k e d 3B 14
med i um m a g a z i n e n o t a c c e s s i b l e 3B 11
med i um magaz i n e rem o v e d 3B 12
med i um m a g a z i n e u n l o c k e d 3B 15
med i um n o t pre s e n t 3A 00
med i um remo v a l p r e v e n t e d 53 02
med i um s o u rce e l eme n t emp ty 3B OE
mes s ag e error 43 00
m i c rocode h a s b e e n c h a n g e d 3F 01
m i s corrected e r r o r 11 OA

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 ENOL Publications


ADDITIONAL SENSE CODES 257
Sense Codes for Sequential Access D evices
ALPHABETIC ORDER (CONTIN U ED)

Descri pti on A S C ASCQ


M o d e pa rameters c h a n g e d 2A 01
m u l t i p l e p e r i p h e r a l d e v i ces s e l ected 07 00
m u l t i p l e read errors 11 03
n o ad d i t i o n a l sense i n fo rmat i o n 00 00
n o g a p fo u n d 11 09
n o wri t e c u rr e n t 03 01
n o t ready t o ready t r a n s i t i o n , med i um m a y h a v e c h a n g e d 28 00
opera t i o n i n p rog res s 00 16
operator med i um remo v a l req u e s t 5A 01
operator req u e s t o r s t a t e c h a n g e i n p u t ( u n s pe c i f i e d ) 5A 00
operator s e l e c t e d w r i t e p e rm i t 5A 03
operator s e l ected wri t e protect 5A 02
o v e r l apped comm a n d s a t tempted 4E 00
overwri te error o n u p d a t e i n p l a c e 2D 00
P a rameter L i s t Le n g t h e r r o r 1A 00
p a rameter n o t s u p p o r t e d 26 01
p a rameter v a l u e i n v a l i d 26 02
p a rameters c h a n g e d 2A 00
peri p h e r a l d ev i ce wri te fa u l t 03 00
pos i t i on e r ro r re l a t e d to t i m i n g 50 02
pos i t i on p a s t beg i n n i n g o f med i um 3B OC
pos i t i on i n g e rror d e t e c t e d by r e a d o f med i um 15 02
power o n o c c u rred 29 01
power on , r e s e t , o r BUS D EV I C E R E S ET o c c u rred 29 00
random po s i t i on i n g e r r o r 15 00
r e a d retri e s e x h a u s te d 11 01
record n o t fo u n d 14 01
record n o t fo u n d - d a t a a u to-rea l l o c a t e d 14 06
record n o t fo u n d - recommen d re a s s i gnme n t 14 05
recorded e n t i ty n o t fo u n d 14 00
recovered d a t a w i t h e r r o r correct i o n a p p l i e d 18 00
recovered d a t a wi t h n e g a t i v e h e a d o f f s e t 17 03
recovered d a t a wi t h n o e rror correct i o n a p p l i ed 17 00
recovered d a t a w i t h p o s i t i v e h e a d o f f s e t 17 02
recovered d a t a w i t h ret r i e s 17 01
repos i t i on error 3B 08
ro u n d e d p a ramet e r 37 00
reserv at i o n s preem p t e d 2A 03

SCSI Bench Reference Copyright I!;) 1 989, 1 992, 1 996 ENDL Publications
258 ADDITIONAL SENSE CODES

Sense Codes fo r Sequ ential Access Devices


ALPHABETIC ORDER (CONTI N U ED)

Des c r i p t i o n A S C AS CQ
s av i n g p a rame t e r s n o t s u p p o rted 39 00
S C S I bus reset o c c u rred 29 02
S C S I p a r i ty e r r o r 47 00
s e l e c t o r res e l e c t f a i l u re 45 00
s eq u en t i a l pos i t i o n i n g e r r o r 3B 00
setm a r k detected 00 03
s t a n d by c o n d i t i o n a c t i v a ted by comm a n d 5E 04
s t a n d by con d i t i o n a ct i v a ted b y t i me r 5E 02
syn c h ro n o u s d a t a t ra n s fe r error 1B 00
tagged o v e r l a p p e d comman d s ( n n = queue tag ) 40 NN
tape l e n g t h erro r 33 00
tape pos i t i o n e r r o r at beg i n n i n g - o f-med i um 3B 01
tape p os i t i o n e r r o r a t e n d -o f-med i um 3B 02
Target o p e ra t i n g con d i t i o n s h a v e c h a n g ed 3F 00
t h res h o l d con d i t i o n met 5B 01
t h re s h o l d parame t e r s not s u pported 26 03
t r a c k fo l l owi n g error 09 00
u n l oad t a p e fa i l u re 53 01
u n recovered read e r r o r 11 00
u n s u cces s f u l s o ft r e s e t 46 00
v o l tage f a u l t 65 00
warn i n g OB 00
warn i n g - s p e c i f i ed tem p e ra t u re e x c e e d e d OB 01
wri t e a p p e n d e rr o r 50 00
wri t e a p p e n d p os i t i on e r r o r
oc 0 0
50 01
wri t e e rror
wri t e protected 27 00

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N O L Publications


ADDITIONAL SENSE CODES 259
Sense Codes for Sequential Access Devices
N U M ERIC ORDER

ASC ASCQ Descri pti on


00 00 n o a dd i t i on a l s e n s e i n fo rma t i o n
00 01 f i l em a r k d e t e cted
00 02 e n d -o f - p a rt i t i o n /med i um d e t e c t e d
00 03 s e tm a r k d e t e cted
00 04 b eg i n n i n g -o f - p a rt i t i o n /med i um d e t e c t e d
00 05 e n d -of-d a t a d e tected
00 06 I /0 proce s s t e rm i n ated
00 16 o p e r a t i on i n p rog re s s
00 17 c l e a n i n g req u e s t e d
03 00 pe r i p h e r a l d e v i ce w r i te fa u l t
03 01 n o wri t e c u r r e n t
03 02 e x c e s s i v e w r i te e r r o r s
04 00 Log i c a l U n i t n o t ready , c a u s e n o t report a b l e
04 01 Log i c a l U n i t i s i n proces s o f becom i n g r e a dy
04 02 Log i c a l U n i t n o t ready , i n i t i a l i z i n g comm a n d req u i red
04 03 Log i c a l U n i t not ready , man u a l i n terven t i o n req u i red '
04 04 Log i c a l U n i t n o t ready , FORMAT i n prog re s s
04 07 Log i c a l U n i t n o t ready , o p e ra t i o n i n p r o g r e s s
05 00 Log i c a l U n i t d o e s n o t re s p o n d t o s e l e c t i o n
07 00 m u l t i p l e p e r i p h e r a l d e v i ces s e l e c t e d
08 00 Log i c a l U n i t commu n i c a t i o n f a i l u re
08 01 Log i c a l U n i t c omm u n i c a t i o n t i me - o u t
08 02 Log i c a l Un i t commu n i c a t i o n p a r i ty e r r o r
09 00 t r a c k fo l l ow i n g e r r o r
09 04 head sel ect faul t
OA 00 error l og o v e r f l ow
OB 00 w a rn i n g
oc
OB 01 warn i n g - s p e c i f i ed tempe rat u re exceeded
oc
00 wri t e e rror
oc
04 c om p re s s i o n check m i s comp a re e r r o r
oc
05 d a t a e x p a n s i o n o c c u rred d u r i n g comp res s i o n
06 b l o c k n o t com p re s s a b l e
11 00 u n recovered read e r r o r
11 01 read re t r i e s e x h a u s t e d
11 02 e r r o r too l o n g to correct
11 03 m u l t i p l e re a d errors
11 08 i n comp l e t e b l o c k r e a d
11 09 n o g a p fo u n d
11 OA m i s corrected e r r o r
11 OD d e - c ompres s i o n C R C e r r o r
11 OE c a n n ot d e comp re s s u s i n g d e c l a r e d a l g o r i thm

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N D L Publications


260 ADDITIONAL SENSE CODES

Sense Codes for Sequ ential Access Devices


NUMERIC ORDER (CONTI NUED)

ASC ASCQ Des c r i p t i o n


14 00 recorded e n t i ty n o t fo u n d
14 01 rec o rd n o t fo u n d
14 02 f i l ema r k or s e tm a r k n o t fo u n d
14 03 e n d -o f- d a t a n o t fo u n d
14 04 bl o c k sequence error
14 05 re c o rd n o t fo u n d - recomme n d re a s s i g nme n t
14 06 re c o rd n o t fo u n d - d a t a a u t o - re a l l o c a ted
15 00 ra n d om p o s i t i o n i n g e r r o r
15 01 mec h a n i ca l po s i t i o n i n g e r r o r
15 02 pos i t i o n i n g e r r o r detected by read o f med i um
17 00 rec o v e r e d d a t a w i t h n o e r r o r c o r r e c t i o n a p p l i e d
17 01 re c o v e red d a t a w i t h ret r i e s
17 02 rec o v e r e d d a t a w i t h po s i t i v e h e a d o f f s e t
17 03 re covered d a t a w i t h n e g a t i v e h e a d o f f s e t
18 00 re covered d a t a w i t h error c o r r e c t i o n a p p l i ed
1A 00 Parameter Li s t Len g t h e r r o r
18 00 syn c h ro n o u s d a t a t r a n s fe r e r r o r
20 00 i n v a l i d c omm a n d o p e ra t i o n c o d e
21 00 Log i c a l B l o c k Add res s o u t o f r a n g e
21 01 i n v a l i d e l eme n t a d d re s s
24 00 i nval i d fi el d i n CDB
25 00 Log i c a l U n i t n o t s u pported
26 00 i n v a l i d f i e l d i n p a rame t e r l i s t
26 01 p a rame ter n o t s u p p o rted
26 02 pa rame ter v a l u e i n v a l i d
26 03 t h r e s h o l d pa rame ters n o t s u p p o r t e d
26 04 i n v a l i d re l e a s e o f a c t i v e p e rs i s t e n t r e s e r v a t i o n
27 00 wri te protected
28 00 n o t ready to ready tran s i t i o n , med i um may have c h a n g e d
28 01 i mport o r export e l eme n t a c c e s s e d
29 00 power o n , reset , o r B U S D E V I C E R E S ET o c c u r red
29 01 powe r o n o c c u rred
29 02 S C S I bus reset o c c u rred
29 03 BUS D EV I C E R E S ET f u n ct i o n o c c u r r e d
2A 00 p a rame ters c h a n g ed
2A 01 Mode p a r ame ters c h a n g e d
2A 02 l og p a rame ters c h a n g e d
2A 03 res e rv a t i o n s p reempted
28 00 COPY c a n n o t e x e c u t e s i n c e h o s t c a n n o t d i s c o n n e c t
2C 00 comm a n d s e q u e n c e e r r o r
20 00 o v e rwr i t e e r r o r o n u p d a t e i n p l a c e
.2F 00 comm a n d s c l e a red b y a n o t h e r I n i t i a t o r

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 E N O L Publications


ADDITIONAL SENSE CODES 261
Sense Codes for Sequ ential Access Devices
N U M ERIC ORDER (CO NTI N U ED)

ASC ASCQ Descri pti on


30 00 i n comp a t i b l e med i um i n s t a l l ed
30 01 c a n n ot read med i um - u n k n own format
30 02 c a n n ot read med i um - i n comp a t i b l e format
30 03 c l e a n i n g c a r t r i d g e i n s t a l l ed
30 04 c a n n o t w r i t e med i um - u n k n own format
30 05 c a n n o t w r i te med i um - i n c omp a t i b l e fo rmat
30 06 c a n n o t f o rmat med i um - i n c ompa t i b l e med i um
30 07 c l e a n i n g f a i l u re
31 00 med i um f o rmat c o r r u pted
33 00 t a p e l e n g t h error
37 00 ro u n d e d p a ramete r
39 00 s av i n g p a rame ters n o t s u pported
3A 00 med i um n o t present
38 00 s e q u e n t i a l po s i t i o n i n g e r r o r
38 01 t a p e p o s i t i o n e r r o r a t beg i n n i n g -of-med i um
38 02 t a p e p o s i t i o n e r r o r a t end-o f-med i um
oc
38 08 repos i t i o n e rror
38 p o s i t i o n past beg i n n i n g o f med i um
38 OD med i um d e s t i n at i o n e l emen t f u l l
38 OE med i um s o u r c e e l emen t empty
38 11 m e d i um m a g a z i n e n o t a c c e s s i b l e
38 12 med i um m a g a z i n e remo ved
38 13 med i um m a g a z i n e i n s e rted
38 14 med i um m a g a z i n e l o c ked
38 15 med i um m a g a z i n e u n l oc ked
3D 00 i n v a l i d b i t s i n I D ENT I FY mes s ag e
3E 00 Log i c a l U n i t h a s n o t s e l f-con f i g u red y e t
3F 00 T a rget o p e r a t i n g c o n d i t i o n s h a v e c h a n g e d
3F 01 m i c rocode h a s been c h a n g e d
3F 02 c h anged operati ng defi n i t i on
3F 03 I NQ U I RY d a t a h a s c h a n g ed
40 NN d i a g n o s t i c f a i l u re o n c omp o n e n t n n ( 8 0 h - f f h )
43 00 mes s a g e e r r o r
44 00 i n t e rn a l T a rg e t f a i l u re
45 00 s e l ect o r re s e l e c t f a i l ure
46 00 u n s u c c e s s f u l s o ft r e s e t
47 00 S C S I p a r i ty e r r o r
48 00 I n i t i a t o r detected e r r o r m e s s a g e rece i v e d
49 00 i n v a l i d mes s a g e e r r o r
4A 00 COMMAN D p h a s e e r r o r
48 00 DATA p h a s e e r r o r
4C 00 Log i c a l U n i t f a i l ed s e l f-con f i g u rat i o n
4D NN t a g g e d o v e r l apped comm a n d s ( n n = queue tag )
4E 00 o v e r l a p p e d c omma n d s at tempted

SCSI Bench Reference Copyright © 1 989, 1 992, 1 996 ENOL Publications

I
262 ADD ITIONAL SENSE CODES

Sense Codes for Sequential Access Devices


NUMERIC ORDER (CONTI NU ED)

ASC ASCQ Des c r i p t i o n


50 00 wri t e a p p e n d e rror
50 01 w r i t e append po s i t i o n error
50 02 p os i t i o n e r r o r re l ated t o t i m i n g
51 00 e r a s e f a i l u re
52 00 c a r t r i d g e fa u l t
53 00 med i a l o a d o r ej e c t fa i l ed
53 01 u n l o a d t a p e fa i l u r e
53 02 med i um remo v a l p re v e n t e d
SA 00 o p e r a t o r r eq u e s t o r s t a t e c h a n g e i n p u t ( u n s p e c i f i ed )
SA 01 o p e r a t o r med i um remo v a l req u e s t
SA 02 operator sel ected wri te protect
5A 03 o p e r a t o r s e l e c t e d w r i t e p e rm i t
58 00 l og e x c e p t i o n
58 01 t h re s h o l d c o n d i t i on met
58 02 l og c o u n t e r a t m a x i mum
58 03 l og l i s t c o d e s e x h a u s te d
50 00 f a i l u re p r ed i c t i o n t h re s h o l d e x c e e d e d
50 FF fa i l u re p r ed i c t i o n t h re s h o l d e x c e e d e d ( f a l s e )
5E 00 l ow powe r c o n d i t i o n o n
5E 01 i d l e c o n d i t i o n a c t i v a t e d by t i me r
5E 02 s t a n d by c o n d i t i o n a c t i v a t e d b y t i me r
5E 03 i d l e c o n d i t i o n a c t i v a t e d b y c omm a n d
5E 04 s t a n d by c o n d i t i o n a c t i v a t e d b y c omm a n d
65 00 v o l t a g e fa u l t
70 NN d e c ompres s i o n e x c e p t i o n s h o rt a l g o r i t hm I D o f n n
71 00 decom p re s s i o n e x c e p t i o n l o n g a l g o r i t hm I D

SCS I Bench Reference Copyright © 1 989, 1 992, 1 996 E N O L Publications


ADDITIONAL SENSE CODES 263
Sense Codes for P rocessor Devices
ALPHABETIC ORDER

Des cri p t i on A S C ASCQ


B U S D EV I C E R E S ET f u n c t i on o c c u rred 29 03
c h a n ged operat i n g d e f i n i t i o n 3F 02
COMMAND p h a s e e r r o r 4A 00
command s e q u e n ce e r r o r 2C 00
commands c l e a red b y a n o t h e r I n i t i a t o r 2F 00
C O P Y c a n n o t e x e c u t e s i n ce h o s t c a n n o t d i s c o n n e c t 2B 00
DATA p h a s e error 4B 00
d i agnos t i c f a i l u re o n comp o n e n t n n ( 8 0 h - ff h ) 40 NN
error l og o v e r f l ow OA 00
f a i l u re pred i c t i o n t h re s h o l d e x c e e d e d 5D 00
fa i l u re pred i c t i o n t h re s h o l d exceeded ( fa l s e ) 50 FF
I /0 proce s s t e rm i n a ted 00 06
i d l e con d i t i o n a c t i v a t e d by comm a n d 5E 03
i d l e con d i t i o n a c t i v a ted b y t i me r 5E 01
I n i t i a t o r detected e r r o r me s s ag e rece i v ed 48 00
I NQU I RY data h a s c h a n g e d 3F 03
i n t e rn a l T a rg e t f a i l u re 44 00
i n v a l i d b i t s i n I D E NT I FY mes s a g e 3D 00
i n v a l i d comm a n d o p e r a t i o n c o d e 20 00
i nval i d fi e l d i n COB 24 00
i n v a l i d f i e l d i n p a r am e t e r l i s t 26 00
i n v a l i d mes s age e r r o r 49 00
i n v a l i d re l e a s e o f a c t i ve pers i s t e n t re s e r v a t i o n 26 04
l og cou n te r a t m a x i mum 58 02
l og except i on 58 00
l og l i s t codes e x h a u s ted 58 03
Log i c a l U n i t f a i l ed s e l f-co n f i g u ra t i o n 4C 00
Log i c a l U n i t h a s n o t s e l f-co n f i g u red yet 3E 00
Log i c a l U n i t i s i n p r o c e s s o f becomi n g ready 04 01
Log i c a l U n i t n o t ready , c a u s e n o t re p o r t a b l e 04 00
Log i c a l U n i t n o t ready , i n i t i a l i z i n g comm a n d req u i red 04 02
Log i c a l U n i t not ready , man u a l i n terv e n t i o n re q u i red 04 03
Log i c a l U n i t n o t ready , o p e r a t i o n i n p r o g r e s s 04 07
Log i c a l U n i t n o t s u p p o rted 25 00
l ow powe r c o n d i t i o n o n 5E 00
me s s age error 43 00
m i c rocode has been c h a n g e d 3F 01
n o ad d i t i o n a l s e n s e i n fo rma t i o n 00 00
n o t ready t o ready t r a n s i t i o n , med i um m ay h av e c h a n g e d 28 00
operat i o n i n p r o g r e s s 00 16
operator req u e s t o r s t ate c h a n g e i n p u t ( u n s pe c i f i ed ) SA 00
o v e r l apped c omman d s a t tempted