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 C962221D490EC for ; Fri, 11 Aug 2017 04:15:43 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id B7BEF14A9E7; Fri, 11 Aug 2017 11:18:03 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com B7BEF14A9E7 Authentication-Results: ext-mx09.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx09.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=lersek@redhat.com Received: from lacos-laptop-7.usersys.redhat.com (ovpn-116-119.phx2.redhat.com [10.3.116.119]) by smtp.corp.redhat.com (Postfix) with ESMTP id 44466B3070; Fri, 11 Aug 2017 11:18:02 +0000 (UTC) To: "Shi, Steven" , edk2-devel-01 Cc: Ard Biesheuvel , "Justen, Jordan L" , "Gao, Liming" , "Kinney, Michael D" References: <20170811003426.2332-1-lersek@redhat.com> <20170811003426.2332-2-lersek@redhat.com> <06C8AB66E78EE34A949939824ABE2B313B560EB2@shsmsx102.ccr.corp.intel.com> From: Laszlo Ersek Message-ID: <787f4528-980e-8c71-2804-0e8be2c935aa@redhat.com> Date: Fri, 11 Aug 2017 13:18:01 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <06C8AB66E78EE34A949939824ABE2B313B560EB2@shsmsx102.ccr.corp.intel.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.38]); Fri, 11 Aug 2017 11:18:03 +0000 (UTC) Subject: Re: [PATCH 1/1] BaseTools/tools_def.template: revert to large code model for X64/GCC5/LTO X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Aug 2017 11:15:44 -0000 Content-Type: text/plain; charset=windows-1252 Content-Language: en-US Content-Transfer-Encoding: 7bit Hi Steven, On 08/11/17 07:28, Shi, Steven wrote: > Hi Laszlo, > > I'm trying to reproduce your boot failure with OVMF in my Ubuntu > system, but not succeed. My GCC was built from GCC main trunk code > in 20170601, and my ld linker is version 2.28. Could you try the ld > 2.28 with your gcc-7.1 and check whether it works in your side? Or, > do you know where can I download the gcc-7.1 pre-built binaries? This was reproduced on a stock Fedora 26 installation: https://getfedora.org/ > jshi19@jshi19-desktop:~/wksp_efi/Laszlo/edk2$ build -p OvmfPkg/OvmfPkgX64.dsc -t GCC5 -DSECURE_BOOT_ENABLE=TRUE -a X64 -b DEBUG -DDEBUG_ON_SERIAL_PORT -n 5 > > jshi19@jshi19-desktop:~/wksp_efi/Laszlo/edk2$ build -p OvmfPkg/OvmfPkgIa32X64.dsc -t GCC5 -DSECURE_BOOT_ENABLE=TRUE -a IA32 -a X64 -b DEBUG -DDEBUG_ON_SERIAL_PORT -n 5 These build commands look good. > jshi19@jshi19-desktop:~/wksp_efi/Laszlo/edk2/Build/OvmfX64/DEBUG_GCC5/FV$ qemu-system-x86_64 -bios OVMF.fd -serial file:serial.log -m 512 -hda fat:. -monitor stdio --enable-kvm > > jshi19@jshi19-desktop:~/wksp_efi/Laszlo/edk2/Build/Ovmf3264/DEBUG_GCC5/FV$ qemu-system-x86_64 -bios OVMF.fd -serial file:serial.log -m 512 -hda fat:. -monitor stdio --enable-kvm The QEMU command lines are missing two options: * First, you have to make sure that the VM has enough memory under 4GB so that the PEI RAM can grow above the 2GB limit. You are using the i440fx board type, so that's OK (its 32-bit memory can go up to 3GB), but the "-m" switch is too small. Instead, I recommend: -m 5120 This will give the VM 5GB of RAM, 3GB of which will be placed under the 4GB mark, and 2GB will be placed above. * Second, there must be at least one AP (application processor) for CpuMpPei to boot up. So please add something like: -smp 4 Thanks Laszlo