From nobody Fri Dec 19 04:23:15 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 652EE358D39 for ; Tue, 16 Dec 2025 12:34:25 +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=1765888465; cv=none; b=ObDuSw/YPHmMru6Xge8rphkw4bu4ry+GgbAxIIWH1vtshCetq3IzhqcbRaJIcKeaJlGJIlKoW9VsCg7TGV4llBJEJx2leUjAcSUYWaFmmz2vYbT6FVY5NSkLGlbIAAIFvjgsyln0P7azJB9txg5O0zqodf4wmiguLU/VsSmtczQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765888465; c=relaxed/simple; bh=PZOHWP+iRGIJqxUuL0/aLf6dTVv/8h7KfnXIRjT2OoE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=n+DZ/4ey4nbRXzuMcU3RMhtM1qzD4jIduAeqxPp0tvLqIWUCWEb19S3X5oauBwFlHk1nV5YHDyb6UW03K42vMQWKszxWeYsDGm7wN3P2l96SAmviOBNXzAd39ymj4Ez3UWebZ8NegkSZ8Gp2rHN6DkaWQVighRACwZivbVP89Vk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=HSCIJnoc; 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="HSCIJnoc" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5C0BAC4CEF5; Tue, 16 Dec 2025 12:34:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1765888465; bh=PZOHWP+iRGIJqxUuL0/aLf6dTVv/8h7KfnXIRjT2OoE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HSCIJnocWjwr0p8OYci/lvQvRx2nv672ziA6L0s43hr73zU3omgzLyQlu/BHNzyQK /7XBz4TBDus67EtNpcVuoQh5XP8eCqScbfu7CUQbftHYixLu+NYHvi9Rs4q6+n4m5G CFvUvn2uFqode65HUWVCvoUvx4vGST4jEHVRIflL135u4sbBjYutjM+coYzFAmGtNC 2w21+HPNAcsWlFYWUwxDLd516wmCbIJmlBStWVG58mPSaneF2gUnKRE7ebOHf7xHk8 WmqIC1b01VB/20l54iUxqWSuxOopZVZD0FXZkVw9f1bKpAIY4e2lz6/blFDMKFYrIy NI+jmjvT+8J/w== 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 v2 7/7] x86/CPU/AMD: Output the AGESA version to the logs Date: Tue, 16 Dec 2025 06:33:54 -0600 Message-ID: <20251216123354.9219-8-superm1@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20251216123354.9219-1-superm1@kernel.org> References: <20251216123354.9219-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) --- arch/x86/kernel/cpu/amd.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/arch/x86/kernel/cpu/amd.c b/arch/x86/kernel/cpu/amd.c index c19c4ee74dd1f..8f44439d3f993 100644 --- a/arch/x86/kernel/cpu/amd.c +++ b/arch/x86/kernel/cpu/amd.c @@ -1,6 +1,7 @@ // SPDX-License-Identifier: GPL-2.0-only #define pr_fmt(fmt) "x86/amd: " fmt =20 +#include #include #include #include @@ -1406,3 +1407,20 @@ static __init int print_s5_reset_status_mmio(void) return 0; } late_initcall(print_s5_reset_status_mmio); + +#ifdef CONFIG_DMI +static __init int print_agesa_dmi_info(void) +{ + const struct dmi_device *dev =3D NULL; + + 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; +} +late_initcall(print_agesa_dmi_info); +#endif --=20 2.43.0