1. Function:
Display all PCI bus information of the current host
2. Common commands:
lspci -nn
- Numbers in the first column:
Bus Number: Device Number: Function Number
- The first square bracket: For example, in the second line: [0600]: the device type of the current device DeviceClass
- Intermediate description information, it is easy to understand that it is the information of the device
- The second square bracket: For example, [8086:3ec2] in the second line represents the VendorID (vendor identification code) and DeviceID of the device, use DeviceClass, VendorID:DeviceID to match the corresponding device
For example, I want to check the bandwidth of nvidia corresponding to pcie:
lspci -nn | grep -i nvidia
lspci -n -d 10de:1c31 -vvv |grep -i width
3. Command details
lspci -vv
lspci -n
lspci -tv -- tree structure display all pcie devices on the device, and display brief information
lspci -tn -- tree structure display all pcie devices on the device, and deviceid vendorid
lspci -vv -s 00: 1f.3 --View detailed information of 00:1f.3 device
lspci -xxx -s 00:1f.3 --View all contents of 00:1f.3 device configuration space
lspci -vv -d 8086:8c22 --View Detailed information of the 8086:8c22 device
lspci -xxx-d 8086:8c22 --View all the contents of the 8086:8c22 device configuration space