From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ej1-f50.google.com (mail-ej1-f50.google.com [209.85.218.50]) by mx.groups.io with SMTP id smtpd.web11.62221.1597739065297518584 for ; Tue, 18 Aug 2020 01:24:25 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@9elements.com header.s=google header.b=LFk4KL10; spf=pass (domain: 9elements.com, ip: 209.85.218.50, mailfrom: marcello.bauer@9elements.com) Received: by mail-ej1-f50.google.com with SMTP id a26so21052272ejc.2 for ; Tue, 18 Aug 2020 01:24:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=9elements.com; s=google; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=6mOmsGzI/CZdyRpC5wjFDwHnnf0iSDFgZuexH8QoHKY=; b=LFk4KL10X14D0leBHvrIyia4+Jjgjv0TW84e5StmJ8yPkUcztI7w5ex9b6ChRsT3RP aneiMNESjVOp1gzmSQ8AHUYl+XoQx4+ZjUU748TMKcmHtcbenZ9IYkCY8esdlLKQrz4Z 4dOyougClODQjuKN4q6VP5v82TQGrgZVfYDD5i1k+RmQuY1Tr55q67CzbBHKNmYYAKM3 WewvbezJ7DrPJ1KWNe7bywkE+3tpYkyQqowqmqU+bJIEskPt353WUPwZS6wu9UHgX+Ud t9eavwrbYFrCcijs1IqNP98IVGV7+BN2zOKf4cLC1LMktuejgOtR2fTlfFK3W7W5nml0 YUwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=6mOmsGzI/CZdyRpC5wjFDwHnnf0iSDFgZuexH8QoHKY=; b=Rzs08jwTc8eIpYaf1e5XyFm2fnUhGmAF/8v7g/Rxuw6SyHTer+CQWkkHZdYq8ROKc0 /qD3acfKrnANuUsj2Fx+oIG8iK7cxscjLMfd2NqOg1i4pOV43jYmC6yx/589SrSkMGN4 iaNlN4JZfqOnztZnEJUlwFap+HC2XmpopL3v3TVbI4EQKzMNEuwQwNcRmTP15yYJ3SrK XHUkVV54Of7L++0X4OwDQOqbLUXni1uWqM0votENw3Hnn3bU1Ywz4kl4J4GTtHk2mFU5 oOspspgEmlA32hJJmX6cMl528YSPxSQWRqEsV9MrMRK15djp0x6aWpVeymfo3jDFbbkc WuWQ== X-Gm-Message-State: AOAM530CzjGJoEwwOimI9YeVUZ6w9axcugx7TYedQhZyRKmAzBaQKemZ D1aX199Mh3rlu3y980LygQPEEFRIVJGwOA== X-Google-Smtp-Source: ABdhPJwyNq7GgTmdgNR+D239vZq7Fh2ADy+D7pi+BXP89dsa/HSpSSAV2fF9n/tpmARclUKkbsrpUg== X-Received: by 2002:a17:906:1a0f:: with SMTP id i15mr20119896ejf.293.1597739063370; Tue, 18 Aug 2020 01:24:23 -0700 (PDT) Return-Path: Received: from T14.dut.n1ce.space ([2a02:908:e851:d750:9068:4d6d:42f:ebc8]) by smtp.gmail.com with ESMTPSA id z9sm15980030ejj.51.2020.08.18.01.24.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Aug 2020 01:24:22 -0700 (PDT) From: "Marcello Sylvester Bauer" To: devel@edk2.groups.io Subject: [PATCH v5 0/3] UefiPayloadPkg: Runtime MMCONF Date: Tue, 18 Aug 2020 10:24:18 +0200 Message-Id: <20200818082421.6168-1-marcello.bauer@9elements.com> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Support arbitrary platforms with different or even no MMCONF space. Fixes crash on platforms not exposing 256 buses. Tested on: * AMD Stoney Ridge Branch: https://github.com/9elements/edk2-1/tree/UefiPayloadPkg-MMCONF PR: https://github.com/tianocore/edk2/pull/885 v5: * MdePkg - support variable size MMCONF in all PciExpressLibs - use (UINTX)-1 as return values for invalid Pci addresses v4: * MdePkg: undo default PcdPciExpressBaseSize off by one v3: * split patch 2 by package * MdePkg/PciExpress: - PciExpressXX add return value specification - Undo remove of ASSERT() - PcdPciExpressBaseSize() correct function header - correct return value types v2: * rebased with regards to commit 3900a63e3a1b9ba9a4105bedead7b986188cec2c * add MdePkg Maintainer Marcello Sylvester Bauer (2): MdePkg: PciExpressLib support variable size MMCONF UefiPayloadPkg: Support variable size MMCONF space Patrick Rudolph (1): UefiPayloadPkg: Store the size of the MMCONF window MdePkg/MdePkg.dec | 4 + UefiPayloadPkg/UefiPayloadPkgIa32X64.dsc | 1 + MdePkg/Library/BasePciExpressLib/BasePciExpressLib.inf | 6 +- MdePkg/Library/DxeRuntimePciExpressLib/DxeRuntimePciExpressLib.inf | 1 + MdePkg/Library/SmmPciExpressLib/SmmPciExpressLib.inf | 1 + UefiPayloadPkg/BlSupportDxe/BlSupportDxe.inf | 1 + MdePkg/Include/Library/PciExpressLib.h | 5 +- UefiPayloadPkg/Include/Guid/AcpiBoardInfoGuid.h | 1 + MdePkg/Library/BasePciExpressLib/PciExpressLib.c | 216 ++++++++++++++--- MdePkg/Library/DxeRuntimePciExpressLib/PciExpressLib.c | 247 ++++++++++++++++---- MdePkg/Library/SmmPciExpressLib/PciExpressLib.c | 218 ++++++++++++++--- UefiPayloadPkg/BlSupportDxe/BlSupportDxe.c | 4 +- UefiPayloadPkg/BlSupportPei/BlSupportPei.c | 3 + 13 files changed, 593 insertions(+), 115 deletions(-) -- 2.28.0