Skip to content

Support for PCI_FILL_PARENT

Pali Rohár linux-pci 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4libpci: Add new option PCI_FILL_PARENTlib/pci.h+2 -00 replies
2/4libpci: sysfs: Implement support for PCI_FILL_PARENTlib/sysfs.c+31 -00 replies
3/4lspci: Build tree based on PCI_FILL_PARENT informationls-tree.c lspci.c+62 -50 replies
4/4lspci: Do not show -[00]- bus in tree outputls-tree.c+3 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH pciutils 0/4] Support for PCI_FILL_PARENT

Extend libpci API with a new option PCI_FILL_PARENT to fill parent device for the current enumerated device. This can be useful in situation when non-complaint PCI-to-PCI bridge-like device with Type 0 header is present in the system and behind this bridge are either endpoint devices or another non-compliant bridges. This applies e.g. for notoriously broken Galileo and Marvell PCI and PCIe devices. lspci can will use PCI_FILL_PARENT information from the system if config space does not provide enough information to build topology.

Pali Rohár (4):
libpci: Add new option PCI_FILL_PARENT
libpci: sysfs: Implement support for PCI_FILL_PARENT
lspci: Build tree based on PCI_FILL_PARENT information
lspci: Do not show -[00]- bus in tree output

 lib/pci.h   |  2 ++
 lib/sysfs.c | 31 ++++++++++++++++++++++++
 ls-tree.c   | 69 +++++++++++++++++++++++++++++++++++++++++++++++++----
 lspci.c     |  2 +-
 4 files changed, 98 insertions(+), 6 deletions(-)
Signature · 1 line
2.20.1