How To List Linux Pci Devices Using lspci Command

April 23, 2011 | By
| Reply More

Peripheral component interface is a computer bus used for attaching the hardware devices in a computer. “lspci” command is used in Linux operating system to display all the information about these PCI buses of the system and devices which are attached to the system. By this lspci command, we can get the full detailed information like all buses, devices, bridges and about how the PCI devices are connected to the PCI bus. lspci utility command will be useful in diagnosing the problems related to PCI devices.

Example: 1

[root@localhost /]# lspci
00:00.0 Host bridge: Intel Corporation 440BX/ZX/DX - 82443BX/ZX/DX Host bridge (rev 01)
00:01.0 PCI bridge: Intel Corporation 440BX/ZX/DX - 82443BX/ZX/DX AGP bridge (rev 01)
00:07.0 ISA bridge: Intel Corporation 82371AB/EB/MB PIIX4 ISA (rev 08)
00:07.1 IDE interface: Intel Corporation 82371AB/EB/MB PIIX4 IDE (rev 01)
00:07.2 USB Controller: Intel Corporation 82371AB/EB/MB PIIX4 USB
00:07.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 08)
00:0f.0 VGA compatible controller: VMware Inc [VMware SVGA II] PCI Display Adapter
00:10.0 SCSI storage controller: LSI Logic / Symbios Logic 53c1030 PCI-X Fusion-MPT Dual Ultra320 SCSI (rev 01)
00:11.0 PCI bridge: VMware Inc Unknown device 0790 (rev 02)
02:00.0 Ethernet controller: Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE] (rev 10)
02:01.0 Multimedia audio controller: Ensoniq ES1371 [AudioPCI-97] (rev 02)
02:02.0 USB Controller: VMware Inc Unknown device

The above command will display the information about system PCI devices.

Example: 2

[root@localhost /]# lspci -t
-[0000:00]-+-00.0
+-01.0-[0000:01]--
+-07.0
+-07.1
+-07.2
+-07.3
+-0f.0
+-10.0
\-11.0-[0000:02]--+-00.0
+-01.0
\-02.0

The above command gives output of all devices, buses and connections in a tree like diagram.

Example:3

[root@localhost /]# lspci -v
00:00.0 Host bridge: Intel Corporation 440BX/ZX/DX - 82443BX/ZX/DX Host bridge (rev 01)
Subsystem: VMware Inc virtualHW v3
Flags: bus master, medium devsel, latency 0

00:01.0 PCI bridge: Intel Corporation 440BX/ZX/DX - 82443BX/ZX/DX AGP bridge (rev 01) (prog-if 00 [Normal decode])
Flags: bus master, 66MHz, medium devsel, latency 0
Bus: primary=00, secondary=01, subordinate=01, sec-latency=64

00:07.0 ISA bridge: Intel Corporation 82371AB/EB/MB PIIX4 ISA (rev 08)
Subsystem: VMware Inc virtualHW v3
Flags: bus master, medium devsel, latency 0
00:07.2 USB Controller: Intel Corporation 82371AB/EB/MB PIIX4 USB (prog-if 00 [UHCI])
Subsystem: VMware Inc virtualHW v3
Flags: bus master, medium devsel, latency 64, IRQ 177
I/O ports at 1060 [size=32]

00:07.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 08)
Subsystem: VMware Inc virtualHW v3
Flags: medium devsel, IRQ 9

00:0f.0 VGA compatible controller: VMware Inc [VMware SVGA II] PCI Display Adapter (prog-if 00 [VGA])
Subsystem: VMware Inc [VMware SVGA II] PCI Display Adapter
Flags: bus master, medium devsel, latency 64
I/O ports at 1400 [size=16]
Memory at f0000000 (32-bit, non-prefetchable) [size=128M]
Memory at e8000000 (32-bit, non-prefetchable) [size=8M]
[virtual] Expansion ROM at 40100000 [disabled] [size=32K]

00:10.0 SCSI storage controller: LSI Logic / Symbios Logic 53c1030 PCI-X Fusion-MPT Dual Ultra320 SCSI (rev 01)
Flags: bus master, medium devsel, latency 64, IRQ 193
I/O ports at 1080 [size=128]
Memory at e8800000 (32-bit, non-prefetchable) [size=4K]
[virtual] Expansion ROM at 40108000 [disabled] [size=16K]

00:11.0 PCI bridge: VMware Inc Unknown device 0790 (rev 02) (prog-if 01 [Subtractive decode])
Flags: bus master, medium devsel, latency 64
Memory at e8801000 (64-bit, non-prefetchable) [size=4K]
Bus: primary=00, secondary=02, subordinate=02, sec-latency=68
I/O behind bridge: 00002000-00002fff
Memory behind bridge: e8900000-e89fffff
Prefetchable memory behind bridge: 0000000040000000-0000000040000000
Capabilities: [40] #0d [0000]

02:00.0 Ethernet controller: Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE] (rev 10)
Subsystem: Advanced Micro Devices [AMD] PCnet - Fast 79C971
Flags: bus master, medium devsel, latency 64, IRQ 169
I/O ports at 2000 [size=128]
[virtual] Expansion ROM at 40000000 [disabled] [size=64K]

02:01.0 Multimedia audio controller: Ensoniq ES1371 [AudioPCI-97] (rev 02)
Subsystem: Ensoniq Creative Sound Blaster AudioPCI64V, AudioPCI128
Flags: bus master, ?? devsel, latency 64, IRQ 177
I/O ports at 2080 [size=64]

02:02.0 USB Controller: VMware Inc Unknown device 0770 (prog-if 20 [EHCI])
Subsystem: VMware Inc Unknown device 0770
Flags: bus master, fast devsel, latency 64, IRQ 185
Memory at e8900000 (32-bit, non-prefetchable) [size=4K]

The above output shows the detailed information of all the PCI devices and $lspci –vv gives more detailed verbose information about the PCI devices.The proc filesystem (/proc/pci) also has details about pci devices.

Filed Under : HARDWARE, HOWTOS, LINUX COMMANDS, LINUX HOWTO

Tagged With :

Free Linux Ebook to Download

Leave a Reply

All comments are subject to moderation.