Skip to content

PCI: Include human-readable BAR and window sizes

Bjorn Helgaas linux-pci lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2vsprintf: Add %pR human-readable sizelib/vsprintf.c+14 -44 replies
2/2PCI: Include human-readable sizes in resource assignment messagesdrivers/pci/setup-bus.c drivers/pci/setup-res.c+40 -173 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH v1 0/2] PCI: Include human-readable BAR and window sizes

PCI and other subsystems often use %pR to decode and print memory ranges. The size of the range is useful to know but hard to read off at a glance, e.g.,

BAR 0 [mem 0xfea80000-0xfea9ffff]

Add more user-friendly size information to the %pR format, e.g.,

BAR 0 [mem 0xfea80000-0xfea9ffff (128 KiB)]

%pR is also used to print I/O port, bus number, and DMA resources, where the size is not as relevant, so this only applies to IORESOURCE_MEM resources.

Bjorn Helgaas (2):
vsprintf: Add %pR human-readable size
PCI: Include human-readable sizes in resource assignment messages

vfio_pci_info_atomic_cap

 drivers/pci/setup-bus.c | 46 +++++++++++++++++++++++++++++------------
 drivers/pci/setup-res.c | 11 ++++++----
 lib/vsprintf.c          | 18 ++++++++++++----
 3 files changed, 54 insertions(+), 21 deletions(-)
Signature · 1 line
2.53.0