Hello, TI Experts,
We can get the detail from the customer about Gen2 link fail on AM5728 from the DK-san comment of E2E thread as below.
https://e2e.ti.com/support/arm/sitara_arm/f/791/p/596010/2222020#2222020
If three are some clue, please tell us.
<Detail>
- They use "3rd-party OS" and their custom board. (please refer attached pdf)
- PCIE_SS1 connected to TI-USB Controller(TUSB7320IRKMT).
- PCIE_SS2 connected to FPGA.
- They refer the sample code of PROCESSOR-SDK-RTOS-AM57X as below;
C:\ti\pdk_am57xx_1_0_6\packages\ti\csl\example\pcie\write_loopback\rc\rc_write_loopback_app_main.c
Problem:
PCIe GEN1-GEN2 switching Link to FPGA fails at PCIE initialization/link training phase as following.
1: Link-up at Gen1 at PCIE initialization/link training phase.
2: They want to switch to Gen2.
So, they set the register value of PCIECTRL_TI_CONF_IRQSTATUS_RAW_MAIN.MAX_LINK_SPEEDS=0x2.
Then, they set 0x1 to PCIECTRL_TI_CONF_DEVICE_CMD.LTSSM_EN.
(reference: C:\ti\pdk_am57xx_1_0_6\packages\ti\csl\example\pcie\write_loopback\rc\rc_write_loopback_app_main.c)
3: They found both OK & NG case.
OK: Gen2 switching is success.
NG: Gen2 switching doesn’t happen.
- Stay Gen1 ( they monitored PCIE main line signals by protocol analyzer.)
- PCIECTRL_TI_CONF_IRQSTATUS_RAW_MAIN.LINK_REQ_RST seems to be set.
Key difference of OK case and NG case: (please refer attached pdf)
- NG: They found "Ordered Set (Symbol Number4):Autonomous Change/Selectable De-emphasis=1" from FPGA on the protocol analyzer.
- OK: They found "Ordered Set (Symbol Number4):Autonomous Change/Selectable De-emphasis=0" from FPGA on the protocol analyzer.
Questions:
1) Do you have same experience or comment as below?
- PCIE endpoint sent "Autonomous Change/Selectable De-emphasis" by "Ordered Set (Symbol Number4)"=1 to AM5728 as RootComplex.
- After that, PCIECTRL_TI_CONF_IRQSTATUS_RAW_MAIN.LINK_REQ_RST seems to be set (watched by polling this register address [0x51802020]).
- They found the register result as below;
- 0x51802020: LINK_REQ_RST=1, CFG_MSE_EVT=1, CFG_BME_EVT=1, LINK_UP_EVT=1;
- 0X51802104: LTSSM_STATE[7:2]=0x00;
- AM5728 also seems to be reset.
2) Is there any restriction or notice of "Autonomous Change / De-emphasis" function on AM5728?
We would appreciate if you tell us how to solve this problem.
Best regards,