Skip to content

Use of /sys/bus/pci/devices/…/index for non-SMBIOS platforms

Niklas Schnelle linux-pci linux-s390 lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest1 patch 10 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1s390/pci: expose a PCI device's UID as its indexDocumentation/ABI/testing/sysfs-bus-pci arch/s390/pci/pci_sysfs.c+42 -45 replies

Reviews trailers per patch

The patch has a Reviewed-by or Acked-by.

PatchViktor MihajlovskiBjorn HelgaasNarendra K
1/1A-b A-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [PATCH 0/1] Use of /sys/bus/pci/devices/…/index for non-SMBIOS platforms

Hi Narendra, Hi All,

According to Documentation/ABI/testing/sysfs-bus-pci you are responsible for the index device attribute that is used by systemd to create network interface names.

Now we would like to reuse this attribute for firmware provided PCI device index numbers on the s390 architecture which doesn't have SMBIOS/DMI nor ACPI. All code changes are within our architecture specific code but I'd like to get some Acks for this reuse. I've sent an RFC version of this patch on 15th of March with the subject:

s390/pci: expose a PCI device's UID as its index

but got no response. Would it be okay to re-use this attribute for essentially the same purpose but with index numbers provided by a different platform mechanism? I think this would be cleaner than further proliferation of /sys/bus/pci/devices/<dev>/xyz_index attributes and allows re-use of the existing userspace infrastructure.

Thanks,
Niklas Schnelle

Niklas Schnelle (1):
s390/pci: expose a PCI device's UID as its index

 Documentation/ABI/testing/sysfs-bus-pci | 11 +++++---
 arch/s390/pci/pci_sysfs.c               | 35 +++++++++++++++++++++++++
 2 files changed, 42 insertions(+), 4 deletions(-)
Signature · 1 line
2.25.1