5 Admin Command Set

5 Admin Command Set
The Admin Command Set defines the commands that may be submitted to the Admin Submission Queue.
The Submission Queue Entry (SQE) structure and the fields that are common to all Admin commands are defined in section 4.2. The Completion Queue Entry (CQE) structure and the fields that are common to all Admin commands are defined in section 4.6. The command specific fields in the SQE and CQE structures (i.e., SQE Command Dwords 10-15 and CQE Dword 0) for the Admin Command Set are defined in this section.
For all Admin commands, Dword 14 and 15 are I/O Command Set specific.
Admin commands should not be impacted by the state of I/O queues (e.g., a full I/O completion queue should not delay or stall the Delete I/O Submission Queue command).

5管理员命令集
管理员命令集定义可以提交给管理员提交队列的命令。
提交队列条目(SQE)结构和所有Admin命令共有的字段在第4.2节中定义。 在4.6节中定义了完成队列条目(CQE)结构和所有Admin命令共有的字段。 本节中定义了Admin命令集的SQE和CQE结构中的命令特定字段(即SQE命令双字10-15和CQE双字0)。
对于所有Admin命令,Dword 14和15是特定于I / O Command Set的。
管理员命令不应受到I / O队列状态的影响(例如,完整的I / O完成队列不应延迟或停止Delete I / O Submission Queue命令)。

 

 

 

 

 

 

5.1 Abort command
The Abort command is used to abort a specific command previously submitted to the Admin Submission Queue or an I/O Submission Queue. An Abort command is a best effort command; the command to abort may have already completed, currently be in execution, or may be deeply queued. It is implementation specific when a controller chooses to complete the Abort command when the command to abort is not found.
To abort a large number of commands (e.g., a larger number of commands than the limit listed in the ACL field), the host should follow the procedures described in section 7.3.3 to delete the I/O Submission Queue and recreate the I/O Submission Queue.
The Abort command uses the Command Dword 10 field. All other command specific fields are reserved.
The Abort Command Limit field in Identify Controller indicates the controller limit on concurrent execution of Abort commands. A host should not allow the number of outstanding Abort commands to exceed this value. The controller may complete any excess Abort commands with Abort Command Limit Exceeded status.

 

 5.1中止命令

中止命令用于中止先前提交给管理提交队列或I / O提交队列的特定命令。中止命令是一种尽力而为的命令。中止命令可能已经完成,当前正在执行中,或者可能已排队很深。当未选择中止的命令时,控制器选择完成中止命令时,这是特定于实现的。
要中止大量命令(例如,超过ACL字段中列出的限制的命令数量),主机应遵循第7.3.3节中描述的过程删除I / O提交队列并重新创建I / O。 O提交队列。
中止命令使用命令双字10字段。保留所有其他命令特定字段。
“标识控制器”中的“中止命令限制”字段指示并发执行中止命令的控制器限制。主机不应允许未完成的中止命令的数量超过该值。控制器可以以“中止命令超出限制”状态完成任何多余的中止命令。

5.1.1 Command Completion
A completion queue entry is posted to the Admin Completion Queue if the command has been completed and a corresponding completion queue entry has been posted to the appropriate Admin or I/O Completion Queue. Dword 0 of the completion queue entry indicates whether the command was aborted. If the command was successfully aborted, then bit 0 of Dword 0 is cleared to ‘0’. If the command was not aborted, then bit 0 of Dword 0 is set to ‘1’.
Command specific status values associated with the Abort command are defined in Figure 44.

5.1.1命令完成
如果命令已完成并且相应的完成队列条目已发布到适当的Admin或I / O完成队列中,则完成队列条目将发布到Admin完成队列中。 完成队列条目的双字0指示命令是否中止。 如果命令成功中止,则将字0的位0清除为“ 0”。 如果命令没有中止,则将字0的位0设置为“ 1”。
与中止命令关联的命令特定状态值在图44中定义。

posted @ 2020-04-10 09:32  话说吴语  阅读(505)  评论(0编辑  收藏  举报