From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from NAM04-BN8-obe.outbound.protection.outlook.com (NAM04-BN8-obe.outbound.protection.outlook.com [40.107.100.81]) by mx.groups.io with SMTP id smtpd.web09.5024.1664410920367071299 for ; Wed, 28 Sep 2022 17:22:00 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@amd.com header.s=selector1 header.b=JwM+1ghh; spf=permerror, err=parse error for token &{10 18 %{i}._ip.%{h}._ehlo.%{d}._spf.vali.email}: invalid domain name (domain: amd.com, ip: 40.107.100.81, mailfrom: abner.chang@amd.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ofvF6C78b20Ant6mhGjfYE7VHsZAjGZ1nJJy9GJiThq6WP5YBEFVnocp3hkxbqX32V6CaMv4A26y5E2mH82ggywne+MT9NFhevCdg+/QVAaSNIefLFZM7pnT+1SKJq5mujEmB3I/GC73dAOIGKjki/2jvvM4V0VyZNTqXdzQpn58v+TmufeGs5sg8LGUhJQrHEJtFf5Y94dD6GtfdxULiK0FRQU736hIfuN62C0yVQra6+H5qHEhpBHfVyoYXFDyUz7cogJOg7a7h+cJpwpi+QK3N0YbfYtSBKqLhWd/0U9kPA0Xm3Q3D0o/fjK7XrF29GWYBABVBO+gVCgvQ8TLJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=5NPto1T4rxDqPE2EbkGqnAroEp534jUmMlvXbS3SBpc=; b=XGlpSzUIuhzPhF/FAEh11XtXLK5Df+N6vm+lQWM381rqzKKk9lXaeBy6MyVkywz/0klHCpscj+lAvOajC76qkqEM7iRLGLFZA3oS6nDSV3m7idObI0mdVwTgillg8sCqlCoYSjuzIdN3PkksDpjqBlktbaYN5m/izBpaqxvWDyCtWN6bVvC8gBbRYbYLd9lMoTng2c8BRQsB4fj6w0qVlq7isqmOZ2quudIERN6sV66dPozzdvDjzCYFUxlneEPR5u3ETesZ+67xQGtwjA8+okD9UZUfQjsUURWKGG0Z5+8YpHkRup+I+Mn33E0e4HYlWCJ6nJR5W/ZVCckz665aYA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=5NPto1T4rxDqPE2EbkGqnAroEp534jUmMlvXbS3SBpc=; b=JwM+1ghhVYSb8xZqnpE6lIO0u4QpQf5bdfNcdPsogNLWLnW0kVokwTUhDjjKXhOUsFgHhhi6HtrAAi/kX1otDzseEP9hizhBRM/EfKrgqLpQT35V+JgxZJewalGVXYBEU+dr2LppHauK6p9KPg8DwmxyU/OrQbnmUU9PpfhPDmo= Received: from MN2PR12MB3966.namprd12.prod.outlook.com (2603:10b6:208:165::18) by SJ0PR12MB6943.namprd12.prod.outlook.com (2603:10b6:a03:44b::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5676.17; Thu, 29 Sep 2022 00:21:57 +0000 Received: from MN2PR12MB3966.namprd12.prod.outlook.com ([fe80::998b:f1a2:b183:43be]) by MN2PR12MB3966.namprd12.prod.outlook.com ([fe80::998b:f1a2:b183:43be%4]) with mapi id 15.20.5676.017; Thu, 29 Sep 2022 00:21:57 +0000 From: "Chang, Abner" To: "devel@edk2.groups.io" , "zhihao.li@intel.com" CC: Eric Dong , Ray Ni Subject: Re: [edk2-devel] [PATCH v1 1/1] UefiCpuPkg: Reset a parameter when BSP Exit in CPU relaxed mode. Thread-Topic: [edk2-devel] [PATCH v1 1/1] UefiCpuPkg: Reset a parameter when BSP Exit in CPU relaxed mode. Thread-Index: AQHY0nC+vumn8NSk3Uip1IiB+VCtVK31jb9Q Date: Thu, 29 Sep 2022 00:21:57 +0000 Message-ID: References: <20220927125738.3043-1-zhihao.li@intel.com> In-Reply-To: <20220927125738.3043-1-zhihao.li@intel.com> Accept-Language: zh-CN, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: MSIP_Label_4342314e-0df4-4b58-84bf-38bed6170a0f_Enabled=true; MSIP_Label_4342314e-0df4-4b58-84bf-38bed6170a0f_SetDate=2022-09-29T00:21:55Z; MSIP_Label_4342314e-0df4-4b58-84bf-38bed6170a0f_Method=Standard; MSIP_Label_4342314e-0df4-4b58-84bf-38bed6170a0f_Name=General; MSIP_Label_4342314e-0df4-4b58-84bf-38bed6170a0f_SiteId=3dd8961f-e488-4e60-8e11-a82d994e183d; MSIP_Label_4342314e-0df4-4b58-84bf-38bed6170a0f_ActionId=8dad8291-847b-4d71-a792-f4631b80eebc; MSIP_Label_4342314e-0df4-4b58-84bf-38bed6170a0f_ContentBits=1 authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: MN2PR12MB3966:EE_|SJ0PR12MB6943:EE_ x-ms-office365-filtering-correlation-id: 3550a1b3-b680-42e8-18be-08daa1b09ee5 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: r7E1WBIS4Q49Lvkrqo4ao1CfBpU0tPDGz59hRIy1FE08Oc2K9LlSOwl2m6koG81hu9BKOCUxTjkDe6m9FvZrPNyVth1i+EAe1w6XZ3eXpdQKABPbjqz1yOrQb0YAQnQs39TBuzTm5rNG7tO00DUq+h9iseGQWwCRliicA1jgdVTF2ZuGqCk058xTxMvn4GkuJjz2y3pKv+OlD4BC2qRXxFDIJGLaXSFOH6UxtzfZM2BjDGGvHpimtmR9hlVLNaNCoQyTAYtFeIHuliaUhYEzTWHlO3vnbDTsrF+GfhcAyHi2/ItPAxc6oxv5h3wFMuzUqmLbOOo6SpJNMZ4Tx0Cjl+1KsqMrNSMcUc+fPGdlh7Yy31feaHOb1G3aJ4BQYTdPpWT7JLIvEabUGAarnqMg4gqNa4+npFfKWh1PW7cDTNvO/5x/xAYF0uGGDc9hbtUm5uEVaI8BGxD72+fWaGetBlYGQiXDk8FCEWlP9Vg4IZKE1025OE7V18uwT82jlpECyIdtljx/cNikmZi5EJphl7FXK61J8kmCxOkEw2GYWRNSFaCGe0f8dsnrrWUPa4XweqgEdcXjMvr5FtTrafuTHYK4WQxVgHKBtnT6HTCH1+0FEoFNey2TXvBgOzlwrLG4w04WbLHToruSDp6lD/CzUuVzVq/dToKrcWuRbIitSLbMNur+Jt6atRZTubilXaaPA+PfsxXtDfefEdwCdvfjd7Yb4fsG8AGeWnxw1lThGsVK1KfA++6L9xeQkoLCpdEfa/BcJL3TFWir0JU63djKzZo8OM5PEflQSGW/ZB98qrlxtt99h82F33i6QrWqE3fuxl7vBj5xAHoMABwZ32cs8w== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MN2PR12MB3966.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(4636009)(39860400002)(366004)(346002)(376002)(136003)(396003)(451199015)(478600001)(71200400001)(9686003)(53546011)(26005)(83380400001)(186003)(2906002)(6506007)(55016003)(52536014)(7696005)(8936002)(66446008)(66476007)(966005)(54906003)(45080400002)(66946007)(66556008)(41300700001)(5660300002)(64756008)(4326008)(8676002)(76116006)(110136005)(66899015)(33656002)(38070700005)(122000001)(38100700002)(316002)(86362001);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?dC9USQIB/HuS2Xm77enkx/iJyhGle6DmkC4QemJpdOw8B8w0imyf5K5Z19IP?= =?us-ascii?Q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sg8tMsooMgTcMGMcudZxwVUuK?= =?us-ascii?Q?QZy144mcW95fhPU4xb+bc7yJBN1nR3KweYXYpuTLkE49+QYqn+cSUeSpfzEI?= =?us-ascii?Q?OR6PcS98prtqxw1h89ZfyxCKhI3VjBWa8xtajVYFJzWYE2QkQ04Czi1IRyDP?= =?us-ascii?Q?Mk4ikU3q+hcmHtxT4JVmBOefj27BHsnrELUfVAsky4OucNzfDG25Y0P+xHpG?= =?us-ascii?Q?UYOr/sGoXJ36BvfbKXyzjO8LjHrI0v0/I8DKIYeSGK0f3foAECAhnx57VH9V?= =?us-ascii?Q?U3rlxX3/GOLL9cMfnfIDucBf/VRwHDqE/9mv1IefJxVYjzezW43K20S2O3Cm?= =?us-ascii?Q?CHB0x/QkAmqF6xwX8xYWAkiRVgH/2vivqOwNihl1apgOLHHceTNqm3OhOaIt?= =?us-ascii?Q?OevVoBcEEEEfbRgsYo/bWbggzUs4+nHgha89okPyhoEzK95JsRmMiEFpK8BB?= =?us-ascii?Q?8UTMmABeXKiRNAgg0LNAsiEpnIS4UqR2nlm7cZPTpPqSogVRQX/qSFu7OJ2P?= =?us-ascii?Q?yEahqcqoppK8+PUt+MD89Pl6oAo6SxXtVi4P1dgwrPKOx5KodjSFA4KV/V2E?= =?us-ascii?Q?25wqJza+RJpATDu2Zg6dz9Tio2BYTKNHK525OBaXU2/yRWFkZoTDTTFPGHI9?= =?us-ascii?Q?0ceGr6qMKgNJSS+Wb+CSgFV3RhuS9hCk1C6UEfIw?= MIME-Version: 1.0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MN2PR12MB3966.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3550a1b3-b680-42e8-18be-08daa1b09ee5 X-MS-Exchange-CrossTenant-originalarrivaltime: 29 Sep 2022 00:21:57.7851 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 0EtUn9WsP9YQo4SaEfU+JClFuIjzlCeJwOCL/HoVHriNUahlC7Gl64k9fTb4ZSZBVtPkvyjEjb7cNpw+8F/ZYQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR12MB6943 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable [AMD Official Use Only - General] Not the maintainer or reviewer, however Reviewed-by: Abner Chang > -----Original Message----- > From: devel@edk2.groups.io On Behalf Of Li, > Zhihao via groups.io > Sent: Tuesday, September 27, 2022 8:58 PM > To: devel@edk2.groups.io > Cc: Eric Dong ; Ray Ni > Subject: [edk2-devel] [PATCH v1 1/1] UefiCpuPkg: Reset a parameter when > BSP Exit in CPU relaxed mode. >=20 > Caution: This message originated from an External Source. Use proper > caution when opening attachments, clicking links, or responding. >=20 >=20 > From: Zhihao Li >=20 > REF: > https://nam11.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F%2Fbugz > illa.tianocore.org%2Fshow_bug.cgi%3Fid%3D4083&data=3D05%7C01%7Ca > bner.chang%40amd.com%7C68a8b6e1f7c240e8be0908daa087df31%7C3dd89 > 61fe4884e608e11a82d994e183d%7C0%7C0%7C637998802683954557%7CUnkn > own%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik > 1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=3DIco5gi7y0nROq > O5iMmoQxVdm3%2FkK0EHE6Rmu3Rb3PcQ%3D&reserved=3D0 >=20 > In CPU relaxed mode, it doesn't reset the value of > mSmmMpSyncData->AllApArrivedWithException when BSP exit smm mode. > So this patch will reset this variable. >=20 > Cc: Eric Dong > Cc: Ray Ni >=20 > Signed-off-by: Zhihao Li > --- > UefiCpuPkg/PiSmmCpuDxeSmm/MpService.c | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) >=20 > diff --git a/UefiCpuPkg/PiSmmCpuDxeSmm/MpService.c > b/UefiCpuPkg/PiSmmCpuDxeSmm/MpService.c > index 13c2cb8da4c3..c79da418e37c 100644 > --- a/UefiCpuPkg/PiSmmCpuDxeSmm/MpService.c > +++ b/UefiCpuPkg/PiSmmCpuDxeSmm/MpService.c > @@ -696,8 +696,9 @@ BSPHandler ( > // >=20 > // Allow APs to check in from this point on >=20 > // >=20 > - *mSmmMpSyncData->Counter =3D 0; >=20 > - *mSmmMpSyncData->AllCpusInSync =3D FALSE; >=20 > + *mSmmMpSyncData->Counter =3D 0; >=20 > + *mSmmMpSyncData->AllCpusInSync =3D FALSE; >=20 > + mSmmMpSyncData->AllApArrivedWithException =3D FALSE; >=20 > } >=20 >=20 >=20 > /** >=20 > -- > 2.26.2.windows.1 >=20 >=20 >=20 > -=3D-=3D-=3D-=3D-=3D-=3D > Groups.io Links: You receive all messages sent to this group. > View/Reply Online (#94430): > https://nam11.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F%2Fedk > 2.groups.io%2Fg%2Fdevel%2Fmessage%2F94430&data=3D05%7C01%7Cab > ner.chang%40amd.com%7C68a8b6e1f7c240e8be0908daa087df31%7C3dd896 > 1fe4884e608e11a82d994e183d%7C0%7C0%7C637998802683954557%7CUnkn > own%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik > 1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=3DKJrnDv4XdhieN > 77nzzfZ%2FQzRkIjqVNrcve0cZaMa5wM%3D&reserved=3D0 > Mute This Topic: > https://nam11.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F%2Fgrou > ps.io%2Fmt%2F93948933%2F7039027&data=3D05%7C01%7Cabner.chang% > 40amd.com%7C68a8b6e1f7c240e8be0908daa087df31%7C3dd8961fe4884e608 > e11a82d994e183d%7C0%7C0%7C637998802684110789%7CUnknown%7CTWF > pbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXV > CI6Mn0%3D%7C3000%7C%7C%7C&sdata=3DYdMz3rL3MOuU9uBAf0PXjXx > VrQgYaG2zfYq3zKjt2uU%3D&reserved=3D0 > Group Owner: devel+owner@edk2.groups.io > Unsubscribe: > https://nam11.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F%2Fedk > 2.groups.io%2Fg%2Fdevel%2Funsub&data=3D05%7C01%7Cabner.chang% > 40amd.com%7C68a8b6e1f7c240e8be0908daa087df31%7C3dd8961fe4884e608 > e11a82d994e183d%7C0%7C0%7C637998802684110789%7CUnknown%7CTWF > pbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXV > CI6Mn0%3D%7C3000%7C%7C%7C&sdata=3DrF730ZFxoLMBj7WZ6s%2BKOi > 9XJky0927Q7CkOKw5nd2U%3D&reserved=3D0 [abner.chang@amd.com] - > =3D-=3D-=3D-=3D-=3D-=3D >=20