From nobody Tue Nov 26 01:53:49 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+61654+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+61654+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=9elements.com ARC-Seal: i=1; a=rsa-sha256; t=1593000685; cv=none; d=zohomail.com; s=zohoarc; b=T234mpAk7/sdO5Zmd56qHViwtKBuPxwq1wuBAze/ymbtCQz0sKeZl88cqCsv74Rb0TwWxp3uCdIVKjXLsTqxBKBQCAxbYX9Z7eZ9/yqt6b7gPycKQQHvfzU5D+i2/UE7V5jXeVSiOieXQ8Dw1vv5ly5UO1ymBdRVbn3ColtvMqM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1593000685; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Id:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=WoWywuH9x2JDHWgpfKhSfB5ni4l+YazfQF5AxfaNC50=; b=iuinSw0x9YuuZL7sw3ALkT9Zt1GCPRuEeoB8Vc4FsLz2AY9NGPM4yxJuyK4VFqDBSkUv4T7I+otiXkOFWBNCNq16LPnJpNv0TDsDYUnO/MuirGxG5L9LDWWgbVkFEqRZTqiAY6s5/fYAuSmk0Ou++yIwGriKOvIwrW4CdT1IEqI= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+61654+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) header.from= Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 15930006855421013.3013213585331; Wed, 24 Jun 2020 05:11:25 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id CSHyYY1788612x8tK4pcdJPf; Wed, 24 Jun 2020 05:11:25 -0700 X-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 X-Received: by mail-wr1-f47.google.com with SMTP id h15so1716125wrq.8 for ; Wed, 24 Jun 2020 03:25:56 -0700 (PDT) X-Gm-Message-State: MCZWOM7cdIcmBW7x9QggHZvdx1787277AA= 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) X-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: [edk2-devel] [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> In-Reply-To: <20200624102545.21390-1-marcello.bauer@9elements.com> References: <20200624102545.21390-1-marcello.bauer@9elements.com> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,marcello.bauer@9elements.com Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1593000685; bh=6IttCQ8p2T6FvqN7lyRcgME+k1qdSsLtMgSxMG0rRLU=; h=Cc:Date:From:Reply-To:Subject:To; b=e0RSxAuDjxChzimIdDgjThKQUnWvjzfwje8C+KhXMTHVrOQsGZBNoeymRYEmw0ZJxP3 DaVUd5dZxl2lnjys2gcZFS+y8qJVpiGD688pAHWSPSnDkzqq3KMe8HLAz1P3g9/nEhuX7 wuZXIuJt6aklg/bCtTrIl2aHvA6wm2kHM/A= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Type: text/plain; charset="utf-8" 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; UINT64 ResetRegAddress; UINT64 PcieBaseAddress; + UINT64 PcieBaseSize; } ACPI_BOARD_INFO; =20 #endif 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) { MmCfgBase =3D (EFI_ACPI_MEMORY_MAPPED_ENHANCED_CONFIGURATION_SPACE_BAS= E_ADDRESS_ALLOCATION_STRUCTURE *)((UINT8*) MmCfgHdr + sizeof (*MmCfgHdr)); AcpiBoardInfo->PcieBaseAddress =3D MmCfgBase->BaseAddress; + AcpiBoardInfo->PcieBaseSize =3D (MmCfgBase->EndBusNumber + 1 - MmCfgBa= se->StartBusNumber) * 4096 * 32 * 8; } else { AcpiBoardInfo->PcieBaseAddress =3D 0; + AcpiBoardInfo->PcieBaseSize =3D 0; } DEBUG ((DEBUG_INFO, "PmCtrl Reg 0x%lx\n", AcpiBoardInfo->PmCtrlRegBase= )); DEBUG ((DEBUG_INFO, "PmTimer Reg 0x%lx\n", AcpiBoardInfo->PmTimerRegBas= e)); @@ -250,6 +252,7 @@ Done: DEBUG ((DEBUG_INFO, "PmEvt Reg 0x%lx\n", AcpiBoardInfo->PmEvtBase)); DEBUG ((DEBUG_INFO, "PmGpeEn Reg 0x%lx\n", AcpiBoardInfo->PmGpeEnBase)); DEBUG ((DEBUG_INFO, "PcieBaseAddr 0x%lx\n", AcpiBoardInfo->PcieBaseAddre= ss)); + DEBUG ((DEBUG_INFO, "PcieBaseSize 0x%lx\n", AcpiBoardInfo->PcieBaseSize)= ); =20 // // Verify values for proper operation --=20 2.25.4 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#61654): https://edk2.groups.io/g/devel/message/61654 Mute This Topic: https://groups.io/mt/75080103/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-