PCIe DL_Feature详解

DL_Feature的引入

   Data Link Control and Management State Machine在PCIe Gen4引入了DL_Feature这个状态,该状态主要用来协商PCIe link 两端是否支持新的DL Feature,目前为止DL Feature只引入了Scaled Flow Control 来提高Gen4及以上的效率。PCIe DL_Feature详解_第1张图片
  DL_Feature 这个状态是可选的,当 Data Link Feature
Extended Capability中Data Link Feature Exchange Enable field为0时状态机就会跳过DL_Feature子状态。

DL Link Feature Protocol 介绍

   链路两端port在DL_Feature子状态通过DL Link Feature Protocol进行协商,判断两端port是否都支持DL_Feature, 为了支持DL_Link Feature,Data Link Feature Extended Capability中包含Data Link Feature Capabilities 和Data Link Feature Status寄存器:
Data Link Feature Capabilities Register:
在这里插入图片描述
PCIe DL_Feature详解_第2张图片

Data Link Feature Status Register:
在这里插入图片描述
PCIe DL_Feature详解_第3张图片

DL_Feature sub-status行为

  1. 进入DL_Feature:
    • Remote Feature Supported valid 和Remote Feature Supported 都要设置都应该为0.
  2. 在DL_Feature子状态:
    • PCIe Link 两端发送DL_Feature DLLP 进行协商,发送的Feature Supported 域要与Data Link Feature Capabilities Register中Local Feature Supported Field 一致,Feature Ack要与Data Link Feature Status Register中Remote_Data_Link_Feature_Supported_Valid保持一致。
  3. 退出DL_Feature:
    • 收到InitFc1 DLLP
    • 收到Feature Ack
    • 收到MR_IOV Init DLLP

  下面以一个例子来具体说明DL_Feature Protocol:
Example: Local Port Initial DL Link Feature Protocol
Step 1.

  • Local Port transmit DL Link Feature DLL with DL Feature Supported bit equal to Data Link Feature Field in Data Link Control Capability Register
  • DL_Feature ACK = 0

Step 2.

  • Local Port record Remote Feature Supported bit, if Remote Data Link Feature Supported Valid is zero.
  • Check Remote Feature Ack from remote Port.

Step 3.

  • Local Port transmit Remote Feature Ack equal to the Data Link Feature Supported valid which will be 1 after Local Port received Data Link Feature DLLP.

Note: These Steps should be transmitted within 34us. If transmitted Feature Ack and received transmitted Feature Ack are all 1, loack and remote port all suport Data Link Feature, else Data Link Feature can not be applied.

PCIe DL_Feature详解_第4张图片

你可能感兴趣的:(PCIe,服务器,经验分享,PCIe)