From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail05.groups.io (mail05.groups.io [45.79.224.7]) by spool.mail.gandi.net (Postfix) with ESMTPS id C9A517803CF for ; Mon, 29 Apr 2024 05:19:49 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=nADwm2PORlq6JCQkK1kz82bB/P8gWtgL/9P5/ZPmUOk=; c=relaxed/simple; d=groups.io; h=From:To:Cc:Subject:Date:Message-Id:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Resent-Date:Resent-From:Reply-To:List-Unsubscribe-Post:List-Unsubscribe; s=20240206; t=1714367988; v=1; b=NvntDNKMTIRZLJjuPMzBDgOMBMgcFIJnlfhpSJnh3YWRgQudMCqSybpjuFA4K1Gt9TuHJnwF L2l4w3zuXAclERKToLgQmIPDE0ZZZcjW1VDYB6U1tIPlefhS75a8lKHQieVCA/k5WCKKpCajHZT IX1VUe/mHCBZ73utRv4KpLjhqUjlW4Lh0Grk72BzXPcwLBrwyiKu6hMWN8E0LKXUMP5GtWoP1Bp VavfUlld2U8zGjHRv8zPuxNfslNOWkavuU7l2HKV/qK9m/y1icRZWMxHs18MAxsIlaQGI3Jpfik 1CqgTOGbX7M9/+iMz+tzwwgEWFYm/AfG2LOuUar2SO9JA== X-Received: by 127.0.0.2 with SMTP id 6Am6YY7687511xcJehrj3HjS; Sun, 28 Apr 2024 22:19:48 -0700 X-Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.18]) by mx.groups.io with SMTP id smtpd.web11.13353.1714367987138627151 for ; Sun, 28 Apr 2024 22:19:47 -0700 X-CSE-ConnectionGUID: DUF2R8MNRoO3ypyPOVRvFQ== X-CSE-MsgGUID: CCSHyEOfQauHfXWXzQPDGA== X-IronPort-AV: E=McAfee;i="6600,9927,11057"; a="9868686" X-IronPort-AV: E=Sophos;i="6.07,238,1708416000"; d="scan'208";a="9868686" X-Received: from fmviesa004.fm.intel.com ([10.60.135.144]) by fmvoesa112.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Apr 2024 22:19:46 -0700 X-CSE-ConnectionGUID: b03QJlMfSi+EudgXpJzk6g== X-CSE-MsgGUID: K8y99p/ITJ+eksSqalhYHw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,238,1708416000"; d="scan'208";a="30648605" X-Received: from sh1gapp1009.ccr.corp.intel.com ([10.239.189.219]) by fmviesa004.fm.intel.com with ESMTP; 28 Apr 2024 22:19:45 -0700 From: "Wu, Jiaxin" To: devel@edk2.groups.io Cc: Ray Ni , Zeng Star , Gerd Hoffmann , Rahul Kumar Subject: [edk2-devel] [PATCH v1] UefiCpuPkg/Library: Cleanup debug message in LmceSupport Date: Mon, 29 Apr 2024 13:19:40 +0800 Message-Id: <20240429051940.12616-1-jiaxin.wu@intel.com> Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Resent-Date: Sun, 28 Apr 2024 22:19:47 -0700 Resent-From: jiaxin.wu@intel.com Reply-To: devel@edk2.groups.io,jiaxin.wu@intel.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: GfKxAnPVl1LYFDcDwVAPJy2Ux7686176AA= X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20240206 header.b=NvntDNKM; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=intel.com (policy=none); spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 45.79.224.7 as permitted sender) smtp.mailfrom=bounce@groups.io ProcessorNumber 0 is not always BSP. Debug message based on 0 of ProcessorNumber is incorrect. This patch is to clean the debug message in LmceSupport directly. Cc: Ray Ni Cc: Zeng Star Cc: Gerd Hoffmann Cc: Rahul Kumar Signed-off-by: Jiaxin Wu --- UefiCpuPkg/Library/CpuCommonFeaturesLib/MachineCheck.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/UefiCpuPkg/Library/CpuCommonFeaturesLib/MachineCheck.c b/UefiCpuPkg/Library/CpuCommonFeaturesLib/MachineCheck.c index d8b070d9f1..cb569769a1 100644 --- a/UefiCpuPkg/Library/CpuCommonFeaturesLib/MachineCheck.c +++ b/UefiCpuPkg/Library/CpuCommonFeaturesLib/MachineCheck.c @@ -1,9 +1,9 @@ /** @file Machine Check features. - Copyright (c) 2017 - 2019, Intel Corporation. All rights reserved.
+ Copyright (c) 2017 - 2024, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include "CpuCommonFeatures.h" @@ -287,13 +287,10 @@ LmceSupport ( if (!McaSupport (ProcessorNumber, CpuInfo, ConfigData)) { return FALSE; } McgCap.Uint64 = AsmReadMsr64 (MSR_IA32_MCG_CAP); - if (ProcessorNumber == 0) { - DEBUG ((DEBUG_INFO, "LMCE enable = %x\n", (BOOLEAN)(McgCap.Bits.MCG_LMCE_P != 0))); - } return (BOOLEAN)(McgCap.Bits.MCG_LMCE_P != 0); } /** -- 2.16.2.windows.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#118366): https://edk2.groups.io/g/devel/message/118366 Mute This Topic: https://groups.io/mt/105795776/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-