From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f47.google.com (mail-wr1-f47.google.com [209.85.221.47]) by mx.groups.io with SMTP id smtpd.web12.10619.1592994357057461319 for ; Wed, 24 Jun 2020 03:25:57 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@9elements.com header.s=google header.b=BwBzXS+v; spf=pass (domain: 9elements.com, ip: 209.85.221.47, mailfrom: marcello.bauer@9elements.com) Received: by mail-wr1-f47.google.com with SMTP id h15so1716125wrq.8 for ; Wed, 24 Jun 2020 03:25:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=9elements.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=RecF95MOKOp5vgUyF6mWHlm7iBbsHa3mCVVm2L35F2A=; b=BwBzXS+vHticNAMf2REw+dyHx7sZO9WgGVmBl3fc3rD+6OMCOFsNgZ2qUBaIXyYExR IRwHI3h6Zuf7lHdk6MQR4IhDiKOYyJDSPKKzGUTF6w4XPHEywdzbPG6sQQXIO4Y1ase9 9+0x527o07dLlJ59GnOIKAcwglwCXfaZjIg1CoL6Rvx54COCKLh3bgYilR54WzJDnD2o ehDRTYxdrheT5BuBBwYke4vBbQtuYecy6r36kBnBz74Xjsbr+0jLx8W8Z2R09V3+Zsvu d5WGTLkvena+mPlmWwAYoBbSL+1lppWh/VkReMSHXAQjAm4tnPJTeBSnnSNh93IfKfBX apLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=RecF95MOKOp5vgUyF6mWHlm7iBbsHa3mCVVm2L35F2A=; b=ugYnc4dxFQMBKspgylg3208GpI3eh3TViBEf8iGFSVKPsGgjrB8HHatIvDFKWTDD+6 FRdFEgoOoKvnH6JZzC/F2hTgyiXB8/0TFu46zCa9P5pHuQREBBIIghDCX87d7WBsach2 wFhP+cvmPAbT1n/UnP8ysNVd9mNvKnkwYTaUooYeCM0hFytB7AmTsikcgUf1EEtZiMve ugEXFpctgFmRLkMIYSgPalSWfBnXXUtw8tF3OwtoG7GoSlEZLrc1LVHtSVik6Q/46csw cOfQpJGuS7SnJjBuX2X2hHz8L1eBpNua9ndlrr1QEGJqZ+37sbcWMi/ozDoH2RQjpzDU YXug== X-Gm-Message-State: AOAM530naRENJgZbkMP6Vdol/zv95dqLnoEfiXtp7JSIxhqiv+wZElPZ AkzsGOCEpFnFnmy8TG9/bhEckzQJ8ybu1g== X-Google-Smtp-Source: ABdhPJxLAy8Sxj8lm7beS3ShI4kbZ7qkKD3Ftyar1OI+vlCApffdtJ8ZdVhhkSFd42aPSkBDumHgxg== X-Received: by 2002:adf:e2c9:: with SMTP id d9mr30137435wrj.227.1592994355225; Wed, 24 Jun 2020 03:25:55 -0700 (PDT) Return-Path: Received: from T580.n1ce.space ([2a02:908:e851:d750:6547:7a47:84ac:1330]) by smtp.gmail.com with ESMTPSA id 3sm1771449wmi.45.2020.06.24.03.25.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Jun 2020 03:25:54 -0700 (PDT) From: "Marcello Sylvester Bauer" To: devel@edk2.groups.io Cc: Patrick Rudolph , Christian Walter , Maurice Ma , Nate DeSimone , Star Zeng Subject: [PATCH v1 1/2] UefiPayloadPkg: Store the real size of the MMCONF window Date: Wed, 24 Jun 2020 12:25:44 +0200 Message-Id: <20200624102545.21390-2-marcello.bauer@9elements.com> X-Mailer: git-send-email 2.25.4 In-Reply-To: <20200624102545.21390-1-marcello.bauer@9elements.com> References: <20200624102545.21390-1-marcello.bauer@9elements.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Patrick Rudolph Signed-off-by: Patrick Rudolph Signed-off-by: Marcello Sylvester Bauer Cc: Patrick Rudolph Cc: Christian Walter Cc: Maurice Ma Cc: Nate DeSimone Cc: Star Zeng --- UefiPayloadPkg/Include/Guid/AcpiBoardInfoGuid.h | 1 + UefiPayloadPkg/BlSupportPei/BlSupportPei.c | 3 +++ 2 files changed, 4 insertions(+) diff --git a/UefiPayloadPkg/Include/Guid/AcpiBoardInfoGuid.h b/UefiPayloadP= kg/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;=0D UINT64 ResetRegAddress;=0D UINT64 PcieBaseAddress;=0D + UINT64 PcieBaseSize;=0D } ACPI_BOARD_INFO;=0D =0D #endif=0D diff --git a/UefiPayloadPkg/BlSupportPei/BlSupportPei.c b/UefiPayloadPkg/Bl= SupportPei/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) {=0D MmCfgBase =3D (EFI_ACPI_MEMORY_MAPPED_ENHANCED_CONFIGURATION_SPACE_BAS= E_ADDRESS_ALLOCATION_STRUCTURE *)((UINT8*) MmCfgHdr + sizeof (*MmCfgHdr));= =0D AcpiBoardInfo->PcieBaseAddress =3D MmCfgBase->BaseAddress;=0D + AcpiBoardInfo->PcieBaseSize =3D (MmCfgBase->EndBusNumber + 1 - MmCfgBa= se->StartBusNumber) * 4096 * 32 * 8;=0D } else {=0D AcpiBoardInfo->PcieBaseAddress =3D 0;=0D + AcpiBoardInfo->PcieBaseSize =3D 0;=0D }=0D DEBUG ((DEBUG_INFO, "PmCtrl Reg 0x%lx\n", AcpiBoardInfo->PmCtrlRegBase= ));=0D DEBUG ((DEBUG_INFO, "PmTimer Reg 0x%lx\n", AcpiBoardInfo->PmTimerRegBas= e));=0D @@ -250,6 +252,7 @@ Done: DEBUG ((DEBUG_INFO, "PmEvt Reg 0x%lx\n", AcpiBoardInfo->PmEvtBase));= =0D DEBUG ((DEBUG_INFO, "PmGpeEn Reg 0x%lx\n", AcpiBoardInfo->PmGpeEnBase))= ;=0D DEBUG ((DEBUG_INFO, "PcieBaseAddr 0x%lx\n", AcpiBoardInfo->PcieBaseAddre= ss));=0D + DEBUG ((DEBUG_INFO, "PcieBaseSize 0x%lx\n", AcpiBoardInfo->PcieBaseSize)= );=0D =0D //=0D // Verify values for proper operation=0D --=20 2.25.4