UFS Power Mode Change 介绍

一. UFS Power Mode Change简介

1.UFS Power Mode指的是Unipro层的Power State, 也可以称为链路(Link)上的Power Mode, 可以通过配置Unipro Attribute, 然后控制切换Unipro Power State,  当前Power Mode Change有两种触发方式:

(1) 通过DME Power Mode Change触发Power Mode Change 

(2)通过DME SET PA_PWRMode[0x1571]触发Power Mode Change

目前主流的安卓平台(QCOM/MTK)使用第二种方式,先设置好本地端(Local )Local 端的Power Mode属性, 然后通过发送DME SET PA_PWRMode切换对端(Peer)的Power Mode. 

UFS Power Mode相关的Unipro Attribute:

(1)PA_ACTIVETXDATALANES[0x1560]/PA_ACTIVERXDATALANES[0x1580]:  Number of active Data Lanes per direction, 通过DME GET 获取对应的属性值,

(2)PA_RxGear[0x1583]/PA_TxGear[0x1568]: PWM-GEAR per direction, 默认Link Startup之后的状态就是PWM_G1

(3)PA_RxGear[0x1583]/PA_TxGear[0x1568]: HS-GEAR used per direction, 需要通过DME SET PA_PWRMode从PWM_G1切换到HS Gear1~ HS Gear4, UFS3.1最高支持HS Gear4, UFS4.0最高支持HS Gear5

(4)PA_HSSeries[0x156A]: HS RATE series (same value used for both directions)

(5)PA_TxTermination[0x1569]/PA_RxTermination[0x1584]: Line termination per direction

(6)PA_PWRMode[0x1571]: Power Mode for each direction combined into a single PA_PWRMode Attribute, 安卓UFS驱动就是通过DME SET PA_PWRMode触发Peer端Power Mode Change流程

  UniPro Power Modes:

Power Mode  Description  UniPro Power State
Fast_Mode The Fast_Mode is capable of the highest data transmission rate of all Power Modes. The Link is always ready to send and receive data while providing a well-defined latency, which is 
the lowest of any UniPro Power Modes. The actual data rate per Data Lane in the Fast_Mode is PHY-specific.
FAST_STATE
Slow_Mode The Slow_Mode is also capable of transmitting data. It should be less than, or equal to, the data rate in Fast_Mode and consume less, or equal, power. The provided latency is welldefined but might be higher than in the Fast_Mode. The actual data rate in the Slow_Mode is PHY-specific. SLOW_STATE
FastAuto_Mode The FastAuto_Mode allows the UniPro stack to autonomously switch between the FAST_STATE and the SLEEP_STATE, depending whether or not the DL Layer has data to send. By switching between states, the FastAuto_Mode might save 
power compared to the Fast_Mode, but at the cost of a possibly less well-defined latency. UniPro does not dictate a certain method for the autonomous switching. In any case, a 
PA Layer shall be able to transmit DL Layer data when in FastAuto_Mode.
FAST_STATE,
SLEEP_STATE
SlowAuto_Mode The SlowAuto_Mode allows the UniPro stack to autonomously switch between the SLOW_STATE and the SLEEP_STATE, depending on whether or not the DL Layer has data to send. By switching between states, the SlowAuto_Mode might save 
power compared to the Slow_Mode, but at the cost of a possibly less well-defined latency. UniPro does n
### 回答1: UFS mode page是指Unix文件系统的模式页。Unix文件系统是一种广泛使用的文件系统,常见于类Unix操作系统中。UFS mode page是用来管理文件系统的模式页,用于记录文件系统的相关信息。 UFS mode page包含了各种参数和选项,用于控制和配置文件系统的行为。它可以包括文件系统的名称、大小、类型、权限等信息。通过读取和修改UFS mode page中的参数,用户和管理员可以对文件系统进行各种操作,例如创建、删除、复制文件等。 UFS mode page还可以记录文件系统的状态信息,例如文件系统是否已挂载、是否只读、是否需要修复等。通过查看UFS mode page的状态信息,可以帮助管理员了解文件系统的健康状况,及时采取措施修复错误或者进行其他操作。 此外,UFS mode page还可以包含一些高级功能的配置选项,例如磁盘缓存、日志记录、数据压缩等。通过修改这些配置选项,可以对文件系统的性能和功能进行优化和调整,以满足不同的需求。 总而言之,UFS mode page是Unix文件系统中用来管理文件系统的重要组成部分,通过记录和调整各种参数和选项,可以对文件系统进行管理和配置,以实现更好的性能和功能。 ### 回答2: UFS(Unix File System)是一种用于UNIX操作系统的文件系统。在UFS中,有一个叫做"mode page"的概念。 "mode page" 可以理解为一种处理设备或存储器的模式设置页。它是一种数据结构,用于存储和读取设备或存储器的特定设置和功能。 在UFS中,"mode page" 被用于定义和控制存储设备的工作模式、功能和特性。比如,它可以设置该设备是否支持缓存、设备的工作模式(读、写、读写等)以及其他一些相关的参数。 这个"mode page"可以由文件系统进行读取和修改,以适应特定的存储设备和操作需求。例如,可以通过修改模式设置页来启用或禁用写入缓存,以提高数据存取的效率。 总之,"mode page" 是UFS文件系统中用于定义和控制存储设备功能和特性的数据结构。它允许文件系统读取和修改设备的工作模式,以适应具体的存储需求。这有助于提高存储设备的效率和性能。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值