From patchwork Thu Jun 1 09:43:47 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 100862 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp718549qge; Thu, 1 Jun 2017 02:44:07 -0700 (PDT) X-Received: by 10.55.69.72 with SMTP id s69mr511711qka.175.1496310247810; Thu, 01 Jun 2017 02:44:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1496310247; cv=none; d=google.com; s=arc-20160816; b=hA5qNNogCcxpJa5QkG0jUDBIAjlqWLxO/f/3DSB7VPDR8CQPcIX+NII/B+jtZMBR4U Hrw0ahl9G6r+d9d/1LXsb+ppiHhce9x6xfSQB59cxMwQKeP+rE29KgJnfkGuNxK177+h CGHCeUu3XPv5v6ugCZ0z3+uSWdltAwKyglhHEXsX45xsav/BLM9fCYA9fs5JedEJrNI+ /3zn2hKj8EUJryNqOcCAvpqA04+X/U77OoWPkN+QNOm0rnhRs9Tp3fRU8SR7lBXFOpos nPpNQSXDlY3veurPYkZYXWuoEuybxElEntRy7KoNVQ0iP+Ni/zvFPqmnzpNP62/3jlZ0 UKLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:message-id:date:to:from:delivered-to :arc-authentication-results; bh=hc7TYJ/K7JNi+xplhMI/TOdmgGLVbf8HzhxzwV6yhBg=; b=yzpvPrBmiXvLfj+tkpenxio73smMRmKkkFt/IIScG3I8t6/sgq/VnQ5V4lmaod2UW1 m2wT0dNgDSstLocjwlNrjvzQ4wFaaLaiaqukL8xOTw2UcPEiykvuorceQ/eKuINXo0pr MwVamxeLyJIt7b6SvlIUoNv4pLbFSXkAqiw7110sbVrjGNEbI2GDI57VdPfhMUMCQAiU do05w3IbyX8/arD2EHBgjhVQMaXwid6m7/gPgNY+VD/P+8Ssq2bu7uCf4v8nnJRZWZ/j D1JAyBv8lNTy9u/6ZLK5DB1yOdYrW5YpgokffOxawTxrWxWhtM0SCLd12f9htYyNz9Vw BDSg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linaro-uefi-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=linaro-uefi-bounces@lists.linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id n143si19077646qkn.4.2017.06.01.02.44.07; Thu, 01 Jun 2017 02:44:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linaro-uefi-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linaro-uefi-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=linaro-uefi-bounces@lists.linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 056E9609CC; Thu, 1 Jun 2017 09:44:07 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 8CC09609A7; Thu, 1 Jun 2017 09:44:04 +0000 (UTC) X-Original-To: linaro-uefi@lists.linaro.org Delivered-To: linaro-uefi@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 9E0D9609B1; Thu, 1 Jun 2017 09:44:03 +0000 (UTC) Received: from mail-wm0-f42.google.com (mail-wm0-f42.google.com [74.125.82.42]) by lists.linaro.org (Postfix) with ESMTPS id 923DE609A4 for ; Thu, 1 Jun 2017 09:44:01 +0000 (UTC) Received: by mail-wm0-f42.google.com with SMTP id n195so24321186wmg.1 for ; Thu, 01 Jun 2017 02:44:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=N6rx8nT60BADYI3UpXMVbtaDFLc5xFL/gRXHq0OYH2A=; b=Qjls2WplE6ymca+gStXA98b1p0c+OpmLYzH3quPbuKvCWifo4dFdWHhd/6jeTSm+0x 7mNMi3sO7WBijbDqAW0U9kp16oAbB2cJbBAVq8GZ/USZrOsPkBJbgFRAD8Gq9uJq80Um SOFkPopBKDVHPGIbYPwhesyJ2ocWqsPbSs9ctSyyXJhX/+K4N6Qz98D5/JezX73DwTxP 9iLYab7Id3C8wy3g8zKdC5L9UP3OfaTkaQCTWr0vbcCnm4zQQ3MVkdFFOLmoji7HgHqC CDeMGxpsSWiF6k7UUu/SvPy22E5oxBXNZwfHV+Z+0FmIzot7jj9yS3x6NHjYhdqaX8Mq ZjjA== X-Gm-Message-State: AODbwcBF1A6OpyZA7k+n9bDjrMvbwIixGBRS6GLwp81Bk4/G4xei6hxu r2E+nNSP3E5R/GUd/7JS46UC X-Received: by 10.28.142.135 with SMTP id q129mr198722wmd.0.1496310240365; Thu, 01 Jun 2017 02:44:00 -0700 (PDT) Received: from localhost.localdomain ([196.71.200.86]) by smtp.gmail.com with ESMTPSA id 64sm23257679wmn.20.2017.06.01.02.43.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 01 Jun 2017 02:43:59 -0700 (PDT) From: Ard Biesheuvel To: linaro-uefi@lists.linaro.org Date: Thu, 1 Jun 2017 09:43:47 +0000 Message-Id: <20170601094353.16235-1-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.9.3 Subject: [Linaro-uefi] [PATCH 0/6] OpenPlatformPkg/AMD updates X-BeenThere: linaro-uefi@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "For discussions about Linaro-related UEFI development. Not a substitute for edk2-devel." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: linaro-uefi-bounces@lists.linaro.org Sender: "Linaro-uefi" This is what I have queued up for AMD Overdrive over the past couple of months. Some fixes and some features that would be good to get merged. Note that this only contains the SMMU support for the OS, not for UEFI itself. Most notably, there is now a dynamic PCD + UEFI var that needs to be set for the DT SMMU nodes and the ACPI IORT table to appear. Ard Biesheuvel (6): Platforms/AMD/Styx: remove unused PCD 'PcdStyxFdt' Platforms/AMD/Overdrive: add dynamic PCD to control SMMU availibility Platforms/AMD/Styx: enable SMMUs in the ACPI IORT table Platforms/AMD/Styx: enable SMMUs in the device tree Platforms/AMD/Overdrive: fix GIC MMIO region sizes Platforms/AMD/Styx: align UEFI PCI bus range with DT/ACPI descriptions Platforms/AMD/Styx/AcpiTables/AcpiTables.inf | 1 + Platforms/AMD/Styx/AcpiTables/Iort.c | 375 ++++++++++++++++++++ Platforms/AMD/Styx/AmdStyx.dec | 10 +- Platforms/AMD/Styx/Common/AmdStyxAcpiLib.h | 1 + Platforms/AMD/Styx/Drivers/AcpiPlatformDxe/AcpiPlatform.c | 6 +- Platforms/AMD/Styx/Drivers/AcpiPlatformDxe/AcpiPlatformDxe.inf | 6 +- Platforms/AMD/Styx/Library/StyxDtbLoaderLib/StyxDtbLoaderLib.c | 51 +++ Platforms/AMD/Styx/Library/StyxDtbLoaderLib/StyxDtbLoaderLib.inf | 3 +- Platforms/AMD/Styx/OverdriveBoard/FdtBlob/styx-overdrive.dtb | Bin 8293 -> 9357 bytes Platforms/AMD/Styx/OverdriveBoard/FdtBlob/styx-overdrive.dts | 76 +++- Platforms/AMD/Styx/OverdriveBoard/OverdriveBoard.dsc | 6 +- 11 files changed, 523 insertions(+), 12 deletions(-) create mode 100644 Platforms/AMD/Styx/AcpiTables/Iort.c