7.5 Drive Self-Test (DST)
C141-C013 405
7.5.2 Self-test modes
Self-tests of each type are conducted in either of the following two modes:
• Foreground mode
• Background mode
The subsequent sections explain both modes in detail.
7.5.2.1 Foreground mode
Before the INIT initiates a self-test in foreground mode, the HDD should be
reserved. If the HDD specifies the execution of a self-test in foreground mode, it
will report the status when a pertinent command is issued after completion of the
self-test.
When a self-test in foreground mode is in process, the HDD will report "CHECK
CONDITION" status (NOT READY [=2]/LOGICAL UNIT NOT READY,
SELF-TEST IN PROGRESS [=04-09]) in response to any command other than
the following:
• INQUIRY command
• REPORT LUNS command
• REQUEST SENSE command
If a test segment error occurs while the HDD is executing a self-test in foreground
mode, the HDD will update a test result log page and report "CHECK
CONDITION" status (HARDWARE ERROR [=04]/LOGICAL UNIT FAILED
SELF-TEST [=3E-03])
The INIT can obtain additional information on the error by referencing the self-
test result log page.
If the HDD fails to update the self-test result log page, it reports "CHECK
CONDITION" status (HARDWARE ERROR [=4]/LOGICAL UNIT UNABLE
TO UPDATE SELF-TEST LOG [=3E-04]).
The INIT can terminate a foreground-mode self-test by issuing an abort request
based on the ABORT TASK/ABORT TASK SET/CLEAR TASK SET function.
Upon receiving an abort request, the HDD updates the self-test result log page and
terminates the self-test in progress.