SCSI devices occupy (i.e. respond to) one address on the SCSI bus. Generally, the SCSI device provides a means (e.g. switches, jumpers) to select one of the eight available addresses (0 through 7). This address is used during bus arbitration and selection or reselection of SCSI devices. Each device on the SCSI bus is assigned a unique address.
Normally, the SCSI device address is set when the system is configured and it remains static thereafter. Some systems and devices provide vendor- specific means to alter this address at other times.
Each target has one or more logical units, beginning with logical unit zero. There is a maximum of eight logical units. These logical units are usually mapped directly to peripheral devices, but they may be a portion of a peripheral device or may comprise multiple peripheral devices.
An initiator can determine whether a target implements a logical unit by issuing an INQUIRY command and examining the returned peripheral qualifier and peripheral device type.
The concept of a logical unit is not defined for an initiator. (An SCSI device may implement both the initiator role and the target role. In this case logical unit(s) are defined only for the target role.)
An optional feature of the SCSI architecture permits each target to have one or more target routines, beginning with target routine number zero. There is a maximum of eight target routines. These target routines are processes that execute directly on the target and are not associated with a particular logical unit or peripheral device. Target routines are addressed using the LUNTAR bit of the IDENTIFY message (see 6.6.7).
Target routines are principally intended to return information about the target and the only valid commands are INQUIRY and REQUEST SENSE.
The INQUIRY command may be used by a system to determine the configuration of the SCSI bus. Target devices respond with information that includes their type and standard level and may include the vendor's identification, model number and other useful information. It is recommended that SCSI targets be capable of returning this information (or whatever part of it that is available) upon completing power-on initialization. An SCSI device may take longer to get certain portions of this information, especially if it retrieves the information from the medium.
Whenever a contingent allegiance condition (see 7.6) is established, the initiator that received the error should issue a REQUEST SENSE command to receive the sense data describing what caused the contingent allegiance condition. If the initiator issues some other command, the sense data is lost.
The SEND DIAGNOSTIC command provides a means to request the target to perform a self test. While the test is target specific, the means of requesting the test is standardized and the response is simply GOOD status if all is well or CHECK CONDITION status if the test fails.
The SEND DIAGNOSTIC command also provides other powerful features when used in conjunction with the RECEIVE DIAGNOSTIC RESULTS command, but this capability is optional.
The TEST UNIT READY command is useful in that it allows an initiator to poll a logical unit until it is ready without the need to allocate space for returned data. It is especially useful to check cartridge status of logical units with removable media. Targets are expected to respond promptly to indicate the current status of the device (i.e. a target should avoid lengthy disconnections in an attempt to respond with GOOD status).
The operation codes for commands that apply to all device types are listed in table 31.
A save control bit (Save) of zero indicates that the target shall not save the operating definition. A Save bit of one indicates that the target shall save the operating definition to non-volatile memory.
The definition parameter field is defined in table 33.
The parameter data length field specifies the length in bytes of the parameter data that shall be transferred from the initiator to the target. A parameter data length of zero indicates that no data shall be transferred. This condition shall not be considered as an error. Parameter data lengths greater than zero indicate the number of bytes of parameter data that shall be transferred.
The parameter data is vendor-specific.
The CHANGE DEFINITION command causes one of the operating definition modifications listed below:
60 The final two mondifications listed above may result in incompatibilities if other initiators are operated below the SCSI-2 level. The operating definition is modified after successful completion of the command. A target shall consider the command successfully completed when it detects the assertion of the ACK signal for the COMMAND COMPLETE message. The initiator should verify the new operating definition by issuing an INQUIRY command requesting the implemented operating definition page (see 8.3.4.1).
It is permissible for an SCSI-2 device that has its definition changed to an SCSI-1 device to accept a CHANGE DEFINITION command.
If the CHANGE DEFINITION command is not executed successfully for any reason, the operating definition shall remain the same as it was before the CHANGE DEFINITION command was attempted. If it is impossible to return to the previous operating definition, a unit attention condition shall be generated by the target.
After a power-on condition or a hard RESET condition, the target shall set its initial operating definition to the last saved value, if saving is implemented, or its default value, if saving is not implemented.
This command functions in the same manner as the COPY command, except that the data from the source is compared on a byte-by-byte basis with the data from the destination. The parameter list transferred to the target is the same as for the COPY command. This parameter list contains the information to identify the logical units involved in the comparison and the length of the comparison. (See 8.2.3 for additional information about the COPY command.)
If the comparison is unsuccessful, the command shall be terminated with CHECK CONDITION status and the sense key shall be set to MISCOMPARE. The remaining fields in the sense data shall be set as documented in the COPY command.
The pad bit (8.2.3.7) is used in conjunction with the cat bit (8.2.3.7) in the segment descriptors to define what action should be taken when a segment of the copy does not fit exactly into an integer number of destination blocks.
The parameter list length field specifies the length in bytes of the parameters that shall be sent during the DATA OUT phase of the command. A parameter list length of zero indicates that no data shall be transferred. This condition shall not be considered as an error.
The COPY parameter list (see table 36) begins with a four-byte header that contains the COPY function code and priority. Following the header is one or more segment descriptors.
The COPY function code field defines a specific format for the segment descriptors. The COPY function codes are defined in table 37. A target need not support all function codes for its device type.
The priority field of the COPY parameter list establishes the relative priority of this COPY command to other commands being executed by the same target. All other commands are assumed to have a priority of 1. Priority 0 is the highest priority, with increasing values indicating lower priorities.
The segment descriptor formats are determined by the COPY function code. The segment descriptor format used for block devices (i.e. write-once, CD- ROM, optical-memory, and direct-access devices) shall be the same. The segment descriptor format used for stream devices (i.e. printer, processor, communications, and sequential-access devices) shall be the same. Thus a copy operation from a write-once device to a printer device uses the same segment descriptor format as a copy operation from a direct-access device to a sequential-access device (see table 37). The segment descriptor formats are described in 8.2.3.3 through 8.2.3.6. A maximum of 256 segment descriptors are permitted. The segment descriptors are identified by ascending numbers beginning with zero.
Two classes of exception conditions may occur during execution of a COPY command. The first class consists of those exception conditions detected by the SCSI device that received the COPY command and is managing the execution of the command. These conditions include parity errors while transferring the COPY command and status byte, invalid parameters in the COPY command, invalid segment descriptors, and inability of the SCSI device controlling the COPY functions to continue operating. In the event of such an exception condition, the SCSI device managing the COPY shall:
The second class of errors consists of exception conditions detected by the SCSI device transferring data at the request of the SCSI device managing the transfer. The SCSI device managing the COPY command detects exception conditions by receiving CHECK CONDITION status from one of the SCSI devices it is managing. It then shall recover the sense data associated with the exception condition.
The SCSI device managing the COPY command may also be the source or destination SCSI device (or both). It shall distinguish between a failure of the management of the COPY and a failure of the data transfer being requested. It shall then create the appropriate sense data internally.
After recovering the sense data associated with the detected error, the SCSI device managing the COPY command shall:
The first byte of the command-specific information field shall specify the starting byte number, relative to the first byte of sense data, of an area that contains (unchanged) the source logical unit's status byte and sense data. A zero value indicates that no status byte or sense data is being returned for the source logical unit.
The second byte of the command-specific information field shall specify the starting byte number, relative to the first byte of sense data, of an area that contains (unchanged) the destination logical unit's status byte and sense data. A zero value indicates that no status byte or sense data is being returned for the destination logical unit.
The format for the segment descriptors for COPY transfers between block and stream devices is specified in table 38. This format is required for COPY function codes 00h or 01h. The segment descriptor may be repeated up to 256 times within the parameter list length specified in the command descriptor block.
The source address and source LUN fields specify the SCSI bus ID and logical unit of the device to copy the data from for this segment of the COPY command. The destination address and destination LUN fields specify the SCSI bus ID and logical unit to copy the data to for this segment of the COPY command. Some SCSI devices may not support third-party COPY in which the copying SCSI device is not the source or destination device. Some SCSI devices only support COPY within the SCSI device and not to other SCSI devices. If an unsupported COPY operation is requested, the command shall be terminated with CHECK CONDITION status and the sense key shall be set to ILLEGAL REQUEST with an additional sense code of INVALID FIELD IN PARAMETER LIST (see 8.2.3.1).
A catenate (Cat) bit (optional) of one indicates that the COPY manager shall catenate the last source block of a segment with the first source block of the next segment if the last source block does not end exactly at the end of the destination block. The definition of a cat bit of zero depends on the setting of the pad bit in the command descriptor block (see 8.2.3.7).
The stream device block-length field specifies the block length to be used on the stream device logical unit during this segment of the COPY command. If the SCSI device managing the COPY knows this block length is not supported, the command shall be terminated with CHECK CONDITION status and the sense key shall be set to ILLEGAL REQUEST with an additional sense code of INVALID FIELD IN PARAMETER LIST. If the block length is found to be invalid while executing a read or write operation to the stream device, the command shall be terminated with CHECK CONDITION status and the sense key shall be set to COPY ABORTED (see 8.2.3.2).
The block device number of blocks field specifies the number of blocks in the current segment to be copied. A value of zero indicates that no blocks shall be transferred in this segment.
The block device logical block address field specifies the starting logical block address on the logical unit for this segment.
The format for the segment descriptors for COPY transfers among block devices is specified in table 39. This format is required for COPY function code 02h. The segment descriptor may be repeated up to 256 times within the parameter list length specified in the command descriptor block.
See 8.2.3.3 for definitions of the source address, the source LUN, the destination address, the destination LUN, and CAT fields.
A destination count (DC) bit of zero indicates that the number of blocks field refers to the source logical unit. A DC bit of one indicates that the number of blocks field refers to the destination logical unit.
The number of blocks field specifies the number of blocks to be transferred to or from (depending on the DC bit) the block device during this segment. A value of zero indicates that no blocks shall be transferred.
The source logical block address field specifies the starting logical block address on the source block device.
The destination logical block address field specifies the starting logical block address on the destination block device.
The format for the segment descriptors for COPY transfers among stream devices is specified by table 40. This format is required for COPY function code 03h. The segment descriptor may be repeated up to 256 times within the parameter list length specified in the command descriptor block.
See 8.2.3.3 for definitions of the source address, the source LUN, the destination address, the destination LUN, and CAT fields.
A destination count (DC) bit of zero indicates that the number of blocks field refers to the source logical unit. A DC bit of one indicates that the number of blocks field refers to the destination logical unit.
The source block length field specifies the block-length of the source device for this segment of the COPY. A zero in this field indicates variable block-length. For non-zero values, this field shall match the logical unit's actual block-length.
If block-length mismatches are detected prior to the beginning of the read operation by the SCSI device managing the COPY, the command shall be terminated with CHECK CONDITION status. The sense key shall be set to ILLEGAL REQUEST and the additional sense code shall be set to INVALID FIELD IN PARAMETER LIST (see 8.2.3.1).
If the mismatches are detected during the read operation by the COPY manager, the command shall be terminated with CHECK CONDITION status. The sense key shall be set to COPY ABORTED (see 8.2.3.2). and the additional sense code shall be set to INVALID FIELD IN PARAMETER LIST.
The destination block-length field specifies the block length to be used on the destination logical unit during the COPY. Destination block length mismatches are handled in an analogous manner as source block length mismatches.
The number of blocks field specifies the number of blocks to be transferred to or from (depending on the DC bit) the device during this segment. A value of zero indicates that no blocks shall be transferred.
The format for the segment descriptors for image COPY transfers between sequential-access devices is specified in table 41. This format is required for COPY function code 04h. The segment descriptor may be repeated up to 256 times within the parameter list length specified in the command descriptor block.
See 8.2.3.3 for definitions of the source address, the source LUN, the destination address, the destination LUN, and CAT fields.
The image mode COPY command copies an exact image of the source device medium to the destination device medium, beginning at their current positions. The copy function terminates when the source device:
A count field of zero indicates that the COPY command shall not terminate due to any number of consecutive filemarks or setmarks. Other error or exception conditions (e.g. early-warning end-of-partition on the destination device) may cause the COPY command to terminate prior to completion. In such cases, it is not possible to calculate a residue, so the information field in the sense data shall be set to zero.
4s Copies with unequal block lengths
When copying data between two devices with unequal block lengths, it is possible for the last source block to not completely fill the last destination block for one or more segments in the COPY command. Two optional bits are defined to assist in controlling the copy manager's actions in this circumstance. The Pad bit (in the command descriptor block) and the Cat bit (in each applicable segment descriptor) are defined in table 42.
A byte check (BytChk) bit of zero causes a medium verification to be performed with no data comparison. A BytChk bit of one causes a byte-by- byte comparison of data written on the destination medium and the data transferred from the source medium. If the comparison is unsuccessful for any reason, the copy manager shall return CHECK CONDITION status with the sense key set to MISCOMPARE. The remaining fields in the sense data shall be set as documented in the COPY command.
An enable vital product data (EVPD) bit of one specifies that the target shall return the optional vital product data specified by the page code field. If the target does not support vital product data and this bit is set to one, the target shall return CHECK CONDITION status with the sense key set to ILLEGAL REQUEST and an additional sense code of INVALID FIELD IN CDB.
An EVPD bit of zero specifies that the target shall return the standard INQUIRY data. If the page code field is not zero, the target shall return CHECK CONDITION status with the sense key set to ILLEGAL REQUEST and an additional sense code of INVALID FIELD IN CDB.
The page code field specifies which page of vital product data information the target shall return (see 8.3.4).
The INQUIRY command shall return CHECK CONDITION status only when the target cannot return the requested INQUIRY data.
If an INQUIRY command is received from an initiator with a pending unit attention condition (i.e. before the target reports CHECK CONDITION status), the target shall perform the INQUIRY command and shall not clear the unit attention condition (see 7.9).
66 The INQUIRY data may change as the target executes its initialization sequence or in response to a CHANGE DEFINITION command. For example, the target may contain a minimum command set in its non-volatile memory and may load its final firmware from the device when it becomes ready. After it has loaded the firmware, it may support more options and therefore return different supported options information in the INQUIRY data.
The standard INQUIRY data (see table 45) contains 36 required bytes, followed by a variable number of vendor-specific parameters. Bytes 56 through 95, if returned, are reserved for future standardization.
The peripheral qualifier and peripheral device-type fields identify the device currently connected to the logical unit. If the target is not capable of supporting a device on this logical unit, this field shall be set to 7Fh (peripheral qualifier set to 011b and peripheral device type set to 1Fh). The peripheral qualifier is defined in table 46 and the peripheral device type is defined in table 47.
A removable medium (RMB) bit of zero indicates that the medium is not removable. A RMB bit of one indicates that the medium is removable.
The device-type modifier field was defined in SCSI-1 to permit vendor- specific qualification codes of the device type. This field is retained for compatibility with SCSI-1. Targets that do not support this field should return a value of zero.
The usage of non-zero code values in the ISO version and ECMA version fields are defined by the International Organization for Standardization and the European Computer Manufacturers Association, respectively. A zero code value in these fields shall indicate that the target does not claim compliance to the ISO version of SCSI (ISO 9316) or the ECMA version of SCSI (ECMA-111). It is possible to claim compliance to more than one of these SCSI standards.
The ANSI-approved version field indicates the implemented version of this International Standard and is defined in table 48.
The asynchronous event notification capability (AENC) bit indicates that the device supports the asynchronous event notification capability as defined in 7.5.5.
A terminate I/O process (TrmIOP) bit of one indicates that the device supports the TERMINATE I/O PROCESS message as defined in 6.6.22. A value of zero indicates that the device does not support the TERMINATE I/O PROCESS message.
A response data format value of zero indicates the INQUIRY data format is as specified in SCSI-1. A response data format value of one indicates compatibility with some products that were designed prior to the development of this standard (i.e. CCS). A response data format value of two indicates that the data shall be in the format specified in this International Standard. Response data format values greater than two are reserved.
The additional length field shall specify the length in bytes of the parameters. If the allocation length of the command descriptor block is too small to transfer all of the parameters, the additional length shall not be adjusted to reflect the truncation.
A relative addressing (RelAdr) bit of one indicates that the device supports the relative addressing mode for this logical unit. If this bit is set to one, the linked command (Linked) bit shall also be set to one; since relative addressing can only be used with linked commands. A RelAdr bit of zero indicates the device does not support relative addressing for this logical unit.
A wide bus 32 (Wbus32) bit of one indicates that the device supports 32- bit wide data transfers. A value of zero indicates that the device does not support 32-bit wide data transfers.
A wide bus 16 (Wbus16) bit of one indicates that the device supports 16- bit wide data transfers. A value of zero indicates that the device does not support 16-bit wide data transfers.
A synchronous transfer (Sync) bit of one indicates that the device supports synchronous data transfer. A value of zero indicates the device does not support synchronous data transfer.
A linked command (Linked) bit of one indicates that the device supports linked commands for this logical unit. A value of zero indicates the device does not support linked commands for this logical unit.
A command queuing (CmdQue) bit of one indicates that the device supports tagged command queuing for this logical unit. A value of zero indicates the device does not support tagged command queuing for this logical unit.
A soft reset (SftRe) bit of zero indicates that the device responds to the RESET condition with the hard RESET alternative (see 6.2.2.1). A SftRe bit of one indicates that the device responds to the RESET condition with the soft RESET alternative (see 6.2.2.2).
ASCII data fields shall contain only graphic codes (i.e. code values 20h through 7Eh). Left-aligned fields shall place any unused bytes at the end of the field (highest offset) and the unused bytes shall be filled with space characters (20h). Right-aligned fields shall place any unused bytes at the start of the field (lowest offset) and the unused bytes shall be filled with space characters (20h).
The vendor identification field contains eight bytes of ASCII data identifying the vendor of the product. The data shall be left aligned within this field.
The product identification field contains sixteen bytes of ASCII data as defined by the vendor. The data shall be left-aligned within this field.
The product revision level field contains four bytes of ASCII data as defined by the vendor. The data shall be left-aligned within this field.
Implementation of vital product data is optional. The information returned consists of configuration data (e.g. vendor identification, product identification, model, serial number), manufacturing data (e.g. plant and date of manufacture), field replaceable unit data and other vendor- or device-specific data.
The initiator requests the vital product data information by setting the EVPD bit to one and specifying the page code of the desired vital product data (see 8.3.4). If the target does not implement the requested page it shall return CHECK CONDITION status. The a sense key shall be set to ILLEGAL REQUEST and the additional sense code shall be set to INVALID FIELD IN CDB.
70 This International Standard defines a format that allows device- independent initiator software to display the vital product data returned by the INQUIRY command. For example, the initiator may display the data associated for the field replaceable unit returned in the sense data. The contents of the data may be vendor-specific; therefore, it may not be usable without detailed information about the device.
71 This International Standard does not define the location or method of storing the vital product data. The retrieval of the data may require completion of initialization operations within the device that may induce delays before the data is available to the initiator. Time-critical requirements are an implementation consideration and are not addressed in this International Standard.
A parameter code reset (PCR) bit of one and a parameter list length of zero shall cause all implemented parameters to be set to the target- defined default values (e.g. zero). If the PCR bit is one and the parameter list length is greater than zero, the command is terminated with CHECK CONDITION status. The sense key shall be set to ILLEGAL REQUEST and the additional sense code shall be set to INVALID FIELD IN CDB. A PCR bit of zero specifies that the log parameters shall not be reset.
A save parameters (SP) bit of one indicates that after performing the specified LOG SELECT operation the target shall save to non-volatile memory all parameters identified as savable by the DS bit in the log page (see 8.3.2). A SP bit of zero specifies that parameters shall not be saved.
Saving of log parameters is optional and indicated for each log parameter by the DS bit in the page. Log parameters may be saved at vendor-specific times subject to the TSD bit (see 8.3.2) in the log parameter. If the target does not implement saved parameters for any log parameter and the SP bit is set to one, the command shall be terminated with CHECK CONDITION status. The sense key shall be set to ILLEGAL REQUEST, and the additional sense code set to INVALID FIELD IN CDB.
It is not an error to set the SP bit to one and to set the DS bit of a log parameter to one. In this case, the parameter value for that log parameter is not saved.
The page control (PC) field defines the type of parameter values to be selected. The page control field is defined in table 50.
The current cumulative values may be updated by the target or by the initiator using the LOG SELECT command to reflect the cumulative number of events experienced by the target. Fields in the parameter control byte (see 8.3.2) of each log parameter control the updating and saving of the current cumulative parameters.
The target shall set the current threshold parameters to the default threshold values in response to a LOG SELECT command with the PC field set to 10b and the parameter list length field set to zero.
The target shall set all cumulative parameters to their default values in response to a LOG SELECT command with the PC field set to 11b and the parameter list length field set to zero.
The current threshold value can only be modified by the initiator via the LOG SELECT command. If the initiator attempts to change current threshold values that are not available or not implemented for that log parameter, then the target shall terminate the LOG SELECT command with CHECK CONDITION status, the sense key set to ILLEGAL REQUEST, and the additional sense code set to INVALID FIELD IN PARAMETER LIST. The saving of current threshold parameters and the criteria for the current threshold being met are controlled by bits in the parameter control byte (see 8.3.2).
The parameter list length field specifies the length in bytes of the parameter list that shall be transferred from the initiator to the target during the DATA OUT phase. A parameter list length of zero indicates that no pages shall be transferred. This condition shall not be considered an error. If the initiator sends page codes or parameter codes within the parameter list that are reserved or not implemented by the target, the target shall terminate the LOG SELECT command with CHECK CONDITION status. The sense key shall be set to ILLEGAL REQUEST and the additional sense code set to INVALID FIELD IN PARAMETER LIST.
If a parameter list length results in the truncation of any log parameter, the target shall terminate the command with CHECK CONDITION status. The sense key shall be set to ILLEGAL REQUEST and the additional sense code set to INVALID FIELD IN CDB.
The initiator should send pages in ascending order by page code value if multiple pages are sent during a DATA OUT phase. If multiple log parameters within a page are sent during the DATA OUT phase, they should be sent in ascending order by parameter code value. The target shall return CHECK CONDITION status if the initiator sends pages out of order or parameter codes out of order. The sense key shall be set to ILLEGAL REQUEST and the additional sense code set to INVALID FIELD IN PARAMETER LIST.
The target may provide independent sets of log parameters for each logical unit or for each combination of logical units and initiators. If the target does not support independent sets of log parameters and any log parameters are changed that affect other initiators, then the target shall generate a unit attention condition for all initiators except the one that issued the LOG SELECT command (see 7.9). This unit attention condition is returned with an additional sense code of LOG PARAMETERS CHANGED.
If the initiator sends a log parameter that is not supported by the target, the target shall terminate the command with CHECK CONDITION status, set the sense key to ILLEGAL REQUEST, and set the additional sense code to INVALID FIELD IN PARAMETER LIST.
The parameter pointer control (PPC) bit controls the type of parameters requested from the target:
Saving parameters is an optional function of the LOG SENSE command. If the target does not implement saving log parameters and if the save parameters (SP) bit is one, then the target shall return CHECK CONDITION status, set the sense key to ILLEGAL REQUEST, and set the additional sense code to INVALID FIELD IN CDB.
An SP bit of zero indicates the target shall perform the specified LOG SENSE command and shall not save any log parameters. If saving log parameters is implemented, an SP bit of one indicates that the target shall perform the specified LOG SENSE command and shall save all log parameters identified as savable by the DS bit (see 8.3.2) to a non-volatile, vendor-specific location.
The page control (PC) field defines the type of parameter values to be selected (see 8.2.6 for the definition of the page control field). The parameter values returned by a LOG SENSE command are determined as follows:
The page code field identifies which page of data is being requested (see 8.3.2). If the page code is reserved or not implemented, the target shall terminate the command with CHECK CONDITION status. The sense key shall be set to ILLEGAL REQUEST with the additional sense code set to INVALID FIELD IN CDB.
The parameter pointer field allows the initiator to request parameter data beginning from a specific parameter code to the maximum allocation length or the maximum parameter code supported by the target, whichever is less. If the value of the parameter pointer field is larger than the largest available parameter code that can be returned by the target on the specified page, the target shall terminate the command with CHECK CONDITION status. The sense key shall be set to ILLEGAL REQUEST and the additional sense code shall be set to INVALID FIELD IN CDB.
Log parameters within the specified log page shall be transferred in ascending order according to parameter code.
If a target supports saved pages, it may save only one copy of the page for each logical unit and have it apply to all initiators, or it may save separate copies for each initiator for each logical unit. If separate copies are saved, the target shall maintain separate current values for each I_T_L nexus. Pages that are common to all initiators are not required to have multiple copies.
If an initiator sends a MODE SELECT command that changes any parameters applying to other initiators, the target shall generate a unit attention condition for all initiators except the one that issued the MODE SELECT command (see 7.9). The target shall set the additional sense code to MODE PARAMETERS CHANGED.
The target may provide for independent sets of parameters for each attached logical unit or for each combination of logical unit and initiator. If independent sets of parameters are implemented, and a third party reservation is requested, the target transfers the set of parameters in effect for the initiator of the RESERVE command to the parameters used for commands from the third party device (see 9.2.12.3 and 10.2.10.1).
A page format (PF) bit of zero indicates that the MODE SELECT parameters are as specified in SCSI-1, (i.e. all parameters after the block descriptors are vendor-specific). A PF bit of one indicates that the MODE SELECT parameters following the header and block descriptor(s) are structured as pages of related parameters and are as specified in this standard.
A save pages (SP) bit of zero indicates the target shall perform the specified MODE SELECT operation, and shall not save any pages. An SP bit of one indicates that the target shall perform the specified MODE SELECT operation, and shall save to a non-volatile vendor-specific location all the savable pages including any sent during the DATA OUT phase. The SP bit is optional, even when mode pages are supported by the target. Pages that are saved are identified by the parameter savable bit that is returned in the page header by the MODE SENSE command (see 8.3.3). If the PS bit is set in the MODE SENSE data then the page shall be savable by issuing a MODE SELECT command with the SP bit set. If the target does not implement saved pages and the SP bit is set to one, the command shall be terminated with CHECK CONDITION status. The sense key shall be set to ILLEGAL REQUEST, and the additional sense code set to INVALID FIELD IN CDB.
The parameter list length field specifies the length in bytes of the mode parameter list that shall be transferred from the initiator to the target during the DATA OUT phase. A parameter list length of zero indicates that no data shall be transferred. This condition shall not be considered as an error.
The target shall terminate the command with CHECK CONDITION status if the parameter list length results in the truncation of any mode parameter header, mode parameter block descriptor(s), or mode page. The sense key shall be set to ILLEGAL REQUEST, and the additional sense code shall be set to PARAMETER LIST LENGTH ERROR.
The mode parameter list for the MODE SELECT and MODE SENSE commands is defined in 8.3.3. Parts of each mode parameter list are uniquely defined for each device-type.
The target shall terminate the MODE SELECT command with CHECK CONDITION status, set the sense key to ILLEGAL REQUEST, set the additional sense code to INVALID FIELD IN PARAMETER LIST, and shall not change any mode parameters for the following conditions:
If the initiator sends a value for a mode parameter that is outside the range supported by the target and rounding is implemented for that mode parameter, the target may either:
A target may alter any mode parameter in any mode page (even those reported as non-changeable) as a result of changes to other mode parameters.
The target validates the non-changeable mode parameters against the current values that existed for those mode parameters prior to the MODE SELECT command.
Targets that implement the MODE SELECT(10) command shall also implement the MODE SENSE(10) command.
A disable block descriptors (DBD) bit of zero indicates that the target may return zero or more block descriptors in the returned MODE SENSE data (see 8.3.3), at the target's discretion. A DBD bit of one specifies that the target shall not return any block descriptors in the returned MODE SENSE data.
The page control (PC) field defines the type of mode parameter values to be returned in the mode pages. The page control field is defined in table 55.
The page code specifies which mode page(s) to return. Mode page code usage is defined in table 56.
An initiator may request any one or all of the supported mode pages from a target. If an initiator issues a MODE SENSE command with a page code value not implemented by the target, the target shall return CHECK CONDITION status and shall set the sense key to ILLEGAL REQUEST and the additional sense code to INVALID FIELD IN CDB.
A page code of 3Fh indicates that all mode pages implemented by the target shall be returned to the initiator. If the mode parameter list exceeds 256 bytes for a MODE SENSE(6) command or 65 536 bytes for a MODE SENSE(10) command, the target shall return CHECK CONDITION status and the sense key shall be set to ILLEGAL REQUEST and the additional sense code set to INVALID FIELD IN CDB.
Mode page 00h, if implemented, shall be returned after all other mode pages.
77 If the PC field and the page code field are both set to zero the target should return a mode parameter header and block descriptor (if applicable). This provides for compatibility with existing SCSI-1 initiators. The mode parameter list for all device types for MODE SELECT and MODE SENSE is defined in 8.3.3. Parts of the mode parameter list are specifically defined for each device type. See subclause three of each peripheral device type for further information.
79 The initiator should issue a MODE SENSE command with the PC field set to 1h and the page code field set to 3Fh to determine which mode pages are supported, which mode parameters within the mode pages are changeable, and the supported length of each mode page prior to issuing any MODE SELECT commands.
The MODE SENSE(10) command (see table 57) provides a means for a target to report parameters to the initiator. It is a complementary command to the MODE SELECT(10) command. If the MODE SELECT(10) command is implemented the MODE SENSE(10) command shall be implemented. See the MODE SENSE(6) command for a description of the fields in this command.
The function of this command and the meaning of fields within the command descriptor block depend on the contents of the mode field. The mode field is defined in table 59.
The four-byte READ BUFFER header (see table 60) is followed by data bytes from the target's data buffer.
The buffer capacity field specifies the total number of data bytes available in the target's data buffer. This number is not reduced to reflect the allocation length; nor is it reduced to reflect the actual number of bytes written using the WRITE BUFFER command. Following the READ BUFFER header, the target shall transfer data from its data buffer. The target terminates the DATA IN phase when allocation length bytes of header plus data have been transferred or when all available header and buffer data have been transferred to the initiator, whichever is less.
The buffer offset field contains the byte offset within the specified buffer from which data shall be transferred from. The initiator should conform to the offset boundary requirements returned in the READ BUFFER descriptor (see 8.2.12.4). If the target is unable to accept the specified buffer offset, it shall return CHECK CONDITION status, shall set the sense key to ILLEGAL REQUEST, and set the additional sense code to ILLEGAL FIELD IN CDB.
The offset boundary field returns the boundary alignment within the selected buffer for subsequent WRITE BUFFER and READ BUFFER commands. The value contained in the offset boundary field shall be interpreted as a power of two.
The value contained in the buffer offset field of subsequent WRITE BUFFER and READ BUFFER commands should be a multiple of 2^offset boundary as shown in table 62.
The buffer capacity field shall return the size of the selected buffer in bytes.
84 Although diagnostic software is generally device-specific, this command and the SEND DIAGNOSTIC command provide a means to isolate the operating system software from the device-specific diagnostic software. Hence, the operating system can remain device-independent. This also allows diagnostic software to be transferred more easily to other operating systems. See 8.3.1 for RECEIVE DIAGNOSTIC RESULTS page format definitions.
The sense data:
If the target has no other sense data available to return, it shall return a sense key of NO SENSE and an additional sense code of NO ADDITIONAL SENSE INFORMATION.
The sense data shall be preserved by the target fo the initiator until retrieved by a REQUEST SENSE command or until the receipt of any other I/O process for the same I_T_x nexus. Sense data shall be cleared upon receipt of any subsequent I/O process (including REQUEST SENSE) to the same I_T_x nexus.
The target shall return CHECK CONDITION status for a REQUEST SENSE command only to report exception conditions specific to the command itself. For example:
If a recovered error occurs during the execution of the REQUEST SENSE command, the target shall return the sense data with GOOD status. If a target returns CHECK CONDITION status for a REQUEST SENSE command, the sense data may be invalid.
Targets shall be capable of returning eighteen bytes of data in response to a REQUEST SENSE command. If the allocation length is eighteen or greater, and a target returns less than eighteen bytes of data, the initiator should assume that the bytes not transferred would have been zeros had the target returned those bytes. Initiators can determine how much sense data has been returned by examining the allocation length parameter in the command descriptor block and the additional sense length in the sense data. Targets shall not adjust the additional sense length to reflect truncation if the allocation length is less than the sense data available.
The sense data format for error codes 70h (current errors) and 71h (deferred errors) are defined in table 65. Error code values of 72h to 7Eh are reserved. Error code 7Fh is for a vendor-specific sense data format. Targets shall implement error code 70h; implementation of error code 71h is optional. Error code values of 00h to 6Fh are not defined by this International Standard and their use is not recommended.
A valid bit of zero indicates that the information field is not as defined in this International Standard. A valid bit of one indicates the information field contains valid information as defined in this International Standard. Targets shall implement the valid bit.
The segment number field contains the number of the current segment descriptor if the REQUEST SENSE command is in response to a COPY, COMPARE, or COPY AND VERIFY command. Up to 256 segments are supported, beginning with segment zero.
The filemark bit is mandatory for sequential-access devices, and this bit is reserved for all other device types. A filemark bit of one indicates that the current command has read a filemark or setmark. The additional sense code field may be used to indicate whether a filemark or setmark was read. Reporting of setmarks is optional and indicated by the Rsmk bit for sequential-access devices in the configuration parameters page (see 10.3.3.1).
The end-of-medium (EOM) bit is mandatory for sequential-access and printer devices, and this bit is reserved for all other device types. An EOM bit of one indicates that an end-of-medium condition (end-of-partition, beginning-of-partition, out-of-paper, etc.) exists. For sequential-access devices, this bit indicates that the unit is at or past the early-warning if the direction was forward, or that the command could not be completed because beginning-of-partition was encountered if the direction was reverse.
An incorrect length indicator (ILI) bit of one usually indicates that the requested logical block length did not match the logical block length of the data on the medium.
The sense key, additional sense code and additional sense code qualifier provide a hierarchy of information. The intention of the hierarchy is to provide a top-down approach for an initiator to determine information relating to the error and exception conditions. The sense key provides generic categories in which error and exception conditions can be reported. Initiators would typically use sense keys for high level error recovery procedures. Additional sense codes provide further detail describing the sense key. Additional sense code qualifiers add further detail to the additional sense code. The additional sense code and additional sense code qualifier can be used by initiators where sophisticated error recovery procedures require detailed information describing the error and exception conditions.
The sense key field is mandatory and indicates generic information describing an error or exception condition. The sense keys are defined in 8.2.14.3.
The contents of the information field is device-type or command specific and is defined within the appropriate clause for the device type or command of interest. Targets shall implement the information field. Unless specified otherwise, this field contains:
The additional sense length field indicates the number of additional sense bytes to follow. If the allocation length of the command descriptor block is too small to transfer all of the additional sense bytes, the additional sense length is not adjusted to reflect the truncation.
The command-specific information field contains information that depends on the command that was executed. Further meaning for this field is defined within the command description. The command-specific information field is mandatory if the target supports any of the following commands: COPY, COMPARE, COPY AND VERIFY, SEARCH DATA, and REASSIGN BLOCKS.
The additional sense code (ASC) field indicates further information related to the error or exception condition reported in the sense key field. Targets shall support the additional sense code field. Support of the additional sense codes not explicitly required by this International Standard is optional. A list of additional sense codes is in 8.2.14.3. If the target does not have further information related to the error or exception condition, the additional sense code is set to NO ADDITIONAL SENSE INFORMATION.
The additional sense code qualifier (ASCQ) indicates detailed information related to the additional sense code. The additional sense code qualifier is optional. If the error or exception condition is reportable by the device, the value returned shall be as specified in 8.2.14.3. If the target does not have detailed information related to the error or exception condition, the additional sense code qualifier is set to zero.
Non-zero values in the field replaceable unit code field are used to define a device-specific mechanism or unit that has failed. A value of zero in this field shall indicate that no specific mechanism or unit has been identified to have failed or that the data is not available. The field replaceable unit code field is optional. The format of this information is not specified by this standard. Additional information about the field replaceable unit may be available in the ASCII information page (see 8.3.4.2), if supported by the target.
The sense-key specific bytes are described in 8.2.14.1, below.
The additional sense bytes field may contain command specific data, peripheral device specific data, or vendor-specific data that further defines the nature of the CHECK CONDITION status.
If the sense key field is set to ILLEGAL REQUEST and the SKSV bit is set to one, the sense-key specific field shall be as defined as shown in table 66. The field pointer field indicates which illegal parameters in the command descriptor block or the data parameters are in error.
A command data (C/D) bit of one indicates that the illegal parameter is in the command descriptor block. A C/D bit of zero indicates that the illegal parameter is in the data parameters sent by the initiator during the DATA OUT phase.
A bit pointer valid (BPV) bit of zero indicates that the value in the bit pointer field is not valid. A BPV bit of one indicates that the bit pointer field specifies which bit of the byte designated by the field pointer field is in error. When a multiple-bit field is in error, the bit pointer field shall point to the most-significant (left-most) bit of the field.
The field pointer field indicates which byte of the command descriptor block or of the parameter data was in error. Bytes are numbered starting from zero, as shown in the tables describing the commands and parameters. When a multiple-byte field is in error, the pointer shall point to the most- significant (left-most) byte of the field.
If the sense key is RECOVERED ERROR, HARDWARE ERROR or MEDIUM ERROR and if the SKSV bit is one, the sense-key specific field shall be as shown in table 67.
The actual retry count field returns implementation-specific information on the actual number of retries of the recovery algorithm used in attempting to recover an error or exception condition.
If the sense key is NOT READY and the SKSV bit is one, the sense-key specific field shall be as shown in table 68. These fields only apply to the FORMAT UNIT command with the Immed bit set to one.
The progress indication field is a percent complete indication in which the returned value is the numerator that has 65 536 (10000h) as its denominator. The progress indication shall based upon the total format operation including any certification or initialization operations.
Error code 71h (deferred error) indicates that the CHECK CONDITION status returned is the result of an error or exception condition that occurred during execution of a previous command for which GOOD status has already been returned. Such commands are associated with use of the immediate bit, with some forms of caching, and with multiple command buffering. Targets that implement these features are required to implement deferred error reporting.
The deferred error indication may be sent at a time selected by the target through the asynchronous event notification process (see 7.5.5) if AEN is supported by both the initiator and target.
If AEN is not supported, the deferred error may be indicated by returning CHECK CONDITION status to the appropriate initiator as described below. The subsequent execution of a REQUEST SENSE command shall return the deferred error sense information.
If an I/O process terminates with CHECK CONDITION status and the subsequent sense data returns a deferred error that I/O process shall not have been executed. After the target detects a deferred error condition on a logical unit, it shall return a deferred error according to the rules described below:
The additional sense codes and additional sense code qualifiers are defined in table 71.
A page format (PF) bit of one specifies that the SEND DIAGNOSTIC parameters conform to the page structure as specified in this International Standard. The implementation of the PF bit is optional. See 8.3.1 for the definition of diagnostic pages. A PF bit of zero indicates that the SEND DIAGNOSTIC parameters are as specified in SCSI-1 (i.e. all parameters are vendor-specific).
A self-test (SelfTest) bit of one directs the target to complete its default self-test. If the self-test successfully passes, the command shall be terminated with GOOD status; otherwise, the command shall be terminated with CHECK CONDITION status and the sense key shall be set to HARDWARE ERROR.
A self-test bit of zero requests that the target perform the diagnostic operation specified in the parameter list. The diagnostic operation might or might not require a target to return data that contains diagnostic results. If the return of data is not required, the return of GOOD status indicates successful completion of the diagnostic operation. If the return of data is required, the target shall either:
The device off-line (DevOfL) and unit off-line (UnitOfL) bits are generally set by operating system software, while the parameter list is prepared by diagnostic application software. These bits grant permission to perform vendor-specific diagnostic operations on the target that may be visible to attached initiators. Thus, by preventing operations that are not enabled by these bits, the target assists the operating system in protecting its resources.
A UnitOfL bit of one grants permission to the target to perform diagnostic operations that may affect the user accessible medium on the logical unit, e.g. write operations to the user accessible medium, or repositioning of the medium on sequential access devices. The implementation of the UnitOfl bit is optional. A UnitOfL bit of zero prohibits any diagnostic operations that may be detected by subsequent I/O processes.
A DevOfl bit of one grants permission to the target to perform diagnostic operations that may affect all the logical units on a target, e.g. alteration of reservations, log parameters, or sense data. The implementation of the DevOfl bit is optional. A DevOfL bit of zero prohibits diagnostic operations that may be detected by subsequent I/O processes.
The parameter list length field specifies the length in bytes of the parameter list that shall be transferred from the initiator to the target. A parameter list length of zero indicates that no data shall be transferred. This condition shall not be considered an error. If the specified parameter list length results in the truncation of one or more pages (PF bit set to one) the target shall return CHECK CONDITION status with a sense key of ILLEGAL REQUEST and an additional sense code of INVALID FIELD IN CDB.
See note 83 under the RECEIVE DIAGNOSTIC RESULTS command in 8.2.13.
Table 74 defines the preferred responses to the TEST UNIT READY command. Higher-priority responses (e.g. BUSY or RESERVATION CONFLICT) are also permitted.
This command shall not alter any medium of the target when the data mode or the combined header and data mode is specified.
The function of this command and the meaning of fields within the command descriptor block depend on the contents of the mode field. The mode field is defined in table 76.
Data are written to the target buffer starting at the location specified by the buffer offset. The initiator should conform to the offset boundary requirements returned in the READ BUFFER descriptor. If the target is unable to accept the specified buffer offset, it shall return CHECK CONDITION status and it shall set the sense key to ILLEGAL REQUEST with an additional sense code of INVALID FIELD IN CDB.
The parameter list length specifies the maximum number of bytes that shall be transferred during the DATA OUT phase to be stored in the specified buffer beginning at the buffer offset. The initiator should attempt to ensure that the parameter list length plus the buffer offset does not exceed the capacity of the specified buffer. (The capacity of the buffer can be determined by the buffer capacity field in the READ BUFFER descriptor.) If the buffer offset and parameter list length fields specify a transfer that would exceed the buffer capacity, the target shall return CHECK CONDITION status and shall set the sense key to ILLEGAL REQUEST with an additional sense code of INVALID FIELD IN CDB.
A SEND DIAGNOSTIC command with a PF bit of one specifies that the SEND DIAGNOSTIC parameter list consists of zero or more diagnostic pages and that the data returned by the subsequent RECEIVE DIAGNOSTIC RESULTS command shall use the diagnostic page format (see table 77) described in this International Standard.
Each diagnostic page defines a function or operation that the target shall perform. The page contains a page header followed by the analysis data that is formatted according to the page code specified in the previous SEND DIAGNOSTIC command.
Targets that implement diagnostic pages are only required to accept a single diagnostic page per command.
The page code field identifies which diagnostic page is being sent or returned. The page codes are defined in table 78.
The page length field specifies the length in bytes of the diagnostic parameters that follow this field. If the initiator sends a page length that results in the truncation of any parameter, the target shall terminate the command with CHECK CONDITION status. The sense key shall be set to ILLEGAL REQUEST with the additional sense code set to INVALID FIELD IN PARAMETER LIST.
The diagnostic parameters are defined for each page code. The diagnostic parameters within a page may be defined differently in a SEND DIAGNOSTIC command than in a RECEIVE DIAGNOSTIC RESULTS command.
The supported diagnostics page (see table 79) returns the list of diagnostic pages implemented by the target. This page shall be implemented if the target implements the page format option of the SEND DIAGNOSTIC and RECEIVE DIAGNOSTIC RESULTS commands.
The definition of this page for the SEND DIAGNOSTIC command includes only the first four bytes. If the page length field is not zero, the target shall terminate the SEND DIAGNOSTIC command with CHECK CONDITION status. The sense key shall be set to ILLEGAL REQUEST with an additional sense code of INVALID FIELD IN PARAMETER LIST. This page instructs the target to make available the list of all supported diagnostic pages to be returned by a subsequent RECEIVE DIAGNOSTIC RESULTS command.
The definition of this page for the RECEIVE DIAGNOSTIC RESULTS command includes the list of diagnostic pages supported by the target.
The page length field specifies the length in bytes of the following supported page list.
The supported page list field shall contain a list of all diagnostic page codes implemented by the target in ascending order beginning with page code 00h.
Each log page begins with a four-byte page header followed by zero or more variable-length log parameters defined for that page. The log page format is defined in table 80.
The page code field identifies which log page is being transferred.
The page length field specifies the length in bytes of the following log parameters. If the initiator sends a page length that results in the truncation of any parameter, the target shall terminate the command with CHECK CONDITION status. The sense key shall be set to ILLEGAL REQUEST with the additional sense code set to INVALID FIELD IN PARAMETER LIST.
Most log pages contain one or more special data structures called log parameters (see table 81). Log parameters may be data counters that record a count of a particular event (or events) or log parameters may be list parameters (strings) which contain a description of a particular event.
Each log parameter begins with a four-byte parameter header followed by one or more bytes of parameter value data.
The parameter code field identifies the log parameter is being transferred for that log page.
The DU, DS, TSD, ETC, TMC, and LP fields are collectively referred to as the parameter control byte. These fields are described below.
For cumulative log parameter values (indicated by the PC field of the LOG SELECT and LOG SENSE command descriptor block), the disable update (DU) bit is defined as follows:
The DU bit is not defined for threshold values (indicated by the PC field of the LOG SENSE command descriptor block) nor for list parameters (indicated by the LP bit). The target shall ignore the value of any DU bits in a LOG SELECT command.
A disable save (DS) bit of zero indicates that the target supports saving for that log parameter. The target shall save the current cumulative or the current threshold parameter value (depending on the value in the PC field of the command descriptor block) in response to a LOG SELECT or LOG SENSE command with an SP bit of one. A DS bit of one indicates that the target does not support saving that log parameter in response to a LOG SELECT or LOG SENSE command with an SP bit of one.
A target save disable (TSD) bit of zero indicates that the target provides a target-defined method for saving log parameters. This implicit saving operation shall be done frequently enough to insure that the cumulative parameter values retain statistical significance (i.e. across power cycles). A TSD bit of one indicates that either the target does not provide a target-defined method for saving log parameters or the target- defined method has been disabled by the initiator.
An enable threshold comparison (ETC) bit of one indicates that a comparison to the threshold value is performed whenever the cumulative value is updated. An ETC bit of zero indicates that a comparison is not performed. The value of the ETC bit is the same for cumulative and threshold parameters.
The threshold met criteria (TMC) field (see table 82) defines the basis for comparison of the cumulative and threshold values. The TMC field is valid only if the ETC bit is one. The value of the TMC field is the same for cumulative and threshold parameters.
If the ETC bit is one and the result of the comparison is true, a unit attention condition shall be generated for all initiators. When reporting the unit attention condition, the target shall set the sense key to UNIT ATTENTION and set the additional sense code to THRESHOLD CONDITION MET.
The list parameter (LP) bit indicates the format of the log parameter. If an initiator attempts to set the value of the LP bit to a value other than the one returned for the same parameter in the LOG SENSE command, the target shall terminate the command with CHECK CONDITION status. The sense key shall be set to ILLEGAL REQUEST with the additional sense code set to INVALID FIELD IN PARAMETER LIST.
An LP bit of zero indicates that the parameter is a data counter. Data counters are associated with one of more events; the data counter is updated whenever one of these events occurs by incrementing of the counter value. If each data counter has associated with it a target-defined maximum value. Upon reaching this maximum value, the data counter shall not be incremented (i.e. it does not wrap). When a data counter reaches its maximum value, the target shall set the associated DU bit to one. If the data counter is at or reaches its maximum value during the execution of a command, the target shall complete the command. If the command completes correctly (except for the data counter being at its maximum value) and if the RLEC bit of the control mode page (8.3.3.1) is set to one; then the target shall terminate the command with CHECK CONDITION status and set the sense key to RECOVERED ERROR with the additional sense code set to LOG COUNTER AT MAXIMUM.
An LP bit of one indicates that the parameter is a list parameter. List parameters are not counters and thus the ETC and TMC fields shall be set to zero. A list parameter is a string of ASCII graphic codes (i.e. code values 20h through 7Eh).
If more than one list parameter is defined in a single log page, the following rules apply to assigning parameter codes:
The parameter length field specifies the length in bytes of the following parameter value. If the initiator sends a parameter length value that results in the truncation of the parameter value, the target shall terminate the command with CHECK CONDITION status. The sense key shall be set to ILLEGAL REQUEST with the additional sense code set to INVALID FIELD IN PARAMETER LIST.
If the initiator sends a log parameter value that is outside the range supported by the target, and rounding is implemented for that parameter, the target may either:
When any counter in a log page reaches its maximum value, incrementing of all counters in that log page shall cease until reinitialized by the initiator via a LOG SELECT command. If the RLEC bit of the control mode page is one, then the target shall report the exception condition.
The page code assignments for the log pages are listed in table 83.
The buffer over-run/under-run page (page code 01h) defines 24 data counters that may be used to record the number of buffer over-runs or under-runs for the logical unit. A target that implements this page may implement one or more of the defined data counters.
A buffer over-run or under-run can occur when an initiator does not transmit data to or from the target's buffer fast enough to keep up with reading or writing the media. This can be caused by a slow transfer rate across the SCSI bus or by a high SCSI bus utilization that prevents reconnection by the target. A buffer over-run condition can occur during a read operation when a buffer full condition prevents continued transfer of data from the media to the buffer. A buffer under-run condition can occur during a write operation when a buffer empty condition prevents continued transfer of data to the media from the buffer. Most devices incur a delay at this point while the media is repositioned.
Table 84 defines the parameter code field for the buffer over-run/under- run counters.
The parameter code field for buffer over-run/under-run counters is a 16- bit value comprised of eight reserved bits, a three-bit count basis field (see table 85), a four-bit cause field (see table 86), and a one-bit type field. These are concatenated to determine the value of the parameter code for that log parameter. For example, a counter for parameter code value of 0023h specifies a count basis of 001b; a cause of 0001b; and a type of 1b; this counter is incremented once per command that experiences an over-run due to the SCSI bus being busy.
The count basis field defines the criteria for incrementing the counter. The following criteria are defined:
The cause field indicates the reason that the over-run or under-run occurred. The following causes are defined in table 86.
The type field indicates whether the counter records under-runs or over- runs. A value of zero specifies a buffer under-run condition and a value of one specifies a buffer over-run condition.
The counters contain the total number of times buffer over-run or under- run conditions have occurred since the last time the counter was cleared. The counter shall be incremented for each occurrence of an under-run or over-run condition and can be incremented more than once for multiple occurrences during the execution of a single command.
This clause defines the optional error counter pages for write errors (page code 02h), read errors (page code 03h), read reverse errors (page code 04h) and verify errors (page code 05h). The log page format is defined near the beginning of 8.3.2. A page can return one or more log parameters this record events defined by the parameter codes.
Table 87 defines the parameter codes for the error counter pages. Support of each log parameter is optional.
Log page (07h) provides for a number of error-event records using the list parameter format of the log page. The number of these error-event records supported, n, is device-specific. Each error-event record contains device-specific diagnostic information for a single error encountered by the device. The parameter code associated with error-event record indicates the relative time at which the error occurred. A higher parameter code indicates that the error event occurred later in time.
The content of the parameter value field of each log parameter is an ASCII character string which may describe the error event. The exact contents of the character string is not defined by this International Standard.
When the last supported parameter code is used by an error-event record, the recording on this page of all subsequent error information shall cease until one or more of the list parameters with the highest parameter codes have been reinitialized. If the RLEC bit of the control mode page (8.3.3.1) is set to one, the target shall return CHECK CONDITION status with the sense key set to RECOVERED ERROR and the additional sense code set to LOG LIST CODES EXHAUSTED. Alternatively, the target may report this condition via asynchronous event notification (see 7.5.5).
This page (page code 06h) provides for summing the occurrences of recoverable error events other than write, read, or verify failures. No discrimination among the various types of events is provided by parameter code (see table 88). Vendor-specific discrimination may be provided through the vendor-specific parameter codes.
The supported log page (see table 89) returns the list of log pages implemented by the target. Targets that implement the LOG SENSE command shall implement this log page.
This page is not defined for the LOG SELECT command. This log page returns the list of supported log pages for the specified logical unit.
The page length field specifies the length in bytes of the following supported page list.
The supported page list field shall contain a list of all log page codes implemented by the target in ascending order beginning with page code 00h.
The mode parameter list shown in table 90 contains a header, followed by zero or more block descriptors, followed by zero or more variable-length pages. Parameter lists are defined for each device type.
The six-byte command descriptor block parameter header is defined in table 91.
The ten-byte command descriptor block parameter header is defined in table 92.
When using the MODE SENSE command, the mode data length field specifies the length in bytes of the following data that is available to be transferred. The mode data length does not include itself. When using the MODE SELECT command, this field is reserved.
Medium types are unique for each device type. Refer to the mode parameters clause of the specific device type for definition of these values. Some device types reserve this field.
The device specific parameter is unique for each device type. Refer to the mode parameters clause of the specific device type for definition of this field. Some device types reserve all or part of this field.
The block descriptor length specifies the length in bytes of all the block descriptors. It is equal to the number of block descriptors times eight, and does not include pages or vendor-specific parameters, if any, that may follow the last block descriptor. A block descriptor length of zero indicates that no block descriptors are included in the mode parameter list. This condition shall not be considered an error.
The mode parameter block descriptor is shown in table 93.
Block descriptors specify some of the medium characteristics for all or part of a logical unit. Support for block descriptors is optional. Each block descriptor contains a density code field, a number of blocks field, and a block length field. Block descriptor values are always current (i.e. saving is not supported). A unit attention condition (see 7.9) shall be generated when any block descriptor values are changed.
The density code field is unique for each device type. Refer to the mode parameters clause of the specific device type for definition of this field. Some device types reserve all or part of this field.
The number of blocks field specifies the number of logical blocks on the medium to which the density code and block length fields apply. A value of zero indicates that all of the remaining logical blocks of the logical unit shall have the medium characteristics specified.
99 The number of remaining logical blocks may be unknown for some device types. The block length specifies the length in bytes of each logical block described by the block descriptor. For sequential-access devices, a block length of zero indicates that the logical block size written to the medium is specified by the transfer length field in the command descriptor block (see 10.2.4 and 10.2.14)
The mode page format is defined in table 94.
Each mode page contains a page code, a page length, and a set of mode parameters. The page codes are defined in this subclause and in the mode parameter sub-clauses of the specific device type.
When using the MODE SENSE command, a parameters savable (PS) bit of one indicates that the mode page can be saved by the target in a non-volatile, vendor-specific location. A PS bit of zero indicates that the supported parameters cannot be saved. When using the MODE SELECT command, the PS bit is reserved.
The page code field identifies the format and parameters defined for that mode page. Some page codes are defined as applying to all device types and other page codes are defined for the specific device type.
When using the MODE SENSE command, if page code 00h (vendor-specific page) is implemented, the target shall return that page last in response to a request to return all pages (page code 3Fh). When using the MODE SELECT command, this page should be sent last.
The page length field specifies the length in bytes of the mode parameters that follow. If the initiator does not set this value to the value that is returned for the page by the MODE SENSE command, the target shall terminate the command with CHECK CONDITION status. The sense key shall be set to ILLEGAL REQUEST with the additional sense code set to INVALID FIELD IN PARAMETER LIST. The target is permitted to implement a mode page that is less than the full page length defined in this International Standard, provided no field is truncated and the page length field correctly specifies the actual length implemented.
The mode parameters for each page are defined in the following subclauses, or in the mode parameters sub-clause for the specific device type. Mode parameters not implemented by the target shall be set to zero.
Table 95 defines the mode pages that are applicable to all device types that include the MODE SELECT and MODE SENSE commands.
The control mode page (see table 96) provides controls over several SCSI-2 features that are applicable to all device types such as tagged queuing, extended contingent allegiance, asynchronous event notification, and error logging.
A report log exception condition (RLEC) bit of one specifies that the target shall report log exception conditions as described in 8.3.2. A RLEC bit of zero specifies that the target shall not report log exception conditions.
The queue algorithm modifier field (see table 97) specifies restrictions on the algorithm used for reordering commands that are tagged with the SIMPLE QUEUE TAG message.
A value of zero in this field specifies that the target shall order the actual execution sequence of the commands with a SIMPLE QUEUE tag such that data integrity is maintained for that initiator. This means that, if the transmission of new commands is halted at any time, the final value of all data observable on the medium shall have exactly the same value as it would have if the commands had been executed in the same received sequence without tagged queuing. The restricted reordering value shall be the default value.
A value of one in this field specifies that the target may reorder the actual execution sequence of the commands with a SIMPLE QUEUE tag in any manner. Any data integrity exposures related to command sequence order are explicitly handled by the initiator through the selection of appropriate commands and queue tag messages.
A queue error management (QErr) bit of zero specifies that remaining suspended I/O process shall resume after the contingent allegiance condition or extended contingent allegiance condition (see 7.8).
A QErr bit of one specifies all remaining suspended I/O processes shall be aborted after the contingent allegiance condition or extended contingent allegiance condition (see 7.8). A unit attention condition (see 7.9) shall be generated for each initiator that had a suspended I/O process aborted except for the initiator that had the contingent allegiance condition or extended contingent allegiance condition. The target shall set the additional sense code to TAGGED COMMANDS CLEARED BY ANOTHER INITIATOR.
A disable queuing (DQue) bit of zero specifies that tagged queuing shall be enabled if the target supports tagged queuing. A DQue bit of one specifies that tagged queuing shall be disabled. Any queued commands for that I_T_x nexus shall be aborted. Any subsequent queue tag message received shall be rejected with a MESSAGE REJECT message and the I/O process shall be executed as an untagged command (see 7.8.1).
An enable extended contingent allegiance (EECA) bit of one specifies that extended contingent allegiance is enabled (see 7.7). An EECA bit of zero specifies that extended contingent allegiance is disabled.
The RAENP, UAAENP, and EAENP bits enable specific events to be reported via the asynchronous event notification protocol. When all three bits are zero, the target shall not create asynchronous event notifications.
A ready AEN permission (RAENP) bit of one specifies that the target may issue an asynchronous event notification upon completing its initialization sequence instead of generating a unit attention condition. A RAENP bit of zero specifies that the target shall not issue an asynchronous event notification upon completing its initialization sequence.
A unit attention AEN permission (UAAENP) bit of one specifies that the target may issue an asynchronous event notification instead of creating a unit attention condition upon detecting an event that would cause a unit attention condition (other than upon completing an initialization sequence). A UAAENP bit of zero specifies that the target shall not issue an asynchronous event notification instead of creating a unit attention condition.
An error AEN permission (EAENP) bit of one specifies that the target may issue an asynchronous event notification upon detecting a deferred error condition instead of waiting to report the deferred error on the next command. An EAENP bit of zero specifies that the target shall not report deferred error conditions via an asynchronous event notification.
The ready AEN holdoff period field specifies the minimum time in milliseconds after the target starts its initialization sequence that it shall delay before attempting to issue an asynchronous event notification. This value may be rounded up as defined in 7.5.4.
The disconnect-reconnect page (see table 98) provides the initiator the means to tune the performance of the SCSI bus.
The buffer full ratio field indicates to the target, on read operations, how full the buffer should be prior to attempting a reselection. Targets that do not implement the requested ratio should round down to the nearest implemented ratio as defined in 7.5.4.
The buffer empty ratio field indicates to the target, on write operations, how empty the buffer should be prior to attempting a reselection. Targets that do not implement the requested ratio should round down to the nearest implemented ratio as defined in 7.5.4.
The buffer full and buffer empty ratios are numerators of a fractional multiplier that has 256 as its denominator. A value of zero indicates that the target determines when to initiate reselection consistent with the disconnect time limit parameter. These parameters are advisory to the target.
The bus inactivity limit field indicates the maximum time in 100 us increments that the target is permitted to assert the BSY signal without a REQ/ACK handshake. If the bus inactivity limit is exceeded the target shall attempt to disconnect if the initiator has granted the disconnect privilege (see 6.6.7) and it is not restricted by DTDC. This value may be rounded as defined in 7.5.4. A value of zero indicates that there is no bus inactivity limit.
The disconnect time limit field indicates the minimum time in 100 us increments that the target shall wait after releasing the SCSI bus before attempting reselection. This value may be rounded as defined in 7.5.4. A value of zero indicates that there is no disconnect time limit.
The connect time limit field indicates the maximum time in 100 us increments that the target is allowed to use the SCSI bus before disconnecting, if the initiator has granted the disconnect privilege (see 6.6.7) and it is not restricted by DTDC. This value may be rounded as defined in 7.5.4. A value of zero indicates that there is no connect time limit.
The maximum burst size field indicates the maximum amount of data that the target shall transfer during a data phase before disconnecting if the initiator has granted the disconnect privilege. This value is expressed in increments of 512 bytes (e.g. a value of one means 512 bytes, two means 1024 bytes, etc.). A value of zero indicates there is no limit on the amount of data transferred per connection.
The data transfer disconnect control (DTDC) field (see table 99) defines further restrictions on when a disconnect is permitted.
If DTDC is non-zero and the maximum burst size is non-zero, the target shall return CHECK CONDITION status. The sense key shall be set to ILLEGAL REQUEST and the additional sense code set to ILLEGAL FIELD IN PARAMETER LIST.
The peripheral device page (see table 100) is used to pass vendor-specific information between an initiator and a peripheral interface below the target (i.e. between the target and the peripheral device). This International Standard does not define the format of this data, except to provide a standard header.
Interface identifier codes are defined in the table 101.
The ASCII implemented operation definition page (see table 103) contains operating definition description data for all operating definitions implemented by the target. The contents of this data is not defined by this International Standard.
The peripheral qualifier field and the peripheral device type field are as defined in 8.2.5.1.
The page length field specifies the length of the following page data. If the allocation length is less than the length of the data to be returned, the page length shall not be adjusted to reflect the truncation.
The ASCII operating definition description length field specifies the length in bytes of the ASCII operating definition description data that follows. If the allocation length is less than the length of data to be returned, the ASCII operating definition description length shall not be adjusted to reflect the truncation. A value of zero in this field indicates that no ASCII operating definition description data is available.
The ASCII operating definition description data field contains the ASCII operating definition description data for the target or logical unit. The data in this field shall be formatted in lines (or character strings). Each line shall contain only graphic codes (i.e. code values 20h through 7Eh) and shall be terminated with a NULL (00h) character.
The ASCII information page (see table 104) returns information for the field replaceable unit code returned in the REQUEST SENSE data (see 8.2.14).
The peripheral qualifier field and the peripheral device type field are defined in 8.2.5.1.
The page code field contains the same value as in the page code field of the INQUIRY command descriptor block (see 8.2.5) and is associated with the field replaceable unit code returned by the REQUEST SENSE command.
The page length field specifies the length of the following page data. If the allocation length of the command descriptor block is too small to transfer all of the page, the page length shall not be adjusted to reflect the truncation.
The ASCII length field specifies the length in bytes of the ASCII information that follows. If the allocation length is less than the length of the data to be returned, the ASCII length shall not be adjusted to reflect the truncation. A value of zero in this field indicates that no ASCII information is available for the specified page code.
The ASCII information field contains ASCII information concerning the field replaceable unit identified by the page code. The data in this field shall be formatted in one or more lines (or character strings). Each line shall contain only graphic codes (i.e. code values 20h through 7Eh) and shall be terminated with a NULL (00h) character.
The contents of the vendor-specific information field is not defined in this International Standard.
The implemented operating definition page (see table 105) defines the current operating definition, the default operating definition, and the operating definitions implemented by the target. These operating definition values are specified in the CHANGE DEFINITION command (see 8.2.1).
The peripheral qualifier field and the peripheral device type field are defined in 8.2.5.1.
The page length field specifies the length of the following operating definitions. If the allocation length of the command descriptor block is too small to transfer all of the page, the page length shall not be adjusted to reflect the truncation.
For each operating definition, there is an associated save implemented (SavImp) bit. A SavImp bit of zero indicates that the corresponding operating definition parameter cannot be saved. A SavImp bit of one indicates that the corresponding operating definition parameter can be saved.
All returned operating definitions use the codes defined in table 33. The current operating definition field returns the value of the present operating definition. If no operating definition is saved, the default operating definition field returns the value of the operating definition the target uses when power is applied. The supported operating definition list returns one or more operating definitions implemented by the target.
The supported vital product data pages are shown in table 106.
The peripheral qualifier field and the peripheral device type field are defined in 8.2.5.1.
The page code field shall be set to the value of the page code field in the INQUIRY command descriptor block (see 8.2.5).
The page length field specifies the length of the supported page list. If the allocation length is too small to transfer all of the page, the page length shall not be adjusted to reflect the truncation.
The supported page list field shall contain a list of all vital product data page codes implemented for the target or logical unit in ascending order beginning with page code 00h.
This page (see table 107) provides a product serial number for the target or logical unit.
The peripheral qualifier field and the peripheral device type field are defined in 8.2.5.1.
The page length field specifies the length of the product serial number. If the allocation length is too small to transfer all of the page, the page length shall not be adjusted to reflect the truncation.
The product serial number field contains ASCII data that is vendor- specific. The least significant ASCII character of the serial number shall appear as the last byte of a successful data transfer. If the product serial number is not available, the target shall return ASCII spaces (20h) in this field.
8.1.1.1 SCSI device address
8.1.1.2 Logical units
8.1.1.3 Target routines
8.1.2 Commands implemented by all SCSI devices
This standard defines four commands that all SCSI-2 targets implement - INQUIRY, REQUEST SENSE, SEND DIAGNOSTIC, and TEST UNIT READY. These commands are used to configure the system, to test targets, and to return important information concerning errors and exception conditions.
8.1.2.1 Using the INQUIRY command
8.1.2.2 Using the REQUEST SENSE command
8.1.2.3 Using the SEND DIAGNOSTIC command
8.1.2.4 Using the TEST UNIT READY command
8.2 Commands for all device types
Table 31 - Commands for all device types
Command name
Operation code
Type
Subcluse
CHANGE DEFINITION
40h
O
8.2.1
COMPARE
39h
O
8.2.2
COPY
18h
O
8.2.3
COPY AND VERIFY
3Ah
O
8.2.4
INQUIRY
12h
M
8.2.5
LOG SELECT
4Ch
O
8.2.6
LOG SENSE
4Dh
O
8.2.7
MODE SELECT(6)
15h
Z
8.2.8
MODE SELECT(10)
55h
Z
8.2.9
MODE SENSE(6)
1Ah
Z
8.2.10
MODE SENSE(10)
5Ah
Z
8.2.11
READ BUFFER
3Ch
O
8.2.12
RECEIVE DIAGNOSTIC RESULTS
1Ch
O
8.2.13
REQUEST SENSE
03h
M
8.2.14
SEND DIAGNOSTIC
1Dh
M
8.2.15
TEST UNIT READY
00h
M
8.2.16
WRITE BUFFER
3Bh
O
8.2.17
key :
M = Command implementation is mandatory.
O = Command implementation is optional.
Z = Command implementation is device type specific.
8.2.1 CHANGE DEFINITION command
The CHANGE DEFINITION command (see table 32) modifies the operating definition of the selected logical unit or target with respect to commands from the selecting initiator or for all initiators.
Table 32 - CHANGE DEFINITION command
7 6 5
4 3 2
1 0
0
Operation code (40h)
1
Logical unit number
Reserved
2
Reserved
Save
3
Reserve d
Definition parameter
4
Reserved
5
Reserved
6
Reserved
7
Reserved
8
Parameter data length
9
Control
Table 33 - Definition parameter field
Value
Meaning of definition parameter
00h
Use current operating definition
01h
SCSI-1 operating definition
02h
CCS operating definition
03h
SCSI-2 operating definition
04 - 3Fh
Reserved
40 - 7Fh
Vendor-specific
NOTE 57 The current operating definition parameter values establish operating definitions compatible with the appropriate SCSI specification. Vendor- specific values are available for those applications where more complex operation definition changes are required. Definitions supported by a device are returned in the implemented operating definition page (see 8.3.4.3).
NOTE 58 The parameter data may be used to specify a password to validate an operating definition change.
NOTES
59 This International Standard does not provide a direct means to determine which of the above four methods has been implemented by the target. An indirect means of determining which method is implemented exists in that the target is required to inform affected initiators of operating definition changes via the unit attention condition.
NOTE 61 The method of changing the operating definition is implementation dependent. Some implementations may require that the target's operating mode be reinitialized as if a power-up or hard-reset had occurred. Other implementations may modify only those operating definitions that are affected by the CHANGE DEFINITION command.
NOTE 62 The present operating definition of the target may always be interrogated through the INQUIRY command. When an SCSI-2 target has its operating definition changed to CCS or SCSI-1, certain changes are needed to promote compatibility with preexisting SCSI-1 initiators. The recommended changes are as follows:
8.2.2 COMPARE command
The COMPARE command (see table 34) provides the means to compare data from one logical unit with another or the same logical unit in a manner similar to the COPY command.
Table 34 - COMPARE command
7 6 5
4 3 2
1 0
0
Operation code (39h)
1
Logical unit number
Reserved
Pad
2
Reserved
3
--
5
6
Reserved
7
Reserved
8
Reserved
9
Control
8.2.3 COPY command
The COPY command (see table 35) provides a means to copy data from one logical unit to another or the same logical unit. The logical unit that receives and performs the COPY command is called the copy manager. The copy manager is responsible for copying data from a logical unit (source device) to a logical unit (destination device). These logical units may reside on different SCSI devices or the same SCSI device (in fact all three may be the same logical unit). Some SCSI devices that implement this command may not support copies to or from another SCSI device, or may not support third party copies (i.e. both the source and the destination logical units reside on other SCSI devices).
Table 35 - COPY command
7 6 5
4 3 2
1 0
0
Operation code (18h)
1
Logical unit number
Reserved
Pad
2
--
4
5
Control
Table 36 - COPY parameter list
7 6 5
4 3 2
1 0
0
COPY function code
Priority
1
Vendor-specific
2
Reserved
3
Reserved
Segment descriptor(s)
0
--
n
0
--
n
Table 37 - COPY function codes
Peripheral device type
COPY function code
Segment descriptor table
Comments
Source
Destination
Block devices (Device types 0, 4, 5, 7 )
Stream devices (Device types 1, 2, 3, 9 )
0
38
Stream devices (Device types 1, 3, 9)
Block devices (Device types 0, 4, 5, 7 )
1
38
(Note 3 )
Block devices (Device types 0, 4, 5, 7 )
Block devices (Device types 0, 4, 5, 7 )
2
39
(Note 3 )
Stream devices (Device types 1, 3, 9)
Stream devices (Device types 1, 2, 3, 9 )
3
40
Sequential-access (Device type 1)
Sequential-access (Device type 1)
4
41
Image copy
Notes
8.2.3.1 Errors detected by the managing SCSI device
8.2.3.2 Errors detected by a target
8.2.3.3 COPY function code 00h and 01h
Table 38 - Segment descriptor for COPY function codes 00h and 01h
7 6 5
4 3 2
1 0
0
Source address
Reserved
Cat
Source LUN
1
Destination address
Reserved
Destination LUN
2
--
3
4
--
7
8
--
11 8.2.3.4 COPY function code 02h
Table 39 - Segment descriptor for COPY function code 02h
7 6 5
4 3 2
1 0
0
Source address
DC
Cat
Source LUN
1
Destination address
Reserved
Destination LUN
2
Reserved
3
Reserved
4
--
7
8
--
11
12
--
15 8.2.3.5 COPY function code 03h
Table 40 - Segment descriptor for COPY function code 03h
7 6 5
4 3 2
1 0
0
Source address
DC
Cat
Source LUN
1
Destination address
Reserved
Destination LUN
2
Reserved
3
Reserved
4
--
5
6
--
7
8
--
11 8.2.3.6 COPY function code 04h
Table 41 - Segment descriptor for COPY function code 04h
7 6 5
4 3 2
1 0
0
Source address
Reserved
Source LUN
1
Destination address
Reserved
Destination LUN
2
Count
3
--
7
8
--
11
Table 8 - Information transfer phases
Pad
Cat
COPY manager's action
0
0
On inexact segments, it is device specific whether the COPY
manager rejects the COPY command with CHECK CONDITION status and
ILLEGAL REQUEST sense key, the COPY manager writes or accepts
short blocks (variable-block mode on sequential-access devices),
or the COPY manager adds pad characters (00h) to the destination
block or strips pad characters from the source block.
1
0
On inexact segments, the COPY manager shall add pad characters
(00h) to the destination block to completely fill the block, or
it shall strip pad characters from the source block, always
stopping at the end of a complete block.
x
1
The COPY manager shall always write or read complete blocks. On
inexact segments, the remainder of the block contains data from
the next segment. This code is not valid in the last segment of
the COPY command.
NOTE 63 Use of pad characters is intended to assist in managing COPY commands between devices of different block lengths where partial-block residues may occur. The initiator who issued the COPY command is responsible for management of these pad areas (i.e. remembering where they are). One possible method is to write the COPY parameter list information to the destination medium prior to issuing the COPY command for backup and to read this information prior to issuing the COPY command for restore.
8.2.4 COPY AND VERIFY command
The COPY AND VERIFY command (see table 43) performs the same function as the COPY command, except that a verification of the data written to the destination logical unit is performed after the data is written. The parameter list transferred to the target is the same as for the COPY command. This parameter list contains the information to identify the logical units involved in the copy and the length of the copy. See 8.2.3 for additional information about the COPY command.
Table 43 - COPY AND VERIFY command
7 6 5
4 3 2
1 0
0
Operation code (3Ah)
1
Logical unit number
Reserved
BytChk
Pad
2
Reserved
3
--
5
6
Reserved
7
Reserved
8
Reserved
9
Control
8.2.5 INQUIRY command
The INQUIRY command (see table 44) requests that information regarding parameters of the target and its attached peripheral device(s) be sent to the initiator. An option allows the initiator to request additional information about the target or logical unit (see 8.2.5.2).
Table 44 - INQUIRY command
7 6 5
4 3 2
1 0
0
Operation code (12h)
1
Logical unit number
Reserved
EVPD
2
Page code
3
Reserved
4
Allocation length
5
Control
NOTE 64 The INQUIRY data should be returned even though the peripheral device may not be ready for other commands.
NOTES
65 The INQUIRY command is typically used by the initiator after a reset or power-up condition to determine the device types for system configuration. To minimize delays after a reset or power-up condition, the standard INQUIRY data should be available without incurring any media access delays. If the target does store some of the INQUIRY data on the device, it may return zeros or ASCII spaces (20h) in those fields until the data is available from the device.
8.2.5.1 Standard INQUIRY data
Table 45 - Standard INQUIRY data format
7 6 5
4 3 2
1 0
0
Peripheral qualifier
Peripheral device type
1
RMB
Device-type modifier
2
ISO version
ECMA version
ANSI-approved version
3
AENC
TrmIOP
Reserved
Response data format
4
Additional length (n-4)
5
Reserved
6
Reserved
7
RelAdr
WBus32
WBus16
Sync
Linked
Reserve d
CmdQue
SftRe
8
--
15
16
--
31
32
--
35
36
--
55
56
--
95
56
Vendor-specific parameters
96
--
n
Table 46 - Peripheral qualifier
Qualifier
Description
000b
The specified peripheral device type is currently connected to
this logical unit. If the target cannot determine whether or
not a physical device is currently connected, it shall also use
this peripheral qualifier when returning the INQUIRY data.
This peripheral qualifier does not mean that the device is ready
for access by the initiator.
001b
The target is capable of supporting the specified peripheral
device type on this logical unit; however, the physical device
is not currently connected to this logical unit.
010b
Reserved
011b
The target is not capable of supporting a physical device on
this logical unit. For this peripheral qualifier the peripheral
devic type shall be set to 1Fh to provide compatibility with
previous versions of SCSI. All other peripheral device type
values are reserved for this peripheral qualifier.
1XXb
Vendor-specific
Table 47 - Peripheral device type
Code
Description
00h
Direct-access device (e.g. magnetic disk)
01h
Sequential-access device (e.g. magnetic tape)
02h
Printer device
03h
Processor device
04h
Write-once device (e.g. some optical disks)
05h
CD-ROM device
06h
Scanner device
07h
Optical memory device (e.g. some optical disks)
08h
Medium changer device (e.g. jukeboxes)
09h
Communications device
0Ah - 0Bh
Defined by ASC IT8 (Graphic arts pre-press devices)
0Ch - 1Eh
Reserved
1Fh
Unknown or no device type
Table 48 - ANSI-approved version
Code
Description
0h
The device might or might not comply to an ANSI-approved standard.
1h
The device complies to ANSI X3.131-1986 (SCSI-1).
2h
The device complies to this version of SCSI. This code is
reserved to designate this standard upon approval by ANSI.
3h - 7h
Reserved
NOTE 67 If the values of both the Wbus16 and Wbus32 bits are zero, the device only supports 8-bit wide data transfers.
NOTE 68 It is intended that this field provide a unique vendor identification of the manufacturer of the SCSI device. In the absence of a formal registration procedure, X3T9.2 maintains a list of vendor identification codes in use. Vendors are requested to voluntarily submit their identification codes to X3T9.2 to prevent duplication of codes (see annex E).
8.2.5.2 Vital product data
NOTES
69 The target should have the ability to execute the INQUIRY command even when a device error occurs that prohibits normal command execution. In such a case, CHECK CONDITION status should be returned for commands other than INQUIRY or REQUEST SENSE. The sense data returned may contain the field replaceable unit code. The vital product data should be obtained for the failing device using the INQUIRY command.
8.2.6 LOG SELECT command
The LOG SELECT command (see table 49) provides a means for the initiator to manage statistical information maintained by the device about the device or its logical units. Targets that implement the LOG SELECT command shall also implement the LOG SENSE command. Structures in the form of log parameters within log pages are defined as a way to manage the log data. The LOG SELECT command provides for sending zero or more log pages during a DATA OUT phase. This International Standard defines the format of the log pages, but does not define the exact conditions and events that are logged.
Table 49 - LOG SELECT command
7 6 5
4 3 2
1 0
0
Operation code (4Ch)
1
Logical unit number
Reserved
PCR
SP
2
PC
Reserved
3
Reserved
4
Reserved
5
Reserved
6
Reserved
7
--
8
9
Control
Table 50 - Page control field
Type
LOG SELECT parameter values
LOG SENSE parameter values
00b
Current threshold values
Threshold values
01b
Current cumulative values
Cumulative values
10b
Default threshold values
Default threshold values
11b
Default cumulative values
Default cumulative values
NOTE 72 Pages or log parameters that are not available may become available at some later time (e.g. after the device has become ready).
NOTE 73 Initiators should issue LOG SENSE commands prior to issuing LOG SELECT commands to determine supported pages and page lengths.
8.2.7 LOG SENSE command
The LOG SENSE command (see table 51) provides a means for the initiator to retrieve statistical information maintained by the device about the device or its logical units. It is a complementary command to the LOG SELECT command.
Table 51 - LOG SENSE command
7 6 5
4 3 2
1 0
0
Operation code (4Dh)
1
Logical unit number
Reserved
PPC
SP
2
PC
Page code
3
Reserved
4
Reserved
5
--
6
7
--
8
9
Control
8.2.8 MODE SELECT(6) command
The MODE SELECT(6) command (see table 52) provides a means for the initiator to specify medium, logical unit, or peripheral device parameters to the target. Targets that implement the MODE SELECT command shall also implement the MODE SENSE command. Initiators should issue MODE SENSE prior to each MODE SELECT to determine supported pages, page lengths, and other parameters.
Table 52 - MODE SELECT(6) command
7 6 5
4 3 2
1 0
0
Operation code (15h)
1
Logical unit number
PF
Reserved
SP
2
Reserved
3
Reserved
4
Parameter list length
5
Control
NOTE 74 If the current values calculated by the target affect the initiator's operation, the initiator should issue a MODE SENSE command after each MODE SELECT command.
8.2.9 MODE SELECT(10) command
The MODE SELECT(10) command (see table 53) provides a means for the initiator to specify medium, logical unit, or peripheral device parameters to the target. See the MODE SELECT(6) command (8.2.8) for a description of the fields in this command. Initiators should issue MODE SENSE prior to each MODE SELECT to determine supported mode pages, mode page lengths, and other parameters.
Table 53 - MODE SELECT(10) command
7 6 5
4 3 2
1 0
0
Operation code (55h)
1
Logical unit number
PF
Reserved
SP
2
Reserved
3
Reserved
4
Reserved
5
Reserved
6
Reserved
7
--
8
9
Control
8.2.10 MODE SENSE(6) command
The MODE SENSE(6) command (see table 54) provides a means for a target to report parameters to the initiator. It is a complementary command to the MODE SELECT(6) command.
Table 54 - MODE SENSE(6) command
7 6 5
4 3 2
1 0
0
Operation code (1Ah)
1
Logical unit number
Reserved
DBD
Reserved
2
PC
Page code
3
Reserved
4
Allocation length
5
Control
Table 55 - Page control field
Code
Type of parameter
Subclause
00b
Current values
8.2.10.1
01b
Changeable values
8.2.10.2
10b
Default values
8.2.10.3
11b
Saved values
8.2.10.4
NOTE 75 The page control field only affects the mode parameters within the mode pages, however the PS bit, page code and page length fields should return current values since they have no meaning when used with other types. The mode parameter header and mode parameter block descriptor should return current values.
Table 56 - Mode page code usage for all devices
Page code
Description
Subclause
00h
Vendor-specific (does not require page format)
01h - 1Fh
See specific device-types
20h - 3Eh
Vendor-specific (page format required)
3Fh
Return all mode pages
NOTES
76 Mode pages should be returned in ascending page code order except for mode page 00h.
8.2.10.1 Current values
A PC field value of 0h requests that the target return the current values of the mode parameters. The current values returned are:
8.2.10.2 Changeable values
A PC field value of 1h requests that the target return a mask denoting those mode parameters that are changeable. In the mask, the fields of the mode parameters that are changeable shall be set to all one bits and the fields of the mode parameters that are non-changeable (i.e. defined by the target) shall be set to all zero bits.
NOTES
78 An attempt to change a non-changeable mode parameter (via MODE SELECT) results in an error condition (see 8.2.8).
8.2.10.3 Default values
A PC field value of 2h requests that the target return the default values of the mode parameters. Parameters not supported by the target shall be set to zero. Default values are accessible even if the device is not ready.
8.2.10.4 Saved values
A PC field value of 3h requests that the target return the saved values of the mode parameters. Implementation of saved page parameters is optional. Mode parameters not supported by the target shall be set to zero. If saved values are not implemented, the command shall be terminated with CHECK CONDITION status, the sense key set to ILLEGAL REQUEST and the additional sense code set to SAVING PARAMETERS NOT SUPPORTED.
NOTE 80 The method of saving parameters is vendor-specific. The parameters are preserved in such a manner that they are retained when the target is powered down. All savable pages can be considered saved when a MODE SELECT command issued with the SP bit set to one has returned a GOOD status or after the successful completion of a FORMAT UNIT command.
8.2.10.5 Initial responses
After a power-up condition or hard reset condition, the target shall respond in the following manner:
8.2.11 MODE SENSE(10) command
Table 57 - MODE SENSE(10) command
7 6 5
4 3 2
1 0
0
Operation code (5Ah)
1
Logical unit number
Reserved
DBD
Reserved
2
PC
Page code
3
Reserved
4
Reserved
5
Reserved
6
Reserved
7
--
8
9
Control
8.2.12 READ BUFFER Command
The READ BUFFER command (see table 58) is used in conjunction with the WRITE BUFFER command as a diagnostic function for testing target memory and the SCSI bus integrity. This command shall not alter the medium.
Table 58 - READ BUFFER command
7 6 5
4 3 2
1 0
0
Operation code (3Ch)
1
Logical unit number
Reserved
Mode
2
Buffer ID
3
--
5
6
--
8
9
Control
Table 59 - READ BUFFER mode field
Mode
Description
Type
000b
Combined header and data
Optional
001b
Vendor-specific
Vendor-specific
010b
Data
Optional
011b
Descriptor
Optional
100b
Reserved
Reserved
101b
Reserved
Reserved
110b
Reserved
Reserved
111b
Reserved
Reserved
NOTE 81 Modes 000b and 001b are included for compatibility with products that were designed prior to the generation of this International Standard. Some products that were designed prior to the generation of this International Standard restrict the available length to 65 535 bytes.
8.2.12.1 Combined header and data mode (000b)
In this mode, a four-byte header followed by data bytes is returned to the initiator during the DATA IN phase. The buffer ID and the buffer offset fields are reserved.
Table 60 - READ BUFFER header
7 6 5
4 3 2
1 0
0
Reserved
1
--
3 8.2.12.2 Vendor-specific mode (001b)
In this mode, the meanings of the buffer ID, buffer offset, and allocation length fields are not specified by this International Standard.
8.2.12.3 Data mode (010b)
In this mode, the DATA IN phase contains buffer data. The buffer ID field identifies a specific buffer within the target from which data shall be transferred. The vendor assigns buffer ID codes to buffers within the target. Buffer ID zero shall be supported. If more than one buffer is supported, additional buffer ID codes shall be assigned contiguously, beginning with one. Buffer ID code assignments for the READ BUFFER command shall be the same as for the WRITE BUFFER command. If an unsupported buffer ID code is selected, the target shall return CHECK CONDITION status, shall set the sense key to ILLEGAL REQUEST, and set the additional sense code to ILLEGAL FIELD IN CDB. The target terminates the DATA IN phase when allocation length bytes have been transferred or when all the available data from the buffer has been transferred to the initiator, whichever amount is less.
8.2.12.4 Descriptor mode (011b)
In this mode, a maximum of four bytes of READ BUFFER descriptor information is returned. The target shall return the descriptor information for the buffer specified by the buffer ID (see the description of the buffer ID in 8.2.12.3). If there is no buffer associated with the specified buffer ID, the target shall return all zeros in the READ BUFFER descriptor. The buffer offset field is reserved in this mode. The allocation length should be set to four or greater. The target shall transfer the lesser of the allocation length or four bytes of READ BUFFER descriptor. The READ BUFFER descriptor is defined as shown in table 61.
Table 61 - READ BUFFER descriptor
7 6 5
4 3 2
1 0
0
Offset boundary
1
--
3
Table 62 - Buffer offset boundary
Offset boundary
2**Offset boundary
Buffer offsets
0
2**0 = 1
Byte boundaries
1
2**1 = 2
Even-byte boundaries
2
2**2 = 4
Four-byte boundaries
3
2**3 = 8
Eight-byte boundaries
4
2**4 = 16
16-byte boundaries
.
.
.
.
.
.
FFh
Not applicable
0 is the only supported buffer offset.
NOTE 82 In a multi-tasking system, a buffer may be altered between the WRITE BUFFER and READ BUFFER commands by another task. Buffer testing applications may wish to insure that only a single task is active. Use of reservations (to all logical units on the device) or linked commands may also be helpful in avoiding buffer alteration between these two commands.
8.2.13 RECEIVE DIAGNOSTIC RESULTS command
The RECEIVE DIAGNOSTIC RESULTS command (see table 63) requests analysis data be sent to the initiator after completion of a SEND DIAGNOSTIC command (see 8.2.15). If the target supports the optional page format, the page code field sent in the previous SEND DIAGNOSTIC command specifies the format of the returned data.
Table 63 - RECEIVE DIAGNOSTIC RESULTS command
7 6 5
4 3 2
1 0
0
Operation code (1Ch)
1
Logical unit number
Reserved
2
Reserved
3
--
4
5
Control
NOTES
83 To insure that the diagnostic command information is not destroyed by a command sent from another initiator, either the SEND DIAGNOSTIC command should either be linked to the RECEIVE DIAGNOSTIC RESULTS command or the logical unit should be reserved.
8.2.14 REQUEST SENSE Command
The REQUEST SENSE command (see table 64) requests that the target transfer sense data to the initiator.
Table 64 - REQUEST SENSE command
7 6 5
4 3 2
1 0
0
Operation code (03h)
1
Logical unit number
Reserved
2
Reserved
3
Reserved
4
Allocation length
5
Control
NOTE 85 Some target implementations do not update sense data except on commands that return CHECK CONDITION or COMMAND TERMINATED status. Thus when polling for a logical unit to become ready, the initiator should issue TEST UNIT READY commands until GOOD status is returned. If desired, the initiator may issue REQUEST SENSE commands after the TEST UNIT READY commands that return CHECK CONDITION or COMMAND TERMINATED status to obtain the sense data.
NOTE 86 The sense data appropriate to the selection of an invalid logical unit is defined in 7.5.3.
Table 65 - Error codes 70h and 71h sense data format
7 6 5
4 3 2
1 0
0
Valid
Error code (70h or 71h)
1
Segment number
2
Filemar k
EOM
ILI
Reserve d
Sense key
3
--
6
7
Additional sense length (n-7)
8
--
11
12
Additional sense code
13
Additional sense code qualifier
14
Field replaceable unit code
15
SKSV
Sense-key specific
16
17 Sense-key specific
18
--
n
8.2.14.1 Sense-key specific
The sense-key specific field as defined by this International Standard when the value of the sense-key specific valid (SKSV) bit is one. The sense-key specific valid bit and sense-key specific field are optional. The definition of this field is determined by the value of the sense key field. This field is reserved for sense keys not described below. An SKSV value of zero indicates that this field is not as defined by this International Standard.
Table 66 - Field pointer bytes
7 6 5
4 3 2
1 0
15
SKSV
C/D
Reserve d
Reserve d
BPV
Bit pointer
16
--
17 NOTE 87 Bytes identified as being in error are not necessarily the place that has to be changed to correct the problem.
Table 67 - Actual retry count bytes
7 6 5
4 3 2
1 0
15
SKSV
Reserved
16
--
17 NOTE 88 This field should relate to the retry count fields within the error recovery page of the MODE SELECT command.
Table 68 - Format progress indication bytes
7 6 5
4 3 2
1 0
15
SKSV
Reserved
16
--
17 NOTE 89 It is intended that the progress indication be time related. However, since format time varies with the number of defects encountered, etc., it is reasonable for the target to assign values to various steps within the process. The granularity of these steps should be small enough to provide reasonable assurances to the initiator that progress is being made.
8.2.14.2 Deferred errors
Error code 70h indicates that the CHECK CONDITION or COMMAND TERMINATED status returned is the result of an error or exception condition on the I/O process that returned the CHECK CONDITION or COMMAND TERMINATED status or an unexpected disconnect. This includes errors generated during execution of the command by the actual execution process. It also includes errors not related to any command that are first observed during execution of a command. Examples of this latter type of error include disk servo-mechanism, off-track errors, and power-up test errors.
NOTE 90 Not all devices may be sufficiently sophisticated to identify the function or data that failed. Those that cannot should treat the error in the following manner.
NOTE 91 Deferred errors may indicate that an operation was unsuccessful long after the command performing the data transfer returned GOOD status. If data that cannot be replicated or recovered from other sources is being stored using buffered write operations, synchronization commands should be performed before the critical data is destroyed in the host initiator. This is necessary to be sure that recovery actions can be taken if deferred errors do occur in the storing of the data. If AEN is not implemented, the synchronizing process should provide the necessary commands to allow returning CHECK CONDITION status and subsequent returning of deferred error sense information after all buffered operations are guaranteed to be complete.
8.2.14.3 Sense key and sense code definitions
The sense keys are defined in tables 69 and 70.
Table 69 - Sense key (0h-7h) descriptions
Sense key
Description
0h
NO SENSE. Indicates that there is no specific sense key
information to be reported for the designated logical unit. This
would be the case for a successful command or a command that
received CHECK CONDITION or COMMAND TERMINATED status because one
of the filemark, EOM, or ILI bits is set to one.
1h
RECOVERED ERROR. Indicates that the last command completed
successfully with some recovery action performed by the target.
Details may be determinable by examining the additional sense
bytes and the information field. When multiple recovered errors
occur during one command, the choice of which error to report
(first, last, most severe, etc.) is device specific.
2h
NOT READY. Indicates that the logical unit addressed cannot be
accessed. Operator intervention may be required to correct this
condition.
3h
MEDIUM ERROR. Indicates that the command terminated with a
nonrecovered error condition that was probably caused by a flaw in
the medium or an error in the recorded data. This sense key may
also be returned if the target is unable to distinguish between a
flaw in the medium and a specific hardware failure (sense key 4h).
4h
HARDWARE ERROR. Indicates that the target detected a non-
recoverable hardware failure (for example, controller failure,
device failure, parity error, etc.) while performing the command
or during a self test.
5h
ILLEGAL REQUEST. Indicates that there was an illegal parameter in
the command descriptor block or in the additional parameters
supplied as data for some commands (FORMAT UNIT, SEARCH DATA,
etc.). If the target detects an invalid parameter in the command
descriptor block, then it shall terminate the command without
altering the medium. If the target detects an invalid parameter
in the additional parameters supplied as data, then the target may
have already altered the medium. This sense key may also indicate
that an invalid IDENTIFY message was received (6.6.7).
6h
UNIT ATTENTION. Indicates that the removable medium may have been
changed or the target has been reset.
See 7.9 for more detailed
information about the unit attention condition.
7h
DATA PROTECT. Indicates that a command that reads or writes the
medium was attempted on a block that is protected from this
operation. The read or write operation is not performed.
Table 70 - Sense key (8h-Fh) descriptions
Sense key
Description
8h
BLANK CHECK. Indicates that a write-once device or a sequential-
access device encountered blank medium or format-defined end-of-data
indication while reading or a write-once device encountered a
non-blank medium while writing.
9h
VENDOR-SPECIFIC. This sense key is available for reporting vendor
specific conditions.
Ah
COPY ABORTED. Indicates a COPY, COMPARE, or COPY AND VERIFY
command was aborted due to an error condition on the source
device, the destination device, or both.
(See 8.2.3.2 for
additional information about this sense key.)
Bh
ABORTED COMMAND. Indicates that the target aborted the command.
The initiator may be able to recover by trying the command again.
Ch
EQUAL. Indicates a SEARCH DATA command has satisfied an equal
comparison.
Dh
VOLUME OVERFLOW. Indicates that a buffered peripheral device has
reached the end-of-partition and data may remain in the buffer
that has not been written to the medium. A RECOVER BUFFERED DATA
command(s) may be issued to read the unwritten data from the
buffer.
Eh
MISCOMPARE. Indicates that the source data did not match the data
read from the medium.
Fh
RESERVED.
Table 71 - ASC and ASCQ assignments
ASC
ASCQ
Device types
DESCRIPTION
13 h
00 h
DWO
ADDRESS MARK NOT FOUND FOR DATA FIELD
12 h
00 h
DWO
ADDRESS MARK NOT FOUND FOR ID FIELD
00 h
11 h
R
AUDIO PLAY OPERATION IN PROGRESS
00 h
12 h
R
AUDIO PLAY OPERATION PAUSED
00h
14h
R
AUDIO PLAY OPERATION STOPPED DUE TO ERROR
00h
13h
R
AUDIO PLAY OPERATION SUCCESSFULLY COMPLETED
00h
04h
T S
BEGINNING-OF-PARTITION/MEDIUM DETECTED
14h
04h
T
BLOCK SEQUENCE ERROR
30h
02h
DT WR O
CANNOT READ MEDIUM - INCOMPATIBLE FORMAT
30h
01h
DT WR O
CANNOT READ MEDIUM - UNKNOWN FORMAT
52h
00h
T
CARTRIDGE FAULT
3Fh
02h
DTLPWRSOMC
CHANGED OPERATING DEFINITION
11h
06h
WR O
CIRC UNRECOVERED ERROR
30 h
03 h
DT
CLEANING CARTRIDGE INSTALLED
4A h
00 h
DTLPWRSOMC
COMMAND PHASE ERROR
2C h
00 h
DTLPWRSOMC
COMMAND SEQUENCE ERROR
2F h
00 h
DTLPWRSOMC
COMMANDS CLEARED BY ANOTHER INITIATOR
2B h
00 h
DTLPWRSO C
COPY CANNOT EXECUTE SINCE HOST CANNOT DISCONNECT
41 h
00 h
D
DATA PATH FAILURE (SHOULD USE 40 NN)
4B h
00 h
DTLPWRSOMC
DATA PHASE ERROR
11 h
07 h
W O
DATA RESYNCHRONIZATION ERROR
16 h
00 h
D W O
DATA SYNCHRONIZATION MARK ERROR
19 h
00 h
D O
DEFECT LIST ERROR
19 h
03 h
D O
DEFECT LIST ERROR IN GROWN LIST
19 h
02 h
D O
DEFECT LIST ERROR IN PRIMARY LIST
19 h
01 h
D O
DEFECT LIST NOT AVAILABLE
1C h
00 h
D O
DEFECT LIST NOT FOUND
32 h
01 h
D W O
DEFECT LIST UPDATE FAILURE
40 h
NN h
DTLPWRSOMC
DIAGNOSTIC FAILURE ON COMPONENT NN (80H-FFH)
63 h
00 h
R
END OF USER AREA ENCOUNTERED ON THIS TRACK
00 h
05 h
T S
END-OF-DATA DETECTED
14 h
03 h
T
END-OF-DATA NOT FOUND
00 h
02 h
T S
END-OF-PARTITION/MEDIUM DETECTED
51 h
00 h
T O
ERASE FAILURE
0A h
00 h
DTLPWRSOMC
ERROR LOG OVERFLOW
11 h
02 h
DT W SO
ERROR TOO LONG TO CORRECT
03 h
02 h
T
EXCESSIVE WRITE ERRORS
3B h
07 h
L
FAILED TO SENSE BOTTOM-OF-FORM
3B h
06 h
L
FAILED TO SENSE TOP-OF-FORM
00 h
01 h
T
FILEMARK DETECTED
14 h
02 h
T
FILEMARK OR SETMARK NOT FOUND
09 h
02 h
WR O
FOCUS SERVO FAILURE
31 h
01 h
D L O
FORMAT COMMAND FAILED
58 h
00 h
O
GENERATION DOES NOT EXIST
1C h
02 h
D O
GROWN DEFECT LIST NOT FOUND
00 h
06 h
DTLPWRSOMC
I/O PROCESS TERMINATED
10 h
00 h
D W O
ID CRC OR ECC ERROR
22 h
00 h
D
ILLEGAL FUNCTION (SHOULD USE 20 00, 24 00, OR 26 00)
64 h
00 h
R
ILLEGAL MODE FOR THIS TRACK
28 h
01 h
M
IMPORT OR EXPORT ELEMENT ACCESSED
30 h
00 h
DT WR OM
INCOMPATIBLE MEDIUM INSTALLED
11 h
08 h
T
INCOMPLETE BLOCK READ
48 h
00 h
DTLPWRSOMC
INITIATOR DETECTED ERROR MESSAGE RECEIVED
3F h
03 h
DTLPWRSOMC
INQUIRY DATA HAS CHANGED
44 h
00 h
DTLPWRSOMC
INTERNAL TARGET FAILURE
3D h
00 h
DTLPWRSOMC
INVALID BITS IN IDENTIFY MESSAGE
2C h
02 h
S
INVALID COMBINATION OF WINDOWS SPECIFIED
20 h
00 h
DTLPWRSOMC
INVALID COMMAND OPERATION CODE
21 h
01 h
M
INVALID ELEMENT ADDRESS
24 h
00 h
DTLPWRSOMC
INVALID FIELD IN CDB
26 h
00 h
DTLPWRSOMC
INVALID FIELD IN PARAMETER LIST
49 h
00 h
DTLPWRSOMC
INVALID MESSAGE ERROR
11 h
05 h
WR O
L-EC UNCORRECTABLE ERROR
60 h
00 h
S
LAMP FAILURE
5B h
02 h
DTLPWRSOM
LOG COUNTER AT MAXIMUM
5B h
00 h
DTLPWRSOM
LOG EXCEPTION
5B h
03 h
DTLPWRSOM
LOG LIST CODES EXHAUSTED
2A h
02 h
DTL WRSOMC
LOG PARAMETERS CHANGED
21 h
00 h
DT WR OM
LOGICAL BLOCK ADDRESS OUT OF RANGE
08 h
00 h
DTL WRSOMC
LOGICAL UNIT COMMUNICATION FAILURE
08 h
02 h
DTL WRSOMC
LOGICAL UNIT COMMUNICATION PARITY ERROR
08 h
01 h
DTL WRSOMC
LOGICAL UNIT COMMUNICATION TIME-OUT
05 h
00 h
DTLPWRSOMC
LOGICAL UNIT DOES NOT RESPOND TO SELECTION
4C h
00 h
DTLPWRSOMC
LOGICAL UNIT FAILED SELF-CONFIGURATION
3E h
00 h
DTLPWRSOMC
LOGICAL UNIT HAS NOT SELF-CONFIGURED YET
04 h
01 h
DTLPWRSOMC
LOGICAL UNIT IS IN PROCESS OF BECOMING READY
04 h
00 h
DTLPWRSOMC
LOGICAL UNIT NOT READY, CAUSE NOT REPORTABLE
04 h
04 h
DTL O
LOGICAL UNIT NOT READY, FORMAT IN PROGRESS
04 h
02 h
DTLPWRSOMC
LOGICAL UNIT NOT READY, INITIALIZING COMMAND REQUIRED
04 h
03 h
DTLPWRSOMC
LOGICAL UNIT NOT READY, MANUAL INTERVENTION REQUIRED
25 h
00 h
DTLPWRSOMC
LOGICAL UNIT NOT SUPPORTED
15 h
01 h
DTL WRSOM
MECHANICAL POSITIONING ERROR
53 h
00 h
DTL WRSOM
MEDIA LOAD OR EJECT FAILED
3B h
0D h
M
MEDIUM DESTINATION ELEMENT FULL
31 h
00 h
DT W O
MEDIUM FORMAT CORRUPTED
3A h
00 h
DTL WRSOM
MEDIUM NOT PRESENT
53 h
02 h
DT WR OM
MEDIUM REMOVAL PREVENTED
3B h
0E h
M
MEDIUM SOURCE ELEMENT EMPTY
43 h
00 h
DTLPWRSOMC
MESSAGE ERROR
3F h
01 h
DTLPWRSOMC
MICROCODE HAS BEEN CHANGED
1D h
00 h
D W O
MISCOMPARE DURING VERIFY OPERATION
11 h
0A h
DT O
MISCORRECTED ERROR
2A h
01 h
DTL WRSOMC
MODE PARAMETERS CHANGED
07 h
00 h
DTL WRSOM
MULTIPLE PERIPHERAL DEVICES SELECTED
11 h
03 h
DT W SO
MULTIPLE READ ERRORS
00 h
00 h
DTLPWRSOMC
NO ADDITIONAL SENSE INFORMATION
00 h
15 h
R
NO CURRENT AUDIO STATUS TO RETURN
32 h
00 h
D W O
NO DEFECT SPARE LOCATION AVAILABLE
11 h
09 h
T
NO GAP FOUND
01 h
00 h
D W O
NO INDEX/SECTOR SIGNAL
06 h
00 h
D WR OM
NO REFERENCE POSITION FOUND
02 h
00 h
D WR OM
NO SEEK COMPLETE
03 h
01 h
T
NO WRITE CURRENT
28 h
00 h
DTLPWRSOMC
NOT READY TO READY TRANSITION, MEDIUM MAY HAVE CHANGED
5A h
01 h
DT WR OM
OPERATOR MEDIUM REMOVAL REQUEST
5A h
00 h
DTLPWRSOM
OPERATOR REQUEST OR STATE CHANGE INPUT (UNSPECIFIED)
5A h
03 h
DT W O
OPERATOR SELECTED WRITE PERMIT
5A h
02 h
DT W O
OPERATOR SELECTED WRITE PROTECT
61 h
02 h
S
OUT OF FOCUS
4E h
00 h
DTLPWRSOMC
OVERLAPPED COMMANDS ATTEMPTED
2D h
00 h
T
OVERWRITE ERROR ON UPDATE IN PLACE
3B h
05 h
L
PAPER JAM
1A h
00 h
DTLPWRSOMC
PARAMETER LIST LENGTH ERROR
26 h
01 h
DTLPWRSOMC
PARAMETER NOT SUPPORTED
26 h
02 h
DTLPWRSOMC
PARAMETER VALUE INVALID
2A h
00 h
DTL WRSOMC
PARAMETERS CHANGED
03 h
00 h
DTL W SO
PERIPHERAL DEVICE WRITE FAULT
50 h
02 h
T
POSITION ERROR RELATED TO TIMING
3B h
0C h
S
POSITION PAST BEGINNING OF MEDIUM
3B h
0B h
S
POSITION PAST END OF MEDIUM
15 h
02 h
DT WR O
POSITIONING ERROR DETECTED BY READ OF MEDIUM
29 h
00 h
DTLPWRSOMC
POWER ON, RESET, OR BUS DEVICE RESET OCCURRED
42 h
00 h
D
POWER-ON OR SELF-TEST FAILURE (SHOULD USE 40 NN)
1C h
01 h
D O
PRIMARY DEFECT LIST NOT FOUND
40 h
00 h
D
RAM FAILURE (SHOULD USE 40 NN)
15 h
00 h
DTL WRSOM
RANDOM POSITIONING ERROR
3B h
0A h
S
READ PAST BEGINNING OF MEDIUM
3B h
09 h
S
READ PAST END OF MEDIUM
11 h
01 h
DT W SO
READ RETRIES EXHAUSTED
14 h
01 h
DT WR O
RECORD NOT FOUND
14 h
00 h
DTL WRSO
RECORDED ENTITY NOT FOUND
18 h
02 h
D WR O
RECOVERED DATA - DATA AUTO-REALLOCATED
18 h
05 h
D WR O
RECOVERED DATA - RECOMMEND REASSIGNMENT
18 h
06 h
D WR O
RECOVERED DATA - RECOMMEND REWRITE
17 h
05 h
D WR O
RECOVERED DATA USING PREVIOUS SECTOR ID
18 h
03 h
R
RECOVERED DATA WITH CIRC
18 h
00 h
DT WR O
RECOVERED DATA WITH ERROR CORRECTION APPLIED
18 h
01 h
D WR O
RECOVERED DATA WITH ERROR CORRECTION & RETRIES APPLIED
18 h
04 h
R
RECOVERED DATA WITH L-EC
17 h
03 h
DT WR O
RECOVERED DATA WITH NEGATIVE HEAD OFFSET
17 h
00 h
DT WRSO
RECOVERED DATA WITH NO ERROR CORRECTION APPLIED
17 h
02 h
DT WR O
RECOVERED DATA WITH POSITIVE HEAD OFFSET
17 h
01 h
DT WRSO
RECOVERED DATA WITH RETRIES
17 h
04 h
WR O
RECOVERED DATA WITH RETRIES AND/OR CIRC APPLIED
17 h
06 h
D W O
RECOVERED DATA WITHOUT ECC - DATA AUTO-REALLOCATED
17 h
07 h
D W O
RECOVERED DATA WITHOUT ECC - RECOMMEND REASSIGNMENT
17 h
08 h
D W O
RECOVERED DATA WITHOUT ECC - RECOMMEND REWRITE
1E h
00 h
D W O
RECOVERED ID WITH ECC CORRECTION
3B h
08 h
T
REPOSITION ERROR
36 h
00 h
L
RIBBON, INK, OR TONER FAILURE
37 h
00 h
DTL WRSOMC
ROUNDED PARAMETER
5C h
00 h
D O
RPL STATUS CHANGE
39 h
00 h
DTL WRSOMC
SAVING PARAMETERS NOT SUPPORTED
62 h
00 h
S
SCAN HEAD POSITIONING ERROR
47 h
00 h
DTLPWRSOMC
SCSI PARITY ERROR
54 h
00 h
P
SCSI TO HOST SYSTEM INTERFACE FAILURE
45 h
00 h
DTLPWRSOMC
SELECT OR RESELECT FAILURE
3B h
00 h
TL
SEQUENTIAL POSITIONING ERROR
00 h
03 h
T
SETMARK DETECTED
3B h
04 h
L
SLEW FAILURE
09 h
03 h
WR O
SPINDLE SERVO FAILURE
5C h
02 h
D O
SPINDLES NOT SYNCHRONIZED
5C h
01 h
D O
SPINDLES SYNCHRONIZED
1B h
00 h
DTLPWRSOMC
SYNCHRONOUS DATA TRANSFER ERROR
55 h
00 h
P
SYSTEM RESOURCE FAILURE
33 h
00 h
T
TAPE LENGTH ERROR
3B h
03 h
L
TAPE OR ELECTRONIC VERTICAL FORMS UNIT NOT READY
3B h
01 h
T
TAPE POSITION ERROR AT BEGINNING-OF-MEDIUM
3B h
02 h
T
TAPE POSITION ERROR AT END-OF-MEDIUM
3F h
00 h
DTLPWRSOMC
TARGET OPERATING CONDITIONS HAVE CHANGED
5B h
01 h
DTLPWRSOM
THRESHOLD CONDITION MET
26 h
03 h
DTLPWRSOMC
THRESHOLD PARAMETERS NOT SUPPORTED
2C h
01 h
S
TOO MANY WINDOWS SPECIFIED
09 h
00 h
DT WR O
TRACK FOLLOWING ERROR
09 h
01 h
WR O
TRACKING SERVO FAILURE
61 h
01 h
S
UNABLE TO ACQUIRE VIDEO
57 h
00 h
R
UNABLE TO RECOVER TABLE-OF-CONTENTS
53 h
01 h
T
UNLOAD TAPE FAILURE
11 h
00 h
DT WRSO
UNRECOVERED READ ERROR
11 h
04 h
D W O
UNRECOVERED READ ERROR - AUTO REALLOCATE FAILED
11 h
0B h
D W O
UNRECOVERED READ ERROR - RECOMMEND REASSIGNMENT
11 h
0C h
D W O
UNRECOVERED READ ERROR - RECOMMEND REWRITE THE DATA
46 h
00 h
DTLPWRSOMC
UNSUCCESSFUL SOFT RESET
59 h
00 h
O
UPDATED BLOCK READ
61 h
00 h
S
VIDEO ACQUISITION ERROR
50 h
00 h
T
WRITE APPEND ERROR
50 h
01 h
T
WRITE APPEND POSITION ERROR
0C h
00 h
T S
WRITE ERROR
0C h
02 h
D W O
WRITE ERROR - AUTO REALLOCATION FAILED
0C h
01 h
D W O
WRITE ERROR RECOVERED WITH AUTO REALLOCATION
27 h
00 h
DT W O
WRITE PROTECTED
80 h
XX h
Vendor speciti c
THROUG H
FF h
XXh
XX h
80 h
Vendor-specific QUALIFICATION OF STANDARD ASC.
THROUG H
XX h
FFh
ALL CODES NOT SHOWN ARE RESERVED
NOTE - Annex D contains the ASC and ASCQ assignments in numeric order.
Key :
D - DIRECT ACCESS DEVICE
T - SEQUENTIAL ACCESS DEVICE
L - PRINTER DEVICE
P - PROCESSOR DEVICE
W - WRITE ONCE READ MULTIPLE DEVICE
R - READ ONLY (CD-ROM) DEVICE
S - SCANNER DEVICE
O - OPTICAL MEMORY DEVICE
M - MEDIA CHANGER DEVICE
C - COMMUNICATION DEVICE
8.2.15 SEND DIAGNOSTIC Command
The SEND DIAGNOSTIC command (see table 72) requests the target to perform diagnostic operations on itself, on the logical unit, or on both. The only mandatory implementation of this command is the self-test feature with the parameter list length of zero. Except when the self-test bit is one, this command is usually followed by a RECEIVE DIAGNOSTIC RESULTS command.
Table 72 - SEND DIAGNOSTIC command
7 6 5
4 3 2
1 0
0
Operation code (1Dh)
1
Logical unit number
PF
Reserve d
SelfTes t
DevOfL
UnitOf L
2
Reserved
3
--
4
5
Control
NOTE 92 To insure that the diagnostic command information is not destroyed by a command sent from another initiator, either the SEND DIAGNOSTIC command should be linked to the RECEIVE DIAGNOSTIC RESULTS command or the logical unit should be reserved.
8.2.16 TEST UNIT READY Command
The TEST UNIT READY command (see table 73) provides a means to check if the logical unit is ready. This is not a request for a self-test. If the logical unit would accept an appropriate medium-access command without returning CHECK CONDITION status, this command shall return a GOOD status. If the logical unit cannot become operational or is in a state such that an initiator action (e.g. START UNIT command) is required to make the unit ready, the target shall return CHECK CONDITION status with a sense key of NOT READY.
Table 73 - TEST UNIT READY command
7 6 5
4 3 2
1 0
0
Operation code (00h)
1
Logical unit number
Reserved
2
Reserved
3
Reserved
4
Reserved
5
Control
Table 74 - Preferred TEST UNIT READY responses
Status
Sense key
ASC and ASCQ
GOOD
NO SENSE
NO ADDITIONAL SENSE INFORMATION or
other valid additional sense code.
CHECK CONDITION
ILLEGAL REQUEST
LOGICAL UNIT NOT SUPPORTED
CHECK CONDITION
NOT READY
LOGICAL UNIT DOES NOT RESPOND TO SELECTION
CHECK CONDITION
NOT READY
MEDIUM NOT PRESENT
CHECK CONDITION
NOT READY
LOGICAL UNIT NOT READY, CAUSE NOT REPORTABLE
CHECK CONDITION
NOT READY
LOGICAL UNIT IS IN PROCESS OF BECOMING READY
CHECK CONDITION
NOT READY
LOGICAL UNIT NOT READY, INITIALIZING COMMAND REQUIRED
CHECK CONDITION
NOT READY
LOGICAL UNIT NOT READY, MANUAL INTERVENTION REQUIRE D
CHECK CONDITION
NOT READY
LOGICAL UNIT NOT READY, FORMAT IN PROGRESS
8.2.17 WRITE BUFFER command
The WRITE BUFFER command (see table 75) is used in conjunction with the READ BUFFER command as a diagnostic for testing target memory and the SCSI bus integrity. Additional modes are provided for downloading microcode and for downloading and saving microcode.
Table 75 - WRITE BUFFER command
7 6 5
4 3 2
1 0
0
Operation code (3Bh)
1
Logical unit number
Reserved
Mode
2
Buffer ID
3
--
5
6
--
8
9
Control
Table 76 - WRITE BUFFER mode field
Mode
Description
Implementation requirements
000b
Write combined header and data
Optional
001b
Vendor-specific
Vendor-specific
010b
Write data
Optional
011b
Reserved
Reserved
100b
Download microcode
Optional
101b
Download microcode and save
Optional
110b
Reserved
Reserved
111b
Reserved
Reserved
NOTE 93 Modes 000b and 001b are included for compatibility with CCS products that were designed prior to the generation of this International Standard. These products restrict the maximum transfer length to 65 535 bytes.
8.2.17.1 Combined header and data mode (000b)
In this mode, data to be transferred is preceded by a four-byte header. The four-byte header consists of all reserved bytes. The buffer ID and the buffer offset fields shall be zero. The parameter list length field specifies the maximum number of bytes that shall be transferred during the DATA OUT phase. This number includes four bytes of header, so the data length to be stored in the target's buffer is parameter list length minus four. The initiator should attempt to ensure that the parameter list length is not greater than four plus the buffer capacity (see 8.2.12.1) that is returned in the header of the READ BUFFER command (mode 00b). If the parameter list length exceeds the buffer capacity target shall return CHECK CONDITION status and shall set the sense key to ILLEGAL REQUEST.
8.2.17.2 Vendor-specific mode (001b)
In this mode, the meaning of the buffer ID, buffer offset, and parameter list length fields are not specified by this International Standard.
8.2.17.3 Data mode (010b)
In this mode, the DATA OUT phase contains buffer data. The buffer ID field identifies a specific buffer within the target. The vendor assigns buffer ID codes to buffers within the target. Buffer ID zero shall be supported. If more than one buffer is supported, additional buffer ID codes shall be assigned contiguously, beginning with one. If an unsupported buffer ID code is selected, the target shall return CHECK CONDITION status and shall set the sense key to ILLEGAL REQUEST with an additional sense code of INVALID FIELD IN CDB.
8.2.17.4 Download microcode mode (100b)
In this mode, vendor-specific microcode or control information shall be transferred to the control memory space of the target. After a power- cycle or reset, the device operation shall revert to a vendor-specific condition. The meanings of the buffer ID, buffer offset, and parameter list length fields are not specified by this International Standard and are not required to be zero-filled. When the microcode download has completed successfully the target shall generate a unit attention condition for all initiators except the one that issued the WRITE BUFFER command (see 7.9). The additional sense code shall be set to MICROCODE HAS BEEN CHANGED.
8.2.17.5 Download microcode and save mode (101b)
In this mode, vendor-specific microcode or control information shall be transferred to the target and, if the WRITE BUFFER command is completed successfully, also shall be saved in a non-volatile memory space (semiconductor, disk, or other). The downloaded code shall then be effective after each power-cycle and reset until it is supplanted in another download microcode and save operation. The meanings of the buffer ID, buffer offset, and parameter list length fields are not specified by this International Standard and are not required to be zero- filled. When the download microcode and save command has completed successfully the target shall generate a unit attention condition (see 7.9) for all initiators except the one that issued the WRITE BUFFER command. When reporting the unit attention condition, the target shall set the additional sense code to MICROCODE HAS BEEN CHANGED.
8.3 Parameters for all device types
8.3.1 Diagnostic parameters
This subclause describes the diagnostic page structure and the diagnostic pages that are applicable to all SCSI devices. Pages specific to each device type are described in the third subclause of each device-type clause (i.e. 9.3, 10.3, etc.).
Table 77 - Diagnostic page format
7 6 5
4 3 2
1 0
0
Page code
1
Reserved
2
--
3
4
--
n
Table 78 - Diagnostic page codes
Page code
Description
00h
Supported diagnostics pages
8.3.1.1
01h - 3Fh
Reserved (for all device type pages)
40h - 7Fh
See specific device type for definition
80h - FFh
Vendor-specific pages
8.3.1.1 Supported diagnostic pages
Table 79 - Supported diagnostic pages
7 6 5
4 3 2
1 0
0
Page code (00h)
1
Reserved
2
--
3
4
--
n
8.3.2 Log parameters
This subclause describes the log page structure and the log pages that are applicable to all SCSI devices. Pages specific to each device type are described in the third subclause of each device-type clause (i.e. 9.3.2, 10.3.2, etc.). The LOG SELECT command supports the ability to send zero or more log pages. The LOG SENSE command returns a single log page specified in the page code field of the command descriptor block (see 8.2.7).
Table 80 - Log page format
7 6 5
4 3 2
1 0
0
Reserved
Page code
1
Reserved
2
--
3
Log parameters(s)
4
--
x+3 Log parameter (First) (length x)
:
n-y+1
--
n Log parameter (Last) (length y)
Table 81 - Log parameter
7 6 5
4 3 2
1 0
0
--
1
2
DU
DS
TSD
ETC
TMC
Reserved
LP
3
Parameter length (n-3)
4
--
n
NOTE 94 When updating cumulative log parameter values, a target may use volatile memory to hold these values until a LOG SELECT or LOG SENSE command is received with an SP bit of one (or a target-defined event occurs). Thus the updated cumulative log parameter values may be lost if a power cycle occurs.
Table 82 - Threshold met criteria
Code
Basis for comparison
00b
Every update of the cumulative value
01b
Cumulative value equal threshold value
10b
Cumulative value not equal threshold value
11b
Cumulative value greater than threshold value
NOTE 95 List parameters can be used to store the locations of defective blocks in the following manner. When a defective block is identified, a list parameter is updated to reflect the location and cause of the defect. When the next defect is encountered, the list parameter with the next higher parameter code is updated to record this defect. The size of the page can be made target specific to accommodate memory limitations. It is recommended that one or more data counter parameters be defined for the page to keep track of the number of valid list parameters and the parameter code of the parameter with the oldest recorded defect. This technique can be adapted to record other types of information.
Table 83 - Log page codes
Page code
Description
Subclause
01h
Buffer over-run/under-run page
8.3.2.1
03h
Error counter page (read) page
8.3.2.2
04h
Error counter page (read reverse) page
8.3.2.2
05h
Error counter page (verify) page
8.3.2.2
02h
Error counter page (write) page
8.3.2.2
07h
Last n error events page
8.3.2.3
06h
Non-medium error page
8.3.2.4
00h
Supported log pages
8.3.2.5
08h - 2Fh
Reserved
3Fh
Reserved
30h - 3Eh
Vendor-specific pages
8.3.2.1 Buffer over-run/under-run page
Table 84 - Parameter code field for buffer over-run/under-run counters
7 6 5
4 3 2
1 0
0
Reserved
1
Count basis
Cause
Type
Table 85 - Count basis definition
Count basis
Description
000b
Undefined
001b
Per command
010b
Per failed reconnect
011b
Per unit of time
100b - 111b
Reserved
NOTE 95 The per unit of time count basis is device type specific. Direct- access devices typically use a latency period (i.e. one revolution of the medium) as the unit of time.
Table 86 - Cause field definition
Cause
Description
0h
Undefined
1h
SCSI bus busy
2h
Transfer rate too slow
3h - Fh
Reserved
8.3.2.2 Error counter pages
Table 87 - Parameter codes for error counter pages
Parameter code
Description
0000h
Errors corrected without substantial delay
0001h
Errors corrected with possible delays
0002h
Total (e.g. rewrites or rereads)
0003h
Total errors corrected
0004h
Total times correction algorithm processed
0005h
Total bytes processed
0006h
Total uncorrected errors
0007h - 7FFFh
Reserved
8000h - FFFFh
Vendor-specific
NOTE 96 The exact definition of the error counters is not part of this International Standard. These counters should not be used to compare products because the products may define errors differently.
8.3.2.3 Last n error events page
8.3.2.4 Non-medium error page
Table 88 - Non-medium error event parameter codes
Parameter code
Description
0000h
Non-medium error count
0001h - 7FFFh
Reserved
8000h - FFFFh
Vendor-specific error counts
8.3.2.5 Supported log pages
Table 89 - Supported log pages
7 6 5
4 3 2
1 0
0
Reserved
Page code (00h)
1
Reserved
2
--
3
4
--
n
8.3.3 Mode parameters
This subclause describes the block descriptors and the pages used with MODE SELECT and MODE SENSE commands that are applicable to all SCSI devices. Pages specific to each device type are described in the third subclause of each device-type clause (i.e. 9.3, 10.3, etc.).
Table 90 - Mode parameter list
7 6 5
4 3 2
1 0
0 - n
Mode parameter header
0 - n
Block descriptor(s)
0 - n
Page(s)
Table 91 - Mode parameter header(6)
7 6 5
4 3 2
1 0
0
Mode data length
1
Medium type
2
Device-specific parameter
3
Block descriptor length
Table 92 - Mode parameter header(10)
7 6 5
4 3 2
1 0
0
--
1
2
Medium type
3
Device-specific parameter
4
Reserved
5
Reserved
6
--
7 NOTE 97 Targets that support more than 256 bytes of block descriptors and pages may need to implement ten-byte mode commands. The mode data length field in the six-byte command descriptor block header limits the returned data to 256 bytes.
Table 93 - Mode parameter block descriptor
7 6 5
4 3 2
1 0
0
Density code
1
--
3
4
Reserved
5
--
7 NOTES
98 There may be implicit association between parameters defined in the pages and block descriptors. For direct-access devices, the block length affects the optimum values (the values that achieve best performance) for the sectors per track, bytes per physical sector, track skew factor, and cylinder skew factor fields in the format parameters page. In this case, the target may change parameters not explicitly sent with the MODE SELECT command. A subsequent MODE SENSE command would reflect these changes.
Table 94 - Mode page format
7 6 5
4 3 2
1 0
0
PS
Reserve d
Page code
1
Page length (n-1))
2
--
n
Table 95 - Mode page codes
Page code
Description
Subclause
0Ah
Control mode page
8.3.3.1
02h
Disconnect-reconnect page
8.3.3.2
09h
Peripheral device page
8.3.3.3
01h
(See specific device type)
03h - 08h
(See specific device type)
0Bh - 1Fh
(See specific device type)
00h
Vendor-specific (does not require page format)
20h - 3Eh
Vendor-specific (page format required)
3Fh
Return all pages (valid only for the MODE SENSE command)
8.3.3.1 Control mode page
Table 96 - Control mode page
7 6 5
4 3 2
1 0
0
PS
Reserve d
Page code (0Ah)
1
Page length (06h)
2
Reserved
RLEC
3
Queue algorithm modifier
Reserved
QErr
DQue
4
EECA
Reserved
RAENP
UAAENP
EAENP
5
Reserved
6
--
7
Table 97 - Queue algorithm modifier
Value
Definition
0h
Restricted reordering
1h
Unrestricted reordering allowed
2h - 7h
Reserved
8h - Fh
Vendor-specific
NOTE 100 If the target's default value for the RAENP bit is one and it does not implement saved parameters or include a hardware switch, then it may not be possible to disable the initialization sequence asynchronous event notification.
8.3.3.2 Disconnect-reconnect page
Table 98 - Disconnect-reconnect page
7 6 5
4 3 2
1 0
0
PS
Reserve d
Page code (02h)
1
Page length (0Eh)
2
Buffer full ratio
3
Buffer empty ratio
4
--
5
6
--
7
8
--
9
10
--
11
12
Reserved
DTDC
13
Reserved
14
Reserved
15
Reserved
NOTE 101 As an example, consider a target with ten 512-byte buffers and a specified buffer full ratio of 3Fh. The formula is: INTEGER((ratio/256)*number of buffers). Thus INTEGER((3Fh/256)*10) = 2. The target should attempt to reselect the initiator on read operations whenever two or more buffers are full.
Table 99 - Data transfer disconnect control
DTDC
Description
00b
Data transfer disconnect control is not used. Disconnect is
controlled by the other fields in this page.
01b
A target shall not attempt to disconnect once the data transfer of
a command has started until all data the command is to transfer has
been transferred. The connect time limit and bus inactivity limit
are ignored during the data transfer.
10b
Reserved
11b
A target shall not attempt to disconnect once the data transfer of
a command has started, until the command is complete. The connect
time limit and bus inactivity limit are ignored once data transfer
has started.
8.3.3.3 Peripheral device page
Table 100 - Peripheral device page
7 6 5
4 3 2
1 0
0
PS
Reserve d
Page code (09h)
1
Page length (n-1)
2
--
3
4
Reserved
5
Reserved
6
Reserved
7
Reserved
8
--
n
Table 101 - Interface identifier codes
Code value
Interface
ANSI Reference standard
0000h
Small computer cystem interface
X3.131-1986
0001h
Storage module interface
X3.91M-1990
0002h
Enhanced small device interface
X3.170A-1991
0003h
Intelligent peripheral interface-2
X3.130-1986;
X3T9.3/87-002
0004h
Intelligent peripheral interface-3
X3.132-1987;
X3.147-1988
0005h - 7FFFh
Reserved
8000h - FFFFh
Vendor-specific
8.3.4 Vital product data parameters
This clause describes the optional vital product data page structure and the vital product data pages (see table 102) that are applicable to all SCSI devices. These pages are optionally returned by the INQUIRY command (8.2.5) and contain vendor-specific product information about a target or logical unit. The vital product data may include vendor identification, product identification, unit serial numbers, device operating definitions, manufacturing data, field replaceable unit information, and other vendor- specific information. This International Standard defines the structure of the vital product data, but not the contents.
Table 102 - Vital product data page codes
Page code
Description
Subclause
82h
ASCII implemented operating definition page
8.3.4.1
01h - 7Fh
ASCII information page
8.3.4.2
81h
Implemented operating definitions page
8.3.4.3
00h
Supported vital product data pages
8.3.4.4
80h
Unit serial number page
8.3.4.5
83h - BFh
Reserved
C0h - FFh
Vendor-specific
8.3.4.1 ASCII implemented operating definition page
Table 103 - ASCII implemented operating definition
7 6 5
4 3 2
1 0
0
Peripheral qualifier
Peripheral device type
1
Page code (82h)
2
Reserved
3
Page length (n-3)
4
ASCII operating definition description length (m-4)
5
--
m
m+1
--
n
8.3.4.2 ASCII information page
Table 104 - ASCII information page
7 6 5
4 3 2
1 0
0
Peripheral qualifier
Peripheral device type
1
Page code (01h - 7Fh)
2
Reserved
3
Page length (n-3)
4
ASCII length (m-4)
5
--
m
m+1
--
n
NOTE 102 The field replaceable unit field in the sense data provides for 255 possible codes, while the page code field provides for only 127 possible codes. Thus it is not possible to return ASCII information pages for the upper code values.
8.3.4.3 Implemented operating definition page
Table 105 - Implemented operating definition page
7 6 5
4 3 2
1 0
0
Peripheral qualifier
Peripheral device type
1
Page code (81h)
2
Reserved
3
Page length (n-3)
4
Reserve d
Current operating definition
5
SavImp
Default operating definition
6
SavImp
n
SavImp
8.3.4.4 Supported vital product data pages
Table 106 - Supported vital product data pages
7 6 5
4 3 2
1 0
0
Peripheral qualifier
Peripheral device type
1
Page code (00h)
2
Reserved
3
Page length (n-3)
4
--
n
8.3.4.5 Unit serial number page
Table 107 - Unit serial number page
7 6 5
4 3 2
1 0
0
Peripheral qualifier
Peripheral device type
1
Page code (80h)
2
Reserved
3
Page length (n-3)
4
--
n