UFS 10 - UAP – SCSI Commands(5)

UFS 10 - UAP – SCSI Commands(5)

    • 3.10 START STOP UNIT Command
      • 3.10.1 START STOP UNIT Parameters
      • 3.10.2 Start Stop Unit Data Response
      • 3.10.3 Start Stop Unit Status Response
    • 3.11 TEST UNIT READY Command
      • 3.11.1 Test Unit Ready Data Response
      • 3.11.2 Test Unit Ready Status Response

UFS 1-UFS架构简介1
UFS 2 -UFS架构简介2
UFS 3 - UFS RPMB
UFS 4 - UFS Boot
UFS 5 - UFS UIC Layer: MIPI M-PHY
UFS 6 - UAP – SCSI Commands(1)
UFS 7 - UAP – SCSI Commands(2)
UFS 8 - UAP – SCSI Commands(3)
UFS 9 - UAP – SCSI Commands(4)

3.10 START STOP UNIT Command

The START STOP UNIT command requests that the device server change the power condition of the logical unit or load or eject the medium.
START STOP UNIT 命令请求设备服务器改变逻辑单元的电源状态或加载或弹出介质。

  • Enable or disable the direct-access block device for medium access operations by controlling power
  • 通过控制电源启用或禁用用于介质访问操作的直接访问块设备
    The Command CDB shall be sent in a single COMMAND UPIU.
    命令 CDB 应在单个命令 UPIU 中发送。
    UFS 10 - UAP – SCSI Commands(5)_第1张图片
  • IMMED = 0 : Return STATUS (RESPONSE UPIU) after operation is completed
  • IMMED = 0 : 操作完成后返回 STATUS (RESPONSE UPIU)
  • IMMED = 1 : Return STATUS after CDB is decoded
  • IMMED = 1 : CDB解码后返回STATUS

3.10.1 START STOP UNIT Parameters

Power Condition Modifier shall be set to ‘0’ (reserved) in UFS spec.
在 UFS 规范中,Power Condition Modifier 应设置为“0”(保留)。
Use of the other parameters is defined in the Power Mode section.
其他参数的使用在电源模式部分定义。

3.10.2 Start Stop Unit Data Response

  • The START STOP UNIT command does not have a data phase
  • START STOP UNIT 命令没有数据阶段
  • No DATA IN or DATA OUT UPIU’s are transferred
  • 没有数据输入或数据输出 UPIU 被传输

3.10.3 Start Stop Unit Status Response

  • STATUS response will be sent in a single RESPONSE UPIU
  • STATUS 响应将在单个 RESPONSE UPIU 中发送
  • If IMMED = 1 in the CDB, the STATUS response will be sent to the Application Client before the device operations have been completed
  • 如果 CDB 中的 IMMED = 1,则 STATUS 响应将在设备操作完成之前发送到应用程序客户端
    • Usually used for shutting down
    • 通常用于关机
  • If the requested operation is successful, the START STOP UNIT command will terminate with a STATUS response of GOOD
  • 如果请求的操作成功,START STOP UNIT 命令将以 GOOD 的 STATUS 响应终止
  • If the unit is not ready to accept a new command (e.g., still processing previous command) a STATUS response of BUSY will be returned
  • 如果设备未准备好接受新命令(例如,仍在处理之前的命令),将返回 BUSY 状态响应
  • Failure can occur for few reasons. When the START STOP UNIT command fails a STATUS response of CHECK CONDITION will be returned along with an appropriate SENSE KEY, such as
  • 失败的发生可能有几个原因。当 START STOP UNIT 命令失败时,CHECK CONDITION 的 STATUS 响应将连同适当的 SENSE KEY 一起返回,例如
    • ILLEGAL REQUEST (range or CDB errors)
    • HARDWARE ERROR (hardware failure)
    • UNIT ATTENTION

3.11 TEST UNIT READY Command

The TEST UNIT READY command provides a means to check if the logical unit is ready. This is not a request for a self-test.
TEST UNIT READY 命令提供了一种检查逻辑单元是否准备就绪的方法。这不是自测请求。

  • If the logical unit is able to accept an appropriate medium-access command without returning CHECK CONDITION status, this command shall return a GOOD status.
  • 如果逻辑单元能够在不返回 CHECK CONDITION 状态的情况下接受适当的媒体访问命令,则该命令应返回 GOOD 状态。
  • If the logical unit is unable to become operational or is in a state such that an Application Client action (e.g., START UNIT command) is required to make the logical unit ready, the command shall be terminated with CHECK CONDITION status, with the sense key set to NOT READY (02h).
  • 如果逻辑单元无法运行或处于需要应用程序客户端操作(例如,START UNIT 命令)以使逻辑单元准备就绪的状态,则该命令应以 CHECK CONDITION 状态终止,并使用 sense key设置为未就绪 (02h)。
    The Command CDB shall be sent in a single COMMAND UPIU
    命令 CDB 应在单个命令 UPIU 中发送
    UFS 10 - UAP – SCSI Commands(5)_第2张图片

3.11.1 Test Unit Ready Data Response

  • The TEST UNIT READY command does not have a data response
  • TEST UNIT READY 命令没有数据响应
  • No DATA IN or DATA OUT UPIU’s are transferred
  • 没有数据输入或数据输出 UPIU 被传输

3.11.2 Test Unit Ready Status Response

  • STATUS response will be sent in a single RESPONSE UPIU.
  • STATUS 响应将在单个 RESPONSE UPIU 中发送。
  • If the command succeeds without error, the TEST UNIT READY command will terminate with a STATUS response of GOOD
  • 如果命令成功且没有错误,则 TEST UNIT READY 命令将以 GOOD 的 STATUS 响应终止
  • If the unit is not ready to accept a new command (e.g., still processing previous command) a STATUS response of BUSY will be returned
  • 如果设备未准备好接受新命令(例如,仍在处理之前的命令),将返回 BUSY 状态响应
  • Failure can occur for few reasons. When the START STOP UNIT command fails a STATUS response of CHECK CONDITION will be returned along with an appropriate SENSE KEY, such as
  • 失败的发生可能有几个原因。当 START STOP UNIT 命令失败时,CHECK CONDITION 的 STATUS 响应将连同适当的 SENSE KEY 一起返回,例如
    • ILLEGAL REQUEST (range or CDB errors)
    • HARDWARE ERROR (hardware failure)
    • UNIT ATTENTION
    • etc.

你可能感兴趣的:(UFS专栏,UFS,UAP,SCSI,Commands)