Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Fibre Channel Protocol for SCSI, Fourth Version (FCP-4). Revision 00a. October 30, 2006..pdf
Скачиваний:
56
Добавлен:
02.05.2014
Размер:
874.59 Кб
Скачать

10/30/06

INCITS T10, Project 1828-D, Revision 00a

B.1.9 SCSI FCP bidirectional command, write first, write FCP_XFER_RDY disabled

A SCSI FCP bidirectional command with three write data IUs and one read data IU is shown in table B.8. The command in the example accepts write data before returning read data. The initial write FCP_XFER_RDY IU has been disabled during Process Login.

Table B.8 - FCP bidirectional command, write FCP_XFER_RDY disabled, example

 

 

 

 

 

 

 

 

Initiator FCP_Port function

 

IU

 

Target FCP_Port function

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Command request

 

T1, FCP_CMND

 

 

 

 

 

 

 

 

 

 

Data-Out action

 

T6, FCP_DATA

 

 

 

 

 

 

 

 

 

 

 

I1, FCP_XFER_RDY

 

Second Data-Out delivery

 

 

 

 

 

 

request

 

 

 

 

 

 

 

 

 

Data-Out action

 

T6, FCP_DATA

 

 

 

 

 

 

 

 

 

 

 

I1, FCP_XFER_RDY

 

Last Data-Out delivery request

 

 

 

 

 

 

 

 

 

Data-Out action

 

T6, FCP_DATA

 

 

 

 

 

 

 

 

 

 

 

 

 

 

[Prepare Data-In transfer]

 

 

 

 

 

 

 

 

 

 

I3, FCP_DATA

 

Data-In action

 

 

 

 

 

 

 

 

 

 

 

 

 

[Prepare response message]

 

 

 

 

 

 

 

 

 

 

I4, FCP_RSP

 

Response

 

 

 

 

 

 

 

 

 

[indicate command completion]

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Working Draft, FCP-4

80

INCITS T10, Project 1828-D, Revision 00a

10/30/06

B.1.10 SCSI FCP bidirectional command with intermixed writes and reads

A SCSI FCP bidirectional command with three data IUs transferred in each direction is shown in table B.9. The command in the example accepts some write data before returning read data, but intermixes writes and reads thereafter.

Table B.9 - FCP bidirectional command with intermixed writes and reads, example

 

 

 

 

 

 

 

 

Initiator FCP_Port function

 

IU

 

Target FCP_Port function

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Command request

 

T1, FCP_CMND

 

 

 

 

 

 

 

 

 

 

 

 

 

 

[Prepare Data-Out transfer

 

 

 

 

 

 

buffer]

 

 

 

 

 

 

 

 

 

 

I1, FCP_XFER_RDY

 

First Data-Out delivery request

 

 

 

 

 

 

 

 

 

Data-Out action

 

T6, FCP_DATA

 

 

 

 

 

 

 

 

 

 

 

 

 

 

[Prepare Data-In transfer]

 

 

 

 

 

 

 

 

 

 

I3, FCP_DATA

 

First Data-In action

 

 

 

 

 

 

 

 

 

 

I1, FCP_XFER_RDY

 

Second Data-Out delivery

 

 

 

 

 

 

request

 

 

 

 

 

 

 

 

 

Data-Out action

 

T6, FCP_DATA

 

 

 

 

 

 

 

 

 

 

 

I1, FCP_XFER_RDY

 

Last Data-Out delivery request

 

 

 

 

 

 

 

 

 

Data-Out action

 

T6, FCP_DATA

 

 

 

 

 

 

 

 

 

 

 

I3, FCP_DATA

 

Second Data-In action

 

 

 

 

 

 

 

 

 

 

I3, FCP_DATA

 

Last Data-In action

 

 

 

 

 

 

 

 

 

 

 

 

 

[Prepare response message]

 

 

 

 

 

 

 

 

 

 

I4, FCP_RSP

 

