From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mx.groups.io with SMTP id smtpd.web10.2874.1668571075532273650 for ; Tue, 15 Nov 2022 19:57:55 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=BeAGQkh8; spf=pass (domain: intel.com, ip: 192.55.52.115, mailfrom: guo.dong@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1668571075; x=1700107075; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=Wa4xytYZYdjiY4ZpATarIah93c5KOjmwnmxL/qrKGRw=; b=BeAGQkh8txsgfxVlpUrEMBFecvP/JDORIfUlmLfey0WMbLr6iBesoLGl TqkMMZDXv02vGkrZXMNod64H0McCSaE9iowdssQnt1AFerbAvMYevPMzR +d6g14A1j3Fl2WEC3sGEJQg56yNYszwtOCUisDRzSymhbwCbv/oS0CEUp j72pWw7pR9xoKNV9g37L2C4ZbCkmKm6S6HzWugKB2Jj+7DGglhzDG7c5E aNCqfwNJ+eyJsDTfA7dR+/zbWSh617h9MHl5fk2mjYBAxov2/6MHXFRqd 1x+znO0S81b8ql1hLqo0SDsQ7O00IY9P9RVubnSsz7a4/iEWUodaHgsTj g==; X-IronPort-AV: E=McAfee;i="6500,9779,10532"; a="312447490" X-IronPort-AV: E=Sophos;i="5.96,167,1665471600"; d="scan'208";a="312447490" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Nov 2022 19:57:54 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10532"; a="590039801" X-IronPort-AV: E=Sophos;i="5.96,167,1665471600"; d="scan'208";a="590039801" Received: from orsmsx603.amr.corp.intel.com ([10.22.229.16]) by orsmga003.jf.intel.com with ESMTP; 15 Nov 2022 19:57:54 -0800 Received: from orsmsx611.amr.corp.intel.com (10.22.229.24) 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.2375.31; Tue, 15 Nov 2022 19:57:54 -0800 Received: from orsmsx602.amr.corp.intel.com (10.22.229.15) by ORSMSX611.amr.corp.intel.com (10.22.229.24) 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:57:53 -0800 Received: from ORSEDG602.ED.cps.intel.com (10.7.248.7) by orsmsx602.amr.corp.intel.com (10.22.229.15) 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:57:53 -0800 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (104.47.55.101) by edgegateway.intel.com (134.134.137.103) 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:57:53 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FRbXhz4LZu+aI8x6rzqWl6BNsp9oSBZmY9n+0vgvUh+MW9rc3xAfPN2JUZw+ilWbX4i+yHYlsb/gjwPXjKNVVWFDaf6ftRcFl8xuo1pQlzYq5mjbkMnoVKqsxFSl7+SLyyY+cUY9v6+sMk2kL5Ur/5vS50qt4kBeza/MkxWuZXpfbAx0nypSRSkedszeJU8t+GM0dtQMZZtNCTJZSMwHw9fQzA6BeOndaa8jYHn8X//YJLh4jU5T6hyH3oEuL8jqnf8G67IlEmYWHsp9ndt/sxGpJNQx8Xx8znlVbMUBVRWvZ09fqxCjoTFOJV2KtBAcisVkAgsjzVMEUrzfJ5bWmw== 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=4/z1ffmddLZW5HnnWcsqwX/c7i+HZQW8cRFwgyjNW9o=; b=U/l3AJHgmgPLTCP6zmJxS4KuWfyO8nMU1nMqgq9mmOfVs3K55NAVZ4b1A3bXf3R3iJBdfKnPLgna5EvEvv77YMeF3GWcYHzhSS1tddMbY6zdAKJLJ+CpQ7F1Kdu8mhNszTckz113WqrDRgkt/TX94yHmqMMc0JmvolMCveMtd0AuPjI0YGncEVkmjq6/mkZZdBMD1V0pCCxTeivfZQzmABaVYrjhu/hMh19eKMsnV5wi/zz8JG5CYLK2KyzdJ9XaB7GGyF12D3yj68irN6bWzWLWw+mYmiw5rrCe3/QOqSnRIAaYaLar26zmG1FaCoCjjbS+E1KHQgZk4kH8z53RgA== 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 CY5PR11MB6260.namprd11.prod.outlook.com (2603:10b6:930:23::16) by CO6PR11MB5586.namprd11.prod.outlook.com (2603:10b6:5:35d::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5813.18; Wed, 16 Nov 2022 03:57:52 +0000 Received: from CY5PR11MB6260.namprd11.prod.outlook.com ([fe80::c966:1e95:1994:9f2f]) by CY5PR11MB6260.namprd11.prod.outlook.com ([fe80::c966:1e95:1994:9f2f%3]) with mapi id 15.20.5813.013; Wed, 16 Nov 2022 03:57:51 +0000 From: "Guo Dong" To: "Hsu, VictorX" , "devel@edk2.groups.io" CC: "Ni, Ray" , "Lu, James" , "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+WidnAKZtC3LREKgK1sFPVqcn65A7FtA Date: Wed, 16 Nov 2022 03:57:51 +0000 Message-ID: References: <27f0ba3446516f3806020b293ec63b99f91b2e44.1668567968.git.victorx.hsu@intel.com> In-Reply-To: <27f0ba3446516f3806020b293ec63b99f91b2e44.1668567968.git.victorx.hsu@intel.com> Accept-Language: en-US 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: CY5PR11MB6260:EE_|CO6PR11MB5586:EE_ x-ms-office365-filtering-correlation-id: 6c5a8c89-377b-43f8-c223-08dac786bbf3 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 1kI+Sx01Wmh9xe9Gew4AmJI70nQgLFDSRL+9JSJMWRNKOIuyE3/FkOThnnLUsnLAG4OiHCzJywTbHbEaYL/+q2gCcs7Os+w8s6ITXTCyzWEbNSvsmWH4K8MRsn2W9lpL2K6ARFZ0UiT6MO2KlaJYyxe6Xw7OzGAeNPsqc+yWLlpf2jm222OD5jW/x9iNMzSr5L43m2M2uo/ZUmg581grQwUlcNBtOsj/7NW3rUQh0STpZcKIgFAZofSXZdl3AIEJxQ33LH1w1h3BDmbKv1kMRadtTW8cA3wEjkwx1fx/t3YfaAz8y6v6GklSpZ3Dk5ozgwYD2NSZR567FaAhK7Q2g47uXNSM65TSPTS7XGkd9paOegxc6JxCV7vXx4ES9zCiRZezNXawd5+qfDTZz3WFx5n12aDsqSPlPy/yYzMgpWASGMadL4C3LSF/6VP4MnkqAU1sQUaM4p1wtj9f8TyBgnDQ7QjzhrM5RqpItjYg5U+DDt9G7sl4R5MbZ5hMqw6GJ06VSWDfVmLSCap/BUvrlAloPG3X+1n/s8Q56vakyMClVKfVvk8jNxJ3savGUZMryBC/ZQdAbVEUjLe3Tka+BsitA38emzrbZbUd5v+2HHZLdx7IsSAntzkiqRO0910tkm/jdkbZAB4Mh21mxMQ2Z0qkxQpUXWb5IkVzMJ9SBjC+QwYF9C6fgfjou9GjOvwkzo2S7kEbVcxC/7W25D6ZVPl3/4CzUbu2UG1VaDfqPYP4KHAdAIwihgOxgbZli3zU9VVEg2MXDJFWnHr/wKPhm9RpJK6dMqixoMwrJVnlvjk= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CY5PR11MB6260.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(136003)(39860400002)(376002)(366004)(346002)(396003)(451199015)(64756008)(4326008)(83380400001)(66946007)(8676002)(66446008)(66556008)(66476007)(76116006)(966005)(478600001)(316002)(41300700001)(38070700005)(55016003)(33656002)(186003)(2906002)(82960400001)(54906003)(71200400001)(86362001)(9686003)(122000001)(6506007)(110136005)(53546011)(7696005)(38100700002)(8936002)(52536014)(107886003)(5660300002);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?RWVt7MkJ8lPKfCzZa07kGOnLezbFyK8gyp8Cu5oIyx43h/dkLHqpUmnJDAah?= =?us-ascii?Q?3tKcpw9ooG3nLw70Udfd0eh+pluU+4RS+6hAVbDGki2fp5FAohe65YQHIwgc?= =?us-ascii?Q?VIZPmVLdW1fDZIdHcxiHgo3SIUJjzDINER4U8LKS8QAGUqO8DnuEBxqS3wN5?= =?us-ascii?Q?HrE9Qbma4D/3LNaqS7Ex/lnuVsmHANPK2kEdl67cWJWSdkxgb523dI+svmhZ?= =?us-ascii?Q?bUTWS6DWoLdJRnbz9k92gfnvbyCF8LylHW+mZJE8xPrHRWGEagiDMYqiMwIk?= =?us-ascii?Q?dK6I66B1z0706VRqRtBqAz/c65auGT0JqEbjDf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j+xHqnBG/a79MwQbUCfAWXxQrVnsBLwilLJbyJGogp9l/a5jYe2nd93z85Tz?= =?us-ascii?Q?D+c7aRbPHM2gwz6lXp+tyzYHx3pQCDcqdYF4W2EflYvRowSXk6GgbfH9lRk3?= =?us-ascii?Q?/bbH67It69Il0LGeHdErhzEwFwk7nv36LogLhXtUZ6z0G9McG2niL9znsZl8?= =?us-ascii?Q?JqJ/KXZBTcInygkOkiNt0Zc3B4ujs0l7+4gUU/OhI7ZkbLgu8gp+h4Py5dr0?= =?us-ascii?Q?PaIqGHv6QROSyCdd2JsWubIPC7yZmY/RWlPubhxK77a4OazpjIwqFVOgTWuV?= =?us-ascii?Q?1InL7yzr+yO5tLcQy/dcRCMEsSf2Lpo8YPSo0LfBczMfRr236ADHIyJ069BL?= =?us-ascii?Q?79E6twBOA4UoTqMBoObMLJ1EbGrEKVFUGXX+GpwDBbJfVUl+SdqJR/DBzw3D?= =?us-ascii?Q?kkPDLCnvAvV5orAh8hP3JA0p/ldpF7FJiym5GjQUPCyg?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CY5PR11MB6260.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6c5a8c89-377b-43f8-c223-08dac786bbf3 X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Nov 2022 03:57:51.8581 (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: SwQwPiAoSxwpyCmP5jGXDuEYuWj+0vwnYE0VR3lWCCKLLqRH36jVDu79yeg7/DthaW4eu/Lh+rkwXqujQddUng== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO6PR11MB5586 Return-Path: guo.dong@intel.com X-OriginatorOrg: intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Guo Dong -----Original Message----- From: Hsu, VictorX =20 Sent: Tuesday, November 15, 2022 8:08 PM 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