All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>
To: Shyam Sundar S K <Shyam-sundar.S-k@amd.com>
Cc: Hans de Goede <hansg@kernel.org>,
	platform-driver-x86@vger.kernel.org,  Patil.Reddy@amd.com,
	mario.limonciello@amd.com
Subject: Re: [PATCH v5 00/12] platform/x86/amd/pmf: Add 1AH_M80H support
Date: Tue, 1 Dec 2026 13:35:12 +0200 (EET)	[thread overview]
Message-ID: <ec87a2da-e783-bf9d-dd17-15208850fd6a@linux.intel.com> (raw)
In-Reply-To: <20261130075225.3173698-1-Shyam-sundar.S-k@amd.com>

On Mon, 30 Nov 2026, Shyam Sundar S K wrote:

> 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

This looks better wrt. ops.

Checking out sashiko's findings, there seems to be a bit more work to do.

-- 
 i.

> 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
> 

-- 
 i.


  parent reply	other threads:[~2026-12-01 11:35 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 ` Ilpo Järvinen [this message]
2026-12-01 13:54   ` [PATCH v5 00/12] platform/x86/amd/pmf: Add 1AH_M80H support Shyam Sundar S K
2026-12-01 14:35     ` Ilpo Järvinen

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=ec87a2da-e783-bf9d-dd17-15208850fd6a@linux.intel.com \
    --to=ilpo.jarvinen@linux.intel.com \
    --cc=Patil.Reddy@amd.com \
    --cc=Shyam-sundar.S-k@amd.com \
    --cc=hansg@kernel.org \
    --cc=mario.limonciello@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 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.