Skip to content

pci/lspci: Identify Enhanced Allocation (EA) Resources

Sean O. Stalley linux-pci 3 versions – Applied

Status from this message: I applied this to pci/resource and intend to merge it for v4.7.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest2 patches 4 repliesApplied
  2. v32 patches 2 repliesSuperseded
  3. v12 patches 2 repliesSuperseded

Changes in v4 from the cover letter

- Incremented libpci API version number
- append new flag variables to the end of struct pci_dev (so we don't break binary compatiblity)
- expanded comment for the resource flags
- removed brackets around 1 line conditionals

Patches in v4 Applied

#Subject and filesSizeRepliesApplied
1/2pci: Identify Enhanced Allocation (EA) BAR Equivalent resourcesdrivers/pci/pci.c include/linux/ioport.h+8 -12 replies
2/2Add support for enhanced allocation regionslib/access.c lib/caps.c lib/filter.c +5 more+38 -152 replies

Reviews trailers per patch

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

Read the v4 thread

Cover letter [PATCH v4 0/2] pci/lspci: Identify Enhanced Allocation (EA) Resources

Identify BAR-equivalent resources that are described by EA entries with the IORESOURCE_PCI_EA_BEI flag.

lspci cannot distinguish between resources from VF BARs and resources from EA. This results in EA Resources being incorrectly identified as [virtual]. Adding this flag allows EA resources to be marked more accurately as [enhanced].

Although this patchset only add support for this flag to lspci, there are other use cases (such as vfio) where knowing a resource comes from EA would be useful.

[PATCH 1/2] is for the kernel, [PATCH 2/2] is for lspci.

Changes from V1:
-Rewrote commit message for linux changes

Changes from V2:
- Rewrote commit message for linux, fixing spelling :)
- Added warning about resource flags being exposed in sysfs

Changes from V3 (only lspci changes):
- Incremented libpci API version number
- append new flag variables to the end of struct pci_dev (so we don't break binary compatiblity)
- expanded comment for the resource flags
- removed brackets around 1 line conditionals

Alex Williamson (1):
pci: Identify Enhanced Allocation (EA) BAR Equivalent resources

Sean O. Stalley (1):
Add support for enhanced allocation regions

linux changes:

 drivers/pci/pci.c      | 2 +-
 include/linux/ioport.h | 7 +++++++
 2 files changed, 8 insertions(+), 1 deletion(-)

lspci changes:

 lib/access.c   | 18 ++++++++++--------
 lib/caps.c     |  2 +-
 lib/filter.c   |  2 +-
 lib/header.h   |  4 ++++
 lib/libpci.ver |  5 +++++
 lib/pci.h      |  3 +++
 lib/sysfs.c    |  7 +++++--
 lspci.c        | 12 +++++++++---
 8 files changed, 38 insertions(+), 15 deletions(-)
Signature · 1 line
1.9.1