Xilinx / xup_vitis_network_example

VNx: Vitis Network Examples
Other
137 stars 43 forks source link

Alveo u50 card to NIC card physical link is not getting detected #122

Closed lizajoseph closed 9 months ago

lizajoseph commented 9 months ago

For Vivado questions, please use Vivado forum

For Vitis questions, please use the Vitis forum

For Vitis questions, please use the Vitis forum

For pynq questions, please use the PYNQ discussion forum.

Usign Vitis 2021.2 or older? Make sure the Y2K22 patch is applied

If you still want to raise an issue here, please give us as much detail as possible to the issue you are seeing. We have listed some helpful fields below.

Build Issues

  1. OS version, e.g. lsb_release -a
  2. Vitis version vitis -version
    1. If Vitis is 2021.2 or older. Is the Y2K22 patch applied?
  3. XRT version xbutil version

Run Time Issues

  1. OS version lsb_release -a
  2. XRT version xbutil version
  3. pynq version pynq version
  4. JupyterLab and Dask version if applicable
lizajoseph commented 9 months ago

After loading the .xclbin, I check for the physical link status between my Alveo u50 and the NIC card but the 'cmac_link' returns false value. But the NIC card is getting detected individually. Could you let me know why this link is not getting detected.

Attached screenshot of the validation steps in Jupyter Lab

lizajoseph commented 9 months ago

print("Link interface 0 {}".format(ol.cmac_0.link_status())) Link interface 0 {'cmac_link': False}

!ifconfig enp3s0f0np0 enp3s0f0np0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500 ether 00:0f:53:b3:ae:c0 txqueuelen 1000 (Ethernet) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 0 bytes 0 (0.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 device interrupt 16

mariodruiz commented 9 months ago

Hi @lizajoseph,

To check the link you should use ethtool

sudo ethtool <interface name>

This should report the stats on the interface, including link status. From the report you show, it does not look like the interface has link.

lizajoseph commented 9 months ago

Will the link status be successful only if the network equipment is 100G NIC? or the link status should be able to detect any network equipment connected to the Alveo u50 card?

mariodruiz commented 9 months ago

Only 100G network equipment would work. Auto-negotiation is not part of this design.

lizajoseph commented 9 months ago

Since auto negotiation is not configured as part of the design it will not be able to exchange information between two different devices (u50 card programmed with CMAC with 100G Ethernet IP and a 25G Solarflare NIC card that I have connected with the u50 card) which are not compatible. Is my understanding correct?

mariodruiz commented 9 months ago

Yes. I mentioned this here https://github.com/Xilinx/xup_vitis_network_example/issues/120

lizajoseph commented 9 months ago

Thanks, you can close the ticket