From patchwork Mon Sep 19 17:16:35 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 76565 Delivered-To: patch@linaro.org Received: by 10.140.106.72 with SMTP id d66csp1070866qgf; Mon, 19 Sep 2016 10:16:49 -0700 (PDT) X-Received: by 10.36.135.66 with SMTP id f63mr4259386ite.50.1474305409049; Mon, 19 Sep 2016 10:16:49 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id 3si27083439ity.43.2016.09.19.10.16.48; Mon, 19 Sep 2016 10:16:48 -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 dis=NONE) header.from=linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 3F54460E90; Mon, 19 Sep 2016 17:16:48 +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=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL 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 A0F3360E32; Mon, 19 Sep 2016 17:16:45 +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 8600560E02; Mon, 19 Sep 2016 17:16:43 +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 ACAC360DD9 for ; Mon, 19 Sep 2016 17:16:42 +0000 (UTC) Received: by mail-wm0-f47.google.com with SMTP id l132so162870843wmf.0 for ; Mon, 19 Sep 2016 10:16:42 -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=9hvuX1dS1tO98V8sHyMOzR0hL5IUdPXdUfoIJhF+gsY=; b=Bw+57eF4v8ADj6Rog9NoXBUd7EFdTck7+8LHI29UGJTGB0aC1HpyOQPrwcmP2NZdBQ IIFzYvJOO48d7gql/m/mV0d3wipA5SroQIOVy5JaBL9VMxAgMwCayiS8VC5wy8idT+9u 7sx7QZoFRYGkT0lox6JZxR9EeYcHa5JpTimVeX87XiJmFr8zw7Ooj1g7wSnD3OlICT4m r8DwomJi5tPOxA9ugrU/v4Zjb7oOoYW68oztel13cHxAQGTB2obqWg2JVmfy95NUrCfH /cYVyYyhgWA+E0Fooulh9OAaEAV7dCIh5UIVI5W4CFyy6kZB/FnqUwHIfV4lecN6nXPk AvZA== X-Gm-Message-State: AE9vXwMAwJfXkhlbd4816BD8ve1nbhAp6DiN/c6VIVFa2RehiyHY+MXGu7R5bywSPp+ob73tQcU= X-Received: by 10.194.83.69 with SMTP id o5mr28440227wjy.192.1474305401800; Mon, 19 Sep 2016 10:16:41 -0700 (PDT) Received: from localhost.localdomain ([160.171.69.147]) by smtp.gmail.com with ESMTPSA id m5sm25445980wmd.1.2016.09.19.10.16.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 19 Sep 2016 10:16:41 -0700 (PDT) From: Ard Biesheuvel To: linaro-uefi@lists.linaro.org Date: Mon, 19 Sep 2016 18:16:35 +0100 Message-Id: <1474305396-18809-1-git-send-email-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.7.4 Subject: [Linaro-uefi] [PATCH v2 1/2] Platforms/AMD/Styx: correct PCIe bus and I/O ranges in DSDT 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" Change the PCIe bus range in the DSDT from [0x0 .. 0xf] to [0x00 .. 0x7f], which aligns it with the DT descripton. Also fix the I/O window: its range should be listed without taking the translation into account. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel Acked-by: Graeme Gregory --- v2: add TypeTranslation property as well, as per the ACPI spec Platforms/AMD/Styx/AcpiTables/Dsdt.asl | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/Platforms/AMD/Styx/AcpiTables/Dsdt.asl b/Platforms/AMD/Styx/AcpiTables/Dsdt.asl index 1f0a96fb83ee..554cb8738529 100644 --- a/Platforms/AMD/Styx/AcpiTables/Dsdt.asl +++ b/Platforms/AMD/Styx/AcpiTables/Dsdt.asl @@ -554,9 +554,9 @@ DefinitionBlock ("DSDT.aml", "DSDT", 2, "AMDINC", "SEATTLE ", 3) WordBusNumber (ResourceProducer, MinFixed, MaxFixed, PosDecode, 0x0000, // Granularity 0x0000, // Range Minimum - 0x000F, // Range Maximum + 0x007F, // Range Maximum 0x0000, // Translation Offset - 0x0010, // Length + 0x0080, // Length ) DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, NonCacheable, ReadWrite, 0x00000000, // Granularity @@ -637,10 +637,14 @@ DefinitionBlock ("DSDT.aml", "DSDT", 2, "AMDINC", "SEATTLE ", 3) ) DWordIo (ResourceProducer, MinFixed, MaxFixed, PosDecode, EntireRange, 0x00000000, // Granularity - 0xEFFF0000, // Range Minimum - 0xEFFFFFFF, // Range Maximum + 0x00000000, // Range Minimum + 0x0000FFFF, // Range Maximum 0xEFFF0000, // Translation Address - 0x00010000 // Length + 0x00010000, // Length + , + , + , + TypeTranslation ) }) Return (RBUF) /* \_SB_.PCI0._CRS.RBUF */