Message ID | 20170120210437.26389-19-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 9E95C60434 for <patchwork-linux-rdma@patchwork.kernel.org>; Fri, 20 Jan 2017 21:06:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 77CFE286CF for <patchwork-linux-rdma@patchwork.kernel.org>; Fri, 20 Jan 2017 21:06:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6CC2C286D4; Fri, 20 Jan 2017 21:06:53 +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 DACDF286CF for <patchwork-linux-rdma@patchwork.kernel.org>; Fri, 20 Jan 2017 21:06:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752058AbdATVGs (ORCPT <rfc822;patchwork-linux-rdma@patchwork.kernel.org>); Fri, 20 Jan 2017 16:06:48 -0500 Received: from mail-dm3nam03on0066.outbound.protection.outlook.com ([104.47.41.66]:49072 "EHLO NAM03-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751982AbdATVGB (ORCPT <rfc822;linux-rdma@vger.kernel.org>); Fri, 20 Jan 2017 16:06:01 -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=wBW4edMjYxQ9CLGvj67915aR3J38HcljrtzAqx5Tpm4=; b=mfH8973xEx18vA+EdnKLgDcWbauXBJ93K+2EYHwg0DCCfXRygWkIL5xkE2p1z/ZJnzR9FBDV0k+AaCLWvBh/v+UslL/hnGaWoD0qYfjBGdNjOAQ34vS5hlJ0jOrOAT+GZXOlNlgyNa4+gyx4QqQ5kHHLmf9viKJmQIHYvn+zNJQ= Received: from BY2PR02CA0035.namprd02.prod.outlook.com (10.141.216.25) 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:48 +0000 Received: from BY2FFO11FD045.protection.gbl (2a01:111:f400:7c0c::185) by BY2PR02CA0035.outlook.office365.com (2a01:111:e400:2c40::25) 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:48 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.21) smtp.mailfrom=sandisk.com; huawei.com; dkim=none (message not signed) header.d=none;huawei.com; 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 BY2FFO11FD045.mail.protection.outlook.com (10.1.15.177) 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:47 +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 E8.B8.65426.EA872885; Fri, 20 Jan 2017 12:53:02 -0800 (PST) Received: from milsmgip11.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; Fri, 20 Jan 2017 13:04:41 -0800 X-AuditID: 0ac94369-b62949800001ff92-2b-588278aeeeb5 Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.8.100]) by (Symantec Messaging Gateway) with SMTP id 0D.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>, Lijun Ou <oulijun@huawei.com>, Wei Hu <xavier.huwei@huawei.com> Subject: [PATCH v3 18/37] IB/hns: Switch from dma_device to dev.parent Date: Fri, 20 Jan 2017 13:04:18 -0800 Message-ID: <20170120210437.26389-19-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+NgFrrELMWRmVeSWpSXmKPExsXCddJ5ke66iqYIg/uXeC1env/AavHsUC+L xZoJd9gsHt9dyejA4tFy5C2rx/t9V9k8Pm+SC2CO4rJJSc3JLEst0rdL4Mo4/e83c0EHT8W9 XdvZGxjXcnUxcnBICJhIHHot2MXIxSEksJRJ4tuWzewQzjZGiT97b7B0MXKCFX3/2scCkdjM KLHg+El2kASbgJHEt/czwYpEBNQkNr1aBNbNLDCZUWL+/e3MIAlhATeJvg3zGEFsFgFViS8/ jzKB2LwCDhLPJ81jhdggL7Gr7SKYzQkU/3S5D6xeSMBe4vjlp2BDJQSaWCWWP/zNDtEsKHFy 5hOwzcwCEhIHX7xghmhQlzi5ZD7TBEahWUjKZiEpW8DItIpRLDczpzg3PbXA0FSvODEvJbM4 Wy85P3cTIySkM3cw3n3ifYhRgINRiYdXIaApQog1say4MvcQowQHs5II7+tKoBBvSmJlVWpR fnxRaU5q8SFGaQ4WJXFet3tfwoQE0hNLUrNTUwtSi2CyTBycUg2MIhGzIs53antXCAke4pdc Z6L79umytS+2TjqR3HbhVNaK2J0/Wlir736bq3A3sM2iv0lkm0nppZVLTpRwuT69z9CzzXvX +01bK/LN/WTCmwLPftnpPKngyuXtpx9933UmVGzX6SJP912B31N6d2z8+ot9RtLmT88D9m5Y klTxPfK13f+auLVPXJVYijMSDbWYi4oTATi1HbllAgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrEJMWRmVeSWpSXmKPExsXCtZEjRTejuinC4N0BE4uDP9sYLV6e/8Bq 8exQL4vFmgl32Cwe313J6MDq0XLkLavH+31X2TymrTnP5PF5k1wASxSXTUpqTmZZapG+XQJX xul/v5kLOngq7u3azt7AuJari5GTQ0LAROL71z6WLkYuDiGBjYwSu75cZQVJsAkYSXx7P5MF xBYRUJPY9GoRO0gRs8BkRon9V6aygSSEBdwk+jbMYwSxWQRUJb78PMoEYvMKOEg8PnCDFWKD vMSutotgNidQ/NPlPrB6IQF7ieOXn7JPYORewMiwilEsNzOnODc9s8DQUK84MS8lszhbLzk/ dxMjOBQ4I3cwPp1ofoiRiYNTqoHR6KTe15c9vBrin5bvPZiz8OL6ICGHoLOGnxk1/2avfWvz vGRT527PpW0aVQfbPn3OFgiIeJCxZX4q9+UI938Nl1f/D+VU/RIokTgn6eucVcW+xq9czoX+ umonXlTx48urx2obpu90yjdoz9rBeqzwWvDfzVdFmgK+/M4siktWKxVZxD3Bza9NiaU4I9FQ i7moOBEAfjWV1rUBAAA= 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)(189998001)(54906002)(2270400002)(53936002)(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; BY2FFO11FD045; 1:Y+nEJumNL3ccH9xQIlN8MxuTOPbpJtwR/ysjyHd6Sda5T4dMKGTnDpSdDJmCJVB7aB0M00pMhqrthfROOhQGzVqUocNbcbmvD18BSJive3S4fPxtRQRpKjfvjB+8dRW4s4pMfYl/e0AEv+jsdRFKtsH+6aerW/fCoTGyUb1DFeF++Oc+D49YCqZe9iEy9gJ4FGHz5SOxvBbKtATvzvSlAZGiAmXXPuQBUwPeu2BBSrqbzStQ5YfNtUFNEosEJZKlXTflZL0P7gsc7qmGFWSIjvlJh5BqWif+6tLS9ilSD8i9b8mZQCrxOZ+JmJZ5Y10wkleN/rRKvfH46KOhExKJJnLhGftM+JFp9QEuSvSYUagYkrd3jjvkgVU0R1rSflPA6KsdPVI9qtN71KQvhWVyRM/oSxhNmitf8P8wB1cYLWGcF144YH0uHV1UeBXD8pV5F8KJ06iB9DPAzR8e1PuBbT8yhMpMNaU9GoAdhMpw7Ml3KcZIMkeomIbsWwTqr/BxCRHGThdVozNCRf5pRk2Ijw== X-MS-Office365-Filtering-Correlation-Id: 57a6d583-4fef-486d-7bc1-08d44177f750 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002); SRVR:CY1PR02MB1285; X-Microsoft-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k8DWzc93VqQUhA1CfOYgqNg3bSDUegNgKzqJsO6MSmk0ETThze6MicEQ40pVx4VCK+nZsJPjeEwFDHUBSR/P5wkV6p4Bz5+daiCF/0PfpUJ3HnXHPEmpjUhofXkghE/Kv43YK6akHgOGTAbSsxpp1IF2NXjqHl9F4v5Aye9pL3im9DMIdMx0EIbdF6TQ=; 20:sTMKXjzP64SKSW0Xkxl1uRCHPQLN3ubWOx0heiKy+dxB8x3AeeKrjBNHlK2mqK4gWe4Ljd1eJSCG/Ng5Yx2IpUiVy3yau4ulL+FGLtNbapxcXr7S27EOZQEK9vh45LwtN9OUFtA+BlU31PGqPgfhLVXIttgmXTkyM6TYGuYwngNKRxOIlMpaFA3tswZX+hX949piopQFcKluRfMatHoiUyovneDZLFx5Q3CLPDr7JvafRauQR3Ch/g5lg7+8DLKWjMSieBY0SBjplnLDjrbqeD3lwLiK45jddYQw4MTxERcuEKApbs3yK4Yr/GpRtx2o7YVHsx3Sbna+z2KiafGdBDD2NXaT2iYReIyZe0x1D7pP0xx7aYOfp/hPwZZ5HvzpkoCQQJipSV627OeyN8e+DJ/RiBdzAXjrquClXpfrH8/thbPhHSSJ+Dwgr3D+6iamGrqe+V4zzrU6VzDMSXCC0+r1vhFGNz0xJqGecwp/Lc2mKgqN4Z7+h5KsOnPPr8fM X-Microsoft-Antispam-PRVS: <CY1PR02MB12859E16862BD55401281C1881710@CY1PR02MB1285.namprd02.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(50582790962513)(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:ajYBwfNCjhTvmuL3/T9EVccg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bI7qMKQ4wFC6EiPqfQL?= =?us-ascii?Q?Yckp+6EZnNFLz9d50bU1z5BejN5+fJOOrDowNfZbfCGF0gTdQzBlA=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; CY1PR02MB1285; 6:XFh3QxOa9uVFuAeaUn9loce2Ronxeex7nzib8pIyC0dO0iJV+b0kx8EryQ13vvgJJUODipaTAsxifajIl62M9pfJWXZRdjXeC6puloe9RpXMMil5x9uE+pU6/yWWGYrS7ZDmXdZqkzSNtGfNsjVx6tlyrKjA8hO9xN4xgxAzkTsJCi+4wCJUp6u86VZ6313sxr5Vveash3T2eUurkr1W4BGRI9Hmyev2EkD6Vkqhjonmt3itdTYvD3lAOUQM48c+hXNTii3IMPMBmhBttQnt4Ko/VQiO4TYFGxbuLkaRXQhgwNMBJ29Uh3Zsn2jzfsaRuLvnbjiuR3crHgt+kpm33+CrFC/wYRINgB5YNDa7WcTU3xjg36B371PIEyP6s7lFHyYMo1XRlxYw0LBgOSjwoDSLm6w3fY+QQVnwUTYphnz9WKZ0KWapm+7jB0PklVfYmtHJonL7y/R/bLiwqjJafA==; 5:7iag7mA60IcPtP40SxBoyFm88mZd3Wnf0BE+8kj0IgB9xAjFFB+6eeg4UuhivQV3IJpOI3Jf40c3ZPJKWjjHph510/a9iiehsMU3JjrobxFqI12Vg5MekqjXINC3qjhdux6edm1otFR5YqWeXM64Sw==; 24:YJlOtMtC/ui9eQFlc9NonkcVS/zyooF+Bo5vSrcs2XekGMn3ok4SGoy3unlYQVeQMWUvKpjwJKhEnmoy234swBgs/Gbu3aRExMMUkxnYMBY= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY1PR02MB1285; 7:707jOHlC3HDQRRloMuhALeSBLKjgRY4QyY+TQRt2Ngh1DMHwbIKjQlUvu0GojJClQOvCRaGMPr9MYIN7uzGqIQDqywqyIUrUFupFWJcufjwL2nMqdHMGHqXzXVoM5TWL/YQcaC9qN/JSzBWlnpgEqaHZ4ARkLFK68gy++7Qqo/LqTXqNoNp5zQelBJxTc1A3m1uYJ1u0bDw+j5IoUTmneOyn8lOmjgtHpzGFY78Q/WRXRhNV376bgaYLg4RrMTYZTtD+HSSJJYVdkwjOT0azENkzhrdjf8c6sQkKu55xj5g8EgkSQBsP+hQPr5COsnlkf8BXTaeEtB+eNkzeIPIkxjxscZz1GnZVFQEZOuJu96l+Fv/fgXSfPuNRjJaJcpvkoKvD2wkmukCUtemmwxnT61DAuEpe5AqV594LKG/BdkXvT4ZFke6hBPzX6B1cT5w96wDJihWSrV7oqLkOSVAIGA== X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jan 2017 21:04:47.1931 (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/hw/hns/hns_roce_main.c b/drivers/infiniband/hw/hns/hns_roce_main.c index 4953d9cb83a7..066937749144 100644 --- a/drivers/infiniband/hw/hns/hns_roce_main.c +++ b/drivers/infiniband/hw/hns/hns_roce_main.c @@ -437,7 +437,7 @@ static int hns_roce_register_device(struct hns_roce_dev *hr_dev) ib_dev->owner = THIS_MODULE; ib_dev->node_type = RDMA_NODE_IB_CA; - ib_dev->dma_device = dev; + ib_dev->dev.parent = dev; ib_dev->phys_port_cnt = hr_dev->caps.num_ports; ib_dev->local_dma_lkey = hr_dev->caps.reserved_lkey; diff --git a/drivers/infiniband/hw/hns/hns_roce_qp.c b/drivers/infiniband/hw/hns/hns_roce_qp.c index f036f32f15d3..3f44f2f91f03 100644 --- a/drivers/infiniband/hw/hns/hns_roce_qp.c +++ b/drivers/infiniband/hw/hns/hns_roce_qp.c @@ -101,7 +101,7 @@ static void hns_roce_ib_qp_event(struct hns_roce_qp *hr_qp, event.event = IB_EVENT_QP_ACCESS_ERR; break; default: - dev_dbg(ibqp->device->dma_device, "roce_ib: Unexpected event type %d on QP %06lx\n", + dev_dbg(ibqp->device->dev.parent, "roce_ib: Unexpected event type %d on QP %06lx\n", type, hr_qp->qpn); return; }
Prepare for removal of ib_device.dma_device. Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com> Cc: Lijun Ou <oulijun@huawei.com> Cc: Wei Hu(Xavier) <xavier.huwei@huawei.com> --- drivers/infiniband/hw/hns/hns_roce_main.c | 2 +- drivers/infiniband/hw/hns/hns_roce_qp.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)