From nobody Tue Dec 16 14:50:02 2025 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 104DB26E6F4 for ; Sun, 14 Dec 2025 18:53:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765738408; cv=none; b=OWV4+t3e+hIdiV3wHGgYHCDHf6WtRHqJSbtag/7e4sSPqHgCiDD8HeAoDQWsVr6Gh0Vx2CBFU0VBQp4xZYViyPDktqVS99Qjl//WzBRGu8ksh6fNofKWSY1DPWjaVY1tax2RaQC8+4BcWIa+5jag8OaeMArR45PE3DiViLwWWxQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765738408; c=relaxed/simple; bh=9Kq5O0AJGc7yY9F+f7vSjkWw3Cf54ZmjLCAmgr4bDwo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=W97l+5HkP03/Hq5o+lyM55BuPknJDkJ0QMjVV89Bf590bbX9BaB6a0FOy3GPwcWP+Yjih48pwardz6FtCztvY1vdT9GaDljLFdo1n2t5wfTFpdTh+gZzE9ZHNMsOFTaysNMkgUf1Dwul1dthhVFsrPwoPFlVuoih3RNpMmBpufY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=WO0ilH4x; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="WO0ilH4x" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9AE9EC19422; Sun, 14 Dec 2025 18:53:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1765738407; bh=9Kq5O0AJGc7yY9F+f7vSjkWw3Cf54ZmjLCAmgr4bDwo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WO0ilH4xtKVhJvaO8L8ynsn1mrAyclicr3YceSUIsmjYKN31lRPe3wG9dzm4TXufb iTST/BZDqxN9pkdFM15kWAMGuUBEMlt2KHvYzDXbnGA958959D9EJk+uLuIH06ffoZ wQOWB/GwzrcC2Clss/+Q2596eQojs0rPeTD+FVZrC3s1s7+T/xPk69w76GQz7R0NRT JIrOlUE3WRdJjWz5jijJHK3nIqNwcZNNnaPCOZSJ7e+VajKxo8wlXwdqFbnTPTXKV2 QIagH05mRf53V+GLG8BnM2ELUuXmvFc4I/51PSRvPylEfjj7Rd20hMe3FhsOhNkW1M xCXMDHFLB1+qA== From: "Mario Limonciello (AMD)" To: Yazen Ghannam , x86@kernel.org (maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT)), Jean Delvare Cc: Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "H . Peter Anvin" , linux-kernel@vger.kernel.org, "Mario Limonciello (AMD)" Subject: [PATCH 5/5] x86/amd_node: Output the AGESA version to the logs Date: Sun, 14 Dec 2025 12:53:09 -0600 Message-ID: <20251214185309.152614-6-superm1@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20251214185309.152614-1-superm1@kernel.org> References: <20251214185309.152614-1-superm1@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" On AMD Zen platforms that are running AGESA, there is sometimes DMI additional string for the AGESA version that can be helpful when debugging an issue. If this string is found output to kernel logs. Signed-off-by: Mario Limonciello (AMD) --- This is not strictly AMD node related; it was a proxy for a good location for the message late enough on boot and only run on AMD Zen machines. I'm open to other suggestions. arch/x86/Kconfig | 1 + arch/x86/kernel/amd_node.c | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index 80527299f859a..eae139a91fb84 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -3116,6 +3116,7 @@ config AMD_NB config AMD_NODE def_bool y depends on CPU_SUP_AMD && PCI + select DMI =20 endmenu =20 diff --git a/arch/x86/kernel/amd_node.c b/arch/x86/kernel/amd_node.c index 3d0a4768d603c..575d727c5827e 100644 --- a/arch/x86/kernel/amd_node.c +++ b/arch/x86/kernel/amd_node.c @@ -9,6 +9,7 @@ */ =20 #include +#include #include =20 /* @@ -247,6 +248,7 @@ __setup("amd_smn_debugfs_enable", amd_smn_enable_dfs); static int __init amd_smn_init(void) { u16 count, num_roots, roots_per_node, node, num_nodes; + const struct dmi_device *dev =3D NULL; struct pci_dev *root; =20 if (!cpu_feature_enabled(X86_FEATURE_ZEN)) @@ -310,6 +312,12 @@ static int __init amd_smn_init(void) =20 smn_exclusive =3D true; =20 + while ((dev =3D dmi_find_device(DMI_DEV_TYPE_ADDITIONAL, NULL, dev))) + if (!strncmp(dev->name, "AGESA", 5)) { + pr_info("%s\n", dev->name); + break; + } + return 0; } =20 --=20 2.43.0