7. ATAPI Packet Command Specification
SEND DIAGNOSTIC
SONY AIT-1Turbo drive SDX-460V series Ver.1.0
7-72
Page Code:
The drive supports two Page Codes:
00h - Return Supported pages
81h - Drive Diagnostic page
For Page Code 00h, the Page Length must be ZERO and the Parameter List Length must be set to four otherwise
the drive returns a CHECK CONDITION status with an ILLEGAL REQUEST sense key set. This Page Code
requests that the drive return a list of the supported pages during the data transfer of RECEIVE DIAGNOSTIC.
For Page Code 81h, the Page Length must be five and the Parameter List Length must be set to nine otherwise
the drive returns a CHECK CONDITION status with an ILLEGAL REQUEST sense key set. This page Code
instructs the drive to execute the five bytes of diagnostic test that follow the four bytes of header. The five bytes of
diagnostic test information will be of the form:
Table 7-59: Diagnostic Test Information
Bit
Byte
7 6 5 4 3 2 1 0
0
Diagnostic Test Number
1
Break
Loop Count Identifier
2
Parameter A
3
Parameter B
4
Parameter C
Diagnostic Test Number:
Number identifying which test to execute
Break:
Indicates how to terminate the loop count should an error occur.
0 = stop on first error
1 = do not stop on error
Loop Count Identifier:
The number of times that the test should be repeated before status is returned.
0 = Continuous
1 = run once
2 = run 10 times
3 = run 100 times
4 = run 1000 times
Parameters A, B, C:
Any additional parameters required to fully define the diagnostic test.
If the test completes successfully, the drive returns GOOD status. If the test failed, CHECK CONDITION status is
returned with a HARDWARE ERROR Sense Key and an Additional Sense Code of DIAGNOSTIC FAILURE set.
The Host should then send a REQUEST DIAGNOSTIC command which will return information as to which test
failed and the nature of the failure. If the test requested is not defined, not available to the requested processor, or
not executable in the current configuration, this information will be reported in the data returned by the REQUEST
DIAGNOSTIC command.
Refer to the Appendix - Drive Diagnostics for more detailed information about the supported diagnostic tests and
test operations.