Clear task set (testf.4) – Teledyne LeCroy SAS Sample Test Suite User Manual
Page 88

SAS Sample Test Suite
Behavior After Receiving a Task Management Request (Test Group F)
88
CLEAR TASK SET (TestF.4)
When CLEAR TASK SET is received, the Target device shall abort all commands in the current task
set. SAS Target devices maintain a single task set for all initiators (Control mode page TST field =
000b, non-changeable), so this function aborts all commands pending in the Target device.
Pending status and sense data for the aborted commands shall be cleared. Other previously
established conditions, such as mode parameters and reservations, shall not be changed.
The Target device shall complete the task management request by sending a Response frame with
DATAPRES field set to RESPONSE_DATA and the RESPONSE CODE field set to 00h, TASK
MANAGEMENT FUNCTION COMPLETE.
Test Procedure:
1. The Testing Station is instructed to start and complete a phy Reset sequence followed
by an Identify sequence with the DUT. Since the DUT is a target, the Testing Station is
instructed to transmit an Identify Address frame indicating that it is a SAS Initiator.
2. The Testing Station is instructed to open an SSP connection to the DUT and transmit a
SCSI Test Unit Ready command to the DUT. This should not be the first command
received by the DUT since power on. Close the connection
3. Allow the DUT to open an SSP connection to the Testing Station and transmit a SCSI
response frame to the received command.
4. The Testing Station is instructed to open an SSP connection to the DUT and transmit a
TASK MANAGEMENT frame CLEAR_TASK_SET. When ACK is completed, close the
connection.
5. The Testing Station will allow the DUT to open an SSP connection.
Observable Results: Verify that the DUT transmits a response frame with DATAPRES field set to
RESPONSE_DATA and the RESPONSE CODE field set to 00h, TASK MANAGEMENT FUNCTION
COMPLETE.
6. Repeat 1-5 using an invalid LUN (0xFFFFFFFF FFFFFFFF) address
Observable Results: Verify that the DUT transmits a response frame with DATAPRES field set to
RESPONSE_DATA and the RESPONSE CODE field set to INVALID LUN