Show a list of installed PCI devices (LINUX)

lspci is a utility for displaying information about all PCI buses in the system and all devices connected to them.

lspci [options]


-v Be verbose and display detailed information about all devices.

-vv Be very verbose and display more details. This level includes everything deemed useful.

-vvv Be even more verbose and display everything we are able to parse, even if it doesn't look interesting at all (e.g., undefined memory regions).

-n Show PCI vendor and device codes as numbers instead of looking them up in the PCI ID list.

-x Show hexadecimal dump of the standard part of the configuration space (the first 64 bytes or 128 bytes for CardBus bridges).

-xxxx Show hexadecimal dump of the extended (4096-byte) PCI configuration space available on PCI-X 2.0 and PCI Express buses.

-b Bus-centric view. Show all IRQ numbers and addresses as seen by the cards on the PCI bus instead of as seen by the kernel.

-t Show a tree-like diagram containing all buses, bridges, devices and connections between them.
-s [[[[]:]]:][][.[]] Show only devices in the specified domain (in case your machine has several host bridges, they can either share a common bus number space or each of them can address a PCI domain of its own; domains are numbered from 0 to ffff), bus (0 to ff), slot (0 to 1f) and function (0 to 7). Each component of the device address can be omitted or set to "*", both meaning "any value". All numbers are hexadecimal. E.g., "0:" means all devices on bus 0, "0" means all functions of device 0 on any bus, "0.3" selects third function of device 0 on all buses and ".4" shows only the fourth function of each device.

-d []:[] Show only devices with specified vendor and device ID. Both ID's are given in hexadecimal and may be omitted or given as "*", both meaning "any value".

-i Use as the PCI ID list instead of /usr/share/hwdata/pci.ids.

-m Dump PCI device data in machine readable form (both normal and verbose format supported) for easy parsing by scripts.

-D Always show PCI domain numbers. By default, lspci suppresses them on machines which have only domain 0.

-M Invoke bus mapping mode which performs a thorough scan of all PCI devices, including those behind misconfigured bridges etc. This option is available only to root and it gives meaningful results only if combined with direct hardware access mode (otherwise the results are identical to normal listing modes, modulo bugs in lspci).

1 comment:

pci compliance said...

Hi your blog is cool.
I think it's a good point for debate. Looking forward to it.

Recent Posts