Response

 

 

 

 

 

 

 

 

 

[indicate command completion]

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

81

Working Draft, FCP-4

10/30/06

INCITS T10, Project 1828-D, Revision 00a

B.1.11 SCSI linked commands

A SCSI WRITE command linked after a SCSI READ command is shown in table B.10. The WRITE command is using the FCP_XFER_RDY IU. INTERMEDIATE Status in the FCP_RSP, together with the link control bits present in the CDB of the FCP_CMND indicate that the second operation is linked to the first.

Table B.10 - FCP linked commands, example

 

 

 

 

 

 

 

 

Initiator FCP_Port function

 

IU

 

Target FCP_Port function

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Command request (READ)

 

T1, FCP_CMND

 

 

 

 

 

 

 

 

 

 

 

 

 

 

[Prepare data transfer]

 

 

 

 

 

 

 

 

 

 

I3, FCP_DATA

 

Data-In action

 

 

 

 

 

 

 

 

 

 

 

 

 

[Prepare response message]

 

 

 

 

 

 

 

 

 

 

I5, FCP_RSP

 

Response (INTERMEDIATE or

 

 

 

 

 

 

INTERMEDIATE CONDITION

 

 

 

 

 

 

MET status)

 

 

 

 

 

 

 

 

 

[Perform command linking]

 

 

 

 

 

 

 

 

 

 

 

 

 

Command request (WRITE)

 

T3, FCP_CMND

 

 

 

 

 

 

 

 

 

 

 

 

 

 

[Prepare data transfer buffer]

 

 

 

 

 

 

 

 

 

 

I1, FCP_XFER_RDY

 

Data delivery request

 

 

 

 

 

 

 

 

 

Data-Out Action

 

T6, FCP_DATA

 

 

 

 

 

 

 

 

 

 

 

 

 

 

[Prepare response message]

 

 

 

 

 

 

 

 

 

 

I4, FCP_RSP

 

Response

 

 

 

 

 

 

 

 

 

[Indicate command completion]

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Working Draft, FCP-4

82

INCITS T10, Project 1828-D, Revision 00a

10/30/06

B.1.12 SCSI WRITE command with confirmed completion

A SCSI WRITE command with confirmed completion is shown in table B.11.

Table B.11 - FCP write command with confirmed completion

 

 

 

 

 

 

 

 

Initiator FCP_Port function

 

IU

 

Target FCP_Port function

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Command request (WRITE)

 

T1, FCP_CMND

 

 

 

 

 

 

 

 

 

 

 

 

 

 

[Prepare data transfer]

 

 

 

 

 

 

 

 

 

 

I1, FCP_XFER_RDY

 

Data delivery request

 

 

 

 

 

 

 

 

 

Data-Out action

 

T6, FCP_DATA

 

 

 

 

 

 

 

 

 

 

 

 

 

 

[Prepare response message]

 

 

 

 

 

 

 

 

 

 

I5, FCP_RSP

 

Response, with

 

 

 

 

 

 

FCP_CONF_REQ

 

 

 

 

 

 

 

 

 

[indicate command completion]

 

 

 

 

 

 

 

 

 

 

 

 

 

Confirm completion

 

T12, FCP_CONF

[Accept confirmation]

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

B.1.13 SCSI FCP task management function

An example of a SCSI Task Management function is shown in table B.12. Additional link services may be required in some cases to complete the activities initiated by the Task Management function.

Table B.12 - FCP task management function, example

 

 

 

 

 

 

 

 

Initiator FCP_Port function

 

IU

 

Target FCP_Port function

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Command request, no CDB

 

T1, FCP_CMND

 

 

 

 

 

 

 

 

 

 

 

 

 

 

[Do Task Management]

 

 

 

 

 

 

 

 

 

 

I4, FCP_RSP

 

Response

 

 

 

 

 

 

 

 

 

[Indicate task management complete]

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

83

Working Draft, FCP-4