Lspci command usage record

Source: Internet
Author: User

(1) Tools:

There is also a public git tree at git: // git.kernel.org/pub/scm/utils/pciutils/pciutils.git containing the current development code. You can also view the development log of the Development tree.

Git clone git: // git.kernel.org/pub/scm/utils/pciutils/pciutils.git to download the code to the pciutils directory.


(2) tool Compilation:

Root permission

Make

Make install

Generated in the/usr/local/sbin directory

Lspci setpci Update-pciids

Generated under/usr/local/share:

Aclocal ca-certificates Doc fonts info man PCI. ids pci. IDs. Old SGML Wayland XML

[Email protected]:/mnt/shared/pciutils # make install
Make-C lib all
Make [1]: Entering directory '/mnt/shared/pciutils/lib'
Make [1]: Nothing to be done for 'all '.
Make [1]: Leaving directory '/mnt/shared/pciutils/lib'
Install-D-M 755/usr/local/sbin/usr/local/share/man/man8/usr/local/share/man/man7
Install-C-M 755-s lspci setpci/usr/local/sbin
Install-C-M 755 Update-pciids/usr/local/sbin
Install-C-M 644 PCI. IDS/usr/local/share
Install-C-M 644 lspci.8 setpci.8 update-pciids.8/usr/local/share/man/man8
Install-C-M 644 pcilib.7/usr/local/share/man/man7
[Email protected]:/mnt/shared/pciutils # ls

(3) Use of lspci

Lspci:

Lspci-V: list all PCIe Devices

[email protected]:/sys/class/pci_bus/0000:00/device/0000:00:10.0$ 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.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 08)00:07.7 System peripheral: VMware Virtual Machine Communication Interface (rev 10)00:0f.0 VGA compatible controller: VMware SVGA II Adapter00: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 PCI bridge (rev 02)

Lspci-D vendor: Device: Lists device information specified by the vendorid and device ID.

[email protected]:/sys/class/pci_bus/0000:00/device/0000:00:10.0$ lspci -d 1000:003000:10.0 SCSI storage controller: LSI Logic / Symbios Logic 53c1030 PCI-X Fusion-MPT Dual Ultra320 SCSI (rev 01)[email protected]:/sys/class/pci_bus/0000:00/device/0000:00:10.0$ 

Lspci-VV: list details

[email protected]:/sys/class/pci_bus/0000:00/device/0000:00:10.0$ lspci -d 1000:0030 -vv00:10.0 SCSI storage controller: LSI Logic / Symbios Logic 53c1030 PCI-X Fusion-MPT Dual Ultra320 SCSI (rev 01)        Subsystem: VMware LSI Logic Parallel SCSI Controller        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-        Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-        Latency: 64 (1500ns min, 63750ns max)        Interrupt: pin A routed to IRQ 17        Region 0: I/O ports at 1400 [size=256]        Region 1: Memory at c8040000 (64-bit, non-prefetchable) [size=128K]        Region 3: Memory at c8020000 (64-bit, non-prefetchable) [size=128K]        [virtual] Expansion ROM at c0008000 [disabled] [size=16K]        Kernel driver in use: mptspi

Lspci-vxx: List configuration space information

[email protected]:/sys/class/pci_bus/0000:00/device/0000:00:10.0$ lspci -d 1000:0030 -vxx00:10.0 SCSI storage controller: LSI Logic / Symbios Logic 53c1030 PCI-X Fusion-MPT Dual Ultra320 SCSI (rev 01)        Subsystem: VMware LSI Logic Parallel SCSI Controller        Flags: bus master, medium devsel, latency 64, IRQ 17        I/O ports at 1400 [size=256]        Memory at c8040000 (64-bit, non-prefetchable) [size=128K]        Memory at c8020000 (64-bit, non-prefetchable) [size=128K]        [virtual] Expansion ROM at c0008000 [disabled] [size=16K]        Kernel driver in use: mptspi00: 00 10 30 00 07 00 80 02 01 00 00 01 00 40 00 0010: 01 14 00 00 04 00 04 c8 00 00 00 00 04 00 02 c820: 00 00 00 00 00 00 00 00 00 00 00 00 ad 15 76 1930: 00 00 00 00 00 00 00 00 00 00 00 00 0b 01 06 ff


Lspci-x lists configuration space information

[email protected]:/sys/class/pci_bus/0000:00/device/0000:00:10.0$ lspci -d 1000:0030 -x00:10.0 SCSI storage controller: LSI Logic / Symbios Logic 53c1030 PCI-X Fusion-MPT Dual Ultra320 SCSI (rev 01)00: 00 10 30 00 07 00 80 02 01 00 00 01 00 40 00 0010: 01 14 00 00 04 00 04 c8 00 00 00 00 04 00 02 c820: 00 00 00 00 00 00 00 00 00 00 00 00 ad 15 76 1930: 00 00 00 00 00 00 00 00 00 00 00 00 0b 01 06 ff

Lspci-N: List device ID numbers

[email protected]:/sys/class/pci_bus/0000:00/device/0000:00:10.0$ lspci -n 00:00.0 0600: 8086:7190 (rev 01)00:01.0 0604: 8086:7191 (rev 01)00:07.0 0601: 8086:7110 (rev 08)00:07.1 0101: 8086:7111 (rev 01)00:07.3 0680: 8086:7113 (rev 08)00:07.7 0880: 15ad:0740 (rev 10)00:0f.0 0300: 15ad:040500:10.0 0100: 1000:0030 (rev 01)00:11.0 0604: 15ad:0790 (rev 02)00:15.0 0604: 15ad:07a0 (rev 01)00:15.1 0604: 15ad:07a0 (rev 01)00:15.2 0604: 15ad:07a0 (rev 01)00:15.3 0604: 15ad:07a0 (rev 01)00:15.4 0604: 15ad:07a0 (rev 01)

Lspci-NN: List devcie IDs and device names

[email protected]:/sys/class/pci_bus/0000:00/device/0000:00:10.0$ lspci -nn00:00.0 Host bridge [0600]: Intel Corporation 440BX/ZX/DX - 82443BX/ZX/DX Host bridge [8086:7190] (rev 01)00:01.0 PCI bridge [0604]: Intel Corporation 440BX/ZX/DX - 82443BX/ZX/DX AGP bridge [8086:7191] (rev 01)00:07.0 ISA bridge [0601]: Intel Corporation 82371AB/EB/MB PIIX4 ISA [8086:7110] (rev 08)00:07.1 IDE interface [0101]: Intel Corporation 82371AB/EB/MB PIIX4 IDE [8086:7111] (rev 01)00:07.3 Bridge [0680]: Intel Corporation 82371AB/EB/MB PIIX4 ACPI [8086:7113] (rev 08)00:07.7 System peripheral [0880]: VMware Virtual Machine Communication Interface [15ad:0740] (rev 10)00:0f.0 VGA compatible controller [0300]: VMware SVGA II Adapter [15ad:0405]00:10.0 SCSI storage controller [0100]: LSI Logic / Symbios Logic 53c1030 PCI-X Fusion-MPT Dual Ultra320 SCSI [1000:0030] (rev 01)00:11.0 PCI bridge [0604]: VMware PCI bridge [15ad:0790] (rev 02)00:15.0 PCI bridge [0604]: VMware PCI Express Root Port [15ad:07a0] (rev 01)00:15.1 PCI bridge [0604]: VMware PCI Express Root Port [15ad:07a0] (rev 01)00:15.2 PCI bridge [0604]: VMware PCI Express Root Port [15ad:07a0] (rev 01)00:15.3 PCI bridge [0604]: VMware PCI Express Root Port [15ad:07a0] (rev 01)00:15.4 PCI bridge [0604]: VMware PCI Express Root Port [15ad:07a0] (rev 01)

Lspci-T: List device trees

[email protected]:/sys/class/pci_bus/0000:00/device/0000:00:10.0$ lspci -t-[0000:00]-+-00.0           +-01.0-[01]--           +-07.0           +-07.1           +-07.3           +-07.7           +-0f.0           +-10.0           +-11.0-[02]--+-00.0           |            +-01.0           |            +-02.0           |            \-03.0           +-15.0-[03]--






Lspci command usage record

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.