UFS 7 - UAP – SCSI Commands(2)

文章详细阐述了UFS设备中MODESELECT(10)和MODESENSE(10)两个SCSI命令的用途和操作。MODESELECT用于应用程序客户端指定设备参数,而MODESENSE则是设备服务器向客户端报告参数的方式。两者都涉及到模式页面的管理和数据传输,且有特定的命令参数、数据传输过程和状态响应。
摘要由CSDN通过智能技术生成

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)

3.3 MODE SELECT (10) Command

MODE SELECT command provides a means for the application client to specify medium, logical unit, or peripheral device parameters to the device server.
MODE SELECT 命令为应用程序客户端提供了一种向设备服务器指定介质、逻辑单元或外围设备参数的方法。

  • Parameters are managed by means of parameter pages called mode pages
  • 参数通过称为模式页面的参数页面进行管理
    • UFS devices shall support the following mode pages
      • CONTROL, CACHING, READ-WRITE ERROR RECOVERY
    • UFS devices may support vendor specific mode pages
    • See 11.4 for further details.
  • Writes parameters to one or more mode pages in a list
  • 将参数写入列表中的一个或多个模式页面
    • The Application Client can specify a single, multiple or all supported pages in a single command
    • Application Client 可以在单个命令中指定单个、多个或所有支持的页面
  • Complementary command to the MODE SENSE command
  • MODE SENSE 命令的补充命令
    The Command CDB shall be sent in a single COMMAND UPIU
    命令 CDB 应在单个命令 UPIU 中发送
    在这里插入图片描述

3.3.1 Mode Select Command Parameters

在这里插入图片描述

3.3.2 Mode Select Command Data Transfer

The Device Server requests to transfer the mode parameter list from the Application Client data-out buffer by issuing one or more READY TO TRANSFER UPIU’s (RTT).
设备服务器通过发出一个或多个 READY TO TRANSFER UPIU (RTT) 请求从应用程序客户端数据输出缓冲区传输模式参数列表。
The mode parameter list is delivered in one or more segments sending DATA OUT UPIU packets, as indicated in the RTT requests,.
模式参数列表在发送 DATA OUT UPIU 数据包的一个或多个段中传送,如 RTT 请求中所示。
Zero or an incomplete number of segments may be requested, if an error occurs before the entire data transfer is complete.
如果在整个数据传输完成之前发生错误,则可能会请求零个或不完整的段数。
Mode parameters are changed as specified in the received mode parameter list if the command completes succefully.
如果命令成功完成,模式参数将按照接收到的模式参数列表中的指定进行更改。
See 11.4.1.2, Mode parameter list format, for details about the mode parameter list.
有关模式参数列表的详细信息,请参见 11.4.1.2,模式参数列表格式。

3.4 MODE SENSE (10) Command

The MODE SENSE command provides a means for a Device Server to report parameters to an Application Client
MODE SENSE 命令为设备服务器提供了一种向应用程序客户端报告参数的方法

  • Parameters are managed by means of parameter pages called Mode Pages
    • UFS devices shall support the following mode pages
      • CONTROL, READ-WRITE ERROR RECOVERY, CACHING
    • UFS devices may support vendor specific mode pages
    • See 11.4 for further details
  • Reads parameter pages in a list
    • The Application Client may request any one or all of the supported pages from the Device Server
    • If all pages requested, they will be returned in ascending page order
  • Mode Sense returns DEVICE-SPECIFIC PARAMETER in header
    • See paragraph 11.4.1.3, Mode Parameter Header for details.
  • Complementary command to the MODE SELECT command
    The Command CDB shall be sent in a single COMMAND UPIU
    在这里插入图片描述

3.4.1 Mode Sense Command Parameters

在这里插入图片描述

3.4.2 Page Control Function

在这里插入图片描述

3.4.3 Mode Sense Command Data Transfer

The Device Server will transfer up to Allocation Length number of data bytes of Mode Parameter Data to the Application Client.

  • Less than Allocation Length will be transferred if Device Server contains less bytes
    The Device Server will transfer the data as indicated by the Mode Parameter Layout
  • Header (8 bytes)
  • Block Descriptor (0 bytes for UFS)
  • Page Data (N bytes, dependent up page requested)
    Data will be transferred from the Device Server to the Application Client via a series of DATA IN UPIU’s
  • The data transferred from the Device Server will be contained within the Data Segment of the DATA IN UPIU
    Zero or an incomplete number of DATA IN UPIU’s will be transferred if an error occurs before the entire data transfer is complete.

3.4.4 Mode Sense Command Status Response

  • STATUS response will be sent in a single RESPONSE UPIU
  • If the requested data is successfully transferred and written, the MODE SENSE command will terminate with a STATUS response of GOOD
  • 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
  • Failure occurs when a requesting a page or subpage that is not supported. A STATUS response of CHECK CONDITION will be returned with a SENSE KEY indicating ILLEGAL REQUEST
  • Failure can occur for numerous reasons. When the MODE SENSE command fails a STATUS response of CHECK CONDITION will be returned along with an appropriate SENSE KEY, such as、
    • ILLEGAL REQUEST (CDB errors)
    • HARDWARE ERROR (hardware failure)
    • UNIT ATTENTION (reset, power-on, etc.)
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值