From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: redhat.com, ip: 209.132.183.28, mailfrom: lersek@redhat.com) Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by groups.io with SMTP; Wed, 10 Jul 2019 09:08:24 -0700 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id AA045301899D; Wed, 10 Jul 2019 16:08:23 +0000 (UTC) Received: from lacos-laptop-7.usersys.redhat.com (ovpn-117-153.ams2.redhat.com [10.36.117.153]) by smtp.corp.redhat.com (Postfix) with ESMTP id 44DAF60C78; Wed, 10 Jul 2019 16:08:22 +0000 (UTC) Subject: Re: [PATCH] UefiCpuPkg RegisterCpuFeaturesLib: Fix an ASSERTION issue To: Star Zeng , devel@edk2.groups.io Cc: Eric Dong , Ray Ni , Chandana Kumar , Kevin Li References: <20190710114236.14800-1-star.zeng@intel.com> From: "Laszlo Ersek" Message-ID: <10caf91a-4723-1abf-d3ae-2640a5b60baf@redhat.com> Date: Wed, 10 Jul 2019 18:08:21 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20190710114236.14800-1-star.zeng@intel.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.47]); Wed, 10 Jul 2019 16:08:23 +0000 (UTC) Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit On 07/10/19 13:42, Star Zeng wrote: > BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=1968 > > We met assertion like below, it happens when there is only > one processor. > > ASSERT_EFI_ERROR (Status = Not started) > ASSERT [CpuFeaturesDxe] X:\XXX\XXX\RegisterCpuFeaturesLib\ > DxeRegisterCpuFeaturesLib.c(149): !EFI_ERROR (Status) > > The code should not call StartupAllAPs when there is only one processor. > > Cc: Laszlo Ersek > Cc: Eric Dong > Cc: Ray Ni > Cc: Chandana Kumar > Cc: Kevin Li > Signed-off-by: Star Zeng > --- > .../CpuFeaturesInitialize.c | 10 +++-- > .../DxeRegisterCpuFeaturesLib.c | 43 +++++++++++-------- > .../PeiRegisterCpuFeaturesLib.c | 11 +++-- > 3 files changed, 37 insertions(+), 27 deletions(-) I'll skip this patch. Thanks! Laszlo