From patchwork Fri Jan 20 21:04:21 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 9529443 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 C1C026020B for ; Fri, 20 Jan 2017 21:20:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A1CE8286D3 for ; Fri, 20 Jan 2017 21:20:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 93E02286D5; Fri, 20 Jan 2017 21:20:46 +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 DAD53286D3 for ; Fri, 20 Jan 2017 21:20:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751881AbdATVUU (ORCPT ); Fri, 20 Jan 2017 16:20:20 -0500 Received: from mail-co1nam03on0081.outbound.protection.outlook.com ([104.47.40.81]:40000 "EHLO NAM03-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751146AbdATVUB (ORCPT ); Fri, 20 Jan 2017 16:20: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=6H3uXIdXMtosCkrbcq6PdXwvtm7AEtk5kTijJgfRrcA=; b=aL+hFXV1RYR95n6YHxVFUYrj5YRQ0u+6pqempJ/ZfhT2bkkO4jgQK/MQVeGE3SEzzvadRWmQ8EVXc8eEYqhYo0l9OJEAB2Vijnx29krLEs99u8SlYzckkt8Y5iMZUqHIsXeh8nQAuqcdK2kmniEjDlKBRC4/ZpZjXx4qOQJT+00= Received: from MWHPR02CA0009.namprd02.prod.outlook.com (10.168.209.147) by BLUPR02MB036.namprd02.prod.outlook.com (10.242.191.22) 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 BY2FFO11FD019.protection.gbl (2a01:111:f400:7c0c::188) by MWHPR02CA0009.outlook.office365.com (2603:10b6:300:4b::19) 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.225) smtp.mailfrom=sandisk.com; mellanox.com; dkim=none (message not signed) header.d=none;mellanox.com; dmarc=bestguesspass action=none header.from=sandisk.com; mellanox.com; dkim=none (message not signed) header.d=none; Received-SPF: Pass (protection.outlook.com: domain of sandisk.com designates 63.163.107.225 as permitted sender) receiver=protection.outlook.com; client-ip=63.163.107.225; helo=milsmgep14.sandisk.com; Received: from milsmgep14.sandisk.com (63.163.107.225) by BY2FFO11FD019.mail.protection.outlook.com (10.1.14.107) 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:48 +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 7E.C8.01420.14972885; Fri, 20 Jan 2017 12:55:29 -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: 0ac94371-7ee9b9800001058c-57-588279411c5d Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.8.100]) by (Symantec Messaging Gateway) with SMTP id 2E.33.16817.86B72885; Fri, 20 Jan 2017 13:04:40 -0800 (PST) From: Bart Van Assche To: Doug Ledford CC: , Bart Van Assche , Matan Barak , "Leon Romanovsky" Subject: [PATCH v3 21/37] IB/mlx5: Switch from dma_device to dev.parent Date: Fri, 20 Jan 2017 13:04:21 -0800 Message-ID: <20170120210437.26389-22-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+NgFrrILMWRmVeSWpSXmKPExsXCddJ5ka5jZVOEQe8aBYuX5z+wWpzs+8ds 8exQL4vFm5dODiwez6YfZvJ4v+8qm8fnTXIBzFFcNimpOZllqUX6dglcGZtP7mYu+CdVsXzt GsYGxtNiXYycHBICJhJzfjSwdjFycQgJLGWSuPriNZSzjVHiz94bLDBVN969YIJIbGaUuDhp MRNIgk3ASOLb+5lgRSICahKbXi1iByliFpjDKDH95BFmkISwgLvElw8bGLsYOThYBFQljvzm BwnzCjhIPDv9lg1igbzErraLrCA2J1D80+U+RhBbSMBe4vjlp2AzJQSaWCWmT7rLDNEsKHFy 5hOwxcwCEhIHX7xghmhQlzi5ZD7TBEahWUjKZiEpW8DItIpRLDczpzg3PbXA0ESvODEvJbM4 Wy85P3cTIySgC3cwvr7tfYhRgINRiYdXIaApQog1say4MvcQowQHs5II72tgPAjxpiRWVqUW 5ccXleakFh9ilOZgURLnvRj9MUxIID2xJDU7NbUgtQgmy8TBKdXAqMxTyrPn9A5zu9ZJF6LL 6nzKm3Lv88kEJmi5z2ut/r3J9f7X3V/uG13wz73GLNt6Ri/5x1VmtiobsT8frXdd1zJUvxHd MU11Ga+MYW3LZ6avyfJh+u1iexgUdfcGv5leXv7tgF3srf+Rr/9mrjrHvmrDh+nr18+sWrP1 DM+XVy/S2SysPk3JVWIpzkg01GIuKk4EAC7BUKNkAgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrAJMWRmVeSWpSXmKPExsXCtZEjRTejuinC4GiXlcXBn22MFi/Pf2C1 ONn3j9ni2aFeFos3L50cWD2eTT/M5PF+31U2j2lrzjN5fN4kF8ASxWWTkpqTWZZapG+XwJWx +eRu5oJ/UhXL165hbGA8LdbFyMkhIWAicePdC6YuRi4OIYGNjBKHF55kAUmwCRhJfHs/E8wW EVCT2PRqETtIEbPAHEaJE/uXsIEkhAXcJb582MDYxcjBwSKgKnHkNz9ImFfAQWLq7u2sEAvk JXa1XQSzOYHiny73MYLYQgL2EscvP2WfwMi9gJFhFaNYbmZOcW56ZoGhoV5xYl5KZnG2XnJ+ 7iZGcBhwRu5gfDrR/BAjEwenVAPjdhX/LhttW2vNc1uMj4sqGws7xRgIOyXGp+S8862uKf/D fGdeUOrH9fozJh6p/ziteV13iLSIPcvKifKXMpgvXq+6/XF7Dlv+28Pxl5PmnWS8+dz7fuem 3PX+6kuLl98s5rVl1CoWaKuILt4gWed9U0/3w4K8iKs5ttff6nfqT47lYpA2EFZiKc5INNRi LipOBAB2oTlPswEAAA== MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:63.163.107.225; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(7916002)(39410400002)(39450400003)(39850400002)(39840400002)(39860400002)(2980300002)(438002)(189002)(199003)(8936002)(5660300001)(5003940100001)(36756003)(92566002)(2906002)(626004)(2270400002)(305945005)(356003)(50466002)(189998001)(38730400001)(77096006)(54906002)(86362001)(53936002)(6916009)(68736007)(69596002)(76176999)(50986999)(33646002)(2950100002)(47776003)(110136003)(81166006)(81156014)(50226002)(48376002)(106466001)(6666003)(8676002)(4326007)(97736004)(1076002); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR02MB036; H:milsmgep14.sandisk.com; FPR:; SPF:Pass; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD019; 1:Sf+RJSNPZdOkiQeQirp1/6EM37qqfgtL6rPelLQIsNuxaxSKbd83f+4mm6In4ycIve8faepb0HdnPJb97ml25LmZ4LJU8rZc8Stv+xK61KrjjOFT7lX3dY3Wu9vOkj/mun+lKQFA3hoVYnepxLU4tXsiPt71nYWvv62PHZHJzJF61IEvJmQjz5n+ew2k3ISHndwlZjj74AB6UCUlZ5lFwpjMSZOFXDR2WDL2bdmQON3zWVd9SyuPnIYz3glBOImObMdRtM5kSAtPUY9lRw8ABIa7bl0dOBcJo5lazYP0TLaVBnTBnuSPSPrXYa63sBXJYvwlik0cVfreHKnoTRcR6oUHsa3fA8F9lpaUQLQx2vZh/GxtZvr3yyUl8wO5xcGBSIUiFnR3tq7zuRSc8Du7KN2tRLNln/Y60uYLGSA+BZWNepRq2/sFdb+Gx+q+52fJGagtsgQwfz/pOphrslyuPsnsKrLszj9QE4ADYBRNHl1g26g5/zgQKnBIRKjmEPcJQuJ2uwwccVofdnlaTMGCQQ== X-MS-Office365-Filtering-Correlation-Id: cad335ad-3cdb-4563-4ebc-08d44177f7e7 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002); SRVR:BLUPR02MB036; X-Microsoft-Exchange-Diagnostics: 1; BLUPR02MB036; 3:B55h/MxdTpNlRA11YjP8g8vs9UGVmHpyLdWqDhXvkR62tTq7FJBh7OvShVx7f5VO0YldOTEkZbuXt6VJa+iNon0EJCpJm4WZfVqBVNNetY4+KEMJbSKXlh+mDwbCWbU+k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xuKu+Rj+IdwbnYzoWmdO8+Slo=; 20:VHc8oH7GSswr4ipf3incv+3+3y9Com8Ts1I32T6PdsDBDQYDebmRsYFtAJ903WDnsHnel9IFHSrnmY1LeO96H8X73tmZcsDzlZiT66lE8zha7cHlMEr3zt5U3FIXjj3wE/P992T+y0rFug3Xa4pBAp+yy18tSr8e7valucvfM/6IWcwrSWlIkvmwAEI1lSXRun/TenTTX365IWfCBpNxmPMidqtS5AOEyjQQ2zPmyoFPbc97rKS/yIcqJle8yLSlvAgOXvgKSd7j8F3ai8/xR14yCe/Rru0CRxeaX01mAKC6C/rpCHpwFQEeZHrFEv9aqZEctp57YCFdhz70aqY57oLQ+7mswcLJ+X5V4QioSq/swto8nms61EGKJtTkEdJKvayXVA9Nx8Lo3oDkF6kJioXiYBae8VTFiN6HdfLsD9qSVaFdkLqJXglfwsikZeJDCYvsXXEeJioa1q0d1jZFGnCXFbS7jwSJXcfs3bRJ2uOma+KMhB9Rc8ot1nY3o366 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(42932892334569); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(13018025)(13016025)(5005006)(8121501046)(3002001)(10201501046)(6055026)(6041248)(20161123562025)(20161123564025)(20161123560025)(20161123555025)(6072148); SRVR:BLUPR02MB036; BCL:0; PCL:0; RULEID:; SRVR:BLUPR02MB036; X-Microsoft-Exchange-Diagnostics: 1; BLUPR02MB036; 4:i+3lvul7JuOXv5mXBfSKCwIfFFuiih+Ge1MTnNbJ1Rt/CgJffd+ogtnE01SKl0zki9B27xT0sz/76x8v6TlpQkwnu8bWQei0PqcZi789+YhrD4OUFpwn9OsFAEhkuHXfZ6YuEmZ8P/X0xm2u/OKDZiCJpGFLGVPh9VNzuJu8Wjj4fYiYPhaXRPcs9X9CTqb/3SXHfV0O6OmwHHjk11zW5RN3xJB384hzJMIgOWmjJ0VLM4uyJ6Teo7gyi9WqyyJJ40H/xgO0O8+awiT+HkFt5ifwA7rf98NQFIHOp0Ddm1QMNVYKQlbVd5Z/uI0k4m/4au+kfhMYrvJCc8diSddk+mlTmECIGJBfBKjp72ftwDmgpGu77PsGxRGVCekyW15M9WIWRfctIr2t+VDeF5QyHr0NjI5xg2ca4R+FV8oToHOA03Z7JYPSlZ4qlQvtpOdemKkSfmZkJNWcVu3jbImT1mYLDxkzZe+LgbLOqCpoj1kyXOAluI8BXjM5P/F/kcGjdDVzwocaxJe/38H0+05rAa1Zvif4kU0HYoeNTuSQ+7seCogTMyGqNnsX+8JoqnC5g36g9sEqddwWwCKvCfnNdgsxtF0FYyNrGfbforbbNaZIU2Le9FTc6TIrEGb4BCfPOre4cEh1Y5Cw5PAhf/NmicyV6OEMJVpnxo4giyP5DSw= X-Forefront-PRVS: 01930B2BA8 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR02MB036; 23:+SFXXytcCvj7dwiDaZynjJKABlnSmc/cLW6pX56R+q?= =?us-ascii?Q?mPfCF8iiw265W2SiCXH6iiwhYJ95B3MalwtVuJ79tf20pCoWbxwHel5QfoNd?= =?us-ascii?Q?kLMabn4OAQ7YqAc1VvlIQ7e1jfMZc9OG7VILvt5ya+p11vVasB9QkFO0gzoe?= =?us-ascii?Q?rcaOg+LZ8GFmXMZN/rVlcCWr/GpT9aluel59zPMrn0fvq+COF/71btnQIvEk?= =?us-ascii?Q?SOm7UJIC3rErsXeY2jgGKl8Oc5CPQLGZYF0FOa2Ha87Z4Hkg1lbJFWGNHafc?= =?us-ascii?Q?DqECi34131Nn69RSrBmo8vsSXKdkoS+MkJhuRI+LBs9x8nEwRmg542fwnHPH?= =?us-ascii?Q?ekr1dJgIhMTDVHiMJ3HAqS8M2S+xSmXff1vugPqvnSR1VIrGMlJxtFQcROoE?= =?us-ascii?Q?mp9cTahWT79ASJty27kWD8DVZ6t1fef7S/zNjeNfH9aQHxCV40/gNKq77ClD?= =?us-ascii?Q?sNcw/Q/yKHhJlUCoFAo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otPDa+17bJ22TNjhA== X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jan 2017 21:04:48.1659 (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.225]; Helo=[milsmgep14.sandisk.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR02MB036 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Bart Van Assche Cc: Matan Barak Cc: Leon Romanovsky Acked-by: Leon Romanovsky --- drivers/infiniband/hw/mlx5/main.c | 2 +- drivers/infiniband/hw/mlx5/mr.c | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/infiniband/hw/mlx5/main.c b/drivers/infiniband/hw/mlx5/main.c index d566f6738833..da3bf6c081de 100644 --- a/drivers/infiniband/hw/mlx5/main.c +++ b/drivers/infiniband/hw/mlx5/main.c @@ -3075,7 +3075,7 @@ static void *mlx5_ib_add(struct mlx5_core_dev *mdev) dev->ib_dev.phys_port_cnt = dev->num_ports; dev->ib_dev.num_comp_vectors = dev->mdev->priv.eq_table.num_comp_vectors; - dev->ib_dev.dma_device = &mdev->pdev->dev; + dev->ib_dev.dev.parent = &mdev->pdev->dev; dev->ib_dev.uverbs_abi_ver = MLX5_IB_UVERBS_ABI_VERSION; dev->ib_dev.uverbs_cmd_mask = diff --git a/drivers/infiniband/hw/mlx5/mr.c b/drivers/infiniband/hw/mlx5/mr.c index 8f608debe141..87ca81b85fd0 100644 --- a/drivers/infiniband/hw/mlx5/mr.c +++ b/drivers/infiniband/hw/mlx5/mr.c @@ -767,7 +767,7 @@ static int dma_map_mr_pas(struct mlx5_ib_dev *dev, struct ib_umem *umem, __be64 **mr_pas, dma_addr_t *dma) { __be64 *pas; - struct device *ddev = dev->ib_dev.dma_device; + struct device *ddev = dev->ib_dev.dev.parent; /* * UMR copies MTTs in units of MLX5_UMR_MTT_ALIGNMENT bytes. @@ -896,7 +896,7 @@ static struct mlx5_ib_mr *reg_umr(struct ib_pd *pd, struct ib_umem *umem, int page_shift, int order, int access_flags) { struct mlx5_ib_dev *dev = to_mdev(pd->device); - struct device *ddev = dev->ib_dev.dma_device; + struct device *ddev = dev->ib_dev.dev.parent; struct umr_common *umrc = &dev->umrc; struct mlx5_ib_umr_context umr_context; struct mlx5_umr_wr umrwr = {}; @@ -974,7 +974,7 @@ int mlx5_ib_update_mtt(struct mlx5_ib_mr *mr, u64 start_page_index, int npages, int zap) { struct mlx5_ib_dev *dev = mr->dev; - struct device *ddev = dev->ib_dev.dma_device; + struct device *ddev = dev->ib_dev.dev.parent; struct umr_common *umrc = &dev->umrc; struct mlx5_ib_umr_context umr_context; struct ib_umem *umem = mr->umem; @@ -1288,7 +1288,7 @@ static int rereg_umr(struct ib_pd *pd, struct mlx5_ib_mr *mr, u64 virt_addr, int access_flags, int flags) { struct mlx5_ib_dev *dev = to_mdev(pd->device); - struct device *ddev = dev->ib_dev.dma_device; + struct device *ddev = dev->ib_dev.dev.parent; struct mlx5_ib_umr_context umr_context; struct ib_send_wr *bad; struct mlx5_umr_wr umrwr = {}; @@ -1461,9 +1461,9 @@ mlx5_alloc_priv_descs(struct ib_device *device, mr->descs = PTR_ALIGN(mr->descs_alloc, MLX5_UMR_ALIGN); - mr->desc_map = dma_map_single(device->dma_device, mr->descs, + mr->desc_map = dma_map_single(device->dev.parent, mr->descs, size, DMA_TO_DEVICE); - if (dma_mapping_error(device->dma_device, mr->desc_map)) { + if (dma_mapping_error(device->dev.parent, mr->desc_map)) { ret = -ENOMEM; goto err; } @@ -1482,7 +1482,7 @@ mlx5_free_priv_descs(struct mlx5_ib_mr *mr) struct ib_device *device = mr->ibmr.device; int size = mr->max_descs * mr->desc_size; - dma_unmap_single(device->dma_device, mr->desc_map, + dma_unmap_single(device->dev.parent, mr->desc_map, size, DMA_TO_DEVICE); kfree(mr->descs_alloc); mr->descs = NULL;