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: 9651465 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 5AFEF602C8 for ; Wed, 29 Mar 2017 12:17:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4A68327C0B for ; Wed, 29 Mar 2017 12:17:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3F14E28354; Wed, 29 Mar 2017 12:17:27 +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=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id E11CE27C0B for ; Wed, 29 Mar 2017 12:17:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=wWI098pHvrm8D5thg6BsqblbO+cEx5ghCOIpL+5mBwI=; b=gga +lw1J29kb8fGwPOpIRIiCya3uEuCP90lmRJhCTb4vO2ByCF7w619EH2mD67f2JE6RV5PvfFs1GEUR SFNTAZKhSQpmVdqtIEX4oW/RX70gQIOMn6RgnhSRT6mJvp08FPXcMXDV4/B4F4kD91WoOcgZh4U9B TcmU9yGV5ZrxqUNw0nglBN+a6JntaG9CKj0yUI4rgdjEeQR7RKuiK+E8N7GjDFgJ17zmLU+MGkVXc RwIHRTiBXo022n0kIEIKiMmP3Zl3c5SdSRaGKfUGYaAQbJ7udBYz35/txxxTptfhjAI+SiA0zZrDn CKWtC498oPvsxQvPliMPxINW639+DIg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1ctCXW-0006Mf-3P; Wed, 29 Mar 2017 12:17:26 +0000 Received: from mail-lf0-x229.google.com ([2a00:1450:4010:c07::229]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1ctCXS-0006KZ-Sr for linux-arm-kernel@lists.infradead.org; Wed, 29 Mar 2017 12:17:24 +0000 Received: by mail-lf0-x229.google.com with SMTP id h125so6850746lfe.0 for ; Wed, 29 Mar 2017 05:17:02 -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=g+cv9JhT/ZLWb9Llw2X7l7ZEvzh35kz6AgQi7iP0oAs5M2YhvMSiFRUxMWqrVtWtxi zgxSZGHAKIu5pE2grsH+UP11+l0udbRRsZMs7cDhiOC3ZMecp07B25Qc/Sl4W+mKdd64 wrDaDhqYfohc8fyTa560GW69+1ssgSkJkDIwMcqVnNtqpEsJQCm45hvGpp+DBzOFeYcB fmB5XuCYqtrqcBfvFpyH/GSMNqWD0QmKC5KF9cA6v6ylaORND0CF6dh5dNZOXhLAYsH1 OeQpp5ML97NGHIO0msG3S56vsMpCj05WJQ3EiZeMkwV5qV4F+PdhDLUt8DsGLwQcT4sJ DAfQ== X-Gm-Message-State: AFeK/H1iJ0fR5im9KfdI53BGJO47M4JYpLjBYLd0AxG42PQortSAgsuk9oC8JE6ndA3Flw== 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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170329_051723_169426_5C57755C X-CRM114-Status: UNSURE ( 9.84 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Sunil.Goutham@cavium.com, linux-pci@vger.kernel.org, geethasowjanya.akula@gmail.com, linux-acpi@vger.kernel.org, linu.cherian@cavium.com, Tomasz Nowicki , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.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 */