From patchwork Wed Jan 11 00:56:43 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: 9508979 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 A7D0C60710 for ; Wed, 11 Jan 2017 00:57:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9801228512 for ; Wed, 11 Jan 2017 00:57:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8AE9928568; Wed, 11 Jan 2017 00:57:02 +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 BDD1828512 for ; Wed, 11 Jan 2017 00:57:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759795AbdAKA47 (ORCPT ); Tue, 10 Jan 2017 19:56:59 -0500 Received: from mail-bl2nam02on0075.outbound.protection.outlook.com ([104.47.38.75]:26441 "EHLO NAM02-BL2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1759223AbdAKA44 (ORCPT ); Tue, 10 Jan 2017 19:56:56 -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=MUn/hZeHTCdP4cGghgfa8efsS2oDkHQDLfluvjHnhoU=; b=LK1bF20WA1siKVDQt9nO380JhXRNdigyq5JIrpHuVDibeLz6Qzz9dRakY/tLb2zfAyt5ROtvHXMg6CREuFhdFug8Tdt0g3aqDLl0/BCgqL9BrbFtKJaTNC9gk5XdJJCPSl4dU9uxz2fCKRTusHansG953mOtenUgqx2k7CUB4RY= Received: from BY2PR02CA0024.namprd02.prod.outlook.com (10.141.216.14) by SN1PR02MB1421.namprd02.prod.outlook.com (10.162.0.25) 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:54 +0000 Received: from BY2FFO11FD026.protection.gbl (2a01:111:f400:7c0c::125) by BY2PR02CA0024.outlook.office365.com (2a01:111:e400:2c40::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.845.12 via Frontend Transport; Wed, 11 Jan 2017 00:56:54 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.21) smtp.mailfrom=sandisk.com; redhat.com; dkim=none (message not signed) header.d=none;redhat.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 BY2FFO11FD026.mail.protection.outlook.com (10.1.15.215) 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:53 +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 EA.7A.65426.13085785; Tue, 10 Jan 2017 16:45:37 -0800 (PST) Received: from milsmgip12.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; Tue, 10 Jan 2017 16:56:51 -0800 X-AuditID: 0ac94369-b62949800001ff92-ad-5875803106c0 Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.8.100]) by (Symantec Messaging Gateway) with SMTP id C7.14.09762.3D285785; Tue, 10 Jan 2017 16:56:51 -0800 (PST) From: Bart Van Assche To: Doug Ledford CC: , , "Dennis Dalessandro" , Dean Luick Subject: [PATCH 4/9] IB/hf1: Remove DMA mapping code Date: Tue, 10 Jan 2017 16:56:43 -0800 Message-ID: <20170111005648.14988-5-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+NgFrrKLMWRmVeSWpSXmKPExsXCddJ5ka5hQ2mEwb0JIhabn+VaPN/7ms3i 5fkPrBaXd81hs3h2qJfFgdVj8Z6XTB7v911l8/i8SS6AOYrLJiU1J7MstUjfLoEr4+nONsaC qcYVJ04GNDDO1exi5OSQEDCR+Lv4HGMXIxeHkMBSJolff+eyQjg7GCX2L3/EClO16eY+qMRm RokXy1rZQBJsAkYS397PZAGxRQTUJDa9WsQOUsQsMINR4vLLH2AJYaDunklTmEBsFgFViTX9 m8CaeQXsJbY9PckGsUFeYlfbRaANHBycAg4Sy+fYg4SFgEqeXuoEWywh8ItFou/WDHaIXkGJ kzOfgM1nFpCQOPjiBTNEg7rEySXzmSYwCs1CUjYLSdkCRqZVjGK5mTnFuempBYamesWJeSmZ xdl6yfm5mxghgZ25g/HuE+9DjAIcjEo8vA9elEQIsSaWFVfmHmKU4GBWEuGNriuNEOJNSays Si3Kjy8qzUktPsQozcGiJM7rdu9LmJBAemJJanZqakFqEUyWiYNTqoFRJIdbadeRwyeVpAMU X2q37H783XJt8dVa/qvuZh3nxI/kXt1x9vBCqU51szdLFq/Pswhk37rry7lJh360h8zfLP+t nX3e3JOMXI8luwtVJa/Jqi86pq1wuf2txXvpfH/hp+YT+Xqdz/Zf/W95Jsftm4Sf+ETvMN7+ 1Not/wLDE+xyKx/d/9OuxFKckWioxVxUnAgA7q97YGgCAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprFJMWRmVeSWpSXmKPExsXCtZEjRfdyU2mEQWefscXmZ7kWz/e+ZrN4 ef4Dq8XlXXPYLJ4d6mVxYPVYvOclk8f7fVfZPD5vkgtgjuKySUnNySxLLdK3S+DKeLqzjbFg qnHFiZMBDYxzNbsYOTkkBEwkNt3cx9rFyMUhJLCRUWL+yaWMIAk2ASOJb+9nsoDYIgJqEpte LWIHKWIWmMEo0bXjKDNIQhiou2fSFCYQm0VAVWJN/yY2EJtXwF7iewfEIAkBeYldbReBNnBw cAo4SCyfYw8SFgIqeXqpk3UCI/cCRoZVjGK5mTnFuemZBYZGesWJeSmZxdl6yfm5mxjBvueM 2sF4faL5IUYmDk6pBkb95OkNDsJMLInqB2fOYz2x6Xnj2vkva9q21fs+W5nNf5rbN/h2sNkH rw1XHJPnxi/XPtp8tqbtQeisowHXxN8tzbO4G7amtFnDw+jEz7tJtaE+Cx7x7JZPcJI7mVmy jtEqvvH9lnnXbs+QSVRi1fgautmy9drGdWLWCwp25X1oM+R9Yn58r4ESS3FGoqEWc1FxIgDJ 1Y0HrQEAAA== MIME-Version: 1.0 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)(39410400002)(39860400002)(39450400003)(39840400002)(39850400002)(2980300002)(438002)(189002)(199003)(92566002)(48376002)(50466002)(76176999)(50986999)(1076002)(2906002)(106466001)(4326007)(47776003)(2270400002)(6666003)(2950100002)(6916009)(69596002)(33646002)(36756003)(5660300001)(626004)(97736004)(189998001)(5003940100001)(77096006)(86362001)(356003)(38730400001)(8676002)(50226002)(81166006)(54906002)(81156014)(8936002)(68736007)(305945005)(110136003)(2004002); DIR:OUT; SFP:1101; SCL:1; SRVR:SN1PR02MB1421; H:milsmgep15.sandisk.com; FPR:; SPF:Pass; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD026; 1:TIGBJqGwHqtzhYeWhORTiwh2AIhKfe2/7K0bXIJd2C/+GYOUmkxwL/YItINRQikxpQkaKBOq/YjrGFVWyHelmg38M05dB+wLpNgx1ytN6uSWNHK/vaBdJIwgmERSZ95rRRLZrPnE5GnwyYRZw2kAnd9LvKijbhm0/kol1oXfqZvS1SCs4w2Maql7NjX0iJ8DcoBjmjCjwwKn0wUncAGdScKAe3nzOiPa8gqP8VewLFZ0DxQLDN3m2PDU2utH/4N0CAO6W5AA9vbMy+6GlJoZgCeFC8wh/KXxkbM6IAxnyUesAiBfumeRgK7blo/QgR7tCMaMi8+7f0imD9/XLDn0KOkR2E/yluwGVnxUjDn32EdDqSCm8urAU07mcyDzhjbbwxlinLPPNZ6eoGe1RvsPT5xjHXw5kHMgFFxdKuRISkmZ0auRZFucqqvUsOCu7hmnoq0IX9WmkUSCaueM6U/lXbHAG6GlfOStq6iEWgkgEO5wMeue/LrlK2UsZbG9+5xt X-MS-Office365-Filtering-Correlation-Id: 2a01e333-9d3b-4b44-0991-08d439bcbc08 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002); SRVR:SN1PR02MB1421; X-Microsoft-Exchange-Diagnostics: 1; SN1PR02MB1421; 3:qj4bdGVLm2EUjhPJgA5zFFE3LTDjHG2beH4bofvryXK6x4SKkg/WaTTu7pZnpOVakg8hfxCYyxCiTFQGGm45Qma6B1JFm5b5dSgfnB53pr98GOyUtWx/cbD2wD74Cd7MM3+nTdLCm/HABmoJl7A+xB2t8chl4rLNd6d2D7UqS9lt5Wi4BwueYE0jH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yVxvJT6ipN X-Microsoft-Exchange-Diagnostics: 1; SN1PR02MB1421; 31:CS63y5TBtrMfXbgWlz1Vk8FfM5oHCEN61CwC1vgsyKGuAK3gP+RogfWpp1WosLJh+oJm4XpkjSAWFSvaCQrX5pz06+UbEpMwadY3xcSOUVJpoVFHBhIc8qdDxKOLGw4P74zhN+od9flMxzBXk1lkqs3WTnVXeMKu4g20K2tIMFUsbPpIofRjhKvl5oc07jjtGj2QX1z4ZBwQzOe4FWAZ18YZCzaN54NmzYYewBKZ0KcCSRvJxNoBY9x54lwyoqfIuEjX8u98He7X4abjVuHsrQ==; 20:zvksuOE1gZEv95wnApKsWKs3FLjMywBQslsaVIO0v9We4ivSbYgivGTLprcEBSRAR1hYfoQK4b7IV3yY8hC4UhZY8m3k0N4ohkpWwmUDbFWo+VUbUyR/RTUIchKjHM0vr/WW8V/BwoqJpDDHZ3NH1IB/iI2gTtRBJQndGelrIeLWOYVIL0Vst+HmjV26fTRvs03iwcgSILjH5EIRVpq5VEc7Wjyoeneksa0/1T+g59MPA1nzhc5MlKY6E6r6b51qT6N3uggQMF0stv2/tUEDYiwc0s2pLuuli9gXQLG1l4Y6zFX4NPVjPxkdR9r+oJTgysKY+EQmS4/WJqfa/KrC72R7SJvwqdwy6XBOEZ11ZvxMY52IBhetDWi5Eg9h8pWagiPt7+Kbp+JrYV6m/8nAyWO7XO62f+NMhCul4HoqriTtdJCFm7wrePeAaqoUQy/FbHN16wPWd1j5kvoZF62r/ta5dfd9S2NKD4UH0o2CmvGwApohZGM51dpkQ4wcFEBw 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:SN1PR02MB1421; BCL:0; PCL:0; RULEID:; SRVR:SN1PR02MB1421; X-Microsoft-Exchange-Diagnostics: 1; SN1PR02MB1421; 4:AjATj7eMxyHYVJoiKm2OMsSp93d9Z+2oeDhg1JBpP9boj7ToxYVwz5ULFpy8PiVyRQ+Qk2eG/vOClMFP/EW2Xu2p1lyyrPPLfQ4aSIysS94zTZgl5rCTOWOb4+/o2hLjUNt4U/nr4YkZtvne4Zj9zQvnXZ6KyvIgsYQaC6KR8V20crtWmrtUxKvu+BEyuuQX1i91hvEjB1w8i0toUH/1jlPMscIUaH2Rizj9M8vvxITPxfQDS/4+VFyYzUUn47Kc6rKXCxis6I1mpkwiapyn9jBiP2FJLppNkSwfb4fxUNnl3COaP9Q0ZdsqRUGl+JErQQr/3YShB6ywD1lAQcQU8bE6A/8KEJUsoBhOsXMPiYd7vcLzBkWDwB05WAZkc1fEskBkA2i3I2vYK9NThiW2jDZM0V/PstNa0HTB0mQa5ekKQ8utFYXRDWasdTvf7aTItDBUFA2cPOtxxp66ccwg20RWzLt2UYupk3oF4xnVHa6dJ6KtyzGAFvY234PeBZtgr4T/xehlj0Nk6J7A0nzhABEpsvxOiwh5if92Q9HZgRi29TB3wzvPUvh2/JzbDeAD4wdzBwVb846VTYv6+KyMszOkMjIO9vJQHv7nzDYRHhbq8UVTfX6iw/ZL3COtP9E+FW8YJWdsYL7zTTzKjAEpVC2PeaPQTsiL64yin8y/fcJvqAfz6AG2cHpMQjL3MirXk/HZmaDLjXOAstCmP8ve1w== X-Forefront-PRVS: 01842C458A X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SN1PR02MB1421; 23:kSLlysQ1CsYira+JdS4fjBToVp7TpZKEq80bOFrh3?= =?us-ascii?Q?OB5gDZKg08lgIyTVxob+pjeyeGLSvoxieH9Cbbxl1OT0HAWoEw172l1ORbr/?= =?us-ascii?Q?3DuTQy4jhJlhlMXIyLksBMyW/m3jdgT4iQBYqdWXbfKBGumDCOPW8H+nJ5Xm?= =?us-ascii?Q?jH4MJsP0VaGdVAbkiYum3T/a0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9WEnc6ednWdr1LqVO6/PJ+dZ6tbBrv7vb0KQ+JVSNaHKXINicJ2dE7Z59AHeNUwcjdVEwSTt6yNPLRQrs5g7Dh4dWpf2KkVm8LV17VHXZiZyWN6mhMWXklx1yR5iMnxntfL/6ckwhBtwCpghOioI0f9bH3svdokDVQzaJ1RRUA35eNznCr9PrPbdh9X0Z2SqWNc2LMo/HEeoDdeONJqxRYlO99sBUJFKa5Q8LLnExjwMB8+fvMggA7JJHBL8+HGbaQisoX4fOdxx5GKQqTUf2KIz+QHMymp4d/ReGRy862uLEa2BN26wOzrfbYl69YqdLpjJmCBN4dIpULC51yo4+mVw7kKdjZmfUTbigZmryFkvmFof56PodKqCPVyHxq1VMK21q/JFzgQ== X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Jan 2017 00:56:53.6736 (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: SN1PR02MB1421 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 hfi1 DMA mapping code has never been built in any upstream kernel. Hence remove it. Signed-off-by: Bart Van Assche Cc: Dennis Dalessandro Cc: Dean Luick --- drivers/infiniband/hw/hfi1/dma.c | 183 --------------------------------------- 1 file changed, 183 deletions(-) delete mode 100644 drivers/infiniband/hw/hfi1/dma.c diff --git a/drivers/infiniband/hw/hfi1/dma.c b/drivers/infiniband/hw/hfi1/dma.c deleted file mode 100644 index 7e8dab892848..000000000000 --- a/drivers/infiniband/hw/hfi1/dma.c +++ /dev/null @@ -1,183 +0,0 @@ -/* - * Copyright(c) 2015, 2016 Intel Corporation. - * - * This file is provided under a dual BSD/GPLv2 license. When using or - * redistributing this file, you may do so under either license. - * - * GPL LICENSE SUMMARY - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of version 2 of the GNU General Public License as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * BSD LICENSE - * - * 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. - * - Neither the name of Intel Corporation nor the names of its - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR - * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT - * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, - * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT - * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, - * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY - * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - */ -#include -#include - -#include "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 hfi1_mapping_error(struct ib_device *dev, u64 dma_addr) -{ - return dma_addr == BAD_DMA_ADDRESS; -} - -static u64 hfi1_dma_map_single(struct ib_device *dev, void *cpu_addr, - size_t size, enum dma_data_direction direction) -{ - if (WARN_ON(!valid_dma_direction(direction))) - return BAD_DMA_ADDRESS; - - return (u64)cpu_addr; -} - -static void hfi1_dma_unmap_single(struct ib_device *dev, u64 addr, size_t size, - enum dma_data_direction direction) -{ - /* This is a stub, nothing to be done here */ -} - -static u64 hfi1_dma_map_page(struct ib_device *dev, struct page *page, - unsigned long offset, size_t size, - enum dma_data_direction direction) -{ - u64 addr; - - if (WARN_ON(!valid_dma_direction(direction))) - return BAD_DMA_ADDRESS; - - if (offset + size > PAGE_SIZE) - return BAD_DMA_ADDRESS; - - addr = (u64)page_address(page); - if (addr) - addr += offset; - - return addr; -} - -static void hfi1_dma_unmap_page(struct ib_device *dev, u64 addr, size_t size, - enum dma_data_direction direction) -{ - /* This is a stub, nothing to be done here */ -} - -static int hfi1_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; - - if (WARN_ON(!valid_dma_direction(direction))) - return BAD_DMA_ADDRESS; - - for_each_sg(sgl, sg, nents, i) { - addr = (u64)page_address(sg_page(sg)); - 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 hfi1_unmap_sg(struct ib_device *dev, - struct scatterlist *sg, int nents, - enum dma_data_direction direction) -{ - /* This is a stub, nothing to be done here */ -} - -static void hfi1_sync_single_for_cpu(struct ib_device *dev, u64 addr, - size_t size, enum dma_data_direction dir) -{ -} - -static void hfi1_sync_single_for_device(struct ib_device *dev, u64 addr, - size_t size, - enum dma_data_direction dir) -{ -} - -static void *hfi1_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 hfi1_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 hfi1_dma_mapping_ops = { - .mapping_error = hfi1_mapping_error, - .map_single = hfi1_dma_map_single, - .unmap_single = hfi1_dma_unmap_single, - .map_page = hfi1_dma_map_page, - .unmap_page = hfi1_dma_unmap_page, - .map_sg = hfi1_map_sg, - .unmap_sg = hfi1_unmap_sg, - .sync_single_for_cpu = hfi1_sync_single_for_cpu, - .sync_single_for_device = hfi1_sync_single_for_device, - .alloc_coherent = hfi1_dma_alloc_coherent, - .free_coherent = hfi1_dma_free_coherent -};