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 18AF79410B7 for ; Mon, 29 Apr 2024 05:31:47 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=UlEaDfVJJwYCQITEZDp0TfsbCV9s2YVg6WV8k+B/E9c=; 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=1714368706; v=1; b=J975+x+XvKagwvDPCvR6qx9QuxAK/DeNC36pR2WpyoJ3HzlfhE2ojI/dYPkjI39YciO+SHbG GFMmhMyrx09aKDxz2Gi+4BytqVU3TroKU4ovBoatkPm22tGKEbTSQePRlRPquHnKEZPK8bUIF1B TQPSm30QmQyaROxrZwafq5FS40lpThYZBuylebAP9wWqFuHBOTTjAAvp8/ojwz5KWG6W/WkGVlm IQddvfb085/yGhjIwIlXGIYs7vEUAD8vPrTfeuxvFhnoOV/EhVLp4NMi7aWLWlB+my6LYJiDqOz Ikn8LFz0WWCmj7HcO8Ig9XSlLTfvCknkw0ymQKVVDaqQQ== X-Received: by 127.0.0.2 with SMTP id XaynYY7687511xGQciyfY4q2; Sun, 28 Apr 2024 22:31:46 -0700 X-Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.12]) by mx.groups.io with SMTP id smtpd.web10.13875.1714368705764320114 for ; Sun, 28 Apr 2024 22:31:45 -0700 X-CSE-ConnectionGUID: J9vfbAnCQyukJ+RnxJaqeQ== X-CSE-MsgGUID: mZiT164ESeG7AcE+0lmveQ== X-IronPort-AV: E=McAfee;i="6600,9927,11057"; a="21431193" X-IronPort-AV: E=Sophos;i="6.07,238,1708416000"; d="scan'208";a="21431193" X-Received: from fmviesa006.fm.intel.com ([10.60.135.146]) by orvoesa104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Apr 2024 22:31:45 -0700 X-CSE-ConnectionGUID: 4sr4rz7mRHaO0HZQd9tq8A== X-CSE-MsgGUID: 4QqS+DAjRBSgdzqWvX/m6A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,238,1708416000"; d="scan'208";a="26102834" X-Received: from sh1gapp1009.ccr.corp.intel.com ([10.239.189.219]) by fmviesa006.fm.intel.com with ESMTP; 28 Apr 2024 22:31:43 -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:31:40 +0800 Message-Id: <20240429053140.3400-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:31:45 -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: DPBZfN1HcYlgiSz45dfxxkqyx7686176AA= X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20240206 header.b=J975+x+X; 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 (#118367): https://edk2.groups.io/g/devel/message/118367 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] -=-=-=-=-=-=-=-=-=-=-=-