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 229D67803CE for ; Tue, 30 Apr 2024 02:27:52 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=jsgCnlMfmT9LdjBFAFci8wKQigHGgwxF7EiPJXpTpw0=; c=relaxed/simple; d=groups.io; h=From:To:CC:Subject:Thread-Topic:Thread-Index:Date:Message-ID:References:In-Reply-To:Accept-Language:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Resent-Date:Resent-From:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Language:Content-Type:Content-Transfer-Encoding; s=20240206; t=1714444071; v=1; b=RI5hSy1rGOu/b4UM2dh/dVspJT/EyTiqJneiUYNVL/jmCnjfxDerGFG8n9BX1Y/t4+F8GBcJ /1rYDWBMqiQ49TNC27RTlX7t/M+jRs0JRI6lWufLG2HbGjKmzi6wntpi/nLI0F9Vo+rnJQwLbkH k4DEujfu3gt/2HuUpdHpjcw1N/m/EZfPB7dAoZd861UlbAcrwNKuBBEsG9sqKnF09AuG6j1LTLd 21U2bSQJ7QP2gq9uevzPLqaEgWiPlWjU3l76AZ/ep6AXXW5h7RGLeZgPjsT1kf9wRKDfOvOQ71c wepfBAQG0U8pVSOdYbTCjXironrS78tnfLmfaEqkE1/VQ== X-Received: by 127.0.0.2 with SMTP id ahpIYY7687511x9U8Fk9dKbH; Mon, 29 Apr 2024 19:27:51 -0700 X-Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.12]) by mx.groups.io with SMTP id smtpd.web11.5871.1714444070734738655 for ; Mon, 29 Apr 2024 19:27:50 -0700 X-CSE-ConnectionGUID: HD5lPIAeTmiLoh3y5XY8jQ== X-CSE-MsgGUID: AnBri3cvR5mviNO7nY+9vQ== X-IronPort-AV: E=McAfee;i="6600,9927,11059"; a="13920636" X-IronPort-AV: E=Sophos;i="6.07,241,1708416000"; d="scan'208";a="13920636" X-Received: from orviesa002.jf.intel.com ([10.64.159.142]) by fmvoesa106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Apr 2024 19:27:50 -0700 X-CSE-ConnectionGUID: iTSUiZlZRrOQNcB+FzIYmQ== X-CSE-MsgGUID: tCBhQoeySQOR0x9uBtJ9zQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,241,1708416000"; d="scan'208";a="57174498" X-Received: from orsmsx601.amr.corp.intel.com ([10.22.229.14]) by orviesa002.jf.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 29 Apr 2024 19:27:50 -0700 X-Received: from orsmsx611.amr.corp.intel.com (10.22.229.24) by ORSMSX601.amr.corp.intel.com (10.22.229.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Mon, 29 Apr 2024 19:27:49 -0700 X-Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX611.amr.corp.intel.com (10.22.229.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Mon, 29 Apr 2024 19:27:49 -0700 X-Received: from orsedg603.ED.cps.intel.com (10.7.248.4) by orsmsx610.amr.corp.intel.com (10.22.229.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35 via Frontend Transport; Mon, 29 Apr 2024 19:27:49 -0700 X-Received: from NAM04-BN8-obe.outbound.protection.outlook.com (104.47.74.41) by edgegateway.intel.com (134.134.137.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Mon, 29 Apr 2024 19:27:49 -0700 X-Received: from PH0PR11MB5628.namprd11.prod.outlook.com (2603:10b6:510:d4::22) by DS7PR11MB6127.namprd11.prod.outlook.com (2603:10b6:8:9d::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7519.34; Tue, 30 Apr 2024 02:27:46 +0000 X-Received: from PH0PR11MB5628.namprd11.prod.outlook.com ([fe80::4800:95b8:1ed0:64c6]) by PH0PR11MB5628.namprd11.prod.outlook.com ([fe80::4800:95b8:1ed0:64c6%4]) with mapi id 15.20.7519.031; Tue, 30 Apr 2024 02:27:46 +0000 From: "Zeng, Star" To: "Wu, Jiaxin" , "devel@edk2.groups.io" CC: "Ni, Ray" , Gerd Hoffmann , "Kumar, Rahul R" , "Zeng, Star" Subject: Re: [edk2-devel] [PATCH v1] UefiCpuPkg/Library: Cleanup debug message in LmceSupport Thread-Topic: [PATCH v1] UefiCpuPkg/Library: Cleanup debug message in LmceSupport Thread-Index: AQHamfaHm8B8GuGlZE+rSlcXVKgqm7GAF4dg Date: Tue, 30 Apr 2024 02:27:46 +0000 Message-ID: References: <20240429053140.3400-1-jiaxin.wu@intel.com> In-Reply-To: <20240429053140.3400-1-jiaxin.wu@intel.com> Accept-Language: zh-CN, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: PH0PR11MB5628:EE_|DS7PR11MB6127:EE_ x-ms-office365-filtering-correlation-id: e5d42ee4-ed5d-4681-34ef-08dc68bd1f8d x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam-message-info: =?us-ascii?Q?eGQuoyj5bnwrmkojnD0pn2erfTbOegF9wRrT3Jm35JU66iesxmDW1/YOnVqv?= =?us-ascii?Q?X9+NVTz01Afy2yw4BhhHbhlRV6jUveX8QPcRUxgNKXnCXVtmz8snAkX8vZl2?= =?us-ascii?Q?qunoqhn1YwIVlsxcrKJ7SKp4v5N8/Td9kbqCcsuhhHTnt7PaS1f+Jq2JEX0V?= =?us-ascii?Q?xQPXBo9v3ZZbJ36p9NrOR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NHg?= =?us-ascii?Q?yGhQu/l+Okm75PP/aZrVrs+jwKIKMymw+2QoDEIQe/uaTmmlY8mBA7tSWT0p?= =?us-ascii?Q?SG6WrRj7ZgUzuK7SnCcWmb/DU7qy66+2iCUuZSNVJ8gpeMivoHwe1BFAXh66?= =?us-ascii?Q?A+roI9c4WwkfTFhKzrZubyHrvEB0APciqOEe7PzLiYV92RZP3NIP8/9D/avh?= =?us-ascii?Q?vUE4xj+eBkiivv8NLZ+TYin0cXHhevkzkjEReMi0garkrSY0SIM02xFkjrFn?= =?us-ascii?Q?D2eLnAyDDFaokSLdp7u6Jegoi1RMTzRDK+E3g2x2IluZnA=3D=3D?= x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?FOSD304jEPwDYftX5RsDfXiMZRr69+3UmvALDpS2CG+nHfl4paOxHWRXy4QU?= =?us-ascii?Q?WNcWoPA5nSfQfab/OoR2EIxXZRd4d34AmOnj0wV7HUTriV52QN/QtydBZrZs?= =?us-ascii?Q?4P/x5pX7OIhUqiRvsBbymtQ2RhGtLkZkx4pyFfPSsDNBO7J++vfdW/BRM/0H?= =?us-ascii?Q?OYKiCY30MXJlPN1KuoPLj/XI6QJSeuTulHsAwZD9cIugvydSRKcbc5SQsGwn?= =?us-ascii?Q?GT6qQGE/uH883dcAqJWjvb0zU8blUBdM/pOa5dvoEIqil2lh+YMKLAeLIDWF?= =?us-ascii?Q?wdTn6u9p89XYlBSvRHYP5YoNQSpNEsIo0O8nK7bBWLCqsL18C0f7ao8QnDfZ?= =?us-ascii?Q?pQeTgnQ2sSXf6kAnNPJKfCG9jd+Nb8aA1+tiK9jLbsb54FkP/M5TqP1ifTzI?= =?us-ascii?Q?fLMzjFBlcsZWZojy2o+9ouox9skcU7zWEjmE9yoXw161mSrzuLjIKT7T1Iy4?= =?us-ascii?Q?8x1D8X5YBo9M21AdgbmkmtF3u1wvJj0+6gWUSlvfhOT5lu1jY9lu2Nb0zfxv?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pIVQIKsMW8wDE7v0OWoDV37sCs?= =?us-ascii?Q?i2XEmyucgjNygW8RpSZVHGg6JqdxoL4gVltBXfcfTFGZs9jHOAO0nxYP7aJO?= =?us-ascii?Q?ve5sYL8ScINfYimqatejGpP5xzRQ86/kee7Ak+FbApzePG4IXI6IiWQ295XJ?= =?us-ascii?Q?TcVl3W5irMilyaVt3P2tjGMg6Wg3nGujhL6+sE3G?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PH0PR11MB5628.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: e5d42ee4-ed5d-4681-34ef-08dc68bd1f8d X-MS-Exchange-CrossTenant-originalarrivaltime: 30 Apr 2024 02:27:46.6922 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: h49rOQjRqZ33cDT6y7tmUxl72TBFAklwxxxc6YHay+aQx+oHkJh9Feb8oshnhgPBbQxDAS2Mc0SpqCiAimVsew== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS7PR11MB6127 X-OriginatorOrg: 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: Mon, 29 Apr 2024 19:27:50 -0700 Resent-From: star.zeng@intel.com Reply-To: devel@edk2.groups.io,star.zeng@intel.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: 0lFmy2rkmYw8L1EEp66zu3F1x7686176AA= Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20240206 header.b=RI5hSy1r; 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 Reviewed-by: Star Zeng -----Original Message----- From: Wu, Jiaxin =20 Sent: Monday, April 29, 2024 1:32 PM To: devel@edk2.groups.io Cc: Ni, Ray ; Zeng, Star ; Gerd Hoff= mann ; Kumar, Rahul R Subject: [PATCH v1] UefiCpuPkg/Library: Cleanup debug message in LmceSuppor= t 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/UefiC= puPkg/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. =20 - 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 =20 **/ =20 #include "CpuCommonFeatures.h" @@ -287,13 +287,10 @@ LmceSupport ( if (!McaSupport (ProcessorNumber, CpuInfo, ConfigData)) { return FALSE; } =20 McgCap.Uint64 =3D AsmReadMsr64 (MSR_IA32_MCG_CAP); - if (ProcessorNumber =3D=3D 0) { - DEBUG ((DEBUG_INFO, "LMCE enable =3D %x\n", (BOOLEAN)(McgCap.Bits.MCG_= LMCE_P !=3D 0))); - } =20 return (BOOLEAN)(McgCap.Bits.MCG_LMCE_P !=3D 0); } =20 /** --=20 2.16.2.windows.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#118401): https://edk2.groups.io/g/devel/message/118401 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] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-