From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f68.google.com (mail-wr1-f68.google.com [209.85.221.68]) by mx.groups.io with SMTP id smtpd.web10.13582.1594900105432263094 for ; Thu, 16 Jul 2020 04:48:25 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@9elements.com header.s=google header.b=WMGp393o; spf=pass (domain: 9elements.com, ip: 209.85.221.68, mailfrom: marcello.bauer@9elements.com) Received: by mail-wr1-f68.google.com with SMTP id a6so6754814wrm.4 for ; Thu, 16 Jul 2020 04:48:25 -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=IVRTVx8MA4gE/ZFceREwRe5asPSpiKPn7aLX+ePjZb8=; b=WMGp393o1FsTc8gvsNrvmvBKKHj3fdHu3Wp3Ht8YZeIMG/+WieM9uA8QgOOa5beB6r YCdig8W4PbDeBwzNp788tJgUqm1Psy89+YI75L5KKRB6kWmLMfXofXzozx2Qv8mWAkYj jMXFjJG8TvJ05La5RzGedOxTV32rBDNUFHiPfDvSA3rolRxl28JmFBa/M6w0s1mn5tEC +8AAaq90FoMe5NI3WcRucfx5LZ+8AdulX761RaV2dfNeh89cPdE5ACxTO/cKrEsg8HlZ hXoXGSnbDES/dYrBBOudVlw1JSgr9SDfPk+fkt2+MlPbD6cPv6NnCFpxDq8RHby+F0ts ZmvA== 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=IVRTVx8MA4gE/ZFceREwRe5asPSpiKPn7aLX+ePjZb8=; b=cZ9cLN2vgeiJzTUkovpd1n2DdyOsBUXCHe1Kp3bKAgP9kYgCEC9BBRA1VEjddhoJK7 uEMfZZrB0etJMvZ26HRJt0I78ts3sOLe0m0chOnIzokZJ2jQjYw2FL6ojub45tkD7EQd Q68cfvPQpMeu/DFreQRYScEYH5xxrNbEj2Sq7719CswK5aSICEm4Ga5teM7z+GHhnvyx G3poWYuSjUojwiLjYHPiYEPVx1d6WxPbVHPjgsw9vtat23wrww36TzNk6zZKFZESwx87 /L9E5eT8qjTNK5MH481oXrvj/8YS33NFkv8Nj/PRaozXVZ/g37cvWY/+xLdSuV5YSoeN Kf4A== X-Gm-Message-State: AOAM5333523WqxPZrMEzZcCP0ES65ZU0fuw+7kYEjPpXTuB9/aMlFi+5 dAifHhwokQ/k/ccGasLGWBIoMKnAgkY= X-Google-Smtp-Source: ABdhPJwOltmqCTGgUU3znLSenZkKzDbcHnER3OhlUCXaLw5L+G4Ph0N6mEhHDHDLlpPFVzPFAecpWw== X-Received: by 2002:adf:8342:: with SMTP id 60mr4657556wrd.62.1594900103782; Thu, 16 Jul 2020 04:48:23 -0700 (PDT) Return-Path: Received: from T580.dut.n1ce.space ([2a02:908:e851:d750:f570:655a:1f30:429f]) by smtp.gmail.com with ESMTPSA id v5sm7989811wmh.12.2020.07.16.04.48.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Jul 2020 04:48:23 -0700 (PDT) From: "Marcello Sylvester Bauer" To: devel@edk2.groups.io Cc: Patrick Rudolph , Christian Walter , Maurice Ma , Nate DeSimone , Star Zeng , Michael D Kinney , Liming Gao Subject: [PATCH v2 1/2] UefiPayloadPkg: Store the real size of the MMCONF window Date: Thu, 16 Jul 2020 13:48:19 +0200 Message-Id: <20200716114820.14211-2-marcello.bauer@9elements.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200716114820.14211-1-marcello.bauer@9elements.com> References: <20200716114820.14211-1-marcello.bauer@9elements.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Patrick Rudolph This will fix issues with the PciBusDxe. 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 Cc: Michael D Kinney Cc: Liming Gao --- 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.27.0