[PATCH v2 0/4] platform/x86/amd/hsmp: Family 1Ah client support
From: Muralidhara M K
Date: Fri Jul 31 2026 - 12:58:00 EST
This series enables the HSMP driver on the Family 1Ah client platforms,
Models 80h-8Fh and E0h-E3h.
The client parts drive a different mailbox from the server HSMP
interface. Its SMN addresses are fixed rather than discoverable through
firmware, and the parts speak the Ryzen Master SMC message set instead
of the server message IDs. Patches 1-3 teach the driver both, leaving
server behaviour unchanged, and patch 4 documents the telemetry table
those parts return. Only the ACPI driver probes them.
Changes in v1:
- Dropped the SMNR ACPI method. amd_smn_hsmp_rdwr() now serves both
the reads and the writes the client handshake needs.
- Dropped the SMN and MSR read ioctls (v1 patches 5-7) and the
DRIVER_VERSION bump that came with them. Point taken that a generic
SMN reader is the wrong interface and that bring-up does not justify
one. If the values behind those reads are still needed, they will
come back as purpose-specific messages with the access abstracted in
the driver, as suggested.
- The client telemetry table layout is now in amd_hsmp.rst (patch 4)
rather than left to the PPR, so a tool can decode a snapshot without
collecting a PPR per part. It is written as the Telemetry Table RM
structure declarations themselves, not a paraphrase of them. The PPR
stays the reference for units and encodings, which are firmware
defined.
- Patch 1, from the review of v1: get_msg_desc() now rejects reserved
IDs as well as out-of-range ones, so validate_message() and the
ioctl no longer repeat either check; is_get_msg() takes the
descriptor its caller already resolved, which removes the
unreachable branch; the platform description is resolved once in
hsmp_common_init() instead of on every get_hsmp_pdev() call.
Each patch builds individually at W=1 and is clean under
checkpatch.pl --strict, kernel-doc, codespell and the htmldocs build.
Muralidhara M K (4):
platform/x86/amd/hsmp: Add HSMP client support for Family 1Ah
platform/x86/amd/hsmp: Route metric table through the client messages
platform/x86/amd/hsmp: Add ACPI client support for Family 1Ah
Documentation/arch/x86/amd_hsmp: Document the client telemetry table
Documentation/arch/x86/amd_hsmp.rst | 287 +++++++++++++++++++++++++-
arch/x86/include/uapi/asm/amd_hsmp.h | 289 +++++++++++++++++++++++++++
drivers/platform/x86/amd/hsmp/acpi.c | 77 ++++++-
drivers/platform/x86/amd/hsmp/hsmp.c | 169 +++++++++++++---
drivers/platform/x86/amd/hsmp/hsmp.h | 75 +++++++
drivers/platform/x86/amd/hsmp/plat.c | 19 +-
6 files changed, 857 insertions(+), 59 deletions(-)
base-commit: 775f2078b38ff2121410a35302497a1e81b8e459
--
2.34.1