From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id 9793C7803E4 for ; Tue, 12 Sep 2023 15:03:35 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=Alc98gcWDTFRVC0PpSYCofoM2jNE3GsYoyZ5ua0tzsM=; c=relaxed/simple; d=groups.io; h=ARC-Seal:ARC-Message-Signature:ARC-Authentication-Results:From:To:CC:Subject:Thread-Topic:Thread-Index:Date:Message-ID:References:In-Reply-To:Accept-Language:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Language:Content-Type:Content-Transfer-Encoding; s=20140610; t=1694531009; v=1; b=URJA+kUBjIkCgSrTZjt2TAloirA4oJ5srWWazyhA5aYNgcYZOksQasFqbpQElUMh2TxK5/o4 ABmBn5P7jN3rLF6hLQEPr+nzhFj74BK7Rf+6LE8yE2q4MjF7cIMarQ9nptLP8ddfnuhXmB3QxTH eTbPM7bpDwg8iS9zCEJspsv8= X-Received: by 127.0.0.2 with SMTP id lmMaYY7687511xUrT4WrbWEv; Tue, 12 Sep 2023 08:03:29 -0700 X-Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.151]) by mx.groups.io with SMTP id smtpd.web11.27617.1694531008401705287 for ; Tue, 12 Sep 2023 08:03:28 -0700 X-IronPort-AV: E=McAfee;i="6600,9927,10831"; a="358676047" X-IronPort-AV: E=Sophos;i="6.02,139,1688454000"; d="scan'208";a="358676047" X-Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Sep 2023 08:02:47 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10831"; a="809300589" X-IronPort-AV: E=Sophos;i="6.02,139,1688454000"; d="scan'208";a="809300589" X-Received: from orsmsx603.amr.corp.intel.com ([10.22.229.16]) by fmsmga008.fm.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 12 Sep 2023 08:02:46 -0700 X-Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX603.amr.corp.intel.com (10.22.229.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.32; Tue, 12 Sep 2023 08:02:46 -0700 X-Received: from orsedg603.ED.cps.intel.com (10.7.248.4) by orsmsx610.amr.corp.intel.com (10.22.229.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.32 via Frontend Transport; Tue, 12 Sep 2023 08:02:46 -0700 X-Received: from NAM10-DM6-obe.outbound.protection.outlook.com (104.47.58.103) by edgegateway.intel.com (134.134.137.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.32; Tue, 12 Sep 2023 08:02:46 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iBDj1sFFdNcPd0n59sS3/i3sc413njespRyzPUWeiAWIc9LGAhPSr0gL77EjsUJZVOn0aYuaP2IfLXLQHiSBRaKn3N1gV30lL6P4uErNgEO4A//r30K0CtYF1EbPkbXhKpLAyspUDhjWtd+J0AyH7oZD/m+u09HSKiR2KVN1tGQy+8Dtrdyz+Ih3am0QbwlvXEk87IKwdAOE5LPIoAUTR06+L1hB1jwyP/6Jj8kveqd+/gPij4B5FKsVcvnjLDYts6mIxeUHRmvoYKbYsOn+5lkl37PDA/VVMcuSuMJLkyw60P1Qx4TrqGPj1WGfPoXHr7pu4w9bKCU0bpffKsSAqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=g3AsU6UHUcjRiayh4sZEIvjd0Fe2Ktve2DDZ1xC2+94=; b=QsLe6fLJaf6+G4F4HCjenQ4sI+zV/DOYhOIQU2b7icPayidZ1M6tTDYcM6v2qK4fp25yrkK3U2btzqwwFDdypm+aaf+lSo46O5e6g6u3ullCPhJ/lyIKL0C/4p+36X9sD/a7OwHjC9D7xfSFcg15wytRIcyBMGjs+aHryaIAngZyLzT9CN4TCYgKl6xcUGBMbn+i+W9eEbdyLcxeM1SGHmopA+p/uMRvCKvfQuh9kjaGYkWveaA1F3j7USjPAmF73j8AWOUORjl5iuANXKg7IXow2ni1LaZd+t6OUPF1H1PxJFH6aBwu4gZCaaDtLz3+0LMXyPOv0x5DHwkhgxZkgQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none X-Received: from MW4PR11MB5872.namprd11.prod.outlook.com (2603:10b6:303:169::14) by DM4PR11MB5993.namprd11.prod.outlook.com (2603:10b6:8:5c::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6768.35; Tue, 12 Sep 2023 15:02:44 +0000 X-Received: from MW4PR11MB5872.namprd11.prod.outlook.com ([fe80::fdf8:dc0e:db69:f35b]) by MW4PR11MB5872.namprd11.prod.outlook.com ([fe80::fdf8:dc0e:db69:f35b%4]) with mapi id 15.20.6768.029; Tue, 12 Sep 2023 15:02:44 +0000 From: "Yao, Jiewen" To: Ard Biesheuvel , Laszlo Ersek CC: "devel@edk2.groups.io" , Ard Biesheuvel , Gerd Hoffmann , "Justen, Jordan L" Subject: Re: [edk2-devel] [PATCH] OvmfPkg: raise DXEFV size to 14.5 MB in the traditional platform FDFs Thread-Topic: [PATCH] OvmfPkg: raise DXEFV size to 14.5 MB in the traditional platform FDFs Thread-Index: AQHZ5YQjQgCDocDKQ0GJxBlOql4CubAXSDOAgAAAdQA= Date: Tue, 12 Sep 2023 15:02:43 +0000 Message-ID: References: <20230912141849.75147-1-lersek@redhat.com> In-Reply-To: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: MW4PR11MB5872:EE_|DM4PR11MB5993:EE_ x-ms-office365-filtering-correlation-id: 8e4e1ab4-5873-4790-69e4-08dbb3a15163 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam-message-info: Cg8w7imk9X9FsrVqN4+WLtePxq5KdhpMf5W1qOfK6iTggD/E4tbuSSgpsiVE531CiXe2DlQlDDYeDAA3WJmbu+d2EbWZTrbw4O0fwDveXbm62MJklaKNzyIYfELO+DQoVZqMtaXwEHjh2C70+Wr1u6zD7V/nTfod0yT0btG+FEAYk4NFXPa3wP27u+1VDLH5i2aKSZigUBcuVWLTbOAHJHyHIp3RGgq/gNQANmR0gqZ94Xk1iCuxzFhw+XlKypKG3PzqMOR3aEUKX3WCLqxAkp6KBivwPasS0vAzNi3p/pQfmyOMqLUlK7cz87Oo3jjcclKQkOMQXVmX7mhdBbkILiEfsX4FT370Fw2i+0YyYq87VRsJD8SAizUNapEF2McsNlHowXWRuO275tT8KrlT2IzK3Uk4Zu2Rtdc4FVoy4kGp6qRDjo838hPlkpWpPQEafbUOG9co2As4ESKGEXW+bGY7tZ1xvjpHFp9QLsHPkOvWZ6nNjCWXrw8E74hnufi+o8sMZn6z3vFNoBXJJHamkqvB2H11Q55cg2Zyj3YwsnhwqOa5QWMEfCGPU0g6Vm6KzOoYOuV4RF2RcoPIAw0NXkeU/FbpuNmtDH/DFmI2ZJCw/kCQ6gI032VNn+sKxz7C x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?jAf0ge7fFcYPpLOp77mLqSbH8C1RNl+vcs6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uNgrIdeKMPKBsBdNWRPBpQP8+6e61+MUIe6kpGgKlhhMVz?= =?us-ascii?Q?YDu1kTBz0ZW3l4ScuOQ1NfVjILsC0jGicOpiKhzxKpeCmEG1ijIWA/DrfphX?= =?us-ascii?Q?Lx2D3v7kcsQ4rStvU/CYqELsjFLdqv5cIa5xVErYkTxbCHkSSCFDL+MXAFCP?= =?us-ascii?Q?LU/OElhYRptAkJ7txcaCn2RG9ZlVezAXMUUNgohJys61WSxAY+G/4ax1mHqQ?= =?us-ascii?Q?EH1iF/Fb1ahllYLCKe/nqXr8jr4xHNdYUzFlqlr3e3jLGcelmrJ4pMdzd9ZM?= =?us-ascii?Q?+qOuiqqAYyR6OT3zlrlVL2HiDcwf1PZ3PprpTTik6QzpUmEa3VDG//A0Xh9w?= =?us-ascii?Q?UOUApABJqigrAngJ9Hcm4Hevjmp7f5cIH559T9ks6k1pr8y1B4//vH9vV9dA?= =?us-ascii?Q?c+wQnuauFdfi6YCIIJM4+I4lfEFPXeajFTWOuC2Ta1RxfV5H1RJM5giisfBA?= =?us-ascii?Q?x7oIj0hBcjA0jcUjpGbDJrBEQ0DJQlJ1S2so+1W6PTcXQ7MKnLc/ko3KTQAk?= =?us-ascii?Q?JpXJlv9m6RgtuZ37H1ZTtQJiowUpaHCopFeqswePKzzBngYs6AowyF/BBcxH?= =?us-ascii?Q?Ie6uxhZj/sbSIUjlTyi7WhlkuPBVnfRjXP8V5MNLqYxBippMy13zg/tHZH6S?= =?us-ascii?Q?zMIcocZKSlk4WuhRsXkwukAzUp7K6CQIj5WgKS2a?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MW4PR11MB5872.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8e4e1ab4-5873-4790-69e4-08dbb3a15163 X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Sep 2023 15:02:43.9622 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: pVJnbt3sdGBcKfCbBLbc4jNaQyls6/8G0divHXArg61KOTDjf5i+a3uArq4Oqopw3FBuzhM+ARNHt8/X7uAyfw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR11MB5993 X-OriginatorOrg: intel.com Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,jiewen.yao@intel.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: 5Y8v6juATppCVLTmiWm4IzkJx7686176AA= Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=URJA+kUB; arc=reject ("signature check failed: fail, {[1] = sig:microsoft.com:reject}"); dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=intel.com (policy=none); spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io Hello I do not object the size increase. I am wondering if we need to take some action to control the size. Or we just increase it, again and again? Of course, more feature =3D=3D mor= e size required. May I know if there is up-limit from VMM perspective, such as KVM? E.g. Can we support more than 16MiB ? More than 128MiB? Thank you Yao, Jiewen > -----Original Message----- > From: Ard Biesheuvel > Sent: Tuesday, September 12, 2023 10:59 PM > To: Laszlo Ersek > Cc: devel@edk2.groups.io; Ard Biesheuvel ; Ger= d > Hoffmann ; Yao, Jiewen ; Justen, > Jordan L > Subject: Re: [PATCH] OvmfPkg: raise DXEFV size to 14.5 MB in the traditio= nal > platform FDFs >=20 > On Tue, 12 Sept 2023 at 16:19, Laszlo Ersek wrote: > > > > My usual IA32X64 and X64 builds fail for the NOOPT target, using GCC5: > > > > - IA32X64: > > > > > the required fv image size 0xdef130 exceeds the set fv image size > > > 0xd00000 > > > > - X64: > > > > > the required fv image size 0xd8f7b8 exceeds the set fv image size > > > 0xd00000 > > > > NOOPT is important for debugging (less confusing behavior with gdb, and > > much less confusing disassembly). > > > > Raise the DXEFV size to 14.5 MB (14 MB would work, but cut it too close > > for IA32X64). > > > > After this patch: > > > > - IA32: > > > > > DXEFV [83%Full] 15204352 (0xe80000) total, 12718784 (0xc212c0) used, > > > 2485568 (0x25ed40) free > > > > - IA32X64: > > > > > DXEFV [96%Full] 15204352 (0xe80000) total, 14610736 (0xdef130) used, > > > 593616 (0x90ed0) free > > > > - X64: > > > > > DXEFV [93%Full] 15204352 (0xe80000) total, 14219192 (0xd8f7b8) used, > > > 985160 (0xf0848) free > > > ... > > > > Cc: Ard Biesheuvel > > Cc: Gerd Hoffmann > > Cc: Jiewen Yao > > Cc: Jordan Justen > > Signed-off-by: Laszlo Ersek >=20 > Acked-by: Ard Biesheuvel >=20 > > --- > > OvmfPkg/OvmfPkgIa32.fdf | 6 +++--- > > OvmfPkg/OvmfPkgIa32X64.fdf | 6 +++--- > > OvmfPkg/OvmfPkgX64.fdf | 6 +++--- > > 3 files changed, 9 insertions(+), 9 deletions(-) > > > > diff --git a/OvmfPkg/OvmfPkgIa32.fdf b/OvmfPkg/OvmfPkgIa32.fdf > > index 4c9be963a74d..383613e54b14 100644 > > --- a/OvmfPkg/OvmfPkgIa32.fdf > > +++ b/OvmfPkg/OvmfPkgIa32.fdf > > @@ -62,10 +62,10 @@ [FD.OVMF_CODE] > > > > [FD.MEMFD] > > BaseAddress =3D $(MEMFD_BASE_ADDRESS) > > -Size =3D 0xE00000 > > +Size =3D 0xF80000 > > ErasePolarity =3D 1 > > BlockSize =3D 0x10000 > > -NumBlocks =3D 0xE0 > > +NumBlocks =3D 0xF8 > > > > 0x000000|0x006000 > > > gUefiOvmfPkgTokenSpaceGuid.PcdOvmfSecPageTablesBase|gUefiOvmfPkgToken > SpaceGuid.PcdOvmfSecPageTablesSize > > @@ -86,7 +86,7 @@ [FD.MEMFD] > > > gUefiOvmfPkgTokenSpaceGuid.PcdOvmfPeiMemFvBase|gUefiOvmfPkgTokenSpa > ceGuid.PcdOvmfPeiMemFvSize > > FV =3D PEIFV > > > > -0x100000|0xD00000 > > +0x100000|0xE80000 > > > gUefiOvmfPkgTokenSpaceGuid.PcdOvmfDxeMemFvBase|gUefiOvmfPkgTokenSpa > ceGuid.PcdOvmfDxeMemFvSize > > FV =3D DXEFV > > > > diff --git a/OvmfPkg/OvmfPkgIa32X64.fdf b/OvmfPkg/OvmfPkgIa32X64.fdf > > index 7f599f15e341..3cec3d0c8790 100644 > > --- a/OvmfPkg/OvmfPkgIa32X64.fdf > > +++ b/OvmfPkg/OvmfPkgIa32X64.fdf > > @@ -62,10 +62,10 @@ [FD.OVMF_CODE] > > > > [FD.MEMFD] > > BaseAddress =3D $(MEMFD_BASE_ADDRESS) > > -Size =3D 0xE00000 > > +Size =3D 0xF80000 > > ErasePolarity =3D 1 > > BlockSize =3D 0x10000 > > -NumBlocks =3D 0xE0 > > +NumBlocks =3D 0xF8 > > > > 0x000000|0x006000 > > > gUefiOvmfPkgTokenSpaceGuid.PcdOvmfSecPageTablesBase|gUefiOvmfPkgToken > SpaceGuid.PcdOvmfSecPageTablesSize > > @@ -86,7 +86,7 @@ [FD.MEMFD] > > > gUefiOvmfPkgTokenSpaceGuid.PcdOvmfPeiMemFvBase|gUefiOvmfPkgTokenSpa > ceGuid.PcdOvmfPeiMemFvSize > > FV =3D PEIFV > > > > -0x100000|0xD00000 > > +0x100000|0xE80000 > > > gUefiOvmfPkgTokenSpaceGuid.PcdOvmfDxeMemFvBase|gUefiOvmfPkgTokenSpa > ceGuid.PcdOvmfDxeMemFvSize > > FV =3D DXEFV > > > > diff --git a/OvmfPkg/OvmfPkgX64.fdf b/OvmfPkg/OvmfPkgX64.fdf > > index 41912fc1bece..9c35b6e848a2 100644 > > --- a/OvmfPkg/OvmfPkgX64.fdf > > +++ b/OvmfPkg/OvmfPkgX64.fdf > > @@ -62,10 +62,10 @@ [FD.OVMF_CODE] > > > > [FD.MEMFD] > > BaseAddress =3D $(MEMFD_BASE_ADDRESS) > > -Size =3D 0xE00000 > > +Size =3D 0xF80000 > > ErasePolarity =3D 1 > > BlockSize =3D 0x10000 > > -NumBlocks =3D 0xE0 > > +NumBlocks =3D 0xF8 > > > > 0x000000|0x006000 > > > gUefiOvmfPkgTokenSpaceGuid.PcdOvmfSecPageTablesBase|gUefiOvmfPkgToken > SpaceGuid.PcdOvmfSecPageTablesSize > > @@ -101,7 +101,7 @@ [FD.MEMFD] > > > gUefiOvmfPkgTokenSpaceGuid.PcdOvmfPeiMemFvBase|gUefiOvmfPkgTokenSpa > ceGuid.PcdOvmfPeiMemFvSize > > FV =3D PEIFV > > > > -0x100000|0xD00000 > > +0x100000|0xE80000 > > > gUefiOvmfPkgTokenSpaceGuid.PcdOvmfDxeMemFvBase|gUefiOvmfPkgTokenSpa > ceGuid.PcdOvmfDxeMemFvSize > > FV =3D DXEFV > > -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#108541): https://edk2.groups.io/g/devel/message/108541 Mute This Topic: https://groups.io/mt/101315785/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-