Query task set (testf.8) – Teledyne LeCroy SAS Sample Test Suite User Manual

Page 96

Advertising
background image

SAS Sample Test Suite

Behavior After Receiving a Task Management Request (Test Group F)

96

QUERY TASK SET (TestF.8)
When QUERY TASK SET is received, the Target device shall determine whether there are any

commands received for this I_T_L nexus in the Target device’s task set.

If any command is present, then 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 08h, TASK MANAGEMENT FUNCTION SUCCEEDED.

If there are no commands present, then 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 QUERY_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 transmit either a Response frame with DATAPRES field set

to RESPONSE_DATA and the RESPONSE CODE field set to 00h, TASK MANAGEMENT FUNCTION

COMPLETE. Or, DATAPRES field set to RESPONSE_DATA and the RESPONSE CODE field set to 08h,

TASK MANAGEMENT FUNCTION SUCCEDED.

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

Advertising