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 16:35:49 +0200 (EET)	[thread overview]
Message-ID: <41f2caab-7dcc-4efe-fbee-0014e8050db4@linux.intel.com> (raw)
In-Reply-To: <301d8a17-4130-4955-9598-57aa5444acd7@amd.com>

[-- Attachment #1: Type: text/plain, Size: 3443 bytes --]

On Tue, 1 Dec 2026, Shyam Sundar S K wrote:
> On 01-12-2026 17:05, Ilpo Järvinen wrote:
> > 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.
> > 
> 
> Thanks. I went through the sashiko findings on v5. Two of them are in
> the code added by this series, and I will fix them in v6:
> 
>  - The socket power is built from amd_pmf_q10_acc_to_mW(), which clamps
>    to U16_MAX, so APU or dGPU power above 65.5 W gets clamped. I will
>    compute the value without the u16 helper.
>  - The v2 TA init/enact clear dev->shbuf with the policy size. I will
>    clear sizeof(*ta_sm) in init and drop the redundant memset in enact.
> 
> The other three are in existing code that the earlier platforms use as
> well:
> 
>  - amd_pmf_load_defaults_sps_v2() does not check the return value of
>    apmf_get_static_slider_granular_v2(). The new 1AH_M80H slider ops use
>    it the same way the existing v2 ops do, and the v1 loader has the
>    same pattern.
>  - The enact from the periodic work and from amd_pmf_handle_early_preq()
>    are not serialized against each other.
>  - The util interface reads the shared buffer without holding the lock
>    that the enact path uses.
> 
> These are the same for the v1 TA paths. Since this series is meant to
> add support for a new SoC, I would like to keep the fixes for existing
> code out of it. 
> 
> I plan to run sashiko once on the whole driver and address all the
> flagged issues for all platforms in a separate series after this one.
> 
> Would that be OK with you, with v6 having only the two fixes above?

I'm fine with not addressing existing issues, even better if you plan to 
address them anyway, even if separately. ...Though usually if new stuff 
adds to the problem, it would be better to cover that part within the 
series even if it's also a pre-existing issue. But I guess I can make an 
exception here.

-- 
 i.

      reply	other threads:[~2026-12-01 14: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 ` [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 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=41f2caab-7dcc-4efe-fbee-0014e8050db4@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.