From patchwork Wed Jan 11 00:56:44 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: 9509003 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 4CD9F60710 for ; Wed, 11 Jan 2017 00:59:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3E842283BA for ; Wed, 11 Jan 2017 00:59:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3316A28512; Wed, 11 Jan 2017 00:59: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=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 644DF283BA for ; Wed, 11 Jan 2017 00:59:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760098AbdAKA6A (ORCPT ); Tue, 10 Jan 2017 19:58:00 -0500 Received: from mail-sn1nam02on0047.outbound.protection.outlook.com ([104.47.36.47]:15296 "EHLO NAM02-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1759797AbdAKA5A (ORCPT ); Tue, 10 Jan 2017 19:57:00 -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=jo4ysLexLC7zKqfsDi8Ily70/NnAth0UK5OyoCixZgI=; b=eYsZwbdtabAISjoVCO2nW0JeCMTFuZwjeBPITNp0KN3WX1ZmGTib7u5FKaDPGoNs3dpP9Zwwu9DF8GQ1LtnC2UY5Z39+1t1Ya84pAZGWp7C5hREAVA5HHOkbtKqouUv74jmbaHQMHuS3+vagCLhyJwwrz3Q8BtrwL5hu9cPNZ1w= Received: from BLUPR0201CA0027.namprd02.prod.outlook.com (10.163.116.37) by CO1PR02MB047.namprd02.prod.outlook.com (10.242.163.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.829.7; Wed, 11 Jan 2017 00:56:57 +0000 Received: from BY2FFO11OLC014.protection.gbl (2a01:111:f400:7c0c::109) by BLUPR0201CA0027.outlook.office365.com (2a01:111:e400:52e7::37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.829.7 via Frontend Transport; Wed, 11 Jan 2017 00:56:55 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.225) 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.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 BY2FFO11OLC014.mail.protection.outlook.com (10.1.15.48) 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; Wed, 11 Jan 2017 00:56:55 +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 CB.F7.01420.CB085785; Tue, 10 Jan 2017 16:47:57 -0800 (PST) Received: from milsmgip12.sandisk.com (10.177.8.100) by MILHUBIP04.sdcorp.global.sandisk.com (10.177.9.97) with Microsoft SMTP Server id 14.3.319.2; Tue, 10 Jan 2017 16:56:52 -0800 X-AuditID: 0ac94371-7ee9b9800001058c-8c-587580bc0447 Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.8.100]) by (Symantec Messaging Gateway) with SMTP id 48.14.09762.3D285785; Tue, 10 Jan 2017 16:56:51 -0800 (PST) From: Bart Van Assche To: Doug Ledford CC: , , "Mike Marciniszyn" , Dennis Dalessandro Subject: [PATCH 5/9] IB/qib: Remove DMA mapping code Date: Tue, 10 Jan 2017 16:56:44 -0800 Message-ID: <20170111005648.14988-6-bart.vanassche@sandisk.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170111005648.14988-1-bart.vanassche@sandisk.com> References: <20170111005648.14988-1-bart.vanassche@sandisk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrKLMWRmVeSWpSXmKPExsXCddJ5ke7ehtIIgxmWFs/3vmazeHn+A6vF 5V1z2CyeHeplsdjwv5HdgdVj8Z6XTB7v911l8/i8SS6AOYrLJiU1J7MstUjfLoErY+fVDcwF 940qPmycxdrA+EKji5GTQ0LAROLC4/OsXYxcHEICS5kkVjw+xQTh7GCUmHnkCAtM1e9Je6Cq NjNK3JjYwwqSYBMwkvj2fiZYkYiAmsSmV4vYQYqYBZYxSlzY2wrkcHAIA3Wv2GkJUsMioCpx +sZyRhCbV8Be4kT7PHaIBfISu9ousoKUcwo4SCyfYw8SFgIqeXqpE2yvhMA/FomOFVOZIHoF JU7OfAK2l1lAQuLgixfMEA3qEieXzGeawCg0C0nZLCRlCxiZVjGK5WbmFOempxYYmugVJ+al ZBZn6yXn525ihAR24Q7G17e9DzEKcDAq8fB2PCuJEGJNLCuuzD3EKMHBrCTCG11XGiHEm5JY WZValB9fVJqTWnyIUZqDRUmc92L0xzAhgfTEktTs1NSC1CKYLBMHp1QDY9GBredyLJZ9uD1r 6tzSvxNKJJ8JWF3av/qf1dzNB0vvzW0PeW7YNe/Jym96O2+5Opb6fLIO5JuZm7lMVu6R8Cfl Zza1TDEztkhNPZ77y1nSQHJHlUF911HdnV9fT3snJPJvScIBm8nXJ5it6Cnbz3j21LqAbwem tVokr9UVcGn/FsW5p8b0tq0SS3FGoqEWc1FxIgBxFYSIaAIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprNJMWRmVeSWpSXmKPExsXCtZEjRfdyU2mEQdMqU4vne1+zWbw8/4HV 4vKuOWwWzw71slhs+N/I7sDqsXjPSyaP9/uusnl83iQXwBzFZZOSmpNZllqkb5fAlbHz6gbm gvtGFR82zmJtYHyh0cXIySEhYCLxe9Ie1i5GLg4hgY2MEnP2zWMHSbAJGEl8ez+TBcQWEVCT 2PRqETtIEbPAEkaJn5/vM3UxcnAIA3Wv2GkJUsMioCpx+sZyRhCbV8Be4sy/r8wQC+QldrVd ZAUp5xRwkFg+xx4kLARU8vRSJ+sERu4FjAyrGMVyM3OKc9MzCwyN9IoT81Iyi7P1kvNzNzGC vc8ZtYPx+kTzQ4xMHJxSDYxHQ64sUHz4sP3FZra0E22ZKfOL91k/Ydoh2LtMJ0MiMDFz7pLd h5Yslu18vXXr9H4V2ylJOz+bLLjiy8diEvn+I8NayfvdGfeXaTTdFTp11qVRQPD47S8OM2Y0 JbeU1S6tuPKdK7RH+uHUfUlJV1yieWa9YKg+caLd8L9nYA1DkcSJJ/ZOk7iUWIozEg21mIuK EwEBbaqFrgEAAA== 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)(39860400002)(39840400002)(39410400002)(39850400002)(39450400003)(2980300002)(438002)(189002)(199003)(81156014)(5660300001)(50466002)(68736007)(626004)(33646002)(106466001)(575784001)(189998001)(4326007)(38730400001)(54906002)(2906002)(2270400002)(1076002)(97736004)(50986999)(356003)(76176999)(6666003)(36756003)(77096006)(47776003)(92566002)(5003940100001)(110136003)(6916009)(69596002)(86362001)(2950100002)(305945005)(8936002)(48376002)(81166006)(50226002)(8676002); DIR:OUT; SFP:1101; SCL:1; SRVR:CO1PR02MB047; H:milsmgep14.sandisk.com; FPR:; SPF:Pass; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11OLC014; 1:5VwVC6NrIvcYN8J3X32lLP8DfJYjLW22bvNVDoDqjsVIeOhUrWHhf5UUpHmTgzGlzErPbZ52T7Gxa4LFH1Pr+AQNi7M3oJJtgtnBLrOxWDsMcTpSrFM00vXlASbpshsbquEyFhj7pRT61ZmSwb+n8gkh/Dyd8wt4iK//MucvyPlan5wtNFPuN/5N/+9O/K4M1Mn5nklQwSN3dHuQq5L4qzAQLSj6EKzfVydWI2KJt/LpBU3In+4xlLcu9D+uUzQVzZkpWaKy+4LmaYV3d7du6R88fCrM48rPwi/5PQZ0szOe2vJyYNJgJtiHg+obrMosqYwhkM3N2ABtZ52CrQBTYUKfHNEcK5wYrJFMyAvXYEihPIhQd0Y/VAD4g8R0vzNrJATUadVxr6nuD1BS6gr4wWBjzWMDluO7+UFevWiOiPWxY7dv7ZPsoro9tTC3aFRmhqyCU1GS92ALPy/pc3XSxxkft07mwj43LmjYWYl2uAUSwIQz1EHdOnIm9W+JbG6CbzkJgrktJu4skyillgH3hO2zV25yB5Fq7IPPKBM5NWk= X-MS-Office365-Filtering-Correlation-Id: 90984956-a8bc-4791-d904-08d439bcbcd7 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002); SRVR:CO1PR02MB047; X-Microsoft-Exchange-Diagnostics: 1; CO1PR02MB047; 3:OfoifawyWLPuXLoVgB/1jEj2YLxtKRoSyKvndnTKndcHURBMa3QcMsBezqsM0OD5C0FHK8xGyc9CN4ZGg/PJOlOAwUv2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KuSay612Z9ZOUcenhR6qd+VOyegnAu5AdyM+L400z7lAiMhV4=; 20:LAxRsovxj5aJ8QfCjbP192CJehwXC8znmamEP8HPeIyvtTaxjo8XirOgV03NaunC/pCc4Sb/rvTSa4vuTEKi1FUpww3UHLR6FqBne65KBlblNRdglGNlGZCdPoo5V/pRu/4UA2vmqaOpXyHnCFW1XuNTAkgIys2dNW+dex4M063PgyJmbASSroODeKHy0Galhicmi1mgZJ2OaKtbcs9gWcWyOpHe7DHbNfP3yyG9iEQ1MsDLTxZo9aN8Jq66tUDvcrpkWbDrw3ZlqYAFHvuQE4+rAIbr/LxFaFuc192FWXpon9mR1wauBDuymYF6vf4lvHyVQCZR9Bqiqq2YU7uJbDbm/GgjN/QQ8d/T6kJtN7wr1+GvxoC0A+VA8dBjhhcMzhexnpwApbrbHfd7dqOqldJ5wq8Umn0KP1msfqja40mOsgLY5skRtf56oJd80LSG8IpDpP3XauGxyx9SUuqZEKSZwkof+RwrCb3zUPkA5o2IG01gZRS4HiSOSkOtely8 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(42932892334569)(228905959029699); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(13016025)(13018025)(5005006)(8121501046)(3002001)(10201501046)(6055026)(6041248)(20161123562025)(20161123555025)(20161123564025)(20161123560025)(6072148); SRVR:CO1PR02MB047; BCL:0; PCL:0; RULEID:; SRVR:CO1PR02MB047; X-Microsoft-Exchange-Diagnostics: 1; CO1PR02MB047; 4:rnIDkUiUH3XZS4Fz5Tdxw2lQXbBlyDj+BhbfZ6vYoeUU5DSRXTESATbcFYnuXFfMQxiuvuHXuWm+smInRxL2Gq3g0N+shHI7O6jXKFf3YsYaN1dWCk7wagD5i1C5Q7FVb1AYu3OIiSaFva1rZ3jooe4N970BN5nb1NM5y418uZRJh77heHSVNzFLxNumuE0L+Ym5lr27C3WIOUPIGfADJeyx5Ix107h1WN0eToA6LKc17OkJxp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JjijRqS1ZnU8QSaZsDTQTarc1b6aA0cbovvUZMY89wSpv4ULSUrb52wxy2JNyLij9VOf5ceiTfY/QP8zWk5giM1X7gslM/4wxYHf4U53lNHQ== X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Jan 2017 00:56:55.0511 (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: CO1PR02MB047 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 The qib DMA mapping code is no longer built since commit eb636ac0e49e ("IB/qib: Remove dma.c and use rdmavt version of dma functions"). Hence remove it. Signed-off-by: Bart Van Assche Cc: Mike Marciniszyn Cc: Dennis Dalessandro --- drivers/infiniband/hw/qib/qib_dma.c | 169 ----------------------------------- drivers/infiniband/hw/qib/qib_keys.c | 5 +- 2 files changed, 1 insertion(+), 173 deletions(-) delete mode 100644 drivers/infiniband/hw/qib/qib_dma.c diff --git a/drivers/infiniband/hw/qib/qib_dma.c b/drivers/infiniband/hw/qib/qib_dma.c deleted file mode 100644 index 59fe092b4b0f..000000000000 --- a/drivers/infiniband/hw/qib/qib_dma.c +++ /dev/null @@ -1,169 +0,0 @@ -/* - * Copyright (c) 2006, 2009, 2010 QLogic, Corporation. All rights reserved. - * - * This software is available to you under a choice of one of two - * licenses. You may choose to be licensed under the terms of the GNU - * General Public License (GPL) Version 2, available from the file - * COPYING in the main directory of this source tree, or the - * OpenIB.org BSD license below: - * - * Redistribution and use in source and binary forms, with or - * without modification, are permitted provided that the following - * conditions are met: - * - * - Redistributions of source code must retain the above - * copyright notice, this list of conditions and the following - * disclaimer. - * - * - Redistributions in binary form must reproduce the above - * copyright notice, this list of conditions and the following - * disclaimer in the documentation and/or other materials - * provided with the distribution. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, - * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF - * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND - * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS - * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN - * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -#include -#include - -#include "qib_verbs.h" - -#define BAD_DMA_ADDRESS ((u64) 0) - -/* - * The following functions implement driver specific replacements - * for the ib_dma_*() functions. - * - * These functions return kernel virtual addresses instead of - * device bus addresses since the driver uses the CPU to copy - * data instead of using hardware DMA. - */ - -static int qib_mapping_error(struct ib_device *dev, u64 dma_addr) -{ - return dma_addr == BAD_DMA_ADDRESS; -} - -static u64 qib_dma_map_single(struct ib_device *dev, void *cpu_addr, - size_t size, enum dma_data_direction direction) -{ - BUG_ON(!valid_dma_direction(direction)); - return (u64) cpu_addr; -} - -static void qib_dma_unmap_single(struct ib_device *dev, u64 addr, size_t size, - enum dma_data_direction direction) -{ - BUG_ON(!valid_dma_direction(direction)); -} - -static u64 qib_dma_map_page(struct ib_device *dev, struct page *page, - unsigned long offset, size_t size, - enum dma_data_direction direction) -{ - u64 addr; - - BUG_ON(!valid_dma_direction(direction)); - - if (offset + size > PAGE_SIZE) { - addr = BAD_DMA_ADDRESS; - goto done; - } - - addr = (u64) page_address(page); - if (addr) - addr += offset; - /* TODO: handle highmem pages */ - -done: - return addr; -} - -static void qib_dma_unmap_page(struct ib_device *dev, u64 addr, size_t size, - enum dma_data_direction direction) -{ - BUG_ON(!valid_dma_direction(direction)); -} - -static int qib_map_sg(struct ib_device *dev, struct scatterlist *sgl, - int nents, enum dma_data_direction direction) -{ - struct scatterlist *sg; - u64 addr; - int i; - int ret = nents; - - BUG_ON(!valid_dma_direction(direction)); - - for_each_sg(sgl, sg, nents, i) { - addr = (u64) page_address(sg_page(sg)); - /* TODO: handle highmem pages */ - if (!addr) { - ret = 0; - break; - } - sg->dma_address = addr + sg->offset; -#ifdef CONFIG_NEED_SG_DMA_LENGTH - sg->dma_length = sg->length; -#endif - } - return ret; -} - -static void qib_unmap_sg(struct ib_device *dev, - struct scatterlist *sg, int nents, - enum dma_data_direction direction) -{ - BUG_ON(!valid_dma_direction(direction)); -} - -static void qib_sync_single_for_cpu(struct ib_device *dev, u64 addr, - size_t size, enum dma_data_direction dir) -{ -} - -static void qib_sync_single_for_device(struct ib_device *dev, u64 addr, - size_t size, - enum dma_data_direction dir) -{ -} - -static void *qib_dma_alloc_coherent(struct ib_device *dev, size_t size, - u64 *dma_handle, gfp_t flag) -{ - struct page *p; - void *addr = NULL; - - p = alloc_pages(flag, get_order(size)); - if (p) - addr = page_address(p); - if (dma_handle) - *dma_handle = (u64) addr; - return addr; -} - -static void qib_dma_free_coherent(struct ib_device *dev, size_t size, - void *cpu_addr, u64 dma_handle) -{ - free_pages((unsigned long) cpu_addr, get_order(size)); -} - -struct ib_dma_mapping_ops qib_dma_mapping_ops = { - .mapping_error = qib_mapping_error, - .map_single = qib_dma_map_single, - .unmap_single = qib_dma_unmap_single, - .map_page = qib_dma_map_page, - .unmap_page = qib_dma_unmap_page, - .map_sg = qib_map_sg, - .unmap_sg = qib_unmap_sg, - .sync_single_for_cpu = qib_sync_single_for_cpu, - .sync_single_for_device = qib_sync_single_for_device, - .alloc_coherent = qib_dma_alloc_coherent, - .free_coherent = qib_dma_free_coherent -}; diff --git a/drivers/infiniband/hw/qib/qib_keys.c b/drivers/infiniband/hw/qib/qib_keys.c index 2c3c93572c17..8fdf79f8d4e4 100644 --- a/drivers/infiniband/hw/qib/qib_keys.c +++ b/drivers/infiniband/hw/qib/qib_keys.c @@ -158,10 +158,7 @@ int qib_rkey_ok(struct rvt_qp *qp, struct rvt_sge *sge, unsigned n, m; size_t off; - /* - * We use RKEY == zero for kernel virtual addresses - * (see qib_get_dma_mr and qib_dma.c). - */ + /* We use RKEY == zero for kernel virtual addresses */ rcu_read_lock(); if (rkey == 0) { struct rvt_pd *pd = ibpd_to_rvtpd(qp->ibqp.pd);