All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v5 00/12] platform/x86/amd/pmf: Add 1AH_M80H support
@ 2026-11-30  7:52 Shyam Sundar S K
  2026-11-30  7:52 ` [PATCH v5 01/12] platform/x86/amd/pmf: Fix clamping of Q10 accumulator values Shyam Sundar S K
                   ` (12 more replies)
  0 siblings, 13 replies; 16+ messages in thread
From: Shyam Sundar S K @ 2026-11-30  7:52 UTC (permalink / raw)
  To: hansg, ilpo.jarvinen
  Cc: platform-driver-x86, Patil.Reddy, mario.limonciello,
	Shyam Sundar S K

This series enables the PMF driver features on the 1AH_M80H platform.

Patch 1 fixes the clamping of the Q10 accumulator values.
Patch 2 stops sending the legacy DRAM address commands on 1AH_M80H.
Patches 3-4 move the static slider handling to per version ops and add
the 1AH_M80H static slider support as per APMF 2.03.
Patches 5-6 add per-platform TA ops and the signature size handling for
RSA4K and alternatively signed policy binaries.
Patch 7 uses the system state enum in the TA policy action code.
Patch 8 adds the Smart PC builder support for the new TA.
Patch 9 remaps the metrics table on resume.
Patch 10 passes the custom BIOS inputs to the TA on 1AH_M80H.
Patch 11 shares the TA policy apply code between the TA versions.
Patch 12 extends the custom BIOS inputs to 20 on 1AH_M80H (APMF 2.03).

---
v5:
 - Rebase on the latest review-ilpo-next
 - New patch 1: use min() instead of min_t(u16, ...) in the Q10
   accumulator helpers, which truncated the value before clamping (Ilpo)
 - Patch 4: drop the fan index handling from the 1AH_M80H static slider,
   the existing v2 static slider does not set it either
 - Patch 8: report a TA init/enact failure as an error when the TEE call
   itself succeeded, and pass the skin temperature in centidegrees

v4: https://lore.kernel.org/all/20261124075213.2317127-1-Shyam-sundar.S-k@amd.com/
 - Rebase on the latest review-ilpo-next
 - New patch 2: move the static slider handling to per version sps_ops (Ilpo)
 - Patch 3: add the 1AH_M80H static slider support as a new set of sps_ops
 - Patch 11: add apmf_get_custom_policy_ext() and read the SBIOS requests
   through one helper so that the event handler has a single path (Ilpo)
 - Pick Mario's Reviewed-by for patch 5

v3: https://lore.kernel.org/all/20261118143034.3566684-1-Shyam-sundar.S-k@amd.com/
 - Rebase on the latest review-ilpo-next
 - Patch 4: also handle policy binaries signed with the alternative
   signing mechanism
 - Pick Mario's Reviewed-by for patches 5 and 10

v2: https://lore.kernel.org/all/20261106164429.30738-1-Shyam-sundar.S-k@amd.com/
 - Rebase on the latest review-ilpo-next
 - Pick Mario's Reviewed-by
 - Use ARRAY_SIZE() and rename the APTS state array to states[] (Ilpo)
 - Use SZ_256/SZ_512 for the PSP header and signature sizes (Ilpo)
 - Use max(), sizeof() of the destination, and a single update of the
   previous sample in amd_pmf_get_smu_info_v2() (Ilpo)
 - New patch 5: use enum system_state instead of literals (Ilpo)
 - Keep allocating the metrics buffer on 1AH_M80H and only skip the
   SET_DRAM_ADDR commands, the existing metrics paths still use it
 - Keep the power source notifier registration unchanged, skip the
   1AH_M80H slider update instead when the APTS defaults were not read
 - Read the v2 TA layout in the util interface on 1AH_M80H
 - Do not fail resume/restore when the metrics table remap fails
 - New patch 10: add the custom BIOS inputs 11-20 of APMF 2.03

v1: https://lore.kernel.org/all/20261011100554.1841309-1-Shyam-sundar.S-k@amd.com/

Patil Rajesh Reddy (1):
  platform/x86/amd/pmf: Abstract static slider handling through sps_ops

Shyam Sundar S K (11):
  platform/x86/amd/pmf: Fix clamping of Q10 accumulator values
  platform/x86/amd/pmf: Skip legacy DRAM address commands on 1AH_M80H
  platform/x86/amd/pmf: Add 1AH_M80H static slider support
  platform/x86/amd/pmf: Abstract TA dispatch through ta_ops table
  platform/x86/amd/pmf: Get policy binary signature size from PSP header
  platform/x86/amd/pmf: Use enum system_state for the TA system state
    action
  platform/x86/amd/pmf: Add Smart PC builder support for 1AH_M80H
  platform/x86/amd/pmf: Remap metrics table on resume for 1AH_M80H
  platform/x86/amd/pmf: Add custom BIOS input support for 1AH_M80H
  platform/x86/amd/pmf: Share TA policy apply code between TA versions
  platform/x86/amd/pmf: Add extended custom BIOS inputs for 1AH_M80H

 drivers/platform/x86/amd/pmf/acpi.c    |  32 ++-
 drivers/platform/x86/amd/pmf/core.c    |  38 ++-
 drivers/platform/x86/amd/pmf/metrics.c |  20 +-
 drivers/platform/x86/amd/pmf/pmf.h     | 328 ++++++++++++++++++++++++-
 drivers/platform/x86/amd/pmf/spc.c     | 211 ++++++++++++++++
 drivers/platform/x86/amd/pmf/sps.c     | 177 ++++++++++++-
 drivers/platform/x86/amd/pmf/tee-if.c  | 261 +++++++++++++++++---
 drivers/platform/x86/amd/pmf/util.c    |  83 +++++--
 8 files changed, 1056 insertions(+), 94 deletions(-)


base-commit: 6fc627bda235ac5b6f43b5f784b81d6c2450ae5a
-- 
2.34.1


^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2026-12-01 14:35 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-30  7:52 [PATCH v5 00/12] platform/x86/amd/pmf: Add 1AH_M80H support Shyam Sundar S K
2026-11-30  7:52 ` [PATCH v5 01/12] platform/x86/amd/pmf: Fix clamping of Q10 accumulator values Shyam Sundar S K
2026-11-30  7:52 ` [PATCH v5 02/12] platform/x86/amd/pmf: Skip legacy DRAM address commands on 1AH_M80H Shyam Sundar S K
2026-11-30  7:52 ` [PATCH v5 03/12] platform/x86/amd/pmf: Abstract static slider handling through sps_ops Shyam Sundar S K
2026-11-30  7:52 ` [PATCH v5 04/12] platform/x86/amd/pmf: Add 1AH_M80H static slider support Shyam Sundar S K
2026-11-30  7:52 ` [PATCH v5 05/12] platform/x86/amd/pmf: Abstract TA dispatch through ta_ops table Shyam Sundar S K
2026-11-30  7:52 ` [PATCH v5 06/12] platform/x86/amd/pmf: Get policy binary signature size from PSP header Shyam Sundar S K
2026-11-30  7:52 ` [PATCH v5 07/12] platform/x86/amd/pmf: Use enum system_state for the TA system state action Shyam Sundar S K
2026-11-30  7:52 ` [PATCH v5 08/12] platform/x86/amd/pmf: Add Smart PC builder support for 1AH_M80H Shyam Sundar S K
2026-11-30  7:52 ` [PATCH v5 09/12] platform/x86/amd/pmf: Remap metrics table on resume " Shyam Sundar S K
2026-11-30  7:52 ` [PATCH v5 10/12] platform/x86/amd/pmf: Add custom BIOS input support " Shyam Sundar S K
2026-11-30  7:52 ` [PATCH v5 11/12] platform/x86/amd/pmf: Share TA policy apply code between TA versions Shyam Sundar S K
2026-11-30  7:52 ` [PATCH v5 12/12] platform/x86/amd/pmf: Add extended custom BIOS inputs for 1AH_M80H Shyam Sundar S K
2026-12-01 11:35 ` [PATCH v5 00/12] platform/x86/amd/pmf: Add 1AH_M80H support Ilpo Järvinen
2026-12-01 13:54   ` Shyam Sundar S K
2026-12-01 14:35     ` Ilpo Järvinen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.