From patchwork Wed Mar 29 12:16:13 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomasz Nowicki X-Patchwork-Id: 9651455 X-Patchwork-Delegate: bhelgaas@google.com 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 61225602C8 for ; Wed, 29 Mar 2017 12:17:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5142B28304 for ; Wed, 29 Mar 2017 12:17:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4620228469; Wed, 29 Mar 2017 12:17:05 +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=-6.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E58BD28304 for ; Wed, 29 Mar 2017 12:17:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932074AbdC2MRE (ORCPT ); Wed, 29 Mar 2017 08:17:04 -0400 Received: from mail-lf0-f49.google.com ([209.85.215.49]:34666 "EHLO mail-lf0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755803AbdC2MRC (ORCPT ); Wed, 29 Mar 2017 08:17:02 -0400 Received: by mail-lf0-f49.google.com with SMTP id z15so6849897lfd.1 for ; Wed, 29 Mar 2017 05:17:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=gFBfP26CS7U0qWAABG6Sl3nK5zNLdL0Gau/wrnbSXvE=; b=vEDJPQ10njAT2bpVajK20+tDjA0slZAC5oFqmYzl/wb+m5oFT+h802fpwvwCp1G+3D HGkWsqKOLNtTKsZxgcBZ4FvO1InXHkqIojEIztw0JxjpeIVWUmvbh36VYteiu3qe3j1s cM/b6fDbbxB61SnWGRUfFGAtFEV/btIYYR+DWeqPexhBCCen8R014LF5YZUmrPCqqm5i w2rXU4xim/XXb9wU9p85L3xPd8XZPP2L0yFWZDN0UoF03j2n5aiS2dY/HJyfh1wWYhc7 6+MZ0IdxinqlVie1WhEuMhp+viEvX52xm5ftY2JYNGSOQRvioQtLaODcGJa9tbR6pbIs +tzA== 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=gFBfP26CS7U0qWAABG6Sl3nK5zNLdL0Gau/wrnbSXvE=; b=pujzHAA2JEu1XGxuvPKQ3iafGkNmzl7AeC8aYwh4JCpfp3e8aFiTB6x9Xlx92m2Tbk Omue8E1Esv7mxYjUpbqz22RB87Jd3POJ081IA+WB3YzBK6ypEqpp7si2+6ozNUxkzS1g H/HqWU4iBL9qKPgZC22To9HmfINT52TES+3RVjVWaaSTq5I2yoaLtY++lWkfUT0FMlfa Ai4kNIFs9GewGj/fJkeULqsRijVPwIPWIhwOYViFTtthLtpzMcJvci3o0uR+Ozsitjib G/MGk5e+ZYEOQ5/z11bsCgdChjmxNQ3SgpyQaxThzliHq7mAwpe7+GDO4a2HPcwZH/bC d3Rg== X-Gm-Message-State: AFeK/H3nylTc9LkaVgleNxewD/FRp90ky9sYCaEBXK7pqExuA/pl0UoQW7rXAsmsByscEA== X-Received: by 10.25.79.15 with SMTP id d15mr60498lfb.14.1490789820544; Wed, 29 Mar 2017 05:17:00 -0700 (PDT) Received: from tn-desktop.semihalf.local (31-172-191-173.noc.fibertech.net.pl. [31.172.191.173]) by smtp.gmail.com with ESMTPSA id c1sm1259486lfc.55.2017.03.29.05.16.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 29 Mar 2017 05:16:59 -0700 (PDT) From: Tomasz Nowicki To: helgaas@kernel.org, Lorenzo.Pieralisi@arm.com, robert.richter@caviumnetworks.com, ddaney@caviumnetworks.com, Vadim.Lomovtsev@caviumnetworks.com, rafael@kernel.org Cc: Sunil.Goutham@cavium.com, geethasowjanya.akula@gmail.com, linu.cherian@cavium.com, linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-acpi@vger.kernel.org, Tomasz Nowicki Subject: [PATCH 1/1] PCI: Add MCFG quirk for 2nd node of Cavium ThunderX pass2.x host controller Date: Wed, 29 Mar 2017 14:16:13 +0200 Message-Id: <1490789773-21506-1-git-send-email-tn@semihalf.com> X-Mailer: git-send-email 2.7.4 Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Currently SoCs pass2.x do not emulate EA headers for ACPI boot method at all. However, for pass2.x some devices (like EDAC) advertise incorrect base addresses in their BARs which results in driver probe failure during resource request. Since all problematic blocks are on 2nd NUMA node under domain 10 add necessary quirk entry to obtain BAR addresses correction using EA header emulation. Fixes: 44f22bd91e88 ("PCI: Add MCFG quirks for Cavium ThunderX pass2.x host controller") Signed-off-by: Tomasz Nowicki CC: stable@vger.kernel.org # v4.10+ Acked-by: Robert Richter --- drivers/acpi/pci_mcfg.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/acpi/pci_mcfg.c b/drivers/acpi/pci_mcfg.c index a6a4cea..a0a391e 100644 --- a/drivers/acpi/pci_mcfg.c +++ b/drivers/acpi/pci_mcfg.c @@ -90,13 +90,14 @@ static struct mcfg_fixup mcfg_quirks[] = { &thunder_pem_ecam_ops, THUNDER_PEM_RES(0x894057000000UL, node) }, \ { "CAVIUM", "THUNDERX", rev, 9 + (10 * (node)), MCFG_BUS_ANY, \ &thunder_pem_ecam_ops, THUNDER_PEM_RES(0x89808f000000UL, node) } +#define THUNDER_ECAM_QUIRK(rev, seg) \ + { "CAVIUM", "THUNDERX", rev, seg, MCFG_BUS_ANY, \ + &pci_thunder_ecam_ops } /* SoC pass2.x */ THUNDER_PEM_QUIRK(1, 0), THUNDER_PEM_QUIRK(1, 1), + THUNDER_ECAM_QUIRK(1, 10), -#define THUNDER_ECAM_QUIRK(rev, seg) \ - { "CAVIUM", "THUNDERX", rev, seg, MCFG_BUS_ANY, \ - &pci_thunder_ecam_ops } /* SoC pass1.x */ THUNDER_PEM_QUIRK(2, 0), /* off-chip devices */ THUNDER_PEM_QUIRK(2, 1), /* off-chip devices */