From patchwork Fri Nov 3 13:52:44 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Christian_K=C3=B6nig?= X-Patchwork-Id: 10040199 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 6AB1D6032D for ; Fri, 3 Nov 2017 13:52:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5B0872964C for ; Fri, 3 Nov 2017 13:52:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4FD2A2964E; Fri, 3 Nov 2017 13:52:54 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 0B2092964C for ; Fri, 3 Nov 2017 13:52:53 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 313606EA83; Fri, 3 Nov 2017 13:52:52 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr0-x244.google.com (mail-wr0-x244.google.com [IPv6:2a00:1450:400c:c0c::244]) by gabe.freedesktop.org (Postfix) with ESMTPS id 313D36EA78; Fri, 3 Nov 2017 13:52:50 +0000 (UTC) Received: by mail-wr0-x244.google.com with SMTP id k62so2568766wrc.9; Fri, 03 Nov 2017 06:52:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=0Re5xVh6sTuVvt6ZJ2L32nGGDrKZAC4FTu9/LPs1Hio=; b=D+NJPl95MeDVoDlmLgXMEwPgGNwTMd6wqtfY+HmhJ4nrnPjbgTQlUIGfF6jDJ5T53M +xbfiTAvyTFCdk3hfOTxObrguQ8LZ1s0jST7xmu5jlmCm9JqVIc54/JBVRZ5Yd8wtiiG MWWinQ0t/spEynA1snjQ8WInNHog1Xo0+6/oYsulw7LbTzA8rH3VX1Bn8FO+8A1aqrjP TQLFrESjcb9sMUoGfbyuOORYB6DGfKbhlqrVBhXQ8fkdX/suSHwQ8hyUL/2qwk//cTX5 m/l3IZ3H7ymdcNLhRPPIl8SdMtlNYmkU8rEBN1SUvBgENzJm1vH/pgjRS3bzHx+eo6Pj HxRA== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=0Re5xVh6sTuVvt6ZJ2L32nGGDrKZAC4FTu9/LPs1Hio=; b=p49U9/fxiJPpri30sSbzKm5kWVYG5pbNii7X3YKQ7xgggET+KaOLfKB3kwVsvqaAIy lG+5KYced1oNRpkTrzeZTtag9MnisijOWxQUGjt3LiI/tcvzn31f6V9B1xDC7o3zzsvx JchgkwGiRjplKHmR/nmtaCscLl4036gC4Yy9jrE+1IwOB3W1nvxAUfI9sWmRV45qZDYh R1vfj4Qh2mbjqw9KlWq4tdxhHidiabTV52kTuWLN9b8sOghf9MrvqaS4TMHQZ7q1AKSw yqFgTUt5l13AhuE/ldpU5WKQeP+1DsFbbb+DqTW0YAdIdTRwdUmUh4/fK1oOXRyUubZm y8WA== X-Gm-Message-State: AMCzsaUOU9XOJWt8c/vEgUetiR0yI2IHPK8BLynCLEQDQ1N6XEJXc2Kl INAaUwybhMDQvQdQJQruBFtEDw== X-Google-Smtp-Source: ABhQp+RNtEcuKRGYaesaIr//a3mRjE1vEN6DCJpOFsSd+5j3KMFXP80AHokMWKVPFIX2SiEC0HLVMA== X-Received: by 10.223.139.82 with SMTP id v18mr6394059wra.55.1509717169591; Fri, 03 Nov 2017 06:52:49 -0700 (PDT) Received: from localhost.localdomain ([2a02:908:1251:7981:44a4:4f3c:4c8:d3f0]) by smtp.gmail.com with ESMTPSA id z17sm4109562wrb.67.2017.11.03.06.52.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 03 Nov 2017 06:52:49 -0700 (PDT) From: "=?UTF-8?q?Christian=20K=C3=B6nig?=" X-Google-Original-From: =?UTF-8?q?Christian=20K=C3=B6nig?= To: linux-pci@vger.kernel.org, dri-devel@lists.freedesktop.org, platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, helgaas@kernel.org Subject: [PATCH 4/4] x86/PCI: Enable a 64bit BAR on AMD Family 15h (Models 70h-7fh) Processors Date: Fri, 3 Nov 2017 14:52:44 +0100 Message-Id: <1509717164-1946-4-git-send-email-christian.koenig@amd.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1509717164-1946-1-git-send-email-christian.koenig@amd.com> References: <1509717164-1946-1-git-send-email-christian.koenig@amd.com> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP Just add the extra PCI-ID to the existing fixup. Signed-off-by: Christian König --- arch/x86/pci/fixup.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/x86/pci/fixup.c b/arch/x86/pci/fixup.c index 3eebb0e..894d73d 100644 --- a/arch/x86/pci/fixup.c +++ b/arch/x86/pci/fixup.c @@ -639,7 +639,7 @@ DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, 0x8c10, quirk_apple_mbp_poweroff); * configuring host bridge windows using the _PRS and _SRS methods. * * But this is rarely implemented, so we manually enable a large 64bit BAR for - * PCIe device on AMD Family 15h (Models 00h-1fh, 30h-3fh, 60h-6fh) Processors + * PCIe device on AMD Family 15h (Models 00h-1fh, 30h-3fh, 60h-7fh) Processors * here. */ static void pci_amd_enable_64bit_bar(struct pci_dev *dev) @@ -699,6 +699,7 @@ static void pci_amd_enable_64bit_bar(struct pci_dev *dev) DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_AMD, 0x1401, pci_amd_enable_64bit_bar); DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_AMD, 0x141b, pci_amd_enable_64bit_bar); DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_AMD, 0x1571, pci_amd_enable_64bit_bar); +DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_AMD, 0x15b1, pci_amd_enable_64bit_bar); DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_AMD, 0x1601, pci_amd_enable_64bit_bar); #endif