From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qv1-f54.google.com (mail-qv1-f54.google.com [209.85.219.54]) by mx.groups.io with SMTP id smtpd.web11.51039.1595837928861393779 for ; Mon, 27 Jul 2020 01:18:49 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@9elements.com header.s=google header.b=T+3h+0ZP; spf=pass (domain: 9elements.com, ip: 209.85.219.54, mailfrom: marcello.bauer@9elements.com) Received: by mail-qv1-f54.google.com with SMTP id m9so7044990qvx.5 for ; Mon, 27 Jul 2020 01:18:48 -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=ynjtlMdRPZt/6QuekOSjEOnt3eOG8q148jwOFqN/6jc=; b=T+3h+0ZPQLxHxoQSFoeO1Xr9nTD1t+EppdTlvkiZN5jTZR/HRwCozDuOyDZrBeE2A9 KgRI0VsMmN1vMnCkRj7zI5WRhDHKtTYFj3jH9Si80RVqAkpO3RmwxCAvojlz7gdmXnRf iOtyt3Ylh5XnDDydH6QIb0UfR8ENg3Ojr0YKQOHWldjGo157cCY6UoJV412YuvpXsUWT 0ihXBVjqmf56DMv7R1qtkt12fHxH4STrrBjBlikIYzB5LLeIj5nuSiqVzD5XzbebP85S WnXRLm0t1TGKXMVPYKGws1pLuo6cXxOqIYGqnOaCD51kmVSy9R46K3gDZrITJXf0tugz oRCA== 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=ynjtlMdRPZt/6QuekOSjEOnt3eOG8q148jwOFqN/6jc=; b=FwllMwbI06QP67+GsvLwaZYuMuX1l+aayL/mVeJsMxYl1B+kmf3iM8T+79S7sJ5h3B NBTB9k63QxSHl2TH5ozphpP+X/Qc9sOCeRfwAR8dcfvaqWFDm3qEfvTHSLA9Pt8o0A3T CZimXju7Pyxmdi9yBByHqVlC98+f5+nOShqXxb7pDiP/iMSP5IXs2BO/TEmrUn680bL8 x65bSrZSswwa0FOL1mYaJIuhU3TUxvPjtsTOKq2ZPLJQdWwjdQpAjhj2sgBB9+sCyZ3p 67pU39JgI2K/fA0TQKBsg8rxi3Mta3lFjD7iUDQBfJdzNLnpK3oO38Zy2jSNbZAQU2h1 8VjQ== X-Gm-Message-State: AOAM5330Woy+3ebY/Rfz/wdzfXOv1OUEWb/KET2DDj6N8PXgI6HFLQal JuEZp0uHEY8kAH9d5TKp1qSkGqk9bH0= X-Google-Smtp-Source: ABdhPJxGzFMJowuCPxBLjcIapHtPKkJNYEwFqla4YYACPvfD5fbnn/hvgZR0ksE3QnzT+BzloZUPFg== X-Received: by 2002:a0c:ec86:: with SMTP id u6mr8165465qvo.58.1595837927800; Mon, 27 Jul 2020 01:18:47 -0700 (PDT) Return-Path: Received: from T14.n1ce.space ([2a02:908:e851:d750:39c4:c509:9b27:775a]) by smtp.gmail.com with ESMTPSA id m4sm14413550qtf.43.2020.07.27.01.18.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Jul 2020 01:18:45 -0700 (PDT) From: "Marcello Sylvester Bauer" To: devel@edk2.groups.io Subject: [PATCH v4 0/3] UefiPayloadPkg: Runtime MMCONF Date: Mon, 27 Jul 2020 10:18:39 +0200 Message-Id: <20200727081842.28843-1-marcello.bauer@9elements.com> X-Mailer: git-send-email 2.27.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/817 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/BasePciExpressLib: 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 +- UefiPayloadPkg/BlSupportDxe/BlSupportDxe.inf | 1 + MdePkg/Include/Library/PciExpressLib.h | 5 +- UefiPayloadPkg/Include/Guid/AcpiBoardInfoGuid.h | 1 + MdePkg/Library/BasePciExpressLib/PciExpressLib.c | 216 +++++++++++++++++--- UefiPayloadPkg/BlSupportDxe/BlSupportDxe.c | 4 +- UefiPayloadPkg/BlSupportPei/BlSupportPei.c | 3 + 9 files changed, 202 insertions(+), 39 deletions(-) -- 2.27.0