platform/x86/amd/hsmp: Unify socket/cpu sysfs
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest8 patches 1 replyIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/8 | platform/x86/amd/hsmp: Create socket sysfs directory in platform driverdrivers/ | +42 | 0 replies | |
| 2/8 | platform/x86/amd/hsmp: Add amd_hsmp/socket sysfs links for ACPI devicesdrivers/ | +47 | 0 replies | |
| 3/8 | platform/x86/amd/hsmp: Rename the HSMP_BIN_ATTR_GRP macrodrivers/ | +9 | 0 replies | |
| 4/8 | platform/x86/amd/hsmp: plat: Add sysfs files to display HSMP telemetryDocumentation/ drivers/ drivers/ +1 more | +469 | 0 replies | |
| 5/8 | platform/x86/amd/hsmp: Move common sysfs show handlers to sysfs.cdrivers/ drivers/ drivers/ +2 more | +236 | 0 replies | |
| 6/8 | platform/x86/amd/hsmp: Add per-CPU sysfs attributes for ACPI and platformDocumentation/ drivers/ drivers/ +2 more | +262 | 0 replies | |
| 7/8 | platform/x86/amd/hsmp: Add wr_msg_id for sysfs attribute visibilitydrivers/ drivers/ drivers/ | +69 | 0 replies | |
| 8/8 | platform/x86/amd/hsmp: Add sysfs support for new HSMP messagesDocumentation/ drivers/ drivers/ +2 more | +492 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/8] platform/x86/amd/hsmp: Unify socket/cpu sysfs
From: Suma Hegde <[email protected]>
This series aligns the ACPI and platform HSMP drivers on a common sysfs layout and reduces duplication.
- Create /sys/devices/platform/amd_hsmp/socket/socketN/ for the platform driver, and matching socketN links from the ACPI path
- Add platform telemetry sysfs, then move shared show handlers into a new sysfs.c used by both drivers
- Expose per-CPU boost_limit under amd_hsmp/cpu/cpuX/
- Gate read and write visibility on separate message IDs
- Add sysfs for additional HSMP control and telemetry messages, and document the shared socket path and the new files
This series applies on top of HSMP client series v8 and a rebase of the HSMP dynamic bitmap series onto client v8. The rebased patch set for dynamic bitmap series has not been posted. Based on the changes in client series, dynamic bitmap series and this series(unify sysfs) will be rebased again and sent.
Suma Hegde (8):
platform/x86/amd/hsmp: Create socket sysfs directory in platform
driver
platform/x86/amd/hsmp: Add amd_hsmp/socket sysfs links for ACPI
devices
platform/x86/amd/hsmp: Rename the HSMP_BIN_ATTR_GRP macro platform/x86/amd/hsmp: plat: Add sysfs files to display HSMP telemetry platform/x86/amd/hsmp: Move common sysfs show handlers to sysfs.c platform/x86/amd/hsmp: Add per-CPU sysfs attributes for ACPI and
platform
platform/x86/amd/hsmp: Add wr_msg_id for sysfs attribute visibility platform/x86/amd/hsmp: Add sysfs support for new HSMP messages
Documentation/arch/x86/amd_hsmp.rst | 33 +- drivers/platform/x86/amd/hsmp/Makefile | 4 +- drivers/platform/x86/amd/hsmp/acpi.c | 331 ++++------- drivers/platform/x86/amd/hsmp/plat.c | 412 ++++++++++++- drivers/platform/x86/amd/hsmp/sysfs.c | 762 +++++++++++++++++++++++++ drivers/platform/x86/amd/hsmp/sysfs.h | 112 ++++ 6 files changed, 1420 insertions(+), 234 deletions(-) create mode 100644 drivers/platform/x86/amd/hsmp/sysfs.c create mode 100644 drivers/platform/x86/amd/hsmp/sysfs.h
Signature · 1 line
2.34.1