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.web10.13581.1594900103225431290 for ; Thu, 16 Jul 2020 04:48:23 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@9elements.com header.s=google header.b=N41jUwlS; 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 b6so6700372wrs.11 for ; Thu, 16 Jul 2020 04:48:23 -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=ciUCfcjFH2KQMxYj6BdXqLk2x3o6DyFC19xkxLjijbE=; b=N41jUwlSBAXtDcyC8HTQlvq66LJl2N79IZKXsWX2+9yUXusbupa6NKuRuP06Bmwvrl 9A2H+MeNefjk/YKk/6PvuDsJ4+4cSQfYQ56Do8/ts1yNeljCLX4agVmX6ufbi/nF+44t NexGcohzyf9KXluc1bhzP0QRCONTWIh45CQjMorCxIRkLdLmKasmApDd6mDQZGfXBlbp rSveJteOvrG11WHWmYnmIHTdJYnCMnw71SF5tHC6uzeAkapGcdUpSvj5oRRzmvasp1aj bCEbhke6sp0mAK9jBbXFMW+HNG8kW28mSV7bFc1hSOOx8PqPyF/AQ1vvwn24Sqn3ssjv rFTg== 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=ciUCfcjFH2KQMxYj6BdXqLk2x3o6DyFC19xkxLjijbE=; b=UnpbPt/dtHW5dC5RpdXGlzkiTbxes1lexb/3YGZb00VIJvPFNruwyxydc7hT5M5idi MiTBuIouk6+wcoX8Jy0+jIKOK4rc3Po56rLEM3aa7j0jmeSP/GDZu0oOpcxXhF88673u a88bXdNS5oY1SS7wePRWGnY/YncUNPQpr1gqWMRTuL2hJESj9Xc6TgC2FbSnLzmU7N0v dqCtzDNDROFzqYrHVmHJzKhjXJtCfd6e07E5lcSmSYBJrUiLBNn3G93hZ2klJqON+/Jw lilBP72VvEP80XHtrIVINF4f1hCjGunl31K3bgnrQnyz0ZkxUIvTKWlSV91H9xBYkO6u gizg== X-Gm-Message-State: AOAM532TqsGp4h/+Y7n9xoe4xt+qTQBlPptPABgU7OLRiJsMMz4RpqHn nooD/ss24Pwezlsf4BqnDZi49VG5QUY= X-Google-Smtp-Source: ABdhPJwN6Yh5YXPruhNTCue6MV753k6if1ixqfFU7hFfe5BmNo82vxZ+k/0EiHvpzdHguikq8u953A== X-Received: by 2002:adf:e903:: with SMTP id f3mr4514763wrm.190.1594900101515; Thu, 16 Jul 2020 04:48:21 -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.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Jul 2020 04:48:21 -0700 (PDT) From: "Marcello Sylvester Bauer" To: devel@edk2.groups.io Subject: [PATCH v2 0/2] UefiPayloadPkg: Runtime MMCONF Date: Thu, 16 Jul 2020 13:48:18 +0200 Message-Id: <20200716114820.14211-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 v2: * rebased with regards to commit 3900a63e3a1b9ba9a4105bedead7b986188cec2c * add MdePkg Maintainer Branch: https://github.com/9elements/edk2-1/tree/UefiPayloadPkg-MMCONF PR: https://github.com/tianocore/edk2/pull/801 Patrick Rudolph (2): UefiPayloadPkg: Store the real size of the MMCONF window MdePkg: Add support for variable size MMCONF space 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 | 118 +++++++++++++++++++- UefiPayloadPkg/BlSupportDxe/BlSupportDxe.c | 4 +- UefiPayloadPkg/BlSupportPei/BlSupportPei.c | 3 + 9 files changed, 135 insertions(+), 8 deletions(-) -- 2.27.0