From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mx.groups.io with SMTP id smtpd.web12.31072.1612169076418593288 for ; Mon, 01 Feb 2021 00:44:36 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@intel.onmicrosoft.com header.s=selector2-intel-onmicrosoft-com header.b=Ql/+SBLZ; spf=pass (domain: intel.com, ip: 134.134.136.24, mailfrom: ray.ni@intel.com) IronPort-SDR: BgrOPNbWEZ/CNSBBU1Bn78/q28r8QoL3z0qGZY1mpDb4D9RHS9XeQmI1ftrdYhTEY13G5SDw1v v4U7yHdmgk9g== X-IronPort-AV: E=McAfee;i="6000,8403,9881"; a="180798351" X-IronPort-AV: E=Sophos;i="5.79,392,1602572400"; d="scan'208";a="180798351" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Feb 2021 00:44:35 -0800 IronPort-SDR: v4J24xDv8FKWa/y2ZtkryGA/yCVXO8Tr9wGzk90Z7S/lJQ/qMIPKNkZNaMnwsCod6nYzTAy0XM Qap5yuR4z6bg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.79,392,1602572400"; d="scan'208";a="577769066" Received: from orsmsx606.amr.corp.intel.com ([10.22.229.19]) by fmsmga006.fm.intel.com with ESMTP; 01 Feb 2021 00:44:34 -0800 Received: from orsmsx608.amr.corp.intel.com (10.22.229.21) by ORSMSX606.amr.corp.intel.com (10.22.229.19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2106.2; Mon, 1 Feb 2021 00:44:34 -0800 Received: from ORSEDG602.ED.cps.intel.com (10.7.248.7) by orsmsx608.amr.corp.intel.com (10.22.229.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2106.2 via Frontend Transport; Mon, 1 Feb 2021 00:44:34 -0800 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (104.47.55.173) by edgegateway.intel.com (134.134.137.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.1713.5; Mon, 1 Feb 2021 00:44:34 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=D2GN2eUFHB3Pex6hDGP35MywJ6RkMIG5TpkoEB03jhFpagYlXkt5UkSNSJ14YQqOsTtufuey/y40Y/CjNHJGhJjLKX6t7b9lcpEikBR5j7diguwlrHXKAKi1ZAAJc1p2RAEZIauVdvncIe8+uVegEwHT5gMUobziPOtY20UfMgpohGSXpuj2XUFCmnV6w8IITS45srpdJs546/wyk9kU4ZtZHIQthCUp+UE88vmAVoY2FFZ46S4UKRnaIE4MAG25cpTqACwiP1Bo6LPn1rB3AZK6zGomUtll/TDROGPILYVuf1F8LPBETqAtTVmkT/8aWjmLjlHNR8w3RQJP+FErog== 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-SenderADCheck; bh=kVxaFTzv1kOae1r7CWcrJA1ISxyCSGUMU2fZl8jiB5M=; b=KgknaBmVBtSW6RHoK7EgIzUU1O4MUouMFLFjMyGZ/jEql6twOda4u2HWqamiPkUJUOEpsSyve8gA/EOWkZekn5yp8PJaXK0+LXx3PV+p1Xnuw4YnfljFNWcMfFwG7QXqs5Jc9a558ShNrwqSZDAw864Vj8yr3R0uHYtlh2se9BA2TVprsK9kS0VySYLVBTfHqnynpw+xx64cSXOzwzLihIs8GC6XEiCxeJB+Gziv1PrhtJaoLcVCVTylYq0xoGNV144b1EiHYA0JurQABrai22QOUhyJKVVcQx6DG8QDa5b2HLFoxsLuP+8pRIqwmEGLKGkc1sgkEJTsopPq9hcuMg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=kVxaFTzv1kOae1r7CWcrJA1ISxyCSGUMU2fZl8jiB5M=; b=Ql/+SBLZwGPGLuN+Kdc7cbAvDG9uSR+1Zxw300hLpnvZnefJ4Kj8mtEDBiqXHtLhTS8FDyC9ty028ZrDaFiE0D98huvvGwMmEmIEJM2cAI7ojEZmuJX+5gBEZkl3r/DzRetlo2QY5/kek5d8dtKWfarXspSGM5da7ulO88A5Sfc= Received: from PH0PR11MB4936.namprd11.prod.outlook.com (2603:10b6:510:42::20) by PH0PR11MB4983.namprd11.prod.outlook.com (2603:10b6:510:40::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3805.17; Mon, 1 Feb 2021 08:44:33 +0000 Received: from PH0PR11MB4936.namprd11.prod.outlook.com ([fe80::d1f3:ba52:bb46:5451]) by PH0PR11MB4936.namprd11.prod.outlook.com ([fe80::d1f3:ba52:bb46:5451%4]) with mapi id 15.20.3805.025; Mon, 1 Feb 2021 08:44:33 +0000 From: "Ni, Ray" To: "Lou, Yun" , "devel@edk2.groups.io" CC: "Dong, Eric" , Laszlo Ersek , "Kumar, Rahul1" Subject: Re: [PATCH v1 1/1] UefiCpuPkg/CpuCacheInfoLib: Support no enabled AP case in DxeLib Thread-Topic: [PATCH v1 1/1] UefiCpuPkg/CpuCacheInfoLib: Support no enabled AP case in DxeLib Thread-Index: AQHW+HRNPnNtXpo+lkmfthNHiHbZpqpC+/bw Date: Mon, 1 Feb 2021 08:44:33 +0000 Message-ID: References: <20210201082850.5357-1-yun.lou@intel.com> In-Reply-To: <20210201082850.5357-1-yun.lou@intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=intel.com; x-originating-ip: [192.198.147.194] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: c90e1efe-52fc-4534-ff7d-08d8c68d98fd x-ms-traffictypediagnostic: PH0PR11MB4983: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:5797; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: hJkQKaopl8xbRPiZnmRHCccndsgCPf++y+/nWivoHWxc8RDvEvCPqbd+pJvS33Van+i+0QljLp8qInu0lR59ovIpZQjLsdS9KNlzzgeXY2+OAAdCvT3pg1CaknYSmOdjRmRxFMz3ITa+PQApBn4kNg96hke3iacCMRQYpOusF5t6vmohVFOpKgS6pSEl/j5ON/78WO4td/a5goJHTRNKHoB7kn5iVHoVZms0SFsua0AJpqrgN0fIe24avZcoaOYBI5cD1Clu+EPUWonk2+hTtT0ksWlVf6+3Uj84OkMOAF0CLQCI7XQX5P+/P13hiu6ONedpnuap8E8zQ5sXnxKcXGsdRzF6QCRrbPZbI4m3T6rLW/4zIGdB1TDQ3kBk6D8rlnnl8qVw7paQ6tftPeUT7MlYWjfChnxSilwdURGM2FvwV2Lr3BW4LIf4F15DD20tWpcJfbbuMySHxagKqgWWGRIDqS2BMr5+z7LD/ObF/TvmjbEB9mrxO9t2r+DaEOrZTRA6jDMNpQloLhqtpyTOjbMheIkiapi8u6epRvOzTdNxyOQLNzg9TK91tcWnz8clmgksC3PoUXkv0OfCl5J1kiywVS6I+HqMxeCc7QreSAY= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PH0PR11MB4936.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(396003)(346002)(376002)(366004)(39860400002)(136003)(86362001)(8936002)(26005)(83380400001)(186003)(8676002)(6506007)(107886003)(53546011)(4326008)(2906002)(9686003)(55016002)(54906003)(110136005)(66446008)(76116006)(66946007)(66556008)(64756008)(478600001)(66476007)(7696005)(966005)(5660300002)(52536014)(33656002)(71200400001)(316002);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?u/ucCCUy7qoemOakGxCrSi3ia+HEvVM28FbEy1OqsBzp8rNIYNAD1nFBT/Mq?= =?us-ascii?Q?09X3RiGaWIHIcrHjxNQC24JhbarbhQOQikpqkLT5rsikqHz3pLT6WA1x06/D?= =?us-ascii?Q?SS2I7vttKAD8SX2DzjX9uE9ZtRwXAklOoLkHrYco1wcEvQtY/7VtjS4klkFW?= =?us-ascii?Q?w62oJFnpS/bMO8J7Muij3roVn+Vifrqx3XPL60fTyiwJAlNvqLXO6UrPI9fj?= =?us-ascii?Q?JwABa1uH3ashpeuzQeIj2n3kYYFnxrmlkTx/Ojop6C9MCM1FC0k+xEBdu3+D?= =?us-ascii?Q?nh4oEjIlX9fGJMbkvqMR5KfkAVYrrWQxdluf/q+MqyIHlUKoagfl2TIYb8PS?= =?us-ascii?Q?TmzgkIrtM4uVcWCAPrQGtyaVMEmgYmVwsx47Lsqtt07jEgn/JhGIT45EDZDq?= =?us-ascii?Q?qHn/QXDjQn4dorhecKT2/kIYnqyHUnxYNy91vHwDBINbzMsPPA2MhFp7T6TZ?= =?us-ascii?Q?EIZ/i56p6t4KXUR0hyQmHGJnQxP/HeZLnn2R9nprHfXxAruXmXfXpxTr0gRG?= =?us-ascii?Q?5wtbN/75kcBIfdDfCc8tfsu3blSKeqF4KFrm2w0beatQ0YGtEi7AMFNHSTam?= =?us-ascii?Q?KSOjiuH0MC3bGaDCpOY8O/+9953E9hF6l4Nttx9TdB0cCkkPEttTyH3B+ij8?= =?us-ascii?Q?EUNXBsHMEXo85bgptY/2LDpst2UNNR0HXHND6/u0KAUmvucpIQmX/HmXoyZf?= =?us-ascii?Q?bNlSqw1DhxtZbdFzy8d67+5OoT6hzPwryXRmWBCWcSdT0oWBD0qmVt/XBhTQ?= =?us-ascii?Q?QeFqp2Kj4+wGcozWgGQUgmOKbrDpOOuRLMQHIRbjyWZ7nIapJKttXyqluoww?= =?us-ascii?Q?2Uq76S/c9oU6ZmsjcOx79D6F5YC9VZ9+UXdTmpWcsH1jJfZ3tIeYqj7y7DoR?= =?us-ascii?Q?Q6zCbUg04LqiYZKmmcwbmXQyWH3nQHCup/CEgfDvSlkL7wkGO8L/OFiSrpaa?= =?us-ascii?Q?eC6MjBM6ZZBA1EbvEVNp6dDFtaXBN3Le2ZMQehYJ1mbdOmfDXRsGXKE8uaz7?= =?us-ascii?Q?xE0bbGjOUVfgQlxzg7ES7hlDUoYoIjVcWRjrObDsZ8UAQ/fKheGXetcUGSU/?= =?us-ascii?Q?XXzp0/jE?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PH0PR11MB4936.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: c90e1efe-52fc-4534-ff7d-08d8c68d98fd X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Feb 2021 08:44:33.1331 (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: OmBI/AYaDCMNHWnuxh6RRBj4s3vCCVEY9qLwJNAAJeRzpAHTCb5+ZyoOi6VlLSAwBqrUjVWJe+8jEr30bUSB3A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR11MB4983 Return-Path: ray.ni@intel.com X-OriginatorOrg: intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Ray Ni > -----Original Message----- > From: Lou, Yun > Sent: Monday, February 1, 2021 4:29 PM > To: devel@edk2.groups.io > Cc: Lou, Yun ; Ni, Ray ; Dong, Eric > ; Laszlo Ersek ; Kumar, Rahul1 > > Subject: [PATCH v1 1/1] UefiCpuPkg/CpuCacheInfoLib: Support no enabled > AP case in DxeLib >=20 > REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D3195 >=20 > Support system has no enabled AP case in DxeCpuCacheInfoLib. > Otherwise, if the system only has 1 BSP without any enabled AP, > UEFI POST hangs when invoking StartupAllAPs protocol because > EFI_NOT_STARTED is returned. >=20 > Signed-off-by: Jason Lou > Cc: Ray Ni > Cc: Eric Dong > Cc: Laszlo Ersek > Cc: Rahul Kumar > --- > UefiCpuPkg/Library/CpuCacheInfoLib/DxeCpuCacheInfoLib.c | 7 +++++++ > 1 file changed, 7 insertions(+) >=20 > diff --git a/UefiCpuPkg/Library/CpuCacheInfoLib/DxeCpuCacheInfoLib.c > b/UefiCpuPkg/Library/CpuCacheInfoLib/DxeCpuCacheInfoLib.c > index bb788e36146b..d810294e2120 100644 > --- a/UefiCpuPkg/Library/CpuCacheInfoLib/DxeCpuCacheInfoLib.c > +++ b/UefiCpuPkg/Library/CpuCacheInfoLib/DxeCpuCacheInfoLib.c > @@ -51,6 +51,13 @@ CpuCacheInfoStartupAllCPUs ( > EFI_STATUS Status; >=20 >=20 >=20 > Status =3D MpServices.Protocol->StartupAllAPs (MpServices.Protocol, > Procedure, FALSE, NULL, 0, ProcedureArgument, NULL); >=20 > + if (Status =3D=3D EFI_NOT_STARTED) { >=20 > + // >=20 > + // EFI_NOT_STARTED is returned when there is no enabled AP. >=20 > + // Treat this case as EFI_SUCCESS. >=20 > + // >=20 > + Status =3D EFI_SUCCESS; >=20 > + } >=20 > ASSERT_EFI_ERROR (Status); >=20 >=20 >=20 > Procedure (ProcedureArgument); >=20 > -- > 2.28.0.windows.1