From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by mx.groups.io with SMTP id smtpd.web09.2727.1668569607500738672 for ; Tue, 15 Nov 2022 19:33:27 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=cjHaagbp; spf=pass (domain: intel.com, ip: 192.55.52.120, mailfrom: james.lu@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1668569607; x=1700105607; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=TlxErgDuu3SSeAZLy9r7n4EzxZ4h0xblZOE4gpKu2qI=; b=cjHaagbpFg2Bpm9dbIF3uiwMZ5I95WM6Jn4alMZD035gjsaP0LLkb+TB zFeetVwMA6DFUYf1ksx16YdWPDLf2SKbiHEwmM87+utZJTFSXshmUxozK 45jTGajxRaWjtTLPphjF9YD4XlAm2rZXiWpj9jjsXioSVJx1wooJu2mFj fFHiIEuAF2w3EJDQcJtmtaj6vcV5oTPKa76gWnQ1bqKqEJModv5TJaolf XSp8g9reu2nJdfhm7mwSIPDu2T3+4NxNa8kkz/Y0OCNMNMQiWn9GIOUom Habcxb6CYI/M6kphAIHb5TllruzV/eMC05xKLOLSTDdbVQsrG0jkcX+r6 g==; X-IronPort-AV: E=McAfee;i="6500,9779,10532"; a="311144123" X-IronPort-AV: E=Sophos;i="5.96,167,1665471600"; d="scan'208";a="311144123" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Nov 2022 19:33:03 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10532"; a="670332675" X-IronPort-AV: E=Sophos;i="5.96,167,1665471600"; d="scan'208";a="670332675" Received: from fmsmsx601.amr.corp.intel.com ([10.18.126.81]) by orsmga008.jf.intel.com with ESMTP; 15 Nov 2022 19:33:02 -0800 Received: from fmsmsx602.amr.corp.intel.com (10.18.126.82) by fmsmsx601.amr.corp.intel.com (10.18.126.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Tue, 15 Nov 2022 19:33:02 -0800 Received: from fmsedg602.ED.cps.intel.com (10.1.192.136) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31 via Frontend Transport; Tue, 15 Nov 2022 19:33:02 -0800 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (104.47.59.175) by edgegateway.intel.com (192.55.55.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2375.31; Tue, 15 Nov 2022 19:33:02 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KY/5WXw7GysczM1cym2h++hjN2kXJq55nFmBjlkYAD6fOgtqsoKcuQKmfMrcUB/fCtF2dlFHHH/g+yoyOE6L6XXJ6SxQgQ8/vq30VPoXCAlFjmkwvXeVaTLWF8XpJYXBryW6vfTtPq/M4iewX6QiZdIHkWyn6Sabeuxj69pzIs/nNFXKZOYKKLxdLRWum43spKyCKWs25R6gGZif9CVjYFnbMZP2X1jOPa6d3INy3ZUNwmvkmwH1Stkcgm9G5BcAsvwD1xCVcefNIWrF0qSYMUuSzScft24bubj5P2xX2dgxk85F2F78mAeseXdTsnVxSaOlMz3ijGv2QUItf5JCtg== 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=adNay8ObEVdlZRZxQVl54bZZ6kzDXHmciB/TtSLHzPQ=; b=XgT8kxbnnGw8QYrYTHgiVaipX1VKhzgwB2Rudd8lfeHEXlteZiRP1rnMGTTUCc3oOJbYIv/92tfRm0eIdmVNVstzszNdNMjegpRGW3M4nET95IpOdecabL3uW9ppS3Pa7P41bLHE+YsC0YMubxd/ju3V3gyLaRopr5j1SqQDz3xIW7G9aq2HBgzO8tYlh9L1ByP8budHMwUjvNdeyZ//R2WtdqZbjiDbvRJkqobmA08DWnHQ0IYWSWO9N3TfTiFPOOuvEp2lzPjqmWBJXOtqhBzE0D2WWFb4LWidRa+XAwoeLIUbxNBjnensp/r2dAEo3olKPvoZN+6FVAABonn4zA== 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 Received: from BN6PR11MB1908.namprd11.prod.outlook.com (2603:10b6:404:103::13) by DM4PR11MB5248.namprd11.prod.outlook.com (2603:10b6:5:38b::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5813.17; Wed, 16 Nov 2022 03:33:00 +0000 Received: from BN6PR11MB1908.namprd11.prod.outlook.com ([fe80::64a0:1e93:6129:977a]) by BN6PR11MB1908.namprd11.prod.outlook.com ([fe80::64a0:1e93:6129:977a%5]) with mapi id 15.20.5813.018; Wed, 16 Nov 2022 03:33:00 +0000 From: "Lu, James" To: "Hsu, VictorX" , "devel@edk2.groups.io" CC: "Dong, Guo" , "Ni, Ray" , "Guo, Gua" Subject: Re: [PATCH] UefiPayloadPkg: The UPL info section is not aligned at 4-byte boundary Thread-Topic: [PATCH] UefiPayloadPkg: The UPL info section is not aligned at 4-byte boundary Thread-Index: AQHY+Widx8fLTpSOXE6yakz5x1Tv6a5A5VGQ Date: Wed, 16 Nov 2022 03:33:00 +0000 Message-ID: References: <27f0ba3446516f3806020b293ec63b99f91b2e44.1668567968.git.victorx.hsu@intel.com> In-Reply-To: <27f0ba3446516f3806020b293ec63b99f91b2e44.1668567968.git.victorx.hsu@intel.com> Accept-Language: en-001, en-US, zh-TW X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: BN6PR11MB1908:EE_|DM4PR11MB5248:EE_ x-ms-office365-filtering-correlation-id: 962a51c5-520a-45ac-b252-08dac7834314 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: jkA3ZjpPtb9jiC8sHu4Z2987NSFvukpmEAoT86VkkMpO5qA4nJ8MQjH1GplA5SbZAhXnfC72WY45ScBt9Uh7ymjz1OVngDQUZ0kp+l3PrIB6Vv610YYj+wDb4VljV8yAs1elMrCMNe68xEwhW3MUzr5b6+AGSI4cBZTDru56sHh1w0gPm60U7eQ/+yIahdLX7r7elkQyt+VluzY8WftQlLQne+VVdxV9ZJt0A2N3m08wkBDB+HPxmwhAdZ+MTVXs1MepaURx2Ky2FaKV9qwoXEz2xwBz+WStEI9U1fJ7i5JTGAlpENASzFXTRAJsRroWfz6/XFVSc1vha1CuXDUpmcXs5lD1yWllhpFJJRcnwMPaFmUrfoij4D8Af6YixS2W60GqNRm7CKXIWQr8Z9Mwnn/vhFzn6Oxna5xRdTbJN5+sRdj6uLlGWz9PBJcizMCgGHo1idg8l8uf4WVX8FQRdLVBaPNNTbRSz/Qmn5w82+CL/64iqQTxG0vc6sxggUV5KjSDiAz0cqX1sJWeP/AVa9FlRfC6LSf8Igf7pQ9pLXCe2Q6apcuh1G2Chm3CbyWhKlXC5JjVmIKLlwCdC/6wHDmm2VCfeLv9mywiDGUzZPjeXU7F5V9AmPZtUOv54TEHD0M6kFqBllHzojBWgKlNmosNQyi2nL4FabMrf24i0G8FqhfrafUkwa1Uw7IP3Mv9gztoupOTb9+NpkaGltRy0dk178AH7u//SL4exmzhrq8N8Wr4XolmxXXHcmx9mYxmtphYRE2sUM5L/BOCDK+qoke4XzFo2uJRjCgaaOMFRo4= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BN6PR11MB1908.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(396003)(346002)(366004)(136003)(39860400002)(376002)(451199015)(9686003)(5660300002)(26005)(2906002)(76116006)(66556008)(66476007)(4326008)(66446008)(8676002)(66946007)(7696005)(316002)(53546011)(8936002)(52536014)(64756008)(41300700001)(6506007)(38100700002)(122000001)(82960400001)(38070700005)(55016003)(86362001)(83380400001)(33656002)(107886003)(71200400001)(478600001)(186003)(966005)(54906003)(110136005);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?kKfSOgiI5j2BwZPGpOh96bAO6ID/CS8JNWgCe/Uts/BA958WrXLouIhjpsLa?= =?us-ascii?Q?8j6NqewxabgcZEPYauAlZfgTAnYsQcqosLhOU34TipR5sslJnGqkZkvhnOOu?= =?us-ascii?Q?KrR1Zondfmq675iB34pSF7zqM3jsouJayroYBi5MCIMPauIuLz+NTXOFsipF?= =?us-ascii?Q?VORvUsLFKvzyfL7MNBFf/nEe3HWz03kRElGN320/be/jbhwoFZKIsnn/tIai?= =?us-ascii?Q?iNYM0A2q0fyGsnWJOWJ2TOTtT2/5C6beysIg3gk6dScTccLBeFQE4I7nxYmA?= =?us-ascii?Q?fD+nEdejFuRMLcxqfjJQdrH5+L4IY9CaB8zN9Fi24mtHfx5T6+ozzhcb1bSA?= =?us-ascii?Q?vXack7aafKyDLHfdxIzm4V3loPhzAXxVGazjOZe2aANF7G3dGPeRV+SqJRxS?= =?us-ascii?Q?dNyRfU2Kq8Q6cLBuvCPueq5UQZU5jPZx66ZNmphWrIJcVA3SBNKWwC6CYnpH?= =?us-ascii?Q?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76xrr8xNAQMXg9JF2dVij/H?= =?us-ascii?Q?INWOn1plRoesyg4P1McFtKTP07Sg5cBFVAAXc8yU5TzaO9rihozSyvCLg7CD?= =?us-ascii?Q?V+HpauNrNpDwCPkjbJlJh3PJUDLMCnycseemUMH2LRLYRFFjzsq+uWyNOFbn?= =?us-ascii?Q?8eT9hXLZa+BecoCpyilj3cmcONhTIlY/OMLdfgk7g66xsKTbWptkGSo8QadE?= =?us-ascii?Q?bU2sQAIs+VtwAvSpD51KLs/PEqUrDCfirDyxw+St?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BN6PR11MB1908.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 962a51c5-520a-45ac-b252-08dac7834314 X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Nov 2022 03:33:00.6263 (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: I3o5MvUNjkiyttqfWWroIbgt7KRmKSMvPMwRSYp4qthLYqQLSrMNG8Ur9U9Xtt1xXQgFkMsepdnnvWaU8vqIVw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR11MB5248 Return-Path: james.lu@intel.com X-OriginatorOrg: intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: James Lu -----Original Message----- From: Hsu, VictorX =20 Sent: Wednesday, November 16, 2022 11:08 AM To: devel@edk2.groups.io Cc: Hsu, VictorX ; Dong, Guo ; N= i, Ray ; Lu, James ; Guo, Gua Subject: [PATCH] UefiPayloadPkg: The UPL info section is not aligned at 4-b= yte boundary From: VictorX Hsu REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D4153 1.Upgrade spec revision to 0.9 2.Align .upld_info with 4-byte boundary by spec Cc: Guo Dong Cc: Ray Ni Cc: James Lu Cc: Gua Guo Signed-off-by: VictorX Hsu --- UefiPayloadPkg/UniversalPayloadBuild.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/UefiPayloadPkg/UniversalPayloadBuild.py b/UefiPayloadPkg/Unive= rsalPayloadBuild.py index 6003de36d1..50a5950e7c 100644 --- a/UefiPayloadPkg/UniversalPayloadBuild.py +++ b/UefiPayloadPkg/UniversalPayloadBuild.py @@ -31,7 +31,7 @@ class UPLD_INFO_HEADER(LittleEndianStructure): def __init__(self): self.Identifier =3D b'PLDH' self.HeaderLength =3D sizeof(UPLD_INFO_HEADER) - self.SpecRevision =3D 0x0007 + self.SpecRevision =3D 0x0009 self.Revision =3D 0x0000010105 self.ImageId =3D b'UEFI' self.ProducerId =3D b'INTEL' @@ -133,7 +133,7 @@ def BuildUniversalPayload(Args, MacroList): FvOutputDir, EntryOutputDir ) - set_section =3D '"{}" -I {} -O {} --set-section-alignment .upld.upl= d_info=3D16 --set-section-alignment .upld.uefi_fv=3D16 {}'.format ( + set_section =3D '"{}" -I {} -O {} --set-section-alignment .upld_inf= o=3D4 --set-section-alignment .upld.uefi_fv=3D16 {}'.format ( LlvmObjcopyPath, ObjCopyFlag, ObjCopyFlag, --=20 2.28.0.windows.1