From patchwork Mon Jan 30 16:25:52 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vadim Lomovtsev X-Patchwork-Id: 9545683 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 A671E604CC for ; Mon, 30 Jan 2017 16:26:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9CA8A2022B for ; Mon, 30 Jan 2017 16:26:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 915C826E81; Mon, 30 Jan 2017 16:26:35 +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.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID 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 D3F73209CD for ; Mon, 30 Jan 2017 16:26:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932483AbdA3Q0T (ORCPT ); Mon, 30 Jan 2017 11:26:19 -0500 Received: from mail-co1nam03on0066.outbound.protection.outlook.com ([104.47.40.66]:34485 "EHLO NAM03-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932474AbdA3Q0O (ORCPT ); Mon, 30 Jan 2017 11:26:14 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-caviumnetworks-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=FLhziT0xzvQxmF/1tZxcSkZiXXmIGQIaUKhTLMqHg5A=; b=C373Ow6sFWx2GxFs3GpzXRCNXnKJYkEVWKj/kQAVRSwl2C3rr5a7cnCIGqlxO7hHr6NialU3fjGCgdzDne+2x6ai0q8FmFzrHJOIjRQTbNLe4AUzDY0ikhhJwrKAV/SHAmHrsoBmzqPV5tDmRxpvW3YjAX8q5SjXW3vGKqpZ14k= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Vadim.Lomovtsev@caviumnetworks.com; Received: from localhost.localdomain.localdomain (50.233.148.156) by CO2PR07MB2646.namprd07.prod.outlook.com (10.166.213.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.860.13; Mon, 30 Jan 2017 16:26:11 +0000 From: Vadim Lomovtsev To: , , , , , , , Subject: [PATCH] PCI: ACPI: Fix ThunderX PEM initialization Date: Mon, 30 Jan 2017 08:25:52 -0800 Message-ID: <1485793552-12614-1-git-send-email-Vadim.Lomovtsev@caviumnetworks.com> X-Mailer: git-send-email 2.4.11 MIME-Version: 1.0 X-Originating-IP: [50.233.148.156] X-ClientProxiedBy: BY2PR16CA0007.namprd16.prod.outlook.com (10.164.126.145) To CO2PR07MB2646.namprd07.prod.outlook.com (10.166.213.145) X-MS-Office365-Filtering-Correlation-Id: c002edfe-0e91-4d41-ac63-08d4492cb466 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:CO2PR07MB2646; X-Microsoft-Exchange-Diagnostics: 1; CO2PR07MB2646; 3:dSd82YzQfQj380ydTKFTp1g/ZdO0I8XQZvA4qL+a0kZE47cp6i/WKB0Ly0lYz6583s6IfFf2aa+IIEbDoaNFaDckprNWdZyh/WcmV5E68aaKZUI6YeVSGWXIT2eJVDy+y4zgRr9UDBoh+UIZYSnnmryw8t/97JayZ4Knqr2vIq5u6j2nrHxawh5VEbPaOeUz32xjVtuiifu51SvvqV3oDiiYozWS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bRn3svGO2XTtB15gjyoTTGreV0xyVb733/bFJTByI87t+/NhzAL/iYyGeqk2kUaQWhqxOyp5lh2kGrodw0Von3rkTq8L+7rDxQ0jjyEtv12OTUWjpe0KbFz8veFjNJTdna++vqmDgFpqEBsVSRKhEwHYSgPFGI3qkhp+ghaKovrr7+tRueKXkIYFI7kddKqYdh0Rxnr0KHybNYcg1GamAOLplDjyN6FLkUD/ePxUes2SPunPYJODTmcRouLFvGKMeaT+M4NnvQ/cE3ziTEV3DIqwxIOmwTwuIBLng4By5MkBlz94Lp0dSG6GU1ddHEUb0/kWufgkkD72M7KeKdpU/uyI+fgTn6PcamknosDTTPInE98w8yw4MECw= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046)(6041248)(20161123564025)(20161123562025)(20161123555025)(20161123560025)(6072148); SRVR:CO2PR07MB2646; BCL:0; PCL:0; RULEID:; SRVR:CO2PR07MB2646; X-Microsoft-Exchange-Diagnostics: 1; CO2PR07MB2646; 4:9+26Xb5ToiFGRGoZwtET4TgfHthxTG7IiGmbY7SB3ISG5bSVhgyjh9bMaZRYNSczjTxDXU3L2TEAp/BOFIQE8UDnLxpTdYewUxxFBce90zuZiLQxcr0YSf6AKkhQtDYu9GYZHImDmbQK9kDCvUSGDO+eAkbgN/FzTcKHsP+NH4BAfQlVc8oK2+egKMdLVCshlWOwiJ0hyeJyS05qzQgqnpSsTzTHjFHF3CLEeliNwoOQvhz7E2hMYBpUnO171uPOy+LoXxTfB9AFuxHon6EBnXXAfV+993kZo9SC7QSU+DpT6b2QbwQeYfDfAeKTqmTFxGcGwTLpa2d01+KHZFffwJMMpGzKCkXZQt6OFeJOMD55VOeieH4F8VqI7xMw+jr46tkNtahEJl0iaooA7/rel4P6Y0NDHM2j9uwchpUEOz4fpDeKHEQG5Sup1fyH4/CPEkFGJhw7JBpCBQR4AcZtholJHVBxq6vcxr5xaRk+QjhctwSroXlbIv0dbE5Fp+4t+eXZw9IBTWPGspV5+g3El5b063arjVQNkOx7NmASEdMdoLA+Cz6UB4HDdpVr2eAecC6evBbSs76RPt3IMjiCjg== X-Forefront-PRVS: 0203C93D51 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(6069001)(7916002)(39450400003)(199003)(189002)(8676002)(25786008)(42186005)(5003940100001)(5660300001)(6862003)(50226002)(6486002)(6512007)(106356001)(81166006)(105586002)(81156014)(6506006)(189998001)(305945005)(107886002)(6666003)(36756003)(68736007)(2201001)(47776003)(7736002)(48376002)(5001770100001)(97736004)(50466002)(2906002)(53936002)(66066001)(3846002)(92566002)(6116002)(86362001)(575784001)(101416001)(38730400001)(50986999)(2101003); DIR:OUT; SFP:1101; SCL:1; SRVR:CO2PR07MB2646; H:localhost.localdomain.localdomain; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: caviumnetworks.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CO2PR07MB2646; 23:aspuact8cj1RE0vs3CuHQAVJzXAeyqE0MzOYSHhrX?= =?us-ascii?Q?npbhiTlg+sAwcX6Bev4WiIipZ62OI+ALceeil+CauuoXB9NdH9Odbu3JmIdl?= =?us-ascii?Q?eD84fB/K6cM4g3apcEnxQctF0jSumVVoz3MCfTCzHWcIfIDqMrm0cWKt/RTp?= =?us-ascii?Q?SBRcGduE04tZgpll80LCeKPm7aDuWIqP2pcgZ43G5Krvi4iM7eq4r+45AY8k?= =?us-ascii?Q?cZtOz00sg5fLmS11hMSDGkP6qZhLpV8J5DvwNVLkyCrF1gu28JgWEsVsRDru?= =?us-ascii?Q?8OZ0RWFTSSKRh/M3lw9NuD6aavSK42nVhv1+KOH3FzVxPcyVzHBRNra0iqls?= =?us-ascii?Q?rkXd3VQV4ksOdhoHvLixJhAzoKQoENw9Suk5t+odSv7XCvZYtDAX2AWuHw2u?= =?us-ascii?Q?q6p+bnRc0zoPvDSEFWptOQhxaf3YEUMvF812J028DSH6OSpa6D5o71F4obLS?= =?us-ascii?Q?5YlM/lT27nLMOHF+xGqP2El1eG9ihcTavg7NFjxw8ma3P5HmVqtosmGSM1I/?= =?us-ascii?Q?BTqMVh0K0LQy+KGNtIIm7LdaNjWI3QasQn4DauTkG128bm9zKDstDd12w4Ka?= =?us-ascii?Q?j0Mt6wZwUxIyqGBq33+hXSfREaR/7Uc1RqO6MGfXavWYLb9pvj0mj6xk6KkQ?= =?us-ascii?Q?Z/BxotQCPsdsOxSurD0sB8SHrQT5ewbW8GYMU/rzf7Wg50tgKtQLUq/Eqcmv?= =?us-ascii?Q?AlUoCEfDAyL2GJHUhmGPJJ3694FBCG3JhRVMhjx1gfKJ6Ry7IxmIfA+SNvyx?= =?us-ascii?Q?V6S3DmB4nNSzlbkThtce/AK+bjnT6W7Hx1h81lSpYLwB/UM/DL07lK9OPhtm?= =?us-ascii?Q?8VFL6r+wCKjf+kjRBPeUvKdwZBlFhuysQZV73X18NtKkm/LvVDAMLBKuMWe5?= =?us-ascii?Q?jviU9iQEioMYDQiTBfI8puUiibYe2F4w2m7HR4XbnAZgjK30czmMtVoIxtsU?= =?us-ascii?Q?gjQrug8CMkbsgTFrErAICARknwH5d1EPaJIcGezNOuadG7keucDvF1DEs7zy?= =?us-ascii?Q?iJ0MehLztWvSljt6d881CInjiNEDq317Lk/Bz7uyunkvU1aOIriDw0gVZNYH?= =?us-ascii?Q?FFTh8HIl065sP0gTsa2TpbuJM4IXh1OPjfE/fIujXnUFcAiD/wEG1RRDj+y+?= =?us-ascii?Q?FpWgytFTKk=3D?= X-Microsoft-Exchange-Diagnostics: 1; CO2PR07MB2646; 6:Z48PX43exTkvhzqmUSkPja4EHLPWJGSLtLRtaeE6ePmmVwQjh4iZ+EtVmh6MT8IrdUHF9cZJ5+d2xgra5q11dBX7AV8dxUXp303sRQcrZv0oA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rD92ia2p1IAZgqqZwaAjiUtl/+4x3vnRF7fe3UxSKRJVIAp6vCQ== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Jan 2017 16:26:11.7536 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO2PR07MB2646 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 This patch is to address PEM initialization issue which causes network issues. It is necessary to search for _HID:PNP0A08 while requesting PEM resources via ACPI instead of "THRX0002". Signed-off-by: Vadim Lomovtsev Acked-by: David Daney --- drivers/pci/host/pci-thunder-pem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pci/host/pci-thunder-pem.c b/drivers/pci/host/pci-thunder-pem.c index af722eb..aec30b8 100644 --- a/drivers/pci/host/pci-thunder-pem.c +++ b/drivers/pci/host/pci-thunder-pem.c @@ -331,7 +331,7 @@ static int thunder_pem_acpi_init(struct pci_config_window *cfg) if (!res_pem) return -ENOMEM; - ret = acpi_get_rc_resources(dev, "THRX0002", root->segment, res_pem); + ret = acpi_get_rc_resources(dev, "PNP0A08", root->segment, res_pem); if (ret) { dev_err(dev, "can't get rc base address\n"); return ret;