From patchwork Fri Jan 13 17:34:16 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 91477 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp299779qgi; Fri, 13 Jan 2017 09:34:31 -0800 (PST) X-Received: by 10.36.110.145 with SMTP id w139mr3862802itc.68.1484328871812; Fri, 13 Jan 2017 09:34:31 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id n6si2174397itb.10.2017.01.13.09.34.31; Fri, 13 Jan 2017 09:34:31 -0800 (PST) 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 EC04D60CDF; Fri, 13 Jan 2017 17:34:30 +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 E7E3C60A7E; Fri, 13 Jan 2017 17:34:26 +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 E8B2B60AE3; Fri, 13 Jan 2017 17:34:25 +0000 (UTC) Received: from mail-wm0-f47.google.com (mail-wm0-f47.google.com [74.125.82.47]) by lists.linaro.org (Postfix) with ESMTPS id 46EA960851 for ; Fri, 13 Jan 2017 17:34:24 +0000 (UTC) Received: by mail-wm0-f47.google.com with SMTP id r126so74853439wmr.0 for ; Fri, 13 Jan 2017 09:34:24 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=0gzRo5SMpaCXEVCl/D9CGj0xKigUg5IJ6DIRtWZFY0k=; b=ZE7Yg5xKpTWDpU0M4JIne2PhpxkEyhi9zPYvxphrlKBVVmScI91VYlgTZqy5bufteG 9PmuU7GfAQIpTvf5pQQG+SQj1jHgaCSvdjkUkP/hkbmlHGKzEroZavVspxTpKx8e8WcG Vs0a4c3Zj9Hw/ZWaX/CfON/FkZ8eVZRfz5jCCpYVpfqPc/l3K7bxvXfMGaVg37GSfP9d LS9Tpv97n1nmTxX3JM2aFYGnNPo6LoOVL4KbJxUhWU2YDS9MivF263YT1NtXsOZyEkDH hrNeOM2hKMj+402Z6Oe3AisGdrIn2jXrKJukGK3/tqnZ4FxuuqVTCb67aiCPzDilpaeH pmlQ== X-Gm-Message-State: AIkVDXJv/iDjU1oSlcxPBjqQW1Sw8YHK+4qJiV0NwY2XQgKSr++8dxAY7KYwtlut8iKMF79bJXA= X-Received: by 10.28.4.216 with SMTP id 207mr3052593wme.45.1484328863262; Fri, 13 Jan 2017 09:34:23 -0800 (PST) Received: from localhost.localdomain ([160.167.203.25]) by smtp.gmail.com with ESMTPSA id l6sm5676902wmd.5.2017.01.13.09.34.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 13 Jan 2017 09:34:22 -0800 (PST) From: Ard Biesheuvel To: linaro-uefi@lists.linaro.org Date: Fri, 13 Jan 2017 17:34:16 +0000 Message-Id: <1484328856-21250-1-git-send-email-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.7.4 Subject: [Linaro-uefi] [PATCH] Platforms/AMD/Styx: reserve ECAM config space in PNP0C02 device X-BeenThere: linaro-uefi@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: 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" Linux for arm64 v4.10 and later will complain if the ECAM config space is not reserved in the ACPI namespace: acpi PNP0A08:00: [Firmware Bug]: ECAM area [mem 0x3f000000-0x3fffffff] not reserved in ACPI namespace The rationale is that OSes that don't consume the MCFG table should still be able to infer that the PCI config space MMIO region is occupied. So update the ACPI tables to add this reservation. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel Reviewed-by: Graeme Gregory Reviewed-by: Leif Lindholm --- Platforms/AMD/Styx/AcpiTables/Dsdt.asl | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Platforms/AMD/Styx/AcpiTables/Dsdt.asl b/Platforms/AMD/Styx/AcpiTables/Dsdt.asl index 7edec3d1ec28..3bfa26acea07 100644 --- a/Platforms/AMD/Styx/AcpiTables/Dsdt.asl +++ b/Platforms/AMD/Styx/AcpiTables/Dsdt.asl @@ -646,6 +646,14 @@ DefinitionBlock ("DSDT.aml", "DSDT", 2, "AMDINC", "SEATTLE ", 3) Return (RBUF) /* \_SB_.PCI0._CRS.RBUF */ } // Method(_CRS) + Device (RES0) + { + Name (_HID, "PNP0C02") + Name (_CRS, ResourceTemplate () + { + Memory32Fixed (ReadWrite, 0xF0000000, 0x8000000) + }) + } Name (SUPP, 0x00) Name (CTRL, 0x00) Method (_OSC, 4, NotSerialized) // _OSC: Operating System Capabilities