iMX8M Plus: Forcing to retrain PCIe Link

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

iMX8M Plus: Forcing to retrain PCIe Link

539 次查看
MehmetFide
Contributor I

Hi,

We have an Intel Arria 10 GX FPGA connected to NXP iMX8M Plus via PCIe Gen3 x1 bus.

After Linux boots we configure the FPGA through an SPI bus and then the FPGA starts acting as a PCIe Endpoint device.

At this point, the FPGA should appear in the list of lspci command, but it is not. To see the FPGA in the list, we simply need to reset the NXP iMX8M Plus without resetting the FPGA which is unfortunate.

"echo 1 > /sys/bus/pci/rescan" doesn't work since PCIe link never established. 

Restarting the Linux is not an option for us. Somehow we should be able to tell the linux please retrain the link without restarting whole linux. I have looked at Reference Manual of iMX8M-Plus. LINK_STAT_CTRL register has a bit called RETRAIN_LINK. Is there a way to set this bit in userspace?

 

Thank you.

 

0 项奖励
回复
0 回复数