From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=198.175.65.12 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796135755; b=YijvjF2PkNJMlRhuwcxqEOeeRsGd5Jbl4urmWcqCBLUfUV+XYROwPEggjPi6LwaTROjL K5pu5XNBhTpe2D3zuYf0foxFeYd76c/9FqQVov9SBtg+uyT57z/WlVs1Gj2tCpvH7olks /Bxzn4HTovA/pjRxBqkKQboCCU0LZtN3wP1XjUnrjSgm915Em8EXx5sBWZDvdltcMf6+z jl9DnVlp2u5lhUW5HgZVngbyWhLnmxV93WUVzWxUyFQ2lbWxMuLPE7iLd/HQQj6/aZ0+O 8BbGU1bj2oh1x0ChErd8tkl+tX0tj1ZerPvBHbj4i49fGrYsWdfF9V9SoPvorsbhDKA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796135755; h=DMARC-Filter:DKIM-Signature:X-CSE-ConnectionGUID:X-CSE-MsgGUID: X-IronPort-AV:X-IronPort-AV:Received:X-CSE-ConnectionGUID: X-CSE-MsgGUID:X-ExtLoop1:X-IronPort-AV:Received:From:Date:To:cc: Subject:In-Reply-To:Message-ID:References:MIME-Version:Content-Type: Content-ID; bh=wWiWhwwu+je55CGqx4QThJ7avEZUP5t90Fmyw1hQaW8=; b=F/Aj9NIq0is7R/61TqrH/xSU8aTpv4yuos3gN75KY50xwGp9OD19KbnYOpgXcBuOwsZW LQ+jZIvYC94HKFTV1OAYKx9gWx22crz90Li0jWthQDSVtNTmZHtxyhqkCbBRd9BnBFRwt ooYL0l9VcZubfkb+GPOkiYNIK2yQLvyu1DHZopi18P9S7UN0LWWv3+ZzCNKrcj/nG/5wO cDHzuA/7GW929Zz2j/ttdCuGHyugObtbaiMduMo1hc1wFNfTc9zbSC9Io9xkJS2Rvi/g1 eCPvLxYln9CPFUTr+Crhv3xuo7a2BAzhp53gl534KXUJOkXrjS26B8yFLDs5fhOlVRQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=linux.intel.com; spf=pass smtp.mailfrom=linux.intel.com; dkim=pass header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=kN0ewbNA; arc=none smtp.remote-ip=198.175.65.12 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.12]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 26C20606A31A for ; Tue, 1 Dec 2026 14:35:54 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 26C20606A31A Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=kN0ewbNA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1796135755; x=1827671755; h=from:date:to:cc:subject:in-reply-to:message-id: references:mime-version:content-id; bh=wWiWhwwu+je55CGqx4QThJ7avEZUP5t90Fmyw1hQaW8=; b=kN0ewbNAz6dSJ2Tml+GqLelwjdmzBE6OPWmRIZDqS3x7OPpFv/RcyWQD 2CrWEps8VFwT8o5Cx5tuD7rWou2Jp6OPrUMY3dQ8FsfvU462bfN3HuFHC WK9tFCnlQteI8yTlKgZTTkjBsNUYGDw9DdcxVkISELC2aon/pcYhyhAHr fGQ5Gadyi74qF3j2hs+Bb1csQs9hezCgLI1/P2Cs5fjxmP2+1JdhvrLnE hlPs76tTgqHayKlVaHmbz/nMUesvnvK5bhtX3/qswn133DrgErY1ouETX sQQp7oGwsWk4rMtUsQXv3zgN6O5WRn1r/aUHaYym/EAlTfM/J/LQP5Mcm w==; X-CSE-ConnectionGUID: W1YbhV4UQYKh1JIUW/YKgw== X-CSE-MsgGUID: C/xg0RbLS4m/3tadHBQ7gw== X-IronPort-AV: E=McAfee;i="6800,10657,11983"; a="4924018" X-IronPort-AV: E=Sophos;i="6.27,244,1787036400"; d="scan'208";a="4924018" Received: from fmviesa003.fm.intel.com ([10.60.135.143]) by orvoesa104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Dec 2026 06:35:55 -0800 X-CSE-ConnectionGUID: tRqvAkptRX2ONH3lZiyXuA== X-CSE-MsgGUID: hvpi5FLqRxK6rOEdEKgESQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,244,1787036400"; d="scan'208";a="13488697" Received: from pgcooper-mobl3.ger.corp.intel.com (HELO localhost) ([10.245.245.21]) by smtpauth.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Dec 2026 06:35:52 -0800 From: =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= Date: Tue, 1 Dec 2026 16:35:49 +0200 (EET) To: Shyam Sundar S K cc: Hans de Goede , 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 In-Reply-To: <301d8a17-4130-4955-9598-57aa5444acd7@amd.com> Message-ID: <41f2caab-7dcc-4efe-fbee-0014e8050db4@linux.intel.com> References: <20261130075225.3173698-1-Shyam-sundar.S-k@amd.com> <301d8a17-4130-4955-9598-57aa5444acd7@amd.com> X-Mailing-List: platform-driver-x86@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: multipart/mixed; BOUNDARY="8323328-789027076-1796133687=:1168" Content-ID: <6538d26e-abcd-e5d4-4b68-489962498309@linux.intel.com> This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323328-789027076-1796133687=:1168 Content-Type: text/plain; CHARSET=ISO-8859-15 Content-Transfer-Encoding: QUOTED-PRINTABLE Content-ID: <69d28d25-4e33-e4c6-4ec0-2b2fd94f2d3f@linux.intel.com> On Tue, 1 Dec 2026, Shyam Sundar S K wrote: > On 01-12-2026 17:05, Ilpo J=E4rvinen wrote: > > On Mon, 30 Nov 2026, Shyam Sundar S K wrote: > >=20 > >> 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 fo= r > >> 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 (Ilp= o) > >> - Patch 4: drop the fan index handling from the 1AH_M80H static slide= r, > >> the existing v2 static slider does not set it either > >> - Patch 8: report a TA init/enact failure as an error when the TEE ca= ll > >> itself succeeded, and pass the skin temperature in centidegrees > >=20 > > This looks better wrt. ops. > >=20 > > Checking out sashiko's findings, there seems to be a bit more work to d= o. > >=20 >=20 > 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: >=20 > - 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. >=20 > The other three are in existing code that the earlier platforms use as > well: >=20 > - 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. >=20 > 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.=20 >=20 > 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. >=20 > 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=20 address them anyway, even if separately. ...Though usually if new stuff=20 adds to the problem, it would be better to cover that part within the=20 series even if it's also a pre-existing issue. But I guess I can make an=20 exception here. --=20 i. --8323328-789027076-1796133687=:1168--