From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=192.55.52.93; helo=mga11.intel.com; envelope-from=ruiyu.ni@intel.com; receiver=edk2-devel@lists.01.org Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 6530D210C27A9 for ; Thu, 26 Jul 2018 01:36:45 -0700 (PDT) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 26 Jul 2018 01:36:44 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,404,1526367600"; d="scan'208";a="77965166" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by orsmga002.jf.intel.com with ESMTP; 26 Jul 2018 01:36:30 -0700 Received: from fmsmsx116.amr.corp.intel.com (10.18.116.20) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.319.2; Thu, 26 Jul 2018 01:36:30 -0700 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by fmsmsx116.amr.corp.intel.com (10.18.116.20) with Microsoft SMTP Server (TLS) id 14.3.319.2; Thu, 26 Jul 2018 01:36:29 -0700 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.81]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.173]) with mapi id 14.03.0319.002; Thu, 26 Jul 2018 16:36:27 +0800 From: "Ni, Ruiyu" To: "Dong, Eric" , "'edk2-devel@lists.01.org'" CC: 'Laszlo Ersek' Thread-Topic: [Patch v3 3/3] UefiCpuPkg/MpInitLib: Not use disabled AP when call StartAllAPs. Thread-Index: AQHUI+xUdfXAKTeYg0WlSj3prYZhaaShLxoAgAAApGA= Date: Thu, 26 Jul 2018 08:36:26 +0000 Message-ID: <734D49CCEBEEF84792F5B80ED585239D5BD8C517@SHSMSX104.ccr.corp.intel.com> References: <20180725075020.240-1-eric.dong@intel.com> <20180725075020.240-4-eric.dong@intel.com> <734D49CCEBEEF84792F5B80ED585239D5BD8C4FA@SHSMSX104.ccr.corp.intel.com> In-Reply-To: <734D49CCEBEEF84792F5B80ED585239D5BD8C4FA@SHSMSX104.ccr.corp.intel.com> Accept-Language: en-US, zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: [Patch v3 3/3] UefiCpuPkg/MpInitLib: Not use disabled AP when call StartAllAPs. X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Jul 2018 08:36:45 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable With that, Reviewed-by: Ruiyu Ni Thanks/Ray > -----Original Message----- > From: Ni, Ruiyu > Sent: Thursday, July 26, 2018 4:36 PM > To: Dong, Eric ; edk2-devel@lists.01.org > Cc: Laszlo Ersek > Subject: RE: [Patch v3 3/3] UefiCpuPkg/MpInitLib: Not use disabled AP whe= n call > StartAllAPs. >=20 > > + if (GetApState (CpuData) =3D=3D CpuStateDisabled && !WakeUpDis= abledAps) > { > > + continue; > > + } > > + > > CpuData->ApFunction =3D (UINTN) Procedure; > > CpuData->ApFunctionArgument =3D (UINTN) ProcedureArgument; > > SetApState (CpuData, CpuStateReady); >=20 > Eric, can you add more comments here to say ALL AP will be woke up by INI= T- > SIPI-SIPI, but the AP procedure will be skipped when AP state is not Read= y.