Message ID | 20171012094448.31217-2-Zhiqiang.Hou@nxp.com (mailing list archive) |
---|---|
State | New, archived |
Delegated to: | Bjorn Helgaas |
Headers | show
Return-Path: <linux-pci-owner@kernel.org> 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 5615560325 for <patchwork-linux-pci@patchwork.kernel.org>; Thu, 12 Oct 2017 10:03:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 496C928D5B for <patchwork-linux-pci@patchwork.kernel.org>; Thu, 12 Oct 2017 10:03:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3DA2028D4F; Thu, 12 Oct 2017 10:03:24 +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,RCVD_IN_DNSWL_HI autolearn=unavailable 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 D87FD28D4F for <patchwork-linux-pci@patchwork.kernel.org>; Thu, 12 Oct 2017 10:03:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752454AbdJLKCo (ORCPT <rfc822;patchwork-linux-pci@patchwork.kernel.org>); Thu, 12 Oct 2017 06:02:44 -0400 Received: from mail-dm3nam03on0072.outbound.protection.outlook.com ([104.47.41.72]:27853 "EHLO NAM03-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751140AbdJLKCk (ORCPT <rfc822;linux-pci@vger.kernel.org>); Thu, 12 Oct 2017 06:02:40 -0400 Received: from CY4PR03CA0080.namprd03.prod.outlook.com (10.171.242.149) by DM5PR03MB2699.namprd03.prod.outlook.com (10.168.197.137) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.77.7; Thu, 12 Oct 2017 10:02:39 +0000 Received: from BY2FFO11FD042.protection.gbl (2a01:111:f400:7c0c::172) by CY4PR03CA0080.outlook.office365.com (2603:10b6:910:4d::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.77.21 via Frontend Transport; Thu, 12 Oct 2017 10:02:39 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; nxp.com; dkim=none (message not signed) header.d=none;nxp.com; dmarc=fail action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BY2FFO11FD042.mail.protection.outlook.com (10.1.14.227) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.77.10 via Frontend Transport; Thu, 12 Oct 2017 10:02:38 +0000 Received: from titan.ap.freescale.net ([10.192.208.233]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id v9CA2VVK001998; Thu, 12 Oct 2017 03:02:35 -0700 From: Zhiqiang Hou <Zhiqiang.Hou@nxp.com> To: <linux-kernel@vger.kernel.org>, <linux-arm-kernel@lists.infradead.org>, <linux-pci@vger.kernel.org>, <bhelgaas@google.com>, <roy.zang@nxp.com>, <mingkai.hu@nxp.com>, <minghuan.lian@nxp.com> CC: Hou Zhiqiang <Zhiqiang.Hou@nxp.com> Subject: [PATCHv2 1/2] PCI: Disable MSI for Freescale PCIe RC mode Date: Thu, 12 Oct 2017 17:44:47 +0800 Message-ID: <20171012094448.31217-2-Zhiqiang.Hou@nxp.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20171012094448.31217-1-Zhiqiang.Hou@nxp.com> References: <20171012094448.31217-1-Zhiqiang.Hou@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131522761586398300; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(7966004)(336005)(39380400002)(376002)(346002)(39860400002)(2980300002)(1109001)(1110001)(339900001)(189002)(199003)(6666003)(50986999)(189998001)(106466001)(76176999)(36756003)(316002)(68736007)(16586007)(50466002)(498600001)(110136005)(305945005)(48376002)(105606002)(104016004)(356003)(2950100002)(72206003)(5003940100001)(53936002)(47776003)(1076002)(6636002)(85426001)(2906002)(5660300001)(97736004)(77096006)(86362001)(50226002)(8936002)(8656003)(2201001)(81156014)(4326008)(575784001)(81166006)(8676002)(2101003); DIR:OUT; SFP:1101; SCL:1; SRVR:DM5PR03MB2699; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD042; 1:fy8HmfJcFU17OSydQqV5xjvuzq6qCAczx3APWGjlYc6zIDRkIsl5DGXfIBEVZjS7JNPC5v367HWYmbhXcZoTM2FTwzBXtN5D3OPQYudrAtFoAL/r+lzr7WmwTKAc8DHI MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: de4e7445-ae2f-4076-545c-08d511585eb3 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017052603199)(201703131430075)(201703131517081); SRVR:DM5PR03MB2699; X-Microsoft-Exchange-Diagnostics: 1; DM5PR03MB2699; 3:/2P56ADBgSa/Bto9mUxBg8onc0pLrn+LxcxGA3JapXlA/XATWRQ023fBnjZxuxeaQy81zz9IfZ4WTBiQKDDb5Q7OaXrIcYntiulY9DNd751/KSP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4Nxxopb9VW/ajyRkIuZcoc5vRMFWa4I078CrN0yJSFPWQPAmt4R2hJrIqNM2XXDa7yRmDBaaFeSSyuItvRcSaSmg+SVhIQWfDVEhx8zPDgcgsefufHq2pxG2VtFL8bHsoNnw/4TlFkFjo3M= X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Microsoft-Antispam-PRVS: <DM5PR03MB26999622CE44B625E12E1C6B844B0@DM5PR03MB2699.namprd03.prod.outlook.com> X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6095135)(2401047)(8121501046)(5005006)(100000703101)(100105400095)(10201501046)(3002001)(93006095)(93001095)(6055026)(6096035)(201703131430075)(201703131441075)(201703131448075)(201703131433075)(201703161259150)(20161123565025)(20161123556025)(20161123561025)(20161123563025)(20161123559100)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:DM5PR03MB2699; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:DM5PR03MB2699; X-Forefront-PRVS: 04583CED1A X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM5PR03MB2699; 23:44TgVJOGBAuUesCqGVgCgwtGFFM6Ly8tp2vjgzwMg?= =?us-ascii?Q?mGzcdGIyvk7ITgJTqhhRZrdT8aKsCDA724fVWq2Mhqn1p3FxxsbTYd6gvCx4?= =?us-ascii?Q?1Fro25kMw+DO000TLBUUbq3SFakEi9v9Qw+7f6OqTqVkOMpQJFlIo7j2/HzV?= =?us-ascii?Q?GRre6Libl4duniEtjiD3Ici4s/ev5HzGfPgC52E0NbbGYA3m9TVA/f8Dmfb7?= =?us-ascii?Q?CT47ZjrTV3okAw3YwziHrMXBINXj5R2BrvJf33tsytVeu5d407q42yjTfmfg?= =?us-ascii?Q?k3PqCWjyS3xRqELLVzcy0Y2x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ii?Q?xl/SWKc+s0YhMqKHDuEWLZ3AqccZvoO9pgPzVyRKpDsGImtgeQ9dFUWeYGE7?= =?us-ascii?Q?QlAXHeRXQAC/5HkcSA=3D?= X-Microsoft-Exchange-Diagnostics: 1; DM5PR03MB2699; 6:cSa4Ak1YhSc7BpxQG133tpvhWRUodliwSsrnGUnV+GrCMObZDGZ4+jbN80GaoGeUejpAcZXr0gnvWkBBLr1MizlFYDVgfxoeBQAi80kRudGv303swS1Tzzk8bfQC7PBCnpEgm0wXo1xlaRKfNrSQ8PaSnsfZZF7zI58ez1lHqiMTQSN86PkiujNiZuRReNX4ACnrHG4ffqJoA1wn+sB/LiRmm71okZFAaMzLYgsfq6eIhqnS4q/RM6GBgG8DPnvSaGl9IRJz43Qk5KcUcFTMV0eLkak6iR4J/HxWEdgGsEXCryef3z8aZ7DEYFJjVScYBglu/v3W4iZxnEc0ptEhWw==; 5:60iYrTuMzsleGV948PVsZAQeO92YKt+CPfeDqr6sYAe5InSwy3gQ4J4x0KbZMR180xX2Ghmfw94Oohw2ekOLrzkw9BKvyRhDutbNx3ZjQhllYqJb4NLOaRNy0Z+h9kDMQvUYygCIIlvSzYmlV7cfWw==; 24:4k+XitRVEZe3PmIojjy5gcx2VlGjpcqrbxElTw+YbwO+IFff/SzvWavb0+zymGEwN8OgZYy2SzbaHY2MFf2vPHjdk05Bhlg8jQQAEs5qC0w=; 7:3dr2pkUvWWsUtmoM+AEpvM6DAZEg7+jSAEjYKd7mMUur5riWBROqj4wJ+mLhiu6WBnXaEhZwbVcFNxH/MANv1AK2LS2btJuVm6PBNQBxSEcTVARloUw8XxdpjHQGIUKIuPQCRmxRbQwUPZgMMjcchwe5+lwZwP+/93OBCk2cU2nI515WJ99otBmTHzjPSFFpessgI8nox4ZxAUx9l2H5olXkCyiS5dsquCtvnHe/8mo= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Oct 2017 10:02:38.4526 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR03MB2699 Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: <linux-pci.vger.kernel.org> X-Mailing-List: linux-pci@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c index a4d33619a7bb..c1063a420f0c 100644 --- a/drivers/pci/quirks.c +++ b/drivers/pci/quirks.c @@ -4799,3 +4799,11 @@ static void quirk_no_ats(struct pci_dev *pdev) /* AMD Stoney platform GPU */ DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_ATI, 0x98e4, quirk_no_ats); #endif /* CONFIG_PCI_ATS */ + +/* Freescale PCIe doesn't support MSI in RC mode */ +static void quirk_fsl_no_msi(struct pci_dev *pdev) +{ + if (pci_pcie_type(pdev) == PCI_EXP_TYPE_ROOT_PORT) + pdev->no_msi = 1; +} +DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_FREESCALE, PCI_ANY_ID, quirk_fsl_no_msi);