To: X3T9.2 SCSI-2 Committee X3T9.2/87-173 Rev. 1 From: Donna Pope Date October 1, 1987 Optimem 297 N. Bernardo Avenue Mountain View, CA 94043 (415)-961-1800 Subject: Write same capability in Send and Receive Diagnostic commands (versus Write command). This proposal provides a means of executing the write same operation as a diagnostic command. The paging capability is described in Paul Nitza's proposal 87-126. Page 41h is the page indicated here as Write Same Page (see 87-126 for command format). 1. Add page 41h for Write Same Format to Send Diagnostic command. Table 7- : SEND DIAGNOSTIC Page Format for Write Same ============================================================================== Bit| 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Byte | | | | | | | | | ============================================================================== 0 | Page Code (41) | -----|-----------------------------------------------------------------------| 1 | Reserved | -----|-----------------------------------------------------------------------| 2 | (MSB) | -----|--- ---| 3 | | -----|--- Starting Logical Block Address ---| 4 | | -----|--- ---| 5 | (LSB) | -----|-----------------------------------------------------------------------| 6 | (MSB) | -----|--- Number of Blocks To Write ---| 7 | (LSB) | ============================================================================== The Starting Logical Block Address specifies the logical block at which the write operation shall begin. Only one logical block of data shall be sent during the Data Out Phase regardless of the transfer length. This will be used to write all the contiguous blocks indicated in the descriptor. The Transfer Length specifies the number of contiguous logical blocks to be written. All logical blocks written shall be written with the same data as the first logical block. A transfer length of zero shall indicate that the data be continuously written from the starting logical block address specified in the parameter list to the last logical block addressable. 2. Delete WrtSme bit and description from WRITE (EXTENDED) and WRITE AND VERIFY commands in section 8. 3. Delete Wrt Sme bit and description from WRITE (10 byte), WRITE (12 byte), WRITE AND VERIFY (10 byte), and WRITE AND VERIFY (12 byte) commands in section 15. 4. Restore Erase-By-Pass (EBC) bit in the same four commands mentioned in item 4 (bit 2 of byte 1). 5. Add page 41h for Write Same Operation to the Receive Diagnostic command. RECEIVE DIAGNOSTIC Write Same Operation (Page Code 41h). The Write Same page allows the target to report any failures from a Write Same Operation initiated by the Send Diagnostic command. Table 7- : RECEIVE DIAGNOSTIC Write Same Operation Page Format. ============================================================================== Bit| 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Byte | | | | | | | | | ============================================================================== 0 | Page Code (41h) | -----|-----------------------------------------------------------------------| 1 | Valid | Reserved | WrtErr | -----|-----------------------------------------------------------------------| 2 | Reserved | Sense Key | -----|-----------------------------------------------------------------------| 3 | (MSB) | -----|--- ---| 4 | | -----|--- Logical Block Address Write Failed On ---| 5 | | -----|--- ---| 6 | (LSB) | -----|-----------------------------------------------------------------------| 7 | Additional Sense Code | ============================================================================== Page Code (41h) indicates reporting parameters from the Write Same operation initiated by the Send Diagnostic command. A valid bit of zero indicates that the Logical Block Address Write Failed On is not a valid address. A valid bit of one indicates that the Logical Block Address Write Failed On is valid. A WrtErr bit of zero indicates that no error occurred during the Write Same operation. A WrtErr bit of one indicates that an error occurred during the Write Same Operation of the Send Diagnostic command. The sense keys are described in Tables 7-24 and 7-25 of the SCSI-2 Working Draft Proposal Revision 2. Logical Block Address Write Failed On contains the unsigned logical block address associated with the sense key. Additional Sense Code provides additional information related to the condition that caused the WrtErr to be set to one. These codes are defined in the appropriate device type section.