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.
- UFS devices shall support the following mode pages
- 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
- UFS devices shall support the following mode pages
- 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
文章来源:https://www.toymoban.com/news/detail-490080.html
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.文章来源地址https://www.toymoban.com/news/detail-490080.html
- 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.)
到了这里,关于UFS 7 - UAP – SCSI Commands(2)的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!