From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) (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 46D6481F24 for ; Fri, 25 Nov 2016 03:53:15 -0800 (PST) Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 7FB966198B; Fri, 25 Nov 2016 11:53:14 +0000 (UTC) Received: from lacos-laptop-7.usersys.redhat.com (ovpn-116-35.phx2.redhat.com [10.3.116.35]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id uAPBrCos020725; Fri, 25 Nov 2016 06:53:13 -0500 To: Jeff Fan , edk2-devel@ml01.01.org References: <20161125060312.27932-1-jeff.fan@intel.com> Cc: Feng Tian , Michael D Kinney From: Laszlo Ersek Message-ID: <36faeb5e-16f8-fd74-eef2-df80a49018ab@redhat.com> Date: Fri, 25 Nov 2016 12:53:12 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.0 MIME-Version: 1.0 In-Reply-To: <20161125060312.27932-1-jeff.fan@intel.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.26 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.38]); Fri, 25 Nov 2016 11:53:14 +0000 (UTC) Subject: Re: [PATCH v2 0/5] UefiCpuPkg/DxeMpLib: Allocate new safe stack < 4GB X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Nov 2016 11:53:15 -0000 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit On 11/25/16 07:03, Jeff Fan wrote: > Allocate safe AP stack under 4GB and make sure BSP wait till all APs running in > safe code. > > v2: > 1. Update #1 to address the comments in > https://lists.01.org/pipermail/edk2-devel/2016-November/005136.html > 2. Update #2 to address the comments in > https://lists.01.org/pipermail/edk2-devel/2016-November/005137.html > 3. Update #3 to address the comments in > https://lists.01.org/pipermail/edk2-devel/2016-November/005138.html > 4. Add #4 to fix getting target C-State bug. > 5. Add #5 to remove ret instruction. > > Cc: Laszlo Ersek > Cc: Feng Tian > Cc: Michael D Kinney > Contributed-under: TianoCore Contribution Agreement 1.0 > Signed-off-by: Jeff Fan > > Jeff Fan (5): > UefiCpuPkg/DxeMpLib: Get safe AP loop handler from global variable > UefiCpuPkg/DxeMpLib: Allocate new safe stack < 4GB > UefiCpuPkg/DxeMpLib: Make sure APs in safe loop code > UefiCpuPkg/DxeMpLib: Fix bug when getting target C-State from eax > UefiCpuPkg/DxeMpLib: Remove unnecessary ret instruction > > UefiCpuPkg/Library/MpInitLib/DxeMpLib.c | 29 ++++++++++++++++++++++---- > UefiCpuPkg/Library/MpInitLib/Ia32/MpFuncs.nasm | 16 ++++++++++---- > UefiCpuPkg/Library/MpInitLib/MpLib.h | 4 +++- > UefiCpuPkg/Library/MpInitLib/X64/MpFuncs.nasm | 8 ++++--- > 4 files changed, 45 insertions(+), 12 deletions(-) > Tested-by: Laszlo Ersek