From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=198.175.65.17 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796124917; b=14vOnmZ6UMqO9SmC/hsiYqC23SwlSW2Bmeh28W+HDZc84QPFak8ySBSf8OdXDhFGc12O kL/JWV1BqEk4XtHuxoPhhs2HADJBhIzZ0NTQEnVuUfdddPfgaU5F+P1fhN4TTKk+4nMKe MpalAJpSKsjrPUS4nT26w1F4c2Ejya1UdmgUagC9xXjctNAXam1OIMgwjoGzQyim7SjL3 gqTNbfsoJFVcWKwIMDLy00a3ZzO5vXZw8Otqrx349NINMb5HLk8s/X19Qw2lhufZTRWgL HfpCoe3cf1475BBzyejvrfv8xrQTIF44CN7DtV9B0V7Iesg3M4PrwWcRKLRgpHZj6qg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796124917; 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; bh=+BB03uDr1hq4OalhciSjP1NwDxaGKBf8zm1i2xZRX3k=; b=yhTY7szpaioHRmD1OYHCvYyDYWDoL89f4StxtlTP1Sm1PR13uJSI6rx8XxwYF1yMdUoz QD/s4SF1SVXauVXl4N3ct1gl5XDepBlE4SPR2XQ3FJi8qjTodu0vQQi0/qxVtvGPpivQ5 /HZTUOxs3wkeymR8HaxIG5VapzS6ceFumRsel997uQxTq3GFS6kJUBV17Asg9MgWvSaVL 20qbGXYVRMJ6B9gKZYxaGH539yFjVVabEVZ421KsUHqR74C7Kf1UNc98n88ZFT64P5T+X tuShAPJRedsNEzCBaCUb0n+Ku7pxdzqejy9KD466inLjnIjtZQNow+O9gjDbAXfYONw== 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=GHtQRIOh; arc=none smtp.remote-ip=198.175.65.17 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.17]) (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 5B674606A31A for ; Tue, 1 Dec 2026 11:35:16 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 5B674606A31A 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=GHtQRIOh DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1796124916; x=1827660916; h=from:date:to:cc:subject:in-reply-to:message-id: references:mime-version; bh=+BB03uDr1hq4OalhciSjP1NwDxaGKBf8zm1i2xZRX3k=; b=GHtQRIOhG2OdJAaHxoW4w4OO3Q5FHpDw8L3MdOTOzJJG1SzhHMNAQbnz JGrnQXAxDNjxQ+VwJ5KYc+8WyRZH0EO1p9bM2cUL0J9ftiXpFUpZ4+ZoN AGeSvkwgc3M3555NakKEnKv59dnhXyZuqG7GYIFCQNfudbw2PuZbK0A+G I/0itX3lSC7rKuK2hdwsjSTQzlm9a3uL5tXu5h20yLf+Lv+39Yq1gwVEZ zN8klerZ/DQTjgD9f71w0+5iJQAyfd7XzTgATXc+BLg4oGpchwjwfvslT Mn1TsVxE8caH0oV3tb0/5RrKUDkPIuttIu/2RJ1UJTqrDCsidAeuQzeqd g==; X-CSE-ConnectionGUID: 6mnMjacXTk6AhwHJ95wR7w== X-CSE-MsgGUID: JbYoyZF8RS2VnpJTM+80BA== X-IronPort-AV: E=McAfee;i="6800,10657,11983"; a="4996634" X-IronPort-AV: E=Sophos;i="6.27,244,1787036400"; d="scan'208";a="4996634" Received: from orviesa005.jf.intel.com ([10.64.159.145]) by orvoesa109.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Dec 2026 03:35:16 -0800 X-CSE-ConnectionGUID: YW+upISVQnG8aNjqXiNtYA== X-CSE-MsgGUID: LMF31KdnTqCUkon8hOAuNg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,244,1787036400"; d="scan'208";a="13029235" 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 03:35:14 -0800 From: =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= Date: Tue, 1 Dec 2026 13:35:12 +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: <20261130075225.3173698-1-Shyam-sundar.S-k@amd.com> Message-ID: References: <20261130075225.3173698-1-Shyam-sundar.S-k@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: text/plain; charset=US-ASCII 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.