本章节主要是针对USB3.1 协议中的链路层的大概的了解和总结,其中很多细节和diagram 没有列举出来。详细可以参考USB3.1 spec chapter 7
7,link layer 数据链路层
数据链路层的几个主要的工作范围:
packet framing
link command definition and usage
link initialization flow control
ling power mangerment
error 检测和处理
reset
link trainning and status state manchine(LTSSM).
7.4 reset
有两种reset,
一种是power reset,在power提供的时候,会将所有存储,register,清理成default状态。power reset之后LTSSM会处于RX detect的状态;
另一种是inband reset,包括hot reset和warm reset。hot reset 与warm reset的区别?
不管是哪种reset,过程完成之后link层会进入U0状态。
7.5 LTSSM
有四种operational link states(power status):
U0:
U0 is a state where an Enhanced SuperSpeed link is enabled. Packet transfers are in progress or the link is idle.
U1:
U1 is low power link state where no packet transfer is carried out and the Enhanced SuperSpeed link connectivity can be disabled to allow opportunities for saving the
link power.U2:
U2 is also a low power link state. Compared with U1, U2 allows for further powersaving opportunities with a penalty of increased exit latency.
U3:
U3 is a link suspend state where aggressive power saving opportunities are possible.
另有四种link states,针对初始化和trainning引入的
there are four link states, Rx.Detect, Polling, Recovery, and Hot Reset, that are introduced for link initialization and training.Rx.Detect
Polling
Recovery
Hot Reset
第三类
two other link states, Loopback and Compliance Mode, are introduced for bit error test and transmitter compliance test
第四类:
Finally, two more link states are defined. eSS.Inactive is a link error state where a link is in a non-operable state and software intervention is needed. eSS.Disabled is a
link state where Enhanced SuperSpeed connectivity is disabled and the link may operate under USB 2.0 mode