Message ID | 20170120210437.26389-14-bart.vanassche@sandisk.com (mailing list archive) |
---|---|
State | Accepted |
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 35A3C60434 for <patchwork-linux-rdma@patchwork.kernel.org>; Fri, 20 Jan 2017 21:21:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 277D3286D4 for <patchwork-linux-rdma@patchwork.kernel.org>; Fri, 20 Jan 2017 21:21:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1AC3B286DA; Fri, 20 Jan 2017 21:21:49 +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 4EC69286D5 for <patchwork-linux-rdma@patchwork.kernel.org>; Fri, 20 Jan 2017 21:21:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752292AbdATVVn (ORCPT <rfc822;patchwork-linux-rdma@patchwork.kernel.org>); Fri, 20 Jan 2017 16:21:43 -0500 Received: from mail-by2nam01on0043.outbound.protection.outlook.com ([104.47.34.43]:47709 "EHLO NAM01-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752243AbdATVVM (ORCPT <rfc822;linux-rdma@vger.kernel.org>); Fri, 20 Jan 2017 16:21:12 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sandiskcorp.onmicrosoft.com; s=selector1-sandisk-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=jWTdWZtuhbzyIwzdYJqLOvhrtDAVZX8avrhyMi4hiuM=; b=AR75X9YiWY9SuQc83jis1I1nEo2/wpBFokfFNXQZf7gl72niFYBka8+7N4bQqiRB+ne9ZhkDOiHMlWdhweF/tlsM+RSGRPSyWziLFqNT3n+gEmIWxnpO3PIpZBQlnPDftotVVBMiGwMDMxHr2A6zi7Ds/XT0yYbsywh8EbMk0qo= Received: from BY1PR0201CA0042.namprd02.prod.outlook.com (10.160.191.180) by CY1PR02MB1285.namprd02.prod.outlook.com (10.161.170.153) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.845.12; Fri, 20 Jan 2017 21:04:44 +0000 Received: from BY2FFO11FD038.protection.gbl (2a01:111:f400:7c0c::153) by BY1PR0201CA0042.outlook.office365.com (2a01:111:e400:4814::52) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.860.13 via Frontend Transport; Fri, 20 Jan 2017 21:04:44 +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 BY2FFO11FD038.mail.protection.outlook.com (10.1.14.223) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.803.8 via Frontend Transport; Fri, 20 Jan 2017 21:04:43 +0000 Received: from MILHUBIP03.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 63.B8.65426.9A872885; Fri, 20 Jan 2017 12:52:58 -0800 (PST) Received: from milsmgip11.sandisk.com (10.177.8.100) by MILHUBIP03.sdcorp.global.sandisk.com (10.177.9.96) with Microsoft SMTP Server id 14.3.319.2; Fri, 20 Jan 2017 13:04:40 -0800 X-AuditID: 0ac94369-7dfff7000001ff92-1d-588278a9a13a Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.8.100]) by (Symantec Messaging Gateway) with SMTP id 8B.33.16817.86B72885; Fri, 20 Jan 2017 13:04:40 -0800 (PST) From: Bart Van Assche <bart.vanassche@sandisk.com> To: Doug Ledford <dledford@redhat.com> CC: <linux-rdma@vger.kernel.org>, Bart Van Assche <bart.vanassche@sandisk.com> Subject: [PATCH v3 13/37] IB/core: Initialize ib_device.dev.parent earlier Date: Fri, 20 Jan 2017 13:04:13 -0800 Message-ID: <20170120210437.26389-14-bart.vanassche@sandisk.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170120210437.26389-1-bart.vanassche@sandisk.com> References: <20170120210437.26389-1-bart.vanassche@sandisk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrELMWRmVeSWpSXmKPExsXCddJ5ke6qiqYIg9u92hYvz39gtXh2qJfF gcnj/b6rbB6fN8kFMEVx2aSk5mSWpRbp2yVwZXzr7GAr2MBbsf7IZ8YGxv3cXYwcHBICJhK3 Xut2MXJxCAksZZKYs3ENI4Szg1Hi8dy1zF2MnGBFy6afYoNIbGaUmPO7gQ0kwSZgJPHt/UwW EFtEQE1i06tF7CA2s4CfxJQTTWC2sICXxJQljxhBbBYBVYl1J74wgdi8Ag4SkxdsY4FYIC+x q+0iK4jNCRT/dLkPrF5IwF7i+OWn7CCLJQSes0hcWfABqllQ4uTMJywQyyQkDr54wQzRoC5x csl8pgmMQrOQlM1CUraAkWkVo1huZk5xbnpqgaGpXnFiXkpmcbZecn7uJkZIyGbuYLz7xPsQ owAHoxIPr0JAU4QQa2JZcWXuIUYJDmYlEd7XlUAh3pTEyqrUovz4otKc1OJDjNIcLErivG73 voQJCaQnlqRmp6YWpBbBZJk4OKUaGDkNf4nYHtyXpmhyc8Hltn6V2blyrFYi5iuO9brc2n54 ibnz65Xaum2PVt649eKRlLWr7mKfOqGM/vV/1m9a/Zttyo46/h2SF+foP5T59TriBV/uAj/n OWsNSpzPLJBnaxKZnas/MeZ+1jRffbU56nH/taP6g3foMX5ZsdOZ/3nekwN/xVme/FRiKc5I NNRiLipOBABvMrM6VQIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprEJMWRmVeSWpSXmKPExsXCtZEjRTejuinCYMI6HYuDP9sYLV6e/8Bq 8exQL4sDs8f7fVfZPKatOc/k8XmTXABzFJdNSmpOZllqkb5dAlfGt84OtoINvBXrj3xmbGDc z93FyMkhIWAisWz6KbYuRi4OIYGNjBK7PjUygiTYBIwkvr2fyQJiiwioSWx6tYgdxGYW8JM4 2/IOzBYW8JKYsuQRWD2LgKrEuhNfmEBsXgEHiSl35rFBLJCX2NV2kRXE5gSKf7rcB1YvJGAv cfzyU/YJjNwLGBlWMYrlZuYU56ZnFhga6hUn5qVkFmfrJefnbmIE+5ozcgfj04nmhxiZODil GhhXcv+S8mnOn7bL8VMU0+Pys7tMb05Py2fdxCC4iOfl7HVCPVsu7jo1U/vv7Br9GbzrXNuO d9fkXHb3YY9en2bqzvhIaMpWhpeW7dvz/MK/MZWxbtmd/LZC7sVNi46ei0pq7Td+GBrm78xi topfrnZ7I6sDi90PizkHJ57bx1Vdvyn34q77/cZKLMUZiYZazEXFiQCRQavIpQEAAA== 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:(10009020)(6009001)(7916002)(39840400002)(39850400002)(39450400003)(39410400002)(39860400002)(2980300002)(438002)(189002)(199003)(69596002)(47776003)(68736007)(2950100002)(6666003)(2906002)(6916009)(38730400001)(5660300001)(107886002)(189998001)(54906002)(2270400002)(53936002)(4001430100002)(50226002)(8936002)(4326007)(81156014)(97736004)(626004)(92566002)(33646002)(1076002)(81166006)(36756003)(8676002)(305945005)(48376002)(50986999)(86362001)(50466002)(77096006)(5003940100001)(110136003)(356003)(76176999)(106466001); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR02MB1285; H:milsmgep15.sandisk.com; FPR:; SPF:Pass; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD038; 1:IVCN8gX3IxM4AoT3ZSOLLZnoSzXT8IHHP69Qrsy1XyNNXYysuxuOLY+2SRBuFqecgtQuNdvyOxHo+CpXgwmKDB3urxL6k4mR3W1pSQyn/pbqa+YegiyJ/RT6MKjWdg1u7UK4hMtOFsjrZmWQMsypIf6QIEfyDLJcsSoMojNEguKf+4R6WE/Ig2A2mC1ECOrKkDgml737t2DR/yDMZG2RCmX05PlLnG7N1T7SGzuB6xsmqKpEeXvJMWtykqKk4JP3JUg8oRfDkWJyIaxGxOIdFJQLp6Z6ooaDS2FwEngwk5trK/0MarK7goS4H34p3+z5BGhpq7l6s4ZdxiMsgoqx5CFTwLsx7K5feNLXLKEyj6vutt6zjr8mITs2qw7+MSZI5f447rdzogOffOxZYMDq62fCDLLLgeV5kCmwjtcVqEVJsVjVKcz9K8fkNIr4EX9G7ZYgpKI1cpL9h1NsFfvGglN8bqzHy33P75Ng22ijo6sLdxl9Lk7CgLZUzyPWZAuS X-MS-Office365-Filtering-Correlation-Id: ef895f5b-733e-4c60-45e6-08d44177f51f X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002); SRVR:CY1PR02MB1285; X-Microsoft-Exchange-Diagnostics: 1; CY1PR02MB1285; 3:BiGSgSchhWVEIxQPFh5suGFSeeCT1oFrs4p8D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9cXBs/7QqybADzAvy8Da9LszWCVzhpIun9YWtV41DzdOpu0NPvY1Ahw7EeOiGx9YkwNLBPjsuo2wxzpw4ZQZbirlA/4zI3LKvPb8RZvZcet/qPBki4YPA85sPYI/kgoak85y1V6kOA4l0PAkUus1dga X-Microsoft-Exchange-Diagnostics: 1; CY1PR02MB1285; 31:smVq2qgMKwH+0Cd76pKK1cfQEdATzlM2euJXwibGB7WE6oS9N66nfk/OYjlcSP6Pu2D6aMoVE/nwlbIlVH7puj2sdx0OuyxFaxfz/MDwt1zPdZDy/lmIK6zojrDr4FOQUIRKuCZBHHW9Xf539xm4nicRqUtT9FV2yqaaKDl++9U7+tCC26EjMneAd3z0pmkDdNTDThxNUE3AcyYOCREMLCxHm6m/Nsf97qaXnKHh17rQLJnZTYlBGGSFNc2rBsjrc7oK02x3yZVWCxd4pCl4sDhRxBDL5G1GxCp3k61kq2M=; 20:YxAi85I8csavN9AsgKCCfshvZ5FKHpWMPvXJ490TN628frm5PThBuI8t12MRdBZLa1LkxB/IDqGDJxjRE/+/izsiVoT5S3WKqSath717yW1HJ7u/78mzXYLgbJ46//BqXvNfg8zmXKs9EeRWmAaXQC24jxuauMTLehCV4z0fGHFDjh+anhW7lmgHd9kRRTC8RtveYu/GsZWH/J0dCQJ9Sr27PyOZ57mY4jhVHK4OK+kXGaPD5N/BUd8pTZwn34J64DAPxbh1pqApvzA/a48ABPz1aHVFO63tPPgvSfQuKJN/nE4NJ0T64cNlPvxEUyCGAFel375Hoawb27CTHRL7nS8eGpcljQOSpbZL37UighZCY5s8naXYjYa2PuI+WeJKIQxaSZx+a6a8PDFUC1XW1GGfDSagXPUvOCrLAjlwN51266d6o/niiNzE4bIaAX9dvj8gjJt2PR9Y+BEu+CpGpRolMgg7pa4C0m+uBJQe1EQItE5K3/QUZI/q9pVorFYM X-Microsoft-Antispam-PRVS: <CY1PR02MB1285D39EE20218BF9F73D31981710@CY1PR02MB1285.namprd02.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(42932892334569); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(13018025)(5005006)(13016025)(8121501046)(3002001)(10201501046)(6055026)(6041248)(20161123558021)(20161123560025)(20161123564025)(20161123562025)(20161123555025)(6072148); SRVR:CY1PR02MB1285; BCL:0; PCL:0; RULEID:; SRVR:CY1PR02MB1285; X-Microsoft-Exchange-Diagnostics: 1; CY1PR02MB1285; 4:IGaKVOXKqGnPm8HE6zEy8jZSqbptN65CJXJnfdO5C8ADZhvR0Z8AP8dHJ3f0m4ZtYM+sQhDVcZc/5/Kzjg77lnWV6a8dgBdsJoAO3GdI0g8FRw5LObVuE6JuKqoXAezbmxcnRWXVCXuXkWhRkef82aZ2L5eMJcYn8/vszRDJozSbSc0KJmh9ptbWC6e5uVD9FP4Ux93ft+OmUK+mQ1RfD6AGXgHHl9ijFi6S01l6HUko73WhEBo/rYXPx7ZbjNVboFN8AAd72dYvSRgRu3XwY4/6cC+BVH5ubqPbvn509U9z/Esh1Rs7G5ss193Y8FsyP9+DZ9JwSciMmSGx06/wDHeOiPqszMCq8N4Z444YcW9YQLA2u3aUo2k8dhQZojAPxhAG5b9yp0xKTwVWUYFav7M2uzFJnJwOQXeoCccNTZdsmfR1ExMprGc21k6sfwYG52HSxEyKrlmMzIhJpI9Cfo8bzm6NhDpBP8rTHDkuRHKO7x+s2fC1+mdBIYTWUPWeHM3OOjBW7irqbfC8lX+FdEtkkOo1XNze0DpAXiYzkB1JyJO6Oozap942Ydie/4jBtCWgur6rlxlZPPaLeElkB/z15N3ntjDE18xJSi8V7W7wgkeRW0uVKJRNr6YkWSUC4tInVMn7YmskP6P0JpD5ICLjVje6XMzq6Ki9ReopHUQdV57qCFpxOEtUrfJJ6fR2V4ZXfZz1sngX7r/mzolPJA== X-Forefront-PRVS: 01930B2BA8 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR02MB1285; 23:VY3NA+YlNGhke7oaw2eH7I2rb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t7Dnz41uM7lItN++g2zAZ9oBxWP9OMC3EE9v1SuCw1Rs6GTfHUcqm7klJHK1DHzaA/rom1jYkQ93CowW5F7uJ72HOWkBJxYtA= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY1PR02MB1285; 7:65KlFcJbH1IKrFQNVD04nA2P/Zkz3ZWWblpFNwfRbKa3z/H7bPy/PtOujPcX1Z58sSk4uFYZ2g5Ajpd6LflEzeBRRhzKk+E2mX1X7NkG0/kYulQn1XBFxCKkU6GIlcwKmfx+v+vZqhuLELoL7MlMYlRfnhGIXUHE//82GeJE2UfuFf5KMdAqjsUKCh+8aBcjkZ43Sc+6rkZwSOrrtnprCjJ3imVhjKj9m/7q+0XKxx+cho5pB+ubbljCF+8RH0TmI0hfSJvK/V7w55tTzWxdYFKPXCdhi+hC3031kDtoG4k7hvEOOaQu7SBKk0kGnbIXzvYfStZgnvi01icD5E9I3+2STSQndPkVygUU+F83m4ptENhpMHi2HFzVpnw/cOH6cpEbgj5/yxU55T26zcZ56IV72SO4Bv7stC5fvdu0wZTpmO+zg+spIX7IvgHHklnGGY+UndsCRSQg1tg9R+UoSw== X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jan 2017 21:04:43.5307 (UTC) X-MS-Exchange-CrossTenant-Id: fcd9ea9c-ae8c-460c-ab3c-3db42d7ac64d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=fcd9ea9c-ae8c-460c-ab3c-3db42d7ac64d; Ip=[63.163.107.21]; Helo=[milsmgep15.sandisk.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR02MB1285 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 571974cd3919..d543c4390447 100644 --- a/drivers/infiniband/core/device.c +++ b/drivers/infiniband/core/device.c @@ -334,6 +334,14 @@ int ib_register_device(struct ib_device *device, struct ib_client *client; struct ib_udata uhw = {.outlen = 0, .inlen = 0}; + WARN_ON_ONCE(!device->dev.parent && !device->dma_device); + WARN_ON_ONCE(device->dev.parent && device->dma_device + && device->dev.parent != device->dma_device); + if (!device->dev.parent) + device->dev.parent = device->dma_device; + if (!device->dma_device) + device->dma_device = device->dev.parent; + mutex_lock(&device_mutex); if (strchr(device->name, '%')) { diff --git a/drivers/infiniband/core/sysfs.c b/drivers/infiniband/core/sysfs.c index c1fb545e8d78..daadf3130c9f 100644 --- a/drivers/infiniband/core/sysfs.c +++ b/drivers/infiniband/core/sysfs.c @@ -1258,7 +1258,7 @@ int ib_device_register_sysfs(struct ib_device *device, int ret; int i; - device->dev.parent = device->dma_device; + WARN_ON_ONCE(!device->dev.parent); ret = dev_set_name(class_dev, "%s", device->name); if (ret) return ret;
Move the ib_device.dev.parent initialization code from ib_device_register_sysfs() to ib_register_device(). Additionally, allow HBA drivers to set ib_device.dev.parent without setting ib_device.dma_device. This is the first step towards removing ib_device.dma_device. Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com> --- drivers/infiniband/core/device.c | 8 ++++++++ drivers/infiniband/core/sysfs.c | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-)