Skip to content

platform/x86/amd/hsmp: Extend socket and per-CPU sysfs

Muthusamy Ramalingam platform-driver-x86 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest26 patches 9 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/26platform/x86/amd/hsmp: Drop _input from socket sysfs namesDocumentation/arch/x86/amd_hsmp.rst drivers/platform/x86/amd/hsmp/acpi.c drivers/platform/x86/amd/hsmp/plat.c+74 -741 reply
2/26platform/x86/amd/hsmp: Rename clk_fmax and clk_fmin sysfs filesDocumentation/arch/x86/amd_hsmp.rst drivers/platform/x86/amd/hsmp/acpi.c drivers/platform/x86/amd/hsmp/plat.c +2 more+33 -330 replies
3/26platform/x86/amd/hsmp: Add hsmp_err helper for parser-friendly store errorsdrivers/platform/x86/amd/hsmp/sysfs.c+15 -00 replies
4/26platform/x86/amd/hsmp: Treat socket_power_limit as firmware-clampedDocumentation/arch/x86/amd_hsmp.rst drivers/platform/x86/amd/hsmp/sysfs.c+17 -60 replies
5/26platform/x86/amd/hsmp: Print protocol_version as hexadecimalDocumentation/arch/x86/amd_hsmp.rst drivers/platform/x86/amd/hsmp/acpi.c drivers/platform/x86/amd/hsmp/plat.c +2 more+27 -101 reply
6/26platform/x86/amd/hsmp: Add sdps_limit sysfs fileDocumentation/arch/x86/amd_hsmp.rst drivers/platform/x86/amd/hsmp/acpi.c drivers/platform/x86/amd/hsmp/plat.c +2 more+79 -01 reply
7/26platform/x86/amd/hsmp: Add df_pstate_range sysfs fileDocumentation/arch/x86/amd_hsmp.rst drivers/platform/x86/amd/hsmp/acpi.c drivers/platform/x86/amd/hsmp/plat.c +2 more+132 -01 reply
8/26platform/x86/amd/hsmp: Add xgmi_width sysfs fileDocumentation/arch/x86/amd_hsmp.rst drivers/platform/x86/amd/hsmp/acpi.c drivers/platform/x86/amd/hsmp/plat.c +2 more+93 -01 reply
9/26platform/x86/amd/hsmp: Add gmi3_link_width sysfs fileDocumentation/arch/x86/amd_hsmp.rst drivers/platform/x86/amd/hsmp/acpi.c drivers/platform/x86/amd/hsmp/plat.c +2 more+72 -00 replies
10/26platform/x86/amd/hsmp: Add pcie_link_rate sysfs fileDocumentation/arch/x86/amd_hsmp.rst drivers/platform/x86/amd/hsmp/acpi.c drivers/platform/x86/amd/hsmp/plat.c +2 more+43 -00 replies
11/26platform/x86/amd/hsmp: Add lclk DPM sysfs filesDocumentation/arch/x86/amd_hsmp.rst drivers/platform/x86/amd/hsmp/acpi.c drivers/platform/x86/amd/hsmp/plat.c +2 more+359 -200 replies
12/26platform/x86/amd/hsmp: Add io_bw and xgmi_bw sysfs filesDocumentation/arch/x86/amd_hsmp.rst drivers/platform/x86/amd/hsmp/acpi.c drivers/platform/x86/amd/hsmp/hsmp.c +4 more+1159 -31 reply
13/26platform/x86/amd/hsmp: Add DIMM sideband sysfs filesDocumentation/arch/x86/amd_hsmp.rst drivers/platform/x86/amd/hsmp/acpi.c drivers/platform/x86/amd/hsmp/plat.c +2 more+231 -21 reply
14/26platform/x86/amd/hsmp: Add per-CPU floor limit sysfs filesDocumentation/arch/x86/amd_hsmp.rst drivers/platform/x86/amd/hsmp/sysfs.c+131 -00 replies
15/26platform/x86/amd/hsmp: Add metric_version sysfs fileDocumentation/arch/x86/amd_hsmp.rst drivers/platform/x86/amd/hsmp/acpi.c drivers/platform/x86/amd/hsmp/plat.c+7 -00 replies
16/26platform/x86/amd/hsmp: Add enabled command sysfs filesDocumentation/arch/x86/amd_hsmp.rst drivers/platform/x86/amd/hsmp/acpi.c drivers/platform/x86/amd/hsmp/hsmp.c +4 more+66 -30 replies
17/26platform/x86/amd/hsmp: Add DIMM power and temperature sysfs filesDocumentation/arch/x86/amd_hsmp.rst drivers/platform/x86/amd/hsmp/acpi.c drivers/platform/x86/amd/hsmp/hsmp.c +4 more+1982 -450 replies
18/26platform/x86/amd/hsmp: Add SVI3 temperature sysfs filesDocumentation/arch/x86/amd_hsmp.rst drivers/platform/x86/amd/hsmp/acpi.c drivers/platform/x86/amd/hsmp/plat.c +2 more+233 -00 replies
19/26platform/x86/amd/hsmp: Add cclk_floor_limit sysfs fileDocumentation/arch/x86/amd_hsmp.rst drivers/platform/x86/amd/hsmp/acpi.c drivers/platform/x86/amd/hsmp/plat.c +2 more+56 -21 reply
20/26platform/x86/amd/hsmp: Add xgmi_pstate_range sysfs fileDocumentation/arch/x86/amd_hsmp.rst arch/x86/include/uapi/asm/amd_hsmp.h drivers/platform/x86/amd/hsmp/acpi.c +3 more+103 -40 replies
21/26platform/x86/amd/hsmp: Quiet probe-time firmware status dmesg spamarch/x86/include/asm/amd/hsmp.h drivers/platform/x86/amd/hsmp/hsmp.c+72 -200 replies
22/26platform/x86/amd/hsmp: Add powereff_mode sysfs fileDocumentation/arch/x86/amd_hsmp.rst drivers/platform/x86/amd/hsmp/acpi.c drivers/platform/x86/amd/hsmp/plat.c +2 more+238 -00 replies
23/26platform/x86/amd/hsmp: Add svi_power sysfs fileDocumentation/arch/x86/amd_hsmp.rst drivers/platform/x86/amd/hsmp/acpi.c drivers/platform/x86/amd/hsmp/plat.c+6 -00 replies
24/26platform/x86/amd/hsmp: Add per-CPU ccd_power sysfs fileDocumentation/arch/x86/amd_hsmp.rst drivers/platform/x86/amd/hsmp/sysfs.c+29 -00 replies
25/26platform/x86/amd/hsmp: Add per-CPU freq_limit sysfs fileDocumentation/arch/x86/amd_hsmp.rst drivers/platform/x86/amd/hsmp/sysfs.c+28 -00 replies
26/26platform/x86/amd/hsmp: Add socket_temperature sysfs fileDocumentation/arch/x86/amd_hsmp.rst drivers/platform/x86/amd/hsmp/acpi.c drivers/platform/x86/amd/hsmp/plat.c +2 more+29 -00 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 00/26] platform/x86/amd/hsmp: Extend socket and per-CPU sysfs

This series extends the AMD HSMP sysfs interface on both the ACPI and platform drivers. It starts with socket attribute naming cleanup and a parser-friendly store error helper, then adds the remaining message-backed socket and per-CPU attributes used on server platforms.

Later patches cover link/bandwidth, DIMM, SVI3, power-efficiency, and per-CPU files. Attribute visibility follows the enabled-message bitmaps. Probe-time discovery for optional DIMM/IO/xGMI hardware is quieted so expected firmware misses do not flood dmesg.

The series ends with socket_temperature (HSMP_GET_TEMP_MONITOR).

Muthusamy Ramalingam (26):
platform/x86/amd/hsmp: Drop _input from socket sysfs names platform/x86/amd/hsmp: Rename clk_fmax and clk_fmin sysfs files platform/x86/amd/hsmp: Add hsmp_err helper for parser-friendly store
errors
platform/x86/amd/hsmp: Treat socket_power_limit as firmware-clamped platform/x86/amd/hsmp: Print protocol_version as hexadecimal platform/x86/amd/hsmp: Add sdps_limit sysfs file platform/x86/amd/hsmp: Add df_pstate_range sysfs file platform/x86/amd/hsmp: Add xgmi_width sysfs file platform/x86/amd/hsmp: Add gmi3_link_width sysfs file platform/x86/amd/hsmp: Add pcie_link_rate sysfs file platform/x86/amd/hsmp: Add lclk DPM sysfs files platform/x86/amd/hsmp: Add io_bw and xgmi_bw sysfs files platform/x86/amd/hsmp: Add DIMM sideband sysfs files platform/x86/amd/hsmp: Add per-CPU floor limit sysfs files platform/x86/amd/hsmp: Add metric_version sysfs file platform/x86/amd/hsmp: Add enabled command sysfs files platform/x86/amd/hsmp: Add DIMM power and temperature sysfs files platform/x86/amd/hsmp: Add SVI3 temperature sysfs files platform/x86/amd/hsmp: Add cclk_floor_limit sysfs file platform/x86/amd/hsmp: Add xgmi_pstate_range sysfs file platform/x86/amd/hsmp: Quiet probe-time firmware status dmesg spam platform/x86/amd/hsmp: Add powereff_mode sysfs file platform/x86/amd/hsmp: Add svi_power sysfs file platform/x86/amd/hsmp: Add per-CPU ccd_power sysfs file platform/x86/amd/hsmp: Add per-CPU freq_limit sysfs file platform/x86/amd/hsmp: Add socket_temperature sysfs file

 Documentation/arch/x86/amd_hsmp.rst   |  116 +-
 arch/x86/include/asm/amd/hsmp.h       |    7 +
 arch/x86/include/uapi/asm/amd_hsmp.h  |   11 +-
 drivers/platform/x86/amd/hsmp/acpi.c  |  645 ++++++-
 drivers/platform/x86/amd/hsmp/hsmp.c  |  298 +++-
 drivers/platform/x86/amd/hsmp/hsmp.h  |   31 +
 drivers/platform/x86/amd/hsmp/plat.c  | 2346 +++++++++++++++++++++++--
 drivers/platform/x86/amd/hsmp/sysfs.c | 1858 +++++++++++++++++++-
 drivers/platform/x86/amd/hsmp/sysfs.h |  116 +-
 9 files changed, 5260 insertions(+), 168 deletions(-)

This series is rebased on top of https://lore.kernel.org/platform-driver-x86/[email protected]/T/#t

Signature · 1 line
2.34.1