Skip to content

platform/x86/amd/hsmp: Unify socket/cpu sysfs

Suma Hegde platform-driver-x86 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8platform/x86/amd/hsmp: Create socket sysfs directory in platform driverdrivers/platform/x86/amd/hsmp/plat.c+42 -10 replies
2/8platform/x86/amd/hsmp: Add amd_hsmp/socket sysfs links for ACPI devicesdrivers/platform/x86/amd/hsmp/acpi.c+47 -10 replies
3/8platform/x86/amd/hsmp: Rename the HSMP_BIN_ATTR_GRP macrodrivers/platform/x86/amd/hsmp/plat.c+9 -90 replies
4/8platform/x86/amd/hsmp: plat: Add sysfs files to display HSMP telemetryDocumentation/arch/x86/amd_hsmp.rst drivers/platform/x86/amd/hsmp/acpi.c drivers/platform/x86/amd/hsmp/plat.c +1 more+469 -410 replies
5/8platform/x86/amd/hsmp: Move common sysfs show handlers to sysfs.cdrivers/platform/x86/amd/hsmp/Makefile drivers/platform/x86/amd/hsmp/acpi.c drivers/platform/x86/amd/hsmp/plat.c +2 more+236 -3640 replies
6/8platform/x86/amd/hsmp: Add per-CPU sysfs attributes for ACPI and platformDocumentation/arch/x86/amd_hsmp.rst drivers/platform/x86/amd/hsmp/acpi.c drivers/platform/x86/amd/hsmp/plat.c +2 more+262 -00 replies
7/8platform/x86/amd/hsmp: Add wr_msg_id for sysfs attribute visibilitydrivers/platform/x86/amd/hsmp/acpi.c drivers/platform/x86/amd/hsmp/plat.c drivers/platform/x86/amd/hsmp/sysfs.h+69 -190 replies
8/8platform/x86/amd/hsmp: Add sysfs support for new HSMP messagesDocumentation/arch/x86/amd_hsmp.rst drivers/platform/x86/amd/hsmp/acpi.c drivers/platform/x86/amd/hsmp/plat.c +2 more+492 -50 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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