public inbox for linux-pci@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v5 0/2] Export PBEC Data register into sysfs
@ 2024-12-10  4:08 Kobayashi,Daisuke
  2024-12-10  4:08 ` [PATCH v5 1/2] Add helper functions for Power Budgeting Extended Capability Kobayashi,Daisuke
  2024-12-10  4:08 ` [PATCH v5 2/2] Export Power Budgeting Extended Capability into pci-bus-sysfs Kobayashi,Daisuke
  0 siblings, 2 replies; 9+ messages in thread
From: Kobayashi,Daisuke @ 2024-12-10  4:08 UTC (permalink / raw)
  To: kobayashi.da-06, kw, linux-pci; +Cc: Kobayashi,Daisuke

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@fujitsu.com/
- 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


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2025-01-06  2:41 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-10  4:08 [PATCH v5 0/2] Export PBEC Data register into sysfs Kobayashi,Daisuke
2024-12-10  4:08 ` [PATCH v5 1/2] Add helper functions for Power Budgeting Extended Capability Kobayashi,Daisuke
2024-12-11 17:25   ` Jonathan Cameron
2024-12-10  4:08 ` [PATCH v5 2/2] Export Power Budgeting Extended Capability into pci-bus-sysfs Kobayashi,Daisuke
2024-12-11 17:43   ` Jonathan Cameron
2024-12-12  9:08     ` Daisuke Kobayashi (Fujitsu)
2024-12-12 12:47       ` Jonathan Cameron
2024-12-13  9:41         ` Daisuke Kobayashi (Fujitsu)
2025-01-06  2:39           ` Daisuke Kobayashi (Fujitsu)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox