From: "Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>
To: Muralidhara M K <muralidhara.mk@amd.com>
Cc: platform-driver-x86@vger.kernel.org, LKML <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v6 0/8] platform/x86/amd/hsmp: Family 1Ah Model 50h-5Fh HSMP and metrics
Date: Mon, 27 Jul 2026 14:13:58 +0300 (EEST) [thread overview]
Message-ID: <4306b8b9-e560-90fc-54e2-d694fdefa54c@linux.intel.com> (raw)
In-Reply-To: <20260612042610.1629037-1-muralidhara.mk@amd.com>
On Fri, 12 Jun 2026, Muralidhara M K wrote:
> Hi,
>
> This series extends the AMD HSMP platform driver and UAPI for Family 1Ah,
> Model 50h-5Fh: new HSMP message IDs (including PQoS-related IDs in the
> first patch), Zen 6 metric table layout in UAPI, relaxed response_sz
> handling against the descriptor table, firmware-reported metric table
> sizing for ioremap and reads, HSMP_IOCTL_GET_TELEMETRY_DATA on the
> existing character device for a single-shot full-table copy (avoiding
> sysfs PAGE_SIZE limits and torn reads), ACPI enablement for protocol
> version 7 tables, Spectre-v1 hardening on user-controlled indices, and
> coordinated metric-table access plus ACPI HSMP probe/remove lifetime
> fixes on the shared global socket array. Documentation is updated in
> Documentation/arch/x86/amd_hsmp.rst.
>
> v5 submission (lore.kernel.org)
>
> https://lore.kernel.org/platform-driver-x86/20260611052919.1095549-1-muralidhara.mk@amd.com/T/#t
>
> Changes since v5
>
> * Patch 6/8: Tighten the Spectre-v1 changelog and subject around
> clamping ioctl and hsmp_send_message() indices; wrap the commit
> description so scripts/checkpatch.pl stays quiet on line length.
>
> * Patch 8/8: Broaden the final fix beyond sysfs metric locking alone.
> Serialize metric table refresh and memcpy_fromio(), refcount ACPI
> HSMP sockets with a probe mutex across init_acpi(), misc_register(),
> and refcount_inc(), replace devm metric DRAM maps with explicit
> ioremap()/mutex_init plus hsmp_metric_tbl_unmap_all() on last ACPI
> remove, add hsmp_acpi_free_sock_alloc_if_idle() for early probe
> failures, and order legacy platform remove so misc is deregistered
> before metric unmap (matching ACPI teardown).
>
> The series is bisect-safe: each commit was built with
> make M=drivers/platform/x86/amd/hsmp
> after the previous commits, and scripts/checkpatch.pl -g <rev> was run on
> each change (0 errors / 0 warnings).
>
> Thanks,
> Muralidhara M K
>
> Muralidhara M K (8):
> platform/x86/amd/hsmp: Add HSMP messages for Family 1Ah, Model 50h-5Fh
> platform/x86/amd/hsmp: Add UAPI structures for Family 1Ah Model
> 50h-5Fh metrics table
> platform/x86/amd/hsmp: Unify response_sz validation to an upper-bound
> check
> platform/x86/amd/hsmp: Source metric-table size from firmware
> platform/x86/amd/hsmp: Add IOCTL_GET_TELEMETRY_DATA for metric table
> reads
> platform/x86/amd/hsmp: Clamp ioctl/send_message indices (Spectre v1)
> platform/x86/amd/hsmp: Enable HSMP_PROTO_VER7 metric tables on the
> ACPI driver via the IOCTL
> platform/x86/amd/hsmp: Serialize metric table access and ACPI HSMP
> teardown
Hi,
Could you please do a fresh iteration of this. It no longer seems to apply
cleanly and maybe sashiko now figures we should have the locking in place
as well so we get a fresh review which hopefully does take the latest
improvements into account.
--
i.
prev parent reply other threads:[~2026-07-27 11:14 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-12 4:26 [PATCH v6 0/8] platform/x86/amd/hsmp: Family 1Ah Model 50h-5Fh HSMP and metrics Muralidhara M K
2026-06-12 4:26 ` [PATCH v6 1/8] platform/x86/amd/hsmp: Add HSMP messages for Family 1Ah, Model 50h-5Fh Muralidhara M K
2026-06-12 4:26 ` [PATCH v6 2/8] platform/x86/amd/hsmp: Add UAPI structures for Family 1Ah Model 50h-5Fh metrics table Muralidhara M K
2026-06-12 4:26 ` [PATCH v6 3/8] platform/x86/amd/hsmp: Unify response_sz validation to an upper-bound check Muralidhara M K
2026-06-12 4:26 ` [PATCH v6 4/8] platform/x86/amd/hsmp: Source metric-table size from firmware Muralidhara M K
2026-06-12 4:26 ` [PATCH v6 5/8] platform/x86/amd/hsmp: Add IOCTL_GET_TELEMETRY_DATA for metric table reads Muralidhara M K
2026-06-12 4:26 ` [PATCH v6 6/8] platform/x86/amd/hsmp: Clamp ioctl/send_message indices (Spectre v1) Muralidhara M K
2026-06-12 4:26 ` [PATCH v6 7/8] platform/x86/amd/hsmp: Enable HSMP_PROTO_VER7 metric tables on the ACPI driver via the IOCTL Muralidhara M K
2026-06-12 4:26 ` [PATCH v6 8/8] platform/x86/amd/hsmp: Serialize metric table access and ACPI HSMP teardown Muralidhara M K
2026-06-12 12:57 ` Ilpo Järvinen
2026-06-13 18:58 ` M K, Muralidhara
2026-07-27 11:13 ` Ilpo Järvinen [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4306b8b9-e560-90fc-54e2-d694fdefa54c@linux.intel.com \
--to=ilpo.jarvinen@linux.intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=muralidhara.mk@amd.com \
--cc=platform-driver-x86@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox