This proposal aims to add a feature that outputs PCIe device power consumption information to sysfs. Add support for PBEC (Power Budgeting Extended Capability) output to the PCIe driver. PBEC is defined in the PCIe specification(PCIe r6.0, sec 7.8.1) and is a standard method for obtaining device power consumption information. PCIe devices can significantly impact the overall power consumption of a system. However, obtaining PCIe device power consumption information has traditionally been difficult. The PBEC Data register changes depending on the value of the PBEC Data Select register. To obtain all PBEC Data register values defined in the device, obtain the value of the PBEC Data register while changing the value of the PBEC Data Select register. Changes: v4->v5 https://lore.kernel.org/linux-pci/20240911012053.345286-1-kobayashi.da-06@xxxxxxxxxxx/ - All register values were output to a single file. Now, a dedicated directory is created, and individual values are output to separate files within this directory. - Multiple helper functions are added to handle the output of individual register values to their respective files. Kobayashi,Daisuke (2): Add helper functions for Power Budgeting Extended Capability. Export Power Budgeting Extended Capability into pci-bus-sysfs Documentation/ABI/testing/sysfs-bus-pci | 62 ++++++++ drivers/pci/pci-sysfs.c | 179 ++++++++++++++++++++++++ drivers/pci/pci.h | 3 + drivers/pci/probe.c | 66 +++++++++ include/uapi/linux/pci_regs.h | 3 +- 5 files changed, 312 insertions(+), 1 deletion(-) -- 2.45.0