To see the PCI devices on a CentOS or Red Hat Enterprise Linux system, you can use the lspci
command. This command displays a list of all PCI devices on the system, along with their configuration information.
To display the list of PCI devices, simply run the lspci
command:
lspci
This will show output similar to the following:
00:00.0 Host bridge: Intel Corporation Xeon E3-1200 v6/7th Gen Core Processor Host Bridge/DRAM Registers (rev 02) 00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor PCIe Controller (x16) (rev 02) 00:14.0 USB controller: Intel Corporation 200 Series/Z370 Chipset Family USB 3.0 xHCI Controller 00:16.0 Communication controller: Intel Corporation 200 Series PCH CSME HECI #1 00:17.0 SATA controller: Intel Corporation 200 Series PCH SATA controller [AHCI mode] 00:1c.0 PCI bridge: Intel Corporation 200 Series PCH PCI Express Root Port #1 (rev f0) 00:1c.4 PCI bridge: Intel Corporation 200 Series PCH PCI Express Root Port #5 (rev f0) 00:1c.5 PCI bridge: Intel Corporation 200 Series PCH PCI Express Root Port #6 (rev f0) 00:1d.0 PCI bridge: Intel Corporation 200 Series PCH PCI Express Root Port #9 (rev f0) 00:1f.0 ISA bridge: Intel Corporation 200 Series PCH LPC Controller (H270) 00:1f.2 Memory controller: Intel Corporation 200 Series/Z370 Chipset Family Power Management Controller 00:1f.3 Audio device: Intel Corporation 200 Series PCH HD Audio 00:1f.4 SMBus: Intel Corporation 200 Series/Z370 Chipset Family SMBus Controller 01:00.0 VGA compatible controller: NVIDIA Corporation GP107 [GeForce GTX 1050 Ti] (rev a1) 01:00.1 Audio device: NVIDIA Corporation GP107GL High Definition Audio Controller (rev a1) 02:00.0 Ethernet controller: Intel Corporation Ethernet Connection (2) I219-V 03:00.0 Network controller: Intel Corporation Wireless 8265 / 8275 (rev 78)
To see more detailed information about a specific PCI device, you can use the -v
option:
lspci -v
This will show more detailed information about each PCI device, such as its vendor, device, and class codes, as well as its configuration space registers.
You can also use the -nn
option to display the PCI vendor and device IDs in hexadecimal format:
lspci -nn
This will show output similar to the following:
00:00.0 0600: 8086:5906 (rev 02) 00:01.0 0604: 8086:5910 (rev 02) 00:14.0 0c03: 8086:a2af 00:16.0 0780: 8086:a2ba 00:17.0 0106: 8086:a282 00:1c.0 0604: 8086:a290 (rev f0) 00:1c.4 0604: 808