iMX8M Plus: Forcing to retrain PCIe Link

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

iMX8M Plus: Forcing to retrain PCIe Link

472 Views
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 Kudos
Reply
0 Replies