Query asynchronous event (testf.9) – Teledyne LeCroy SAS Sample Test Suite User Manual

Page 98

Advertising
background image

SAS Sample Test Suite

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

98

QUERY ASYNCHRONOUS EVENT (TestF.9)
When QUERY ASYNCHRONOUS EVENT is received, the Target device shall determine whether there

is a Unit Attention condition pending for this I_T nexus.

If a Unit Attention is pending, 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. It shall include Additional

Response Information as defined in SAM4r14, 7.10.

If there is not a Unit Attention pending, 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. It shall

include Additional Response Information as defined in SAM4r14, 7.10.

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_ASYNCHRONOUS_EVENT. 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