News: 0001579146

  ARM Give a man a fire and he's warm for a day, but set fire to him and he's warm for the rest of his life (Terry Pratchett, Jingo)

Linux 6.18 To Make It Easier Parsing PCI Device Serial Numbers

([Hardware] 3 Hours Ago serial_number)


A patch queued into the PCI subsystem's "next" branch ahead of the Linux 6.18 merge window will uniformally expose the PCI device serial number of devices via sysfs for easy programmatic parsing.

This is similar to the PCI device serial number reporting available with lspci but now can be done via sysfs for those wanting to enumerate PCI device serial numbers that way.

For those concerned about rogue software reading your PCI/PCIe device serial numbers, the serial_number sysfs reporting is limited to admin/root privileges. [1]The patch adding the "serial_number" node to PCI devices with sysfs explains:

"Add a single sysfs read-only interface for reading PCI device serial numbers from userspace in a programmatic way. This device attribute uses the same hexadecimal 1-byte dashed formatting as lspci serial number capability output. If a device doesn't support the serial number capability, the serial_number sysfs attribute will not be visible."

With the patch now in the PCI subsystem's "next" Git branch, it should be submitted for the upcoming Linux 6.18 merge window. As it's a straight-forward addition, this "serial_number" sysfs addition will likely be merged without any real opposition.



[1] https://git.kernel.org/pub/scm/linux/kernel/git/pci/pci.git/commit/?h=next&id=cf6ee09b0913308729f9c38cfbcb8320c10fe5d5



phoronix

Steady movement is more important than speed, much of the time. So long
as there is a regular progression of stimuli to get your mental hooks
into, there is room for lateral movement. Once this begins, its rate is
a matter of discretion.
-- Corwin, Prince of Amber