Message ID | 20170307003549.3872-3-bart.vanassche@sandisk.com (mailing list archive) |
---|---|
State | Superseded |
Headers | show
Return-Path: <linux-rdma-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 41DCC601D2 for <patchwork-linux-rdma@patchwork.kernel.org>; Tue, 7 Mar 2017 02:22:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 314F128451 for <patchwork-linux-rdma@patchwork.kernel.org>; Tue, 7 Mar 2017 02:22:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 25AFB2848D; Tue, 7 Mar 2017 02:22:39 +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=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 9A36F28451 for <patchwork-linux-rdma@patchwork.kernel.org>; Tue, 7 Mar 2017 02:22:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752642AbdCGCWi (ORCPT <rfc822;patchwork-linux-rdma@patchwork.kernel.org>); Mon, 6 Mar 2017 21:22:38 -0500 Received: from esa3.hgst.iphmx.com ([216.71.153.141]:27847 "EHLO esa3.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752726AbdCGCWg (ORCPT <rfc822; linux-rdma@vger.kernel.org>); Mon, 6 Mar 2017 21:22:36 -0500 X-IronPort-AV: E=Sophos;i="5.35,256,1483977600"; d="scan'208";a="1138523" Received: from mail-by2nam01lp0175.outbound.protection.outlook.com (HELO NAM01-BY2-obe.outbound.protection.outlook.com) ([216.32.181.175]) by ob1.hgst.iphmx.com with ESMTP; 07 Mar 2017 08:35:59 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sharedspace.onmicrosoft.com; s=selector1-sharedspace-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=c1POM0UYcucdtYi0aAMAMPL4Ah+ugIw/DrClnSdfsbs=; b=kDb1brjCF+rtAAU+y8m+nYWs3qesOOH/O7qfdwRCR6KfU82jQS0kCkYMw3Khf/GTnUUBq1UYkwQkItSpMj71yrluUko7WORYVVOu99/lZkqOWF9vohaGEnRtpAcjyfAv8y5dmmith42hfXpEylB1/Gp7uG9CwXZJnBHyorIrGuc= Received: from CO2PR04CA028.namprd04.prod.outlook.com (10.141.240.156) by BLUPR04MB513.namprd04.prod.outlook.com (10.141.29.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.919.13; Tue, 7 Mar 2017 00:35:57 +0000 Received: from BN3NAM04FT005.eop-NAM04.prod.protection.outlook.com (2a01:111:f400:7e4e::200) by CO2PR04CA028.outlook.office365.com (2a01:111:e400:1428::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.947.12 via Frontend Transport; Tue, 7 Mar 2017 00:35:57 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.21) smtp.mailfrom=sandisk.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=bestguesspass action=none header.from=sandisk.com; Received-SPF: Pass (protection.outlook.com: domain of sandisk.com designates 63.163.107.21 as permitted sender) receiver=protection.outlook.com; client-ip=63.163.107.21; helo=milsmgep15.sandisk.com; Received: from milsmgep15.sandisk.com (63.163.107.21) by BN3NAM04FT005.mail.protection.outlook.com (10.152.92.108) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.947.7 via Frontend Transport; Tue, 7 Mar 2017 00:35:56 +0000 Received: from MILHUBIP04.sdcorp.global.sandisk.com (Unknown_Domain [10.201.67.162]) (using TLS with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by (Symantec Messaging Gateway) with SMTP id 85.83.29323.B600EB85; Mon, 6 Mar 2017 16:35:55 -0800 (PST) Received: from milsmgip12.sandisk.com (10.177.9.6) by MILHUBIP04.sdcorp.global.sandisk.com (10.177.9.97) with Microsoft SMTP Server id 14.3.319.2; Mon, 6 Mar 2017 16:35:53 -0800 X-AuditID: 0ac94369-548749800000728b-2c-58be006bc280 Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.8.100]) by (Symantec Messaging Gateway) with SMTP id 3D.49.18148.8600EB85; Mon, 6 Mar 2017 16:35:52 -0800 (PST) From: Bart Van Assche <bart.vanassche@sandisk.com> To: Doug Ledford <dledford@redhat.com> CC: Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Sebastian Ott <sebott@linux.vnet.ibm.com>, Parav Pandit <parav@mellanox.com>, <linux-rdma@vger.kernel.org>, <linux-kernel@vger.kernel.org>, Bart Van Assche <bart.vanassche@sandisk.com> Subject: [PATCH 2/2] IB/core: Restore I/O MMU, s390 and powerpc support Date: Mon, 6 Mar 2017 16:35:49 -0800 Message-ID: <20170307003549.3872-3-bart.vanassche@sandisk.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20170307003549.3872-1-bart.vanassche@sandisk.com> References: <20170307003549.3872-1-bart.vanassche@sandisk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrKLMWRmVeSWpSXmKPExsXCddJ5kW42w74Ig92HZCxenv/AatG8eD2b xeVdc9gsnh3qZbFovvqXxeJU12FGBzaPB4c2s3jsn7uG3ePZ9MNMHu/3XWXz+LxJLoA1issm JTUnsyy1SN8ugSvjzezpjAXdghWPj/SzNjCu4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7a3lBNc1yDINEuqqrZzZlX2rOCnV7rnT+WYZ2TtsOV367Etn9v3F9lU +y2Y2VKWmfxKcYbEzDs3dohWf9owqXBKrmE9670aZR7mt/OqZ5lGfq8W7HeMuhwsL59wO3XD /CPlPxonu36efeB75AslluKMREMt5qLiRAATbDkDyQEAAA== MIME-Version: 1.0 Content-Type: text/plain X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:63.163.107.21; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(7916002)(39840400002)(39450400003)(39860400002)(39410400002)(39850400002)(2980300002)(438002)(9170700003)(5003940100001)(92566002)(81166006)(50226002)(48376002)(8676002)(36756003)(54906002)(2906002)(47776003)(626004)(189998001)(38730400002)(110136004)(6916009)(86362001)(6666003)(2950100002)(107886003)(4326008)(1076002)(50986999)(76176999)(53936002)(2270400002)(50466002)(305945005)(5660300001)(356003)(33646002)(77096006)(106466001); DIR:OUT; SFP:1102; SCL:1; SRVR:BLUPR04MB513; H:milsmgep15.sandisk.com; FPR:; SPF:Pass; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN3NAM04FT005; 1:hHduMAGKwmM7Ap3v01qg17Y0lFm1BIl+oFeQ5FOQjFPIiWShT4Pz71YRhHkpljHEfIVPtvx+7eCkQH8iee5W7c1+Gk23jd8HWcZ8rx8tkFkbCFRpKr7OovO++cD/IXde+Y6C2s2VWAbKZivNBlojf6GYSXau4VdzG1otPRUCQUi/WW/1181sjswf3jUO7C/KkDr/rOKtaJdGyUxoM8gEyLEPvezkeP4uE3owHbZ0InXh9/lasnJ3GmCZg+a8IF0fAtdF3AHm66NITI+ZWmnjEEqzHuPM8Ot4xHoyPROgq8CIloWyEgGEyIEghsB3PLgUCHiBlNFA/llHWcUw0UsCvfkc6SaorNiQlQJm9Kd2SvgTWkmnZyj9SuOCmnNUUW9lq6wRvJa7CdGvCpH6M9PCR6XYlrnDPt5HCIWszk3UbdaJfNJh5W17oVpQsKNGlAEBh2g3MmstVQgQDNyuCLtmdETA7aHiphqPG55AZ22V66qkW6J5GG4q8c6R5MOt1kvs007FZShpSLJwa2bHeC2A8kc6I4nS93RK21wClUzFJVE= X-MS-Office365-Filtering-Correlation-Id: a7517b2c-0607-48dc-8181-08d464f1eb96 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002); SRVR:BLUPR04MB513; X-Microsoft-Exchange-Diagnostics: 1; BLUPR04MB513; 3:HucH5cCOqQgwegJzhNyHHwFA9mODcHfWeM6sSjVWsUFc5h8WaHU7b413SfrJBsVwo2/+8I8w0df3PLhWRtszIjou3NsblD/0Tk+bK4ZLXIMor+kwKFFZVbL5g5RXAVPHVrhcdweQs0HCWrZ1Vgy/0OjWlPMGVYnPEGVneHdd++OeF2g2fqKK1KKoDEWpO8K9TjOINqxk65BmkPwXV7aTecj28Qb1Hwnej8tmCEEh75LeZXmz7lDSldDxenlNewJxjJLcFuiRZBapMw3k6L/wbkhm+dgLglAN3xQp517dunWc5M3eeIP6BqmwYCFLBr1o1zCxtvGXtZT2xcAOtkYnD7rXA/V7XtmKwsaXGboXmCVc0YMPqRUmCquxiRmsyc8Gr8LEpAChMWcGyS0sqebDQg==; 25:ax9hZTrpXMl+cmYz/CGrxkMhr4J7hSucKltiY9lS4gzSgSrreNkMZwuKrawQJJtHLEKhY7XDjzxxqeRnCQ4eCvJUcwR64+qimhkgWBKWhqjulEGmYyBWxVXCzPPNFNBxjavaLBKiyeprUmvaxssWDAdp9TyU12zHz7q5X9G00JIFSgv/k7JscolH1sTEflY04jyGI3kdnSNnm4Jx+iEAJ2udD/atI1EYaLGSJifV7PdZ5T75T3XWo96zTW6EgmmF9mzkHz+LSX2iTBfyjq4ABhkclrM08BMCzdlWsNMEfP6d6Qcqk08NtTxW2gUu8yO/fp49HGoqkcbqBUOmKIlPE5rY8gcACtvZ+z5T4bDQBUWJVvIH5qc36BOAeAIO6RabQPJnJG4cUtTeDF+EW9oYJd8eDmiBtLa7Gb0eB8zfcgkM21VtOhZ+aGynhWAQ9Kej0Sc5c6HLdafDTxNojLoAjw== X-Microsoft-Exchange-Diagnostics: 1; BLUPR04MB513; 31:Pa6kSsLU8v7R9AWPhdKNsLLfx4IJEkKT5a9pzff2FkM1xMbTQULyiZZEmMNBkCnsZX05PVZnUcR/GUqdxZHfBSrWMOOX9jacciC2zDKkMO18X9Ndh3L1Z9azZuj4vNKa0rofatKLsrCgdPE6dKSg9FLEZIMJYXdam5uuULZuFn/X4brzhg9o+Sg/tAG0+UiRYNB9BMiVc479G9CWK/CmuLMyUMv9Z3aQwgs8nE+aeAdpNNQqB2wvdevfWAT+obhOxaCbjrpHTI/ASK3psZkoxw==; 20:e4eDxtV7wInj/5u4uMIP7bdGcB/cFDNoZRCc0SRR25fFFidA/V7kZEaBvSL86N3xkJiVMGFR5qkKW8SCW1Zr6tVjqRpe/K5xfl0RnRaxYGYsbuMuoNV0lQHnyXHqP3VI6z3SuZzJNn//RYz3wm984qhkYQi69FYK1a6fUUd4cybHZwcqQONMeRTLsXMlDxz6XHxFZW+92+XTDdN/vupYcbYpdg/6NnvWONEU/ofmjaDUcHHlArzN0m2aH6HgAsq6fbUO3U+FN9XAHHJ1EogL/MgfYm6aPK84kOcdvQ80w3CF98IuXqwGGdc9eSo07GpNR3C5Ln6qlLxwRV+72+2/p8m0Hv8YYrcopPE+lEC5L5wKEX6rQZ4jm520ngNF4B7Ph9eNEGn2iyDX8sW7DnvvF+GMOhXm1uFIVK4q8xa/3sJ7kXPQdwD+CxRTo7W2iYlDUiEMZt7SY3nmGW+zzRXBl6iCquTN67Ck5CyHSWwMbAZnBXpGbbZyvXpTr2OjC8Qe X-Microsoft-Antispam-PRVS: <BLUPR04MB513286225877CBEABE366FB812F0@BLUPR04MB513.namprd04.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(104084551191319)(42932892334569); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(8121501046)(5005006)(13016025)(13018025)(10201501046)(3002001)(6055026)(6041248)(20161123555025)(20161123562025)(20161123564025)(20161123560025)(20161123558025)(6072148); SRVR:BLUPR04MB513; BCL:0; PCL:0; RULEID:; SRVR:BLUPR04MB513; X-Microsoft-Exchange-Diagnostics: 1; BLUPR04MB513; 4:oD01JyFyrxgVdvKd3JrVxfrJbQm9ER4OZ/D20xmm9oIhgi6MnbBkdh4wQWqQpN6Mke0Wk7SoNJvecs7QTD6FFiQ8R9ch4atIgFcjjJSd77HyTj8ngEcFRzeQP/c2rvSydjWXt6oZOEJ22pOvMT8eVIIlzLoKpTWr/3UtJuxfeezlWGkspQ1LHflHO896SyCRdZrBxfj3zf7QZedEJl01Im9FTmB0yYJxOPpUdf73atOjnVRPAd/Jdxc9QdDic1DVWPUrQvDXM5Xh7uzz7oVYnLmoMjuKqMnd6Z/FgQzMh41rqq6eLEfLbthtdt11w2xtJ/ROWAHR3eA3M2rlRUr8gVhIviLKfO+ppj5OBVPpXI+06JAc733TQvve8vhhwKMfc4a+k5HzZAFEd2AWz92PKwWAHruFxh2rKdVDDpZ8gP0LEcdbylDlUumhuhwhCxhMFPPmUEmJdvStUJIuYhIMtyNuBy/bbLCUKgB6ypmX283E9Ku8B1xpW3S6sqsGRioyZRfNWg0aE33F6HLqvoT84jCj2uWWajZcI9E2Y7CeXQ/2J0P/UTLsbIMC41lgsM1SkhYcsnzTg1PTTn2UoATViBss62L5v2RwoDuXw2cA2QmYlZ12njJWwasJgfhDdqC1v2a4fiCfJpV+kehBZTp4hQ/EhK1cTYIcQ3cyd3pQqPdn5t+QggiRWF14RuPRPoZo8H/o2SmBt3MxMMap3RyygunG2UrNqyQYf7JqtxJYID5/2AzaZ0tsYuYbD4SXTD21 X-Forefront-PRVS: 0239D46DB6 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR04MB513; 23:gkPHNhpuNfzIGsXyR0HpPHopuzftd2Rc4737Kf9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LRfVTaoyAYgNw2pRnZ1vGHwOtodD?= =?us-ascii?Q?YbwpuKejy4i2ZZB4EmMethA1OI5iIxa5/qAYferu0NbxS2Rr9AdUZqR8Asw3?= =?us-ascii?Q?hdLUXrrTGlukAdanrc2gYZq0i2mNjRPhRSr68C2sBZeEacXw1ITypJmwDUXi?= =?us-ascii?Q?xPo/13LPaAhk05Z0lJLx8PjBRa?= X-Microsoft-Exchange-Diagnostics: 1; BLUPR04MB513; 6:Gjf+W3eGMr/+Mr07C0tHqoa3qre7ujVeJvMDmtrcmIdoG1F+8eut+UWyPDicxUQ1R5esPFN0DMxu9vR3pgP36VaW0SG0VH0t/I6gwJbDkVH0upCWd5w6dELJyeXxz2W54FQWyzOXvqlQzzBxgHSe3miiYyrjQt/Z3OtxCk0eZmQ6/w6XuYtusDsD56HRnicLt+0TaFEu31MDAzwHdMssHS+kfNYRSOo+U95ua0aay1tVkp4xKZXX605emTzcO/gEwjUGIlSXvGtovi3YPYQZctJ5cl+4if60CFU8/oWS+muPYu8ieenZp2kVKxuqhyUxS7fHLk/fqZgbKOX/rNGFNs1KkcV3VIqodJ5E5X3x6fKCTk4zd5LU36yrGEr2bSG/HaY7pUCPaREDoCvckwewnDFeazEOn4UQSowSxiHrgTyEKqe0/ppEO5mZxmm3Tcy1; 5:qv84rdxGYcUSnEWzELTWQsYJvaGvFi/JJ8+/DVngKrsWNfvDpS+XmuZvgHcLLZPDvnKUnyoEncxH/UxYQ0uWyb1TpzYWsQvfTqkRk0zW0ZCacW8g+xm8rNaQugP8noXwBFTs2qWqLL38DUnVt+64jQ==; 24:SKasP64Sil60yWIkNO4GHeo9JPxkBGORRsVqJ0F1DzyfyYnk/5YWYtv43iuUHWPtVxZOlhDMGvIioommTV7v2GPjQlcqMTjo2Sgs6qIBFPM= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BLUPR04MB513; 7:uCidzHKCw6X8cqb3u01uERyPmM4Cd2DkEY+syLExAEP0bCkj7JlyNU+leTB+rJaZwRYOIwq9P8mEjv0tgmy+m7VFq75gQgf96T+btKRnq21NV6vKA+xOjB21BVAL/o9ONsYS7PHk4aBMMZG4xyvfslO5tqnikx8pw4m9flDvdC7ThW1BSebumvdEgTMjDUWKW7AqYED9upHsuMrwh9sA7WsplCe4Fe3GRgqXGX318RhEDkJLYIF6Lt7iwJ8R5GXxzQMBD+IEypsH5kkL7CdDswTbkmt5fZltd2yWEgEjRqUAVR3JM0HLgJEM8Z0GWHwy0tJ/tHv31b1ovtl9OT9kOw==; 20:Xreak/qP+st537Uo8okU9ZlTB3lWrYGLsNbyKDr/puVKt9aWLWEaOFNDMEfUfK79bQqO7emaAVX4FhWxbGN4POIL1Pwf0sU//+ZITsasBIly2kviqqmFsJUVRj+nFJrrE5czjexkvmwJcdQpeLmKMbj3TpxPI2xEKPlWKAr09HQ= X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Mar 2017 00:35:56.2393 (UTC) X-MS-Exchange-CrossTenant-Id: b61c8803-16f3-4c35-9b17-6f65f441df86 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=b61c8803-16f3-4c35-9b17-6f65f441df86; Ip=[63.163.107.21]; Helo=[milsmgep15.sandisk.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR04MB513 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: <linux-rdma.vger.kernel.org> X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/infiniband/core/device.c b/drivers/infiniband/core/device.c index 593d2ce6ec7c..93c23e873841 100644 --- a/drivers/infiniband/core/device.c +++ b/drivers/infiniband/core/device.c @@ -39,6 +39,7 @@ #include <linux/init.h> #include <linux/mutex.h> #include <linux/netdevice.h> +#include <linux/pci.h> #include <rdma/rdma_netlink.h> #include <rdma/ib_addr.h> #include <rdma/ib_cache.h> @@ -325,6 +326,10 @@ EXPORT_SYMBOL(ib_get_device_fw_str); * devices with the IB core. All registered clients will receive a * callback for each device that is added. @device must be allocated * with ib_alloc_device(). + * + * Unless requested otherwise by the caller, this function makes sure that DMA + * mapping operations on &device->dev behave identical to DMA mapping + * operations on the parent device (device->dev.parent). */ int ib_register_device(struct ib_device *device, int (*port_callback)(struct ib_device *, @@ -336,8 +341,11 @@ int ib_register_device(struct ib_device *device, struct device *parent = device->dev.parent; WARN_ON_ONCE(!parent); - if (!device->dev.dma_ops) + if (!device->dev.dma_ops) { device->dev.dma_ops = parent->dma_ops; + device->dev.pci_dev = to_pci_dev(parent); + device->dev.archdata = parent->archdata; + } if (!device->dev.dma_mask) device->dev.dma_mask = parent->dma_mask; if (!device->dev.coherent_dma_mask)
Avoid that the following error message is reported on the console while loading an RDMA driver with I/O MMU support enabled: DMAR: Allocating domain for mlx5_0 failed Ensure that DMA mapping operations that use to_pci_dev() to access to struct pci_dev see the correct PCI device. E.g. the s390 and powerpc DMA mapping operations use to_pci_dev() even with I/O MMU support disabled. Reported-by: Sebastian Ott <sebott@linux.vnet.ibm.com> Reported-by: Parav Pandit <parav@mellanox.com> Fixes: commit 99db9494035f ("IB/core: Remove ib_device.dma_device") Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com> --- drivers/infiniband/core/device.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-)