AXI Streaming Intel® FPGA IP for PCI Express* User Guide

ID 790711
Date 7/08/2024
Public
Document Table of Contents

3.11.1.1. Operating System Tools and Utilities

You can use Linux* utilities like lspci, setpci to obtain general information of the device like link speed, link width, etc.

The following commands reads the negotiated link speed for the AXI Streaming Intel® FPGA IP for PCI Express* in a system.

sudo lspci –s $bdf -vvv

-s refers to “slot” and is used with the bus/device/function number (bdf) information. Use this command if you know the bdf of the device in the system topology

sudo lspci –d :$did -vvv

-d refers to device and is used with the device ID as configured in the parameter settings of the PCIe* IP (vid:did). Use this command to search using the device ID.

Figure 27. lspci Output

The LnkCap under Capabilities indicates the advertised link speed and width capabilities of the device. The LnkSta under Capabilities indicates the negotiated link speed and width of the device.

You can rescan the PCIe* bus using the following commands. You must have root privileges to perform the below commands:

#To detach the device from the tree:
% echo 1 > /sys/bus/pci/devices/0a:00.0/remove 
#To rescan the bus:
% echo 1 > /sys/bus/pci/rescan