pub/scm/utils/pciutils/pciutils.git  about / heads / tags
The PCI Utilities - development tree
$ git log --pretty=format:'%h %s (%cs)%d'
144b091 ls-ecaps: extend decode support for more fields for AER CE and UE status (2024-04-29)
	(HEAD -> master)
8c140be ls-ecaps: Correct the link state reporting (2024-04-24)
582289c maint/README: Use release-prog (2024-04-05)
1eb123d maint/README: git push --tags is done by push-to-public (2024-04-05)
cb00a99 Released as v3.12.0 (2024-04-05)
	(tag: v3.12.0)
b5d2388 Update pci.ids to today's snapshot (2024-04-05)
7dbb846 README.Windows: Fix typo (2024-04-05)
7bcd087 README: Copy win32-kldbg info from manpage (2024-04-05)
9f3d614 libpci: hwdb: Remove ID_SUBSYSTEM and ID_GEN_SUBSYSTEM usage from pci_id_hwdb_lookup() (2024-04-05)
4b4ea00 windows: Do not show unwanted file-not-found GUI message box (2024-04-05)

$ git cat-file blob HEAD:README
This package contains the PCI Utilities, version @VERSION@.

Copyright (c) 1997--2024 Martin Mares <>

All files in this package can be freely distributed and used according
to the terms of the GNU General Public License, either version 2 or
(at your opinion) any newer version. See for details.

The author wants to clarify that he does not consider programs which link
dynamically to the libpci to be derived works of the library.

1. What's that?
The PCI Utilities package contains a library for portable access to PCI bus
configuration registers and several utilities based on this library.

In runs on the following systems:

	Linux		(via /sys/bus/pci, /proc/bus/pci or i386 ports)
	FreeBSD		(via /dev/pci)
	NetBSD		(via libpci)
	OpenBSD		(via /dev/pci or i386 ports)
	GNU/kFreeBSD	(via /dev/pci)
	Solaris/i386	(direct port access)
	Aix		(via /dev/pci and odmget)
	GNU Hurd	(direct port access)
	Windows		(via cfgmgr32 or direct port access, see README.Windows for caveats)
	CYGWIN		(direct port access)
	BeOS		(via syscalls)
	Haiku		(via /dev/misc/poke)
	Darwin		(via IOKit)
	DOS/DJGPP	(via i386 ports)
	SylixOS		(via /proc/pci)
	AmigaOS on PPC	(via Expansion library)

It should be very easy to add support for other systems as well (volunteers
wanted; if you want to try that, I'll be very glad to see the patches and
include them in the next version).

The utilities include:  (See manual pages for more details)

  - lspci: displays detailed information about all PCI buses and devices.

  - setpci: allows to read from and write to PCI device configuration
    registers. For example, you can adjust the latency timers with it.
    CAUTION: There is a couple of dangerous points and caveats, please read
    the manual page first!

  - update-pciids: download the current version of the pci.ids file.

  - pcilmr: performs margining on PCIe links.

2. Compiling and (un)installing
Just run "make" to compile the package and then "make install" to install it.
Please note that a C compiler supporting the C99 standard is required.
Also, GNU make is needed on most platforms.

If you want to change the default installation location, please override
the PREFIX variable specified in the Makefile -- e.g., you can use
"make PREFIX=/opt/pciutils install" to create a separate installation
not interfering with the rest of your system.  Setting the DESTDIR variable
will allow you to install to a different directory from the one you intend
to eventually run it from.  This is useful for people who are packaging
pciutils to install on other computers.

There are several options which can be set in the Makefile or overridden
when running make:

  ZLIB=yes/no	Enable support for compressed pci.ids (requires zlib).
		If it is enabled, pciutils will use pci.ids.gz in preference to
		pci.ids, even if the pci.ids file is newer.  If the pci.ids.gz
		file is missing, it will use pci.ids instead.  If you do not
		specify this option, the configure script will try to guess
		automatically based on the presence of zlib.

  DNS=yes/no	Enable support for querying the central database of PCI IDs
		using DNS.  Requires libresolv (which is available on most
		systems as a part of the standard libraries) and tries to
		autodetect its presence if the option is not specified.

  SHARED=yes/	Build libpci as a shared library.  Requires GCC 4.0 or newer.
  no/local	The ABI of the shared library is intended to remain backward
		compatible for a long time (we use symbol versioning to achieve
		that, like GNU libc does).  The value `local' includes the
		right directory name in the binaries, so the utilities can be
		run without installation.  This is not recommended for any
		production builds.

"make install-lib" installs the library together with its header files
for use by other programs.

When you are bored of dumping PCI registers, just use "make uninstall".

3. Getting new IDs
The database of PCI IDs (the pci.ids file) gets out of date much faster
than I release new versions of this package, so it is maintained separately.

It lives at, where you can browse the database,
download the most recent pci.ids file (e.g., by running the update-ids utility)
and also submit new entries.

Alternatively, you can use `lspci -q' to query the central database
for new entries via network.

The pci.ids file is also mirrored at

On Linux systems with a recent enough version of libudev, UDEV's HWDB
database is consulted when pci.ids lacks the device.

4. Getting new versions
The current version of pciutils is available at:

The tarball can be downloaded at the following places: (expect a couple of hours delay)

There is also a public GIT tree at:

5. Using the library
So far, there is only a little documentation for the library except for the
general introduction in the pcilib(7) man page. If you want to use the
library in your programs, please follow the comments in lib/pci.h and in
the example program example.c.

6. Feedback
If you have any bug reports or suggestions, send them to the author.

If you have any new IDs, I'll be very glad to add them to the database.
Just submit them at

Announcements of new versions are sent to
(see for instructions).

					Have fun

# heads (aka `branches'):
$ git for-each-ref --sort=-creatordate refs/heads \
	--format='%(HEAD) %(refname:short) %(subject) (%(creatordate:short))'
* master       ls-ecaps: extend decode support for more fields for AER CE and UE status (2024-04-29)
  amiga        AmigaOS: Removed extraneous type cast (2024-02-17)
  amigaos      AmigaOS: Clean up (2024-01-08)
  tmp          Fix memory leak when fill flags has PCI_FILL_PARENT. (2023-12-29)
  fill-info    Simplified pci_fill_info() and friends (2022-01-21)
  test         pciutils: Decode Compute eXpress Link DVSEC (2020-05-25)
  iommu_group  lspci: Print IOMMU groups with -v (2020-02-28)

# tags:
$ git for-each-ref --sort=-creatordate refs/tags \
	--format='%(refname:short) %(subject) (%(creatordate:short))'
v3.12.0      Released as v3.12.0 (2024-04-05) tar.gz
v3.11.1      Released as v3.11.1 (2024-02-25) tar.gz
v3.11.0      Released as v3.11.0 (2024-02-24) tar.gz
v3.10.0      Released as 3.10.0 (2023-05-01) tar.gz
v3.9.0       Released as 3.9.0 (2022-11-20) tar.gz
v3.8.0       Released as 3.8.0 (2022-08-10) tar.gz
v3.7.0       Released v3.7.0 (2020-05-31) tar.gz
v3.6.4       Released version 3.6.4 (2020-01-25) tar.gz
v3.6.3       Released v3.6.3 (2020-01-22) tar.gz
v3.6.2       Released as v3.6.2 (2018-08-12) tar.gz

# associated public inboxes:
# (number on the left is used for dev purposes)
        219 linux-pci
         35 lkml
         12 netdev
          9 linux-wireless
          8 qemu-devel
          8 u-boot
          6 netfilter-devel
          6 virtualization
          5 stable
          5 buildroot
          4 xen-devel
          4 dpdk-dev
          4 linux-kernel-mentees
          4 git
          4 linux-mmc
          4 openembedded-core
          3 linux-acpi
          3 linux-erofs
          3 linux-nvdimm
          3 linux-scsi
          3 linux-arm-kernel
          3 linux-doc
          3 intel-gfx
          3 linux-raid
          3 sparclinux
          3 nvdimm
          2 linux-block
          2 linux-xfs
          2 linux-fsdevel
          2 linux-devicetree
          2 linux-arm-msm
          2 linux-amlogic
          2 linux-mm
          2 fstests
          2 linux-pm
          2 linux-btrfs
          2 driverdev-devel
          2 linux-usb
          2 linux-renesas-soc
          2 linux-iio
          2 linux-rdma
          2 linux-leds
          2 linux-f2fs-devel
          2 kvm
          2 io-uring
          2 linux-man
          2 dri-devel
          2 linux-omap
          2 ceph-devel
          2 dm-devel
          2 openembedded-devel
          2 yocto-meta-arago
          2 intel-wired-lan
          2 linux-um
          2 poky
          2 linux-hams
          2 lvs-devel
          2 netfilter
          2 bridge
          1 linux-samsung-soc
          1 linux-fscrypt
          1 linux-mtd
          1 cocci
          1 linux-riscv
          1 linux-nvme
          1 live-patching
          1 bpf
          1 linux-nfs
          1 linux-mediatek
          1 linux-crypto
          1 linux-efi
          1 linux-integrity
          1 linux-edac
          1 linux-cifs
          1 linux-iommu
          1 linux-media
          1 linux-snps-arc
          1 linux-mips
          1 linux-hwmon
          1 linux-rtc
          1 linux-input
          1 alsa-devel
          1 kvmarm
          1 linux-kselftest
          1 selinux
          1 kernel-hardening
          1 linux-clk
          1 linux-gpio
          1 dmaengine
          1 linux-next
          1 linux-parisc
          1 linux-ext4
          1 linux-security-module
          1 linuxppc-dev
          1 linux-modules
          1 kernelnewbies
          1 linux-rt-users
          1 linux-bluetooth
          1 linux-sgx
          1 linux-ide
          1 linux-serial
          1 linux-watchdog
          1 linux-trace-devel
          1 linux-hyperv
          1 workflows
          1 rcu
          1 linux-m68k
          1 linux-i3c
          1 util-linux
          1 linux-spdx
          1 linux-wpan
          1 ksummit-discuss
          1 wireguard
          1 backports
          1 linux-csky
          1 amd-gfx
          1 tpmdd-devel
          1 linux-unionfs
          1 linux-firmware
          1 linux-api
          1 cip-dev
          1 linux-audit
          1 linux-spi
          1 linux-i2c
          1 linux-remoteproc
          1 linux-dash
          1 linux-bcache
          1 linux-sparse
          1 mm-commits
          1 linux-pwm
          1 linux-tegra
          1 lttng-dev
          1 linux-kbuild
          1 linux-fpga
          1 linux-arch
          1 linux-can
          1 containers
          1 linux-rockchip
          1 xdp-newbies
          1 platform-driver-x86
          1 phone-devel
          1 openbmc
          1 linux-hardening
          1 dash
          1 keyrings
          1 linux-fbdev
          1 linux-sctp
          1 linux-cxl
          1 linux-perf-users
          1 target-devel
          1 lustre-devel
          1 linux-sh
          1 soc
          1 ocfs2-devel
          1 rust-for-linux
          1 ath10k
          1 ath11k
          1 nouveau
          1 linux-phy
          1 linux-s390
          1 kernel-janitors
          1 linux-staging
          1 linux-sunxi
          1 mptcp
          1 linux-coco
          1 regressions
          1 ksummit
          1 b43-dev
          1 linux-nfc
          1 linux-bcachefs
          1 ath9k-devel
          1 ntfs3
          1 llvm
          1 fio
          1 iwd
          1 ell
          1 ofono
          1 ltp
          1 yocto
          1 yocto-meta-freescale
          1 yocto-toaster
          1 yocto-meta-arm
          1 yocto-docs
          1 bitbake-devel
          1 linux-patches
          1 yocto-meta-virtualization
          1 chrome-platform
          1 ntb
          1 yocto-meta-ti
          1 outreachy
          1 xenomai
          1 damon
          1 asahi
          1 openrisc
          1 kexec
          1 loongarch
          1 imx
          1 ath12k
          1 b4-sent
          1 linux-trace-kernel
          1 oe-linux-nfc
          1 oe-kbuild-all
          1 oe-chipsec
          1 batman
          1 intel-xe
          1 virtio-dev
          1 virtio-comment
          1 v9fs
          1 ecryptfs
          1 qemu-riscv
          1 linux-ia64
          1 cluster-devel
          1 grub-devel
          1 kbd
          1 autofs
          1 cpufreq
          1 dccp
          1 cgroups
          1 devicetree-spec
          1 devicetree-compiler
          1 initramfs
          1 kvm-ppc
          1 hail-devel
          1 kvm-ia64
          1 linux-8086
          1 kernel-testers
          1 linux-alpha
          1 linux-btrace
          1 linux-embedded
          1 linux-hexagon
          1 linux-hotplug
          1 linux-laptop
          1 linux-sound
          1 trinity
          1 reiserfs-devel
          1 linux-metag
          1 linux-x25
          1 linux-nilfs
          1 linux-oxnas
          1 u-boot-amlogic
          1 lm-sensors
          1 lvm-devel
          1 acpica-devel
          1 perfbook
          1 virtio-fs
          1 smatch
          1 ../../../../../fuego
          1 ../../../../../wireless-regdb
          1 ../../../../../igt-dev
          1 ../../../../../powertop

git clone