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.web12.20485.1595429339752342964 for ; Wed, 22 Jul 2020 07:49:00 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@intel.onmicrosoft.com header.s=selector2-intel-onmicrosoft-com header.b=K1wY9RzT; spf=pass (domain: intel.com, ip: 192.55.52.120, mailfrom: maurice.ma@intel.com) IronPort-SDR: go+jMg2UdqhwszvXPj9hb/f6/sgrt6u7E8UxMBDlcWPy+6Mqm5uLxPr+78u2qjG638y+NqYGaK AQs+ktyqcerA== X-IronPort-AV: E=McAfee;i="6000,8403,9689"; a="147833909" X-IronPort-AV: E=Sophos;i="5.75,383,1589266800"; d="scan'208";a="147833909" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Jul 2020 07:48:59 -0700 IronPort-SDR: /Yshw6eoqZ3cYrTrjtpfYOx2JFASFyppNvzVhNWHyPRu1DGyiAoB9ABm8ouVVcHJVHHNfMW2Ap q1VgNZI5UmZA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,383,1589266800"; d="scan'208";a="392695946" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by fmsmga001.fm.intel.com with ESMTP; 22 Jul 2020 07:48:59 -0700 Received: from fmsmsx155.amr.corp.intel.com (10.18.116.71) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 22 Jul 2020 07:48:58 -0700 Received: from FMSEDG001.ED.cps.intel.com (10.1.192.133) by FMSMSX155.amr.corp.intel.com (10.18.116.71) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 22 Jul 2020 07:48:57 -0700 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (104.47.70.107) by edgegateway.intel.com (192.55.55.68) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 22 Jul 2020 07:48:57 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ogEAExcadPLPbEkLJuVAhkkT+C4D815+P1Nra2ytretUhigphNnO5XMYi0kdskrKAucaMYTMSZE+sGPnL7ECe5iDNORzg29dwMcVFSTgWaFzk/m/gJEA8K40NgfDxuVRDqJkyHE1WixrP1Vpf5jBNEMHfqMpoKEzSPaMkvokWQ3hATSesDLiUFrzb5ZwkNcfKRZmyvISIJeZwDoFKM+mAKZg1T9tSNVMJD/G1lQtZ7zY7WFLsm9vl04ZUeqc6EMnSxqzd08WnWmn7v9BEoZUZ4+wdfi7sez/Ggmc76bg2Y8JdI1aEhg3N11ojAgjB2t0bEPazAO8bEUcYa8dA6EfyQ== 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-SenderADCheck; bh=CuLJSbd7+zrxRii7lSSLVnjvmND57z3FGF/Y2lD8vDM=; b=ikAV1pkL7YQ0bfm/FrKg6lLRl7y5+CpFDlSAMD0xS1TzpUj9DziiuW5kGd5OS/VH9n50YW3VJ6P76PSUQGrCoOkHDcM1PlKAGXhMBe0j4h9246uB15PWXVnsFt/tggDvDh1y9F7BpYFunQDy66vKrjfCUtBd9LmpGZ9kS2iT7h9CVsyKNFH+Vs4eEDJwoT8dJGJBmO1BGhgBZ9qzCGHb3z+a3qI+scZHjCqXeohm3/413f9R1Ew9fdnElK75DJOhTrQJxIf/GcuYXPM2ixBE9dTIAUbnDH01iCYHwj7x1RQp8ZhQXklLwv/ikzfeGCemTk32rggQQ13jvpxM4Kkdwg== 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=CuLJSbd7+zrxRii7lSSLVnjvmND57z3FGF/Y2lD8vDM=; b=K1wY9RzTX7ssa4gtWZkodL+Bud94QdvQC3X3Mh4O8eFczsqCGHfoph+c7mWHCf4CnrfnD+eaVniGSJ6Gy3Rk49R4M2EiGXyUKmwflex1ZoN7kbEeP/+Uj6yLkCWpa98fInG7u4SJeYHKXir4B+u32N6mfqDDbW7ClAHE8Qon+hw= Received: from DM6PR11MB2793.namprd11.prod.outlook.com (2603:10b6:5:c0::29) by DM6PR11MB4203.namprd11.prod.outlook.com (2603:10b6:5:14d::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3195.17; Wed, 22 Jul 2020 14:48:56 +0000 Received: from DM6PR11MB2793.namprd11.prod.outlook.com ([fe80::d43:5665:5cee:b3c5]) by DM6PR11MB2793.namprd11.prod.outlook.com ([fe80::d43:5665:5cee:b3c5%6]) with mapi id 15.20.3195.026; Wed, 22 Jul 2020 14:48:56 +0000 From: "Ma, Maurice" To: Marcello Sylvester Bauer , "devel@edk2.groups.io" CC: Patrick Rudolph , Christian Walter , "Dong, Guo" , "You, Benjamin" Subject: Re: [PATCH v3 1/3] UefiPayloadPkg: Store the size of the MMCONF window Thread-Topic: [PATCH v3 1/3] UefiPayloadPkg: Store the size of the MMCONF window Thread-Index: AQHWYCpAgQiu4Esh7UOHCESDNxxN4akTrefw Date: Wed, 22 Jul 2020 14:48:56 +0000 Message-ID: References: <20200722131543.12530-1-marcello.bauer@9elements.com> <20200722131543.12530-2-marcello.bauer@9elements.com> In-Reply-To: <20200722131543.12530-2-marcello.bauer@9elements.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.2.0.6 dlp-reaction: no-action authentication-results: 9elements.com; dkim=none (message not signed) header.d=none;9elements.com; dmarc=none action=none header.from=intel.com; x-originating-ip: [104.153.200.60] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: c582ba6a-477d-479d-739b-08d82e4e5c36 x-ms-traffictypediagnostic: DM6PR11MB4203: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:4502; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: YUl/SjepIJRUlJBCAFow3E+2QiWI6n9UjGEsRu7hhJ93v3UZeY4nkZ+8e6zyKyDAylRG+eyge+To3NvyvgialLkebQbF4evT2vCO15kY8KpV9iCWOjYTARqRtJwl7ZhdbJIqy8KQLCQ9u6VLxwpgFG0/9EXUoRqjjqLrMfoV217urQp7hS7/+kxdyfJ6KboshjxcB3ZlbHXIpCS0rLqmDH7yJPbhZOX4qU963xMAdCdRo4q1NChjBOjZ5Mh6xF3aOy3yudmbrIfKjR8Oh7JPrXiJTiKEsIN+TrNQHCG69EEafnGjG4sfdYi+EBvZXuK4 x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM6PR11MB2793.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFTY:;SFS:(4636009)(366004)(396003)(39860400002)(136003)(376002)(346002)(76116006)(7696005)(66946007)(6506007)(186003)(64756008)(66446008)(53546011)(66556008)(66476007)(26005)(4326008)(8676002)(2906002)(478600001)(110136005)(55016002)(9686003)(107886003)(54906003)(316002)(33656002)(8936002)(71200400001)(5660300002)(86362001)(83380400001)(52536014);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata: l+4D5c9R4seIdnOHAaEc1Ihlw5FkeXDSEMCkpjmZrJA2LiPhf3Mj/2Re45gf5z+wSg69WJSvLzn72zXZH/LRUy4iq9e/jvlyWrP7tUtHOi3trkFBOQ9rYzqP8LvaBSmZeO1WrVPrd1OQxPn1R2ShPEhLXAGQCzaNUcwqMT4RROdhLfpYM8qEdk/k95lmRI8GXfAOrLss3ijuFFm4ZrjXofcMjPVgZcv3QAcf8H/kXkf4E7AgDH1sk6Tsi2hwj66RYIPWxJzLtVC3WwIkpqGpAjxPM+L1f9KOSXrqRY87uWRAAJszS8bTQ3q+3XpKtrJj/vj5zpMqh0AwxvYWA8MIS4L09z9sOi3AU79bcIc+iSn9dMbPlQe+3e/g3uunnYOcw/W82sUaPj7kRKY1jblGG1aAfFhSZfTxmOWiF3y4ZjoOLj5O7jFyQE15on5zwa/+X1fJJNzxY90uJWBeRpwEJSTu/X4oy02USMuwYNN4/6y+h+KWggDYqGVUWqwL7cjT MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM6PR11MB2793.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: c582ba6a-477d-479d-739b-08d82e4e5c36 X-MS-Exchange-CrossTenant-originalarrivaltime: 22 Jul 2020 14:48:56.0615 (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: 6EXamhjKyAo2B9yxy9NHTkQvFzdUBuM6IpxXKPK/8OxdeZA7vQSGr+Pbc0kcUHqfY5aoClWPwpu8xWmk+Kerfg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR11MB4203 Return-Path: maurice.ma@intel.com X-OriginatorOrg: intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Maurice Ma > -----Original Message----- > From: Marcello Sylvester Bauer > Sent: Wednesday, July 22, 2020 6:16 > To: devel@edk2.groups.io > Cc: Patrick Rudolph ; Christian Walter > ; Ma, Maurice ; > Dong, Guo ; You, Benjamin > Subject: [PATCH v3 1/3] UefiPayloadPkg: Store the size of the MMCONF > window >=20 > From: Patrick Rudolph >=20 > Store the real size of the Pcie Memory Mapped Address Space. > This change is necessary to support variable size of MMCONF spaces. >=20 > Signed-off-by: Patrick Rudolph > Signed-off-by: Marcello Sylvester Bauer > Cc: Patrick Rudolph > Cc: Christian Walter > Cc: Maurice Ma > Cc: Guo Dong > Cc: Benjamin You > --- > UefiPayloadPkg/Include/Guid/AcpiBoardInfoGuid.h | 1 + > UefiPayloadPkg/BlSupportPei/BlSupportPei.c | 3 +++ > 2 files changed, 4 insertions(+) >=20 > diff --git a/UefiPayloadPkg/Include/Guid/AcpiBoardInfoGuid.h > b/UefiPayloadPkg/Include/Guid/AcpiBoardInfoGuid.h > index fe783fe5e14c..043b748ae4a9 100644 > --- a/UefiPayloadPkg/Include/Guid/AcpiBoardInfoGuid.h > +++ b/UefiPayloadPkg/Include/Guid/AcpiBoardInfoGuid.h > @@ -24,6 +24,7 @@ typedef struct { > UINT64 PmTimerRegBase; >=20 > UINT64 ResetRegAddress; >=20 > UINT64 PcieBaseAddress; >=20 > + UINT64 PcieBaseSize; >=20 > } ACPI_BOARD_INFO; >=20 >=20 >=20 > #endif >=20 > diff --git a/UefiPayloadPkg/BlSupportPei/BlSupportPei.c > b/UefiPayloadPkg/BlSupportPei/BlSupportPei.c > index 22972453117a..a7e99f9ec6de 100644 > --- a/UefiPayloadPkg/BlSupportPei/BlSupportPei.c > +++ b/UefiPayloadPkg/BlSupportPei/BlSupportPei.c > @@ -240,8 +240,10 @@ Done: > if (MmCfgHdr !=3D NULL) { >=20 > MmCfgBase =3D > (EFI_ACPI_MEMORY_MAPPED_ENHANCED_CONFIGURATION_SPACE_BASE_A > DDRESS_ALLOCATION_STRUCTURE *)((UINT8*) MmCfgHdr + sizeof > (*MmCfgHdr)); >=20 > AcpiBoardInfo->PcieBaseAddress =3D MmCfgBase->BaseAddress; >=20 > + AcpiBoardInfo->PcieBaseSize =3D (MmCfgBase->EndBusNumber + 1 - > MmCfgBase->StartBusNumber) * 4096 * 32 * 8; >=20 > } else { >=20 > AcpiBoardInfo->PcieBaseAddress =3D 0; >=20 > + AcpiBoardInfo->PcieBaseSize =3D 0; >=20 > } >=20 > DEBUG ((DEBUG_INFO, "PmCtrl Reg 0x%lx\n", AcpiBoardInfo- > >PmCtrlRegBase)); >=20 > DEBUG ((DEBUG_INFO, "PmTimer Reg 0x%lx\n", AcpiBoardInfo- > >PmTimerRegBase)); >=20 > @@ -250,6 +252,7 @@ Done: > DEBUG ((DEBUG_INFO, "PmEvt Reg 0x%lx\n", AcpiBoardInfo->PmEvtBase))= ; >=20 > DEBUG ((DEBUG_INFO, "PmGpeEn Reg 0x%lx\n", AcpiBoardInfo- > >PmGpeEnBase)); >=20 > DEBUG ((DEBUG_INFO, "PcieBaseAddr 0x%lx\n", AcpiBoardInfo- > >PcieBaseAddress)); >=20 > + DEBUG ((DEBUG_INFO, "PcieBaseSize 0x%lx\n", AcpiBoardInfo- > >PcieBaseSize)); >=20 >=20 >=20 > // >=20 > // Verify values for proper operation >=20 > -- > 2.27.0