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

Bjorn Helgaas posted 2 patches 1 month, 3 weeks ago
drivers/pci/setup-bus.c | 46 +++++++++++++++++++++++++++++------------
drivers/pci/setup-res.c | 11 ++++++----
lib/vsprintf.c          | 18 ++++++++++++----
3 files changed, 54 insertions(+), 21 deletions(-)
[PATCH v1 0/2] PCI: Include human-readable BAR and window sizes
Posted by Bjorn Helgaas 1 month, 3 weeks ago
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(-)

-- 
2.53.0