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.1020.1663105564526338633 for ; Tue, 13 Sep 2022 14:46:04 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=FGyRH8U/; spf=pass (domain: intel.com, ip: 192.55.52.120, mailfrom: isaac.w.oram@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1663105564; x=1694641564; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=BSU1y5RhywcDOhCv0ac18gl/DW4ZS0KsL07atxeXEvo=; b=FGyRH8U/8y+v1OJFuMfi2avGotgD35Xm6v5vRL3x/KoONtMBkeIBQtfr tpVhUyChrQ72IK6jBK7WBu/teYFdJrHehz1jDIUn8G+FOdBQwoaHFtcdt qGczCHMlbaPnI3y00Kz6gJQSEjYrjShqKr2N+wcA3YGrZho+DD8QgMvgz az36cZaKOxi8pMPiKCfKYJf7jzzoKMXJtjS/exYtapG5z1xc+Ckf/gcgR jVmAlba0sb41GNCtxxO/RgCV8+cGg9IwMYAVfMGSw/3PxM+HIl6FKodnw u2c+mJmXG8gk3Tw/MBR2880aKe8G/AlHXzDUIl+x/3kW68iPtTPx/Su/x A==; X-IronPort-AV: E=McAfee;i="6500,9779,10469"; a="297001838" X-IronPort-AV: E=Sophos;i="5.93,313,1654585200"; d="scan'208";a="297001838" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Sep 2022 14:46:03 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,313,1654585200"; d="scan'208";a="678756841" Received: from orsmsx603.amr.corp.intel.com ([10.22.229.16]) by fmsmga008.fm.intel.com with ESMTP; 13 Sep 2022 14:46:00 -0700 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, 13 Sep 2022 14:45:59 -0700 Received: from orsmsx608.amr.corp.intel.com (10.22.229.21) 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, 13 Sep 2022 14:45:59 -0700 Received: from ORSEDG602.ED.cps.intel.com (10.7.248.7) by orsmsx608.amr.corp.intel.com (10.22.229.21) 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, 13 Sep 2022 14:45:59 -0700 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (104.47.70.103) 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, 13 Sep 2022 14:45:58 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=az1M4Eo8A2CgzoPnbPQGuLf+LrMBbb+E+oQHD6miQqzY3WzeG7zR+aeQiUuYY3OlAFfv1wpy9fcr893evewEPUfVpcbxunJKtb5toZT9FH3a34sw4CsVkfmU2pk24U1SV0BjyW/Ri3eH7GIcJFHbRowJFjPnkxvN0Vdck4b1Ui/widEDwm9FBF7+Zw3NSCUi7eysiOuqTHAH+2cGEO/uhpK9GFohiESHoFLU/thWlzUr3BUjrYgmJSSsrmAJrEqYukx/Dc39LTdCHmjuv7bXGY+1ydwVUHWggj2S27GqaYTb9sYuH35v+0rQ6pCCMtGZo+8dmBVBngkmQGf3XGS3EQ== 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=9OGBo2qe7CYRo3lwCzle6MnBy8Y0yv+SZb+eJXwDUc8=; b=IcD20kzVVy5E46XGfZmDk3M5hjJJkEFlr2VTQfdQl6vZbuaAvh5cjMij3NLrhe3wTV77ktHCaJd2n8bYE6UAvwRlJEFp2Jg8sWrCjpyqqFGEIgMi/atDuhZ7iXxR1RNDWUHn1QUcEUapiyHCgIaSmBb3Q3di/6C/PsjD/ivbKdcGD9W+DJm4Sh2+INOegHit7Q6k/ZnwKIJqGQRrvAfcZ5po7dGb7UrtNVmDVnHfh0Xtv3fSth7gR8PAxk3XvDML69m4nUJbseq8d1R++C45VuNUJ+cZpv+BNAMml5FSkcWtLugLl5/wlcTO9HQUTrQEgrTDpFF11uuISr8GXo5iAQ== 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 SA1PR11MB5801.namprd11.prod.outlook.com (2603:10b6:806:23d::13) by SN7PR11MB6728.namprd11.prod.outlook.com (2603:10b6:806:264::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5612.22; Tue, 13 Sep 2022 21:45:57 +0000 Received: from SA1PR11MB5801.namprd11.prod.outlook.com ([fe80::4187:e0fb:4eeb:64f6]) by SA1PR11MB5801.namprd11.prod.outlook.com ([fe80::4187:e0fb:4eeb:64f6%4]) with mapi id 15.20.5612.022; Tue, 13 Sep 2022 21:45:57 +0000 From: "Isaac Oram" To: Theo Jehl , "devel@edk2.groups.io" CC: Leif Lindholm , "Kinney, Michael D" , Pedro Falcato , "Gerd Hoffmann" , Stefan Hajnoczi Subject: Re: [edk2-devel][edk2-platforms][PATCH V3 0/4] QemuOpenBoardPkg: Add QemuOpenBoardPkg Thread-Topic: [edk2-devel][edk2-platforms][PATCH V3 0/4] QemuOpenBoardPkg: Add QemuOpenBoardPkg Thread-Index: AQHYx7hpGIMaMkFPMk6KUX4R3kqQQq3d5NGA Date: Tue, 13 Sep 2022 21:45:57 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.6.500.17 dlp-reaction: no-action 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: SA1PR11MB5801:EE_|SN7PR11MB6728:EE_ x-ms-office365-filtering-correlation-id: 57bd6d71-9c65-45b3-6d28-08da95d15777 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: fHZRk+8bNmoNyibCe+m+nKk2RazIsGRehiP/b/ce13eiZTn6C2nr1CAcHGL7/PZy72gnIPe6kdg/7F/bnwK/aL/VE5DxBC1Pgdkwtznn9So7rKkF0baqlVdy0b6sCo18xYGqBop4aTTaSZDRNOz7BDvrdNpLURyWlmltdiRnrOgyACw/ve9yMkrQLLJH4pJEYNKZvCUkdbFqHm2cg6TOiyZBbv09GAtsAN4aas+teyEEfQDpr0jBBVbjXkDguPSu0yuk5vnqDpUZDr+rHjQHtOt7TtJSwTcvMh5Lmp6xzpdSHwLeOusvjKWQ3fPppSmx/t6jILWE6z2DxTeeeEN3BvPq62QcEI2sopvoHHOJm46yOLu1LrOxjs8xEdaoOfICjjzqhS2lxJBQ5Jn/CX0pEeAu2/khXh30sHkaQOVTixAhfd7jgT44dlLK2/dRJt4cqOmI0fglRWo1RrFfsihZBqVLS/MeJpqOp1hEBO9j/3lY98WhBDD1FqNtfgPT1S3fWi98GRfSP6mUoggejs4UobjJLPs1a45dv7l+25Doqiy0kBq56DxA0bcIM/GBWy9Q1GnZ6EZtzPVIu0wYopNOZ86Zg3+0nObDYwrW6ovxk5KLMTFwT7qzLVxWitobb2fJ6iFwxFJMaTMqjZY3fVeDffOnlc1PXNBePxwesL1RIWYvqn/WxcXqXj/74DeAnGGxvYgXnCBP87V23Qwzzyd8ds/l6KMWcIx1r2Nzr3IsvZ6h8cXj+49FQnX9CDh2uKYlbCLpvMOpk/Wx//PGMR5orw== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SA1PR11MB5801.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(366004)(396003)(136003)(376002)(346002)(39860400002)(451199015)(478600001)(7696005)(26005)(55016003)(66476007)(110136005)(86362001)(9686003)(8936002)(33656002)(38100700002)(71200400001)(38070700005)(53546011)(66556008)(122000001)(41300700001)(76116006)(316002)(54906003)(6506007)(66446008)(4326008)(82960400001)(19627235002)(186003)(2906002)(5660300002)(52536014)(83380400001)(64756008)(8676002)(66946007);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?8mpX8KyBClkLueoySfIWw7hVVJwIDMXFJ0jPrKlkpZeU2PUocg2xdCfHHHMJ?= =?us-ascii?Q?vMv6C03u5RnIsZBhzn3AFjwdWYUzA5z1j+E2qifcZB4l55qwCKJ0ZpEQ1mND?= =?us-ascii?Q?tO6+piAx74B9e+6kRg8yztMJJzgi80BZtu/Zw1Gc7UU4L/cG6V7H34CQRcld?= =?us-ascii?Q?hpQI22y4wOM8IDwWXGuoKklad2Ywpzk4+axbLOLAcyDy1dNYsrbEHBimzfrn?= =?us-ascii?Q?0LPTK1ZNn2HeZYsegXdmCaxMyOTL1J7COzaRAWeYfPcG5m0WRe8LNoYgMsaL?= =?us-ascii?Q?CdErpVTUs0SSfVEQ0eNDjAdUUes8YFdctn7PknotlDtrHuKwO5+K8BWXbyG3?= =?us-ascii?Q?axRupZ60ETF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-ascii?Q?CQlifrO1v3etxdXuFSKO9AtfKWzAiaZZju8QmZbRLfl0o3WNDc6jYS6kRfCt?= =?us-ascii?Q?6fKUqz/kG2ihpEzoOfZ0qnj36MzNCkXYyXnA3mzi3LIjeyK6uoxOOgJ2Pv0R?= =?us-ascii?Q?Glti9tHisVDsxCOYlfmFVQ0+9dPQu7cNTxKLk7rQ4muGXKYeW/SDwCo+XMVT?= =?us-ascii?Q?ZHX+g9YCL05ih1FJ7PKM+w3dIoPs4OpsukUq2PkrSzzkf60SDhGszTSD1LRk?= =?us-ascii?Q?C39p0fZBmhzwbt2i7LXK/ZsnfqemdxLQJPeXMyLlOoJhdZDlZ9HftZ16QpDw?= =?us-ascii?Q?u5Iw/F7fAZwdA8dzCO7PdFu8hWbJqZPlgI3ASbiz?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SA1PR11MB5801.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 57bd6d71-9c65-45b3-6d28-08da95d15777 X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Sep 2022 21:45:57.4338 (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: gTedlG4Uo5+uJ0ctNRmni7h0YUqA8ZF8KzsAQRI74U3asKGTb6q/wnU5Vp6PJVWa8Ddq7M+yq6BQTOd0UuOxrg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN7PR11MB6728 Return-Path: isaac.w.oram@intel.com X-OriginatorOrg: intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Series Reviewed-by: Isaac Oram -----Original Message----- From: Theo Jehl =20 Sent: Tuesday, September 13, 2022 2:32 PM To: devel@edk2.groups.io Cc: Leif Lindholm ; Kinney, Michael D ; Oram, Isaac W ; Pedro Falcato <= pedro.falcato@gmail.com>; Gerd Hoffmann ; Stefan Hajnocz= i Subject: [edk2-devel][edk2-platforms][PATCH V3 0/4] QemuOpenBoardPkg: Add Q= emuOpenBoardPkg QemuOpenBoardPkg adds a MinPlatform port to Qemu x86_64 It can boots UEFI L= inux and Windows, and works on PIIX4 and Q35 This board port provides a sim= ple starting place for investigating edk2 and MinPlatform Arch. Currently we implement up to stage 4 of the MinPlatform spec and can boot W= indows/Linux. V2 splits the package into several commits. Each commit corresponding to a MinPlatform architecture stage. The V3 removes specials characters in "Theo" from file headers. Cleaned up whitespace, punctuation, commenting to better match coding style= and conventions Fixed Visual Studio build issue converting UINT64 to UINT3= 2. Fixed build issues related to sync with latest master. Cc: Leif Lindholm Cc: Michael D Kinney Cc: Isaac Oram Cc: Pedro Falcato Cc: Gerd Hoffmann Cc: Stefan Hajnoczi Signed-off-by: Theo Jehl Theo Jehl (4): QemuOpenBoardPkg: Add QemuOpenBoardPkg QemuOpenBoardPkg: Enable stage 2 QemuOpenBoardPkg: Enable stage 3 QemuOpenBoardPkg: Enable stage 4 .../QemuOpenBoardPkg/QemuOpenBoardPkg.dec | 33 ++ .../Include/Dsc/Stage1.dsc.inc | 55 +++ .../Include/Dsc/Stage2.dsc.inc | 31 ++ .../Include/Dsc/Stage3.dsc.inc | 101 ++++++ .../Include/Dsc/Stage4.dsc.inc | 56 +++ .../QemuOpenBoardPkg/QemuOpenBoardPkg.dsc | 169 +++++++++ .../QemuOpenBoardPkg/QemuOpenBoardPkg.fdf | 328 ++++++++++++++++++ .../BoardBootManagerLib.inf | 39 +++ .../Library/BoardInitLib/BoardInitLib.inf | 29 ++ .../Library/PeiReportFvLib/PeiReportFvLib.inf | 63 ++++ .../Library/Plat= formSecLib/PlatformSecLib.inf | 49 +++ .../QemuOpenFwCfgLib/QemuOpenFwCfgLib.inf | 23 ++ .../PlatformInitPei/PlatformInitPei.inf | 59 ++++ .../Include/Library/QemuOpenFwCfgLib.h | 105 ++++++ .../PlatformInitPei/PlatformInit.h | 59 ++++ .../BoardBootManagerLib/BoardBootManager.c | 105 ++++++ .../Library/BoardInitLib/BoardInitLib.c | 231 ++++++++++++ .../Library/PeiReportFvLib/PeiReportFvLib.c | 285 +++++++++++++++ .../Library/PlatformSecLib/PlatformSecLib.c | 140 ++++++++ .../QemuOpenFwCfgLib/QemuOpenFwCfgLib.c | 136 ++++++++ .../QemuOpenBoardPkg/PlatformInitPei/Cpu.c | 64 ++++ .../QemuOpenBoardPkg/PlatformInitPei/Memory.c | 254 ++++++++++++++ .../QemuOpenBoardPkg/PlatformInitPei/Pci.c | 70 ++++ .../QemuOpenBoardPkg/PlatformInitPei/Pcie.c | 106 ++++++ .../PlatformInitPei/PlatformInit.c | 75 ++++ .../Include/Fdf/FlashMap.fdf.inc | 94 +++++ .../Library/PlatformSecLib/Ia32/SecEntry.nasm | 117 +++++++ Platform/Qemu/QemuOpenBoardPkg/README.md | 53 +++ 28 files changed, 2929 insertions(+) create mode 100644 Platform/Qemu/QemuOpenBoardPkg/QemuOpenBoardPkg.dec create mode 100644 Platform/Qemu/QemuOpenBoardPkg/Include/Dsc/Stage1.dsc.i= nc create mode 100644 Platform/Qemu/QemuOpenBoardPkg/Include/Dsc/Stage2.dsc.i= nc create mode 100644 Platform/Qemu/QemuOpenBoardPkg/Include/Dsc/Stage3.dsc.i= nc create mode 100644 Platform/Qemu/QemuOpenBoardPkg/Include/Dsc/Stage4.dsc.i= nc create mode 100644 Platform/Qemu/QemuOpenBoardPkg/QemuOpenBoardPkg.dsc create mode 100644 Platform/Qemu/QemuOpenBoardPkg/QemuOpenBoardPkg.fdf create mode 100644 Platform/Qemu/QemuOpenBoardPkg/Library/BoardBootManager= Lib/BoardBootManagerLib.inf create mode 100644 Platform/Qemu/QemuOpenBoardPkg/Library/BoardInitLib/Boa= rdInitLib.inf create mode 100644 Platform/Qemu/QemuOpenBoardPkg/Library/PeiReportFvLib/P= eiReportFvLib.inf create mode 100644 Platform/Qemu/QemuOpenBoardPkg/Library/PlatformSecLib/P= latformSecLib.inf create mode 100644 Platform/Qemu/QemuOpenBoardPkg/Library/QemuOpenFwCfgLib= /QemuOpenFwCfgLib.inf create mode 100644 Platform/Qemu/QemuOpenBoardPkg/PlatformInitPei/Platform= InitPei.inf create mode 100644 Platform/Qemu/QemuOpenBoardPkg/Include/Library/QemuOpen= FwCfgLib.h create mode 100644 Platform/Qemu/QemuOpenBoardPkg/PlatformInitPei/Platform= Init.h create mode 100644 Platform/Qemu/QemuOpenBoardPkg/Library/BoardBootManager= Lib/BoardBootManager.c create mode 100644 Platform/Qemu/QemuOpenBoardPkg/Library/BoardInitLib/Boa= rdInitLib.c create mode 100644 Platform/Qemu/QemuOpenBoardPkg/Library/PeiReportFvLib/P= eiReportFvLib.c create mode 100644 Platform/Qemu/QemuOpenBoardPkg/Library/PlatformSecLib/P= latformSecLib.c create mode 100644 Platform/Qemu/QemuOpenBoardPkg/Library/QemuOpenFwCfgLib= /QemuOpenFwCfgLib.c create mode 100644 Platform/Qemu/QemuOpenBoardPkg/PlatformInitPei/Cpu.c create mode 100644 Platform/Qemu/QemuOpenBoardPkg/PlatformInitPei/Memory.c create mode 100644 Platform/Qemu/QemuOpenBoardPkg/PlatformInitPei/Pci.c create mode 100644 Platform/Qemu/QemuOpenBoardPkg/PlatformInitPei/Pcie.c create mode 100644 Platform/Qemu/QemuOpenBoardPkg/PlatformInitPei/Platform= Init.c create mode 100644 Platform/Qemu/QemuOpenBoardPkg/Include/Fdf/FlashMap.fdf= .inc create mode 100644 Platform/Qemu/QemuOpenBoardPkg/Library/PlatformSecLib/I= a32/SecEntry.nasm create mode 100644 Platform/Qemu/QemuOpenBoardPkg/README.md -- 2.37.0 (Apple Git-136)