From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=66.187.233.73; helo=mx1.redhat.com; envelope-from=lersek@redhat.com; receiver=edk2-devel@lists.01.org Received: from mx1.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) (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 8F6C6203BA4F0 for ; Tue, 29 May 2018 01:17:21 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 920B4401EF08; Tue, 29 May 2018 08:17:20 +0000 (UTC) Received: from lacos-laptop-7.usersys.redhat.com (ovpn-120-253.rdu2.redhat.com [10.10.120.253]) by smtp.corp.redhat.com (Postfix) with ESMTP id BD0172026DEF; Tue, 29 May 2018 08:17:19 +0000 (UTC) From: Laszlo Ersek To: edk2-devel-01 Cc: Jordan Justen , Gary Lin , Ard Biesheuvel References: <20180528184956.20448-1-lersek@redhat.com> Message-ID: <2fb53a91-adb2-fc1b-40df-7809d2bf6970@redhat.com> Date: Tue, 29 May 2018 10:17:18 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <20180528184956.20448-1-lersek@redhat.com> X-Scanned-By: MIMEDefang 2.78 on 10.11.54.4 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.5]); Tue, 29 May 2018 08:17:20 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.5]); Tue, 29 May 2018 08:17:20 +0000 (UTC) for IP:'10.11.54.4' DOMAIN:'int-mx04.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'lersek@redhat.com' RCPT:'' Subject: Re: [PATCH] OvmfPkg: raise DXEFV size to 11 MB X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 May 2018 08:17:21 -0000 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit On 05/28/18 20:49, Laszlo Ersek wrote: > Almost exactly two years after commit 2f7b34b20842f, we've grown out the > 10MB DXEFV: > >> build -a IA32 -a X64 -p OvmfPkg/OvmfPkgIa32X64.dsc -b NOOPT -t GCC48 \ >> -D SMM_REQUIRE -D SECURE_BOOT_ENABLE -D TLS_ENABLE -D E1000_ENABLE \ >> -D HTTP_BOOT_ENABLE -D NETWORK_IP6_ENABLE >> >> [...] >> >> GenFv: ERROR 3000: Invalid >> the required fv image size 0xa28d48 exceeds the set fv image size >> 0xa00000 > > Raise the DXEFV size to 11MB. > > (For builds that don't need this DXEFV bump, I've checked the > FVMAIN_COMPACT increase stemming from the additional 1MB padding, using > NOOPT + GCC48 + FD_SIZE_2MB, and no other "-D" flags. In the IA32 build, > FVMAIN_COMPACT grows by 232 bytes. In the IA32X64 build, FVMAIN_COMPACT > shrinks by 64 bytes. In the X64 build, FVMAIN_COMPACT shrinks by 376 > bytes.) > > Cc: Ard Biesheuvel > Cc: Gary Lin > Cc: Jordan Justen > Contributed-under: TianoCore Contribution Agreement 1.1 > Signed-off-by: Laszlo Ersek > --- > > Notes: > - repo & branch: https://github.com/lersek/edk2.git ; dxefv_11mb > > - regression-tested with the "crash" tool for vmcore analysis > > - regression-tested using S3 suspend/resume with my usual guests, > including Linux, Windows, i440fx, q35, SMM etc > > OvmfPkg/OvmfPkgIa32.fdf | 6 +++--- > OvmfPkg/OvmfPkgIa32X64.fdf | 6 +++--- > OvmfPkg/OvmfPkgX64.fdf | 6 +++--- > 3 files changed, 9 insertions(+), 9 deletions(-) Commit d272449d9e1e. Thanks! Laszlo