UFS 12 - UAP – SCSI Commands(6)

UFS 12 - UAP – SCSI Commands(6)

  • 3.12 REPORT LUNS Command
      • 3.12.1 Report LUNS Command Parameters
      • 3.12.2 Report LUNS Command Select Report Field Values
      • .3.12.3 Report LUNS Data Response
      • 3.12.4 Report LUNS Parameter Data Format
      • 3.12.5 Report LUNS LUN Addressing Formats
      • 3.12.6 Report LUNS Status Response
      • 3.12.7 UFS LUN Format
  • 3.13 VERIFY (10) Command
      • 3.13.1 Verify Command Parameters
      • 3.13.2 Verify Command Data Transfer
      • 3.13.3 Verify Command 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)
UFS 10 - UAP – SCSI Commands(5)
UFS 11 - UFS RPMB分区功能验证

3.12 REPORT LUNS Command

The REPORT LUNS command requests that the peripheral device logical unit inventory be sent to the Application Client.
REPORT LUNS 命令请求将外围设备逻辑单元清单发送到应用程序客户端。

  • The logical unit inventory is a list that shall include the logical unit numbers of all logical units accessible to a UFS Application Client
  • 逻辑单元清单是一个列表,其中应包括 UFS 应用程序客户端可访问的所有逻辑单元的逻辑单元编号
  • If a REPORT LUNS command is received with a pending unit attention condition (i.e., before the device server reports CHECK CONDITION status), the device server shall perform the REPORT LUNS command
  • 如果收到带有未决单元注意条件的 REPORT LUNS 命令(即,在设备服务器报告 CHECK CONDITION 状态之前),设备服务器应执行 REPORT LUNS 命令

The Command CDB shall be sent in a single COMMAND UPIU
命令 CDB 应在单个 COMMAND UPIU 中发送
UFS 12 - UAP – SCSI Commands(6)_第1张图片

3.12.1 Report LUNS Command Parameters

UFS 12 - UAP – SCSI Commands(6)_第2张图片

3.12.2 Report LUNS Command Select Report Field Values

UFS 12 - UAP – SCSI Commands(6)_第3张图片
NOTE The well known logical units are not included in the list when the SELECT REPORT field is set to zero.

.3.12.3 Report LUNS Data Response

  • Data returned from a REPORT LUNS command will be transferred to the Application Client in a one or more DATA IN UPIU’s
  • 从 REPORT LUNS 命令返回的数据将通过一个或多个 UPIU 数据传输到应用程序客户端
  • Most likely one DATA IN UPIU
  • UPIU 中最有可能的一项数据
  • The Device Server will transfer less than or equal to Allocation Length data bytes to the Application Client.
  • 设备服务器将小于或等于分配长度的数据字节传输到应用程序客户端。
  • Less if Device Server has less total data than requested
  • 如果设备服务器的总数据少于请求的数据,则较少
  • Data will be returned in the indicated Parameter Data Format described in the following.
  • 数据将以如下所述的指定参数数据格式返回。
  • Each reportable logical unit will produce 8 bytes of data.
  • 每个可报告逻辑单元将产生 8 字节的数据。

3.12.4 Report LUNS Parameter Data Format

UFS 12 - UAP – SCSI Commands(6)_第4张图片

3.12.5 Report LUNS LUN Addressing Formats

UFS 12 - UAP – SCSI Commands(6)_第5张图片
UFS 12 - UAP – SCSI Commands(6)_第6张图片

3.12.6 Report LUNS Status Response

  • Status response will be sent in a single RESPONSE UPIU
  • 状态响应将在单个 RESPONSE UPIU 中发送
  • If all requested data is successfully read and transferred, the REPORT LUNS command will terminate with a STATUS response of GOOD
  • 如果所有请求的数据均已成功读取和传输,则 REPORT LUNS 命令将终止并返回 GOOD 的 STATUS 响应
  • The REPORT LUNS command will succeed when a pending UNIT ATTENTION condition exists
  • 当存在挂起的 UNIT ATTENTION 条件时,REPORT LUNS 命令将成功
  • Failure can occur for very few reasons, mainly for illegal values in the CDB. When the REPORT LUNS command fails a STATUS response of CHECK CONDITION will be returned along with an appropriate SENSE KEY, such as
  • 发生失败的原因很少,主要是 CDB 中的非法值。当 REPORT LUNS 命令失败时,将返回 CHECK CONDITION 的 STATUS 响应以及相应的 SENSE KEY,例如
    • ILLEGAL REQUEST (CDB errors)

3.12.7 UFS LUN Format

在这里插入图片描述
The UFS 8-bit LUN field in UPIU supports two types of LUN addressing:

  • If WLUN_ID bit = ‘0’ then the UNIT_NUMBER_ID field addresses a standard logical unit (LUN)
  • 如果 WLUN_ID 位 = ‘0’,则 UNIT_NUMBER_ID 字段寻址标准逻辑单元 (LUN)
  • If WLUN_ID bit = ‘1’ then the UNIT_NUMBER_ID field addresses a well known logical unit (W- LUN)
  • 如果 WLUN_ID 位 = ‘1’,则 UNIT_NUMBER_ID 字段寻址众所周知的逻辑单元 (W-LUN)
    Up to 128 LUN’s and up to 128 W-LUN’s
  • 0 <= UNIT_NUMBER_ID <= 127
    The following table defines the logical unit number for UFS well known logical units (WLUN_ID bit set to ‘1’)
    下表定义了 UFS 众所周知的逻辑单元的逻辑单元号(WLUN_ID 位设置为“1”)
    UFS 12 - UAP – SCSI Commands(6)_第7张图片

3.13 VERIFY (10) Command

The VERIFY command requests that the UFS device verify that the specified logical block(s) and range on the medium can be accessed.
VERIFY 命令请求 UFS 设备验证是否可以访问介质上的指定逻辑块和范围。

  • Logical units that contain cache shall write referenced cached logical blocks to the medium for the logical unit before verification
  • 包含缓存的逻辑单元应在验证之前将引用的缓存逻辑块写入该逻辑单元的介质

The Command CDB shall be sent in a single COMMAND UPIU.
命令 CDB 应在单个命令 UPIU 中发送。
UFS 12 - UAP – SCSI Commands(6)_第8张图片
UFS device is required to support only the value zero for the byte check (BYTCHK) bit. Therefore the BYTCHK bit should be set to zero, and the device shall perform a medium verification with no data comparison and not transfer any data from the data-out buffer for any mapped LBA specified by the command.
UFS 设备需要仅支持字节检查 (BYTCHK) 位的零值。因此,BYTCHK 位应设置为零,并且设备应执行不进行数据比较的介质验证,并且不会从数据输出缓冲区传输命令指定的任何映射 LBA 的任何数据。

3.13.1 Verify Command Parameters

UFS 12 - UAP – SCSI Commands(6)_第9张图片

3.13.2 Verify Command Data Transfer

The VERIFY command does not have a data response
VERIFY 命令没有数据响应

  • No DATA IN or DATA OUT UPIU’s are transferred
  • 不传输 DATA IN 或 DATA OUT UPIU

3.13.3 Verify Command Status Response

  • STATUS response will be sent in a single RESPONSE UPIU
  • STATUS 响应将在单个 RESPONSE UPIU 中发送
  • If all requested data is successfully verified against the medium, the VERIFY command will terminate with a STATUS response of GOOD
  • 如果所有请求的数据都已根据介质成功验证,则 VERIFY 命令将终止并返回 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 的 STATUS 响应
  • Other failures can occur for numerous reasons. When the VERIFY command fails a STATUS response of CHECK CONDITION will be returned along with an appropriate SENSE KEY, such as:
  • 其他故障的发生可能有多种原因。当 VERIFY 命令失败时,将返回 CHECK CONDITION 的 STATUS 响应以及相应的 SENSE KEY,例如:
    • ILLEGAL REQUEST (range or CDB errors)
    • MEDIUM ERROR (medium failure, ECC, etc.)
    • HARDWARE ERROR (hardware failure)
    • UNIT ATTENTION (reset, power-on, etc.)
    • etc.

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