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 v4 00/11] platform/x86/amd/pmf: Add 1AH_M80H support
Date: Wed, 25 Nov 2026 22:43:21 +0200 (EET)	[thread overview]
Message-ID: <6e93f433-6862-fd1b-4e5a-cf7c554b0615@linux.intel.com> (raw)
In-Reply-To: <20261124075213.2317127-1-Shyam-sundar.S-k@amd.com>

On Tue, 24 Nov 2026, Shyam Sundar S K wrote:

> This series enables the PMF driver features on the 1AH_M80H platform.
> 
> Patch 1 stops sending the legacy DRAM address commands on 1AH_M80H.
> Patches 2-3 move the static slider handling to per version ops and add
> the 1AH_M80H static slider support as per APMF 2.03.
> Patches 4-5 add per-platform TA ops and the signature size handling for
> RSA4K and alternatively signed policy binaries.
> Patch 6 uses the system state enum in the TA policy action code.
> Patch 7 adds the Smart PC builder support for the new TA.
> Patch 8 remaps the metrics table on resume.
> Patch 9 passes the custom BIOS inputs to the TA on 1AH_M80H.
> Patch 10 shares the TA policy apply code between the TA versions.
> Patch 11 extends the custom BIOS inputs to 20 on 1AH_M80H (APMF 2.03).
> 
> ---
> v4:
>  - 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

Hi,

Thanks for the update, the ops looked much cleaner but I then checked what 
sashiko had to say and there were things that clearly still have to be 
addressed.

In the min_t() case I don't think you need any type casts but can just 
use min() because the variable and define should have the same signedness. 
Any sensible checker should know the value never exceeds u16 type so the 
cast is not required even after min() has been done.

--
 i.
 
> 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 (10):
>   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 |  16 +-
>  drivers/platform/x86/amd/pmf/pmf.h     | 328 ++++++++++++++++++++++++-
>  drivers/platform/x86/amd/pmf/spc.c     | 210 ++++++++++++++++
>  drivers/platform/x86/amd/pmf/sps.c     | 181 +++++++++++++-
>  drivers/platform/x86/amd/pmf/tee-if.c  | 261 +++++++++++++++++---
>  drivers/platform/x86/amd/pmf/util.c    |  83 +++++--
>  8 files changed, 1057 insertions(+), 92 deletions(-)
> 
> 
> base-commit: 61c0dac952b9308884936d05cce97565a5c89af4
> 

-- 
 i.


      parent reply	other threads:[~2026-11-25 21:07 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-24  7:52 [PATCH v4 00/11] platform/x86/amd/pmf: Add 1AH_M80H support Shyam Sundar S K
2026-11-24  7:52 ` [PATCH v4 01/11] platform/x86/amd/pmf: Skip legacy DRAM address commands on 1AH_M80H Shyam Sundar S K
2026-11-24  7:52 ` [PATCH v4 02/11] platform/x86/amd/pmf: Abstract static slider handling through sps_ops Shyam Sundar S K
2026-11-24  7:52 ` [PATCH v4 03/11] platform/x86/amd/pmf: Add 1AH_M80H static slider support Shyam Sundar S K
2026-11-24  7:52 ` [PATCH v4 04/11] platform/x86/amd/pmf: Abstract TA dispatch through ta_ops table Shyam Sundar S K
2026-11-24  7:52 ` [PATCH v4 05/11] platform/x86/amd/pmf: Get policy binary signature size from PSP header Shyam Sundar S K
2026-11-24  7:52 ` [PATCH v4 06/11] platform/x86/amd/pmf: Use enum system_state for the TA system state action Shyam Sundar S K
2026-11-24  7:52 ` [PATCH v4 07/11] platform/x86/amd/pmf: Add Smart PC builder support for 1AH_M80H Shyam Sundar S K
2026-11-24  7:52 ` [PATCH v4 08/11] platform/x86/amd/pmf: Remap metrics table on resume " Shyam Sundar S K
2026-11-24  7:52 ` [PATCH v4 09/11] platform/x86/amd/pmf: Add custom BIOS input support " Shyam Sundar S K
2026-11-24  7:52 ` [PATCH v4 10/11] platform/x86/amd/pmf: Share TA policy apply code between TA versions Shyam Sundar S K
2026-11-24  7:52 ` [PATCH v4 11/11] platform/x86/amd/pmf: Add extended custom BIOS inputs for 1AH_M80H Shyam Sundar S K
2026-11-25 20:43 ` 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=6e93f433-6862-fd1b-4e5a-cf7c554b0615@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.