From patchwork Fri Jan 20 21:04:11 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: 9529419 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 600536020B for ; Fri, 20 Jan 2017 21:06:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3C3AB2868D for ; Fri, 20 Jan 2017 21:06:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 30CDF286D3; Fri, 20 Jan 2017 21:06:52 +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 90FD4286CF for ; Fri, 20 Jan 2017 21:06:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752623AbdATVGn (ORCPT ); Fri, 20 Jan 2017 16:06:43 -0500 Received: from mail-sn1nam02on0053.outbound.protection.outlook.com ([104.47.36.53]:19974 "EHLO NAM02-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752106AbdATVGB (ORCPT ); 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=MUn/hZeHTCdP4cGghgfa8efsS2oDkHQDLfluvjHnhoU=; b=tUbpGrmxobFk8W01iB5Sxy/dKIBTiy+tPa7xc5k4m7dViYi9kaDQKx+7ZIukmWKl31SaLkYwexJu+jHZMgX3ZrUlmtj1Ta9t9j6dKU3vWSmGDFH3La2RzLZQqJv3TxlyDcvqRF7061jLYnTNwGGPb9rSNehQFPUo5JT/UznfYsM= Received: from BLUPR02CA028.namprd02.prod.outlook.com (10.160.23.146) by CO1PR02MB048.namprd02.prod.outlook.com (10.242.163.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.860.13; Fri, 20 Jan 2017 21:04:49 +0000 Received: from BY2FFO11OLC010.protection.gbl (2a01:111:f400:7c0c::190) by BLUPR02CA028.outlook.office365.com (2a01:111:e400:8ad::18) 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; Fri, 20 Jan 2017 21:04:48 +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 BY2FFO11OLC010.mail.protection.outlook.com (10.1.15.21) 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 58.B8.65426.DA872885; Fri, 20 Jan 2017 12:53:01 -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:40 -0800 X-AuditID: 0ac94369-b62949800001ff92-28-588278adda76 Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.8.100]) by (Symantec Messaging Gateway) with SMTP id EA.33.16817.86B72885; Fri, 20 Jan 2017 13:04:40 -0800 (PST) From: Bart Van Assche To: Doug Ledford CC: , Bart Van Assche , Dennis Dalessandro , Dean Luick Subject: [PATCH v3 11/37] IB/hf1: Remove DMA mapping code Date: Fri, 20 Jan 2017 13:04:11 -0800 Message-ID: <20170120210437.26389-12-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+NgFrrILMWRmVeSWpSXmKPExsXCddJ5ke7aiqYIg2u9Khabn+VaPN/7ms3i 5fkPrBbPDvWyOLB4LN7zksnj/b6rbB6fN8kFMEdx2aSk5mSWpRbp2yVwZTzd2cZYMNW44sTJ gAbGuZpdjJwcEgImEofOb2DpYuTiEBJYyiTx7+tWZghnG6PE/7lzGWGqjm9qY4dIbGaUmLXz IRtIgk3ASOLb+5ksILaIgJrEpleLwIqYBVYwSiyZvBOsW1jAUmLzub3MIDaLgKrEnKsXwJp5 BRwkGhs+Q22Ql9jVdpEVxOYEin+63AcWFxKwlzh++SnYUAmBfywSV9btZIFoFpQ4OfMJmM0s ICFx8MULZogGdYmTS+YzTWAUmoWkbBaSsgWMTKsYxXIzc4pz01MLDE31ihPzUjKLs/WS83M3 MUICOnMH490n3ocYBTgYlXh4FQKaIoRYE8uKK3MPMUpwMCuJ8L6uBArxpiRWVqUW5ccXleak Fh9ilOZgURLndbv3JUxIID2xJDU7NbUgtQgmy8TBKdXAeKCC2/RyX+LcOwwNL70eKhoYz5x3 NW3ThGuFFTWfzQTOyUnvfiO79NGL/3fPa1gnzn13otKmQZRf7MrGM4uvuDE3O93oyPj5vfLT v01njZUW3rg6bWKs8//N27WMNWY/2v70w4ed2msZ2FbsiYt6bRwVLMQtq82lzHbjlHUQ3zrT f/GuGme+siuxFGckGmoxFxUnAgBfNZoeZAIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrAJMWRmVeSWpSXmKPExsXCtZEjRTejuinCoPWopsXBn22MFpuf5Vo8 3/uazeLl+Q+sFs8O9bI4sHos3vOSyeP9vqtsHtPWnGfy+LxJLoAlissmJTUnsyy1SN8ugSvj 6c42xoKpxhUnTgY0MM7V7GLk5JAQMJE4vqmNvYuRi0NIYCOjxNmDV1lBEmwCRhLf3s9kAbFF BNQkNr1aBFbELLCCUWLW8m3MIAlhAUuJzef2gtksAqoSc65eYAOxeQUcJOZfv84IsUFeYlfb RbChnEDxT5f7wOJCAvYSxy8/ZZ/AyL2AkWEVo1huZk5xbnpmgaGhXnFiXkpmcbZecn7uJkZw GHBG7mB8OtH8ECMTB6dUA6POnn6nY01dFjt+n1D8yvJFYprPjvWHFTZd5r1me/ZS9/zoDr9X +VdE/lRMXs/Vfjp66qsHq9XaOFYp/v/GfV3slumeJNuTvjvZxG9deL99x/rOgE327OJa63Qn XteT7bzvN/vjGtm3527kLK5P12KU021/FmGq/HmSyLefQgkxRyx9b4UoXdqkxFKckWioxVxU nAgAUPNLMrMBAAA= 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)(39850400002)(39840400002)(39450400003)(39860400002)(2980300002)(438002)(189002)(199003)(68736007)(81166006)(356003)(8936002)(5660300001)(305945005)(76176999)(77096006)(50986999)(53936002)(92566002)(5003940100001)(50466002)(81156014)(38730400001)(2906002)(4326007)(8676002)(54906002)(1076002)(36756003)(86362001)(97736004)(189998001)(110136003)(106466001)(48376002)(626004)(33646002)(2950100002)(6666003)(69596002)(47776003)(50226002)(6916009)(2270400002)(2004002); DIR:OUT; SFP:1101; SCL:1; SRVR:CO1PR02MB048; H:milsmgep15.sandisk.com; FPR:; SPF:Pass; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11OLC010; 1:LxGdzr7QMJJOCAviBIiwzJ7ZTIqJM1xlYs/pEH4xJPaj3ufEaW1XnqTBD6kqJatMPt8jr3Dnh/eF73mdMGfNESHg5IBDLAVPCjGf432JnMdJHYQThdfO7ACfynUT0UfqSph3R1OHP1Brvixyhr9g/NCxNbXP2N4fG1SOzT7MGOdLyS9TGh8gJbwYhBCTkp7aQ7CpIo3hDR5qsXyUH9uYPJs3jL0WPMfusuxOYi/+2amQV8Znk3KZKZD1BxyCH4B/Yi6fHl4b77kGMFnOlb1Mlzsn8wllUNkHDurAk7kgmABZFgCEBV1PcGz8OiQzyx0+POf+buu3WlCpBCY++iKqlqBuynNfkr7P+VgHdv21OgDE+V+ckg5ayAZMjspm4i6UIGeoABbnfm5MZKFbXUag7C7Y3Xr82BG1Xfalok9Q/ScxOHU/hyjqjImy9kDUMWwTj6/i8sKO4tBbmNHZSap5u5SHAmnIaqNFO2I21d5uKVGj5pXS/J8SlJj1DBL/9Ccx X-MS-Office365-Filtering-Correlation-Id: c0bb9880-8a26-448d-6e1d-08d44177f78c X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002); SRVR:CO1PR02MB048; X-Microsoft-Exchange-Diagnostics: 1; CO1PR02MB048; 3:JpRpveUetWVt11tHNoRWZ4VOn53lWpCjr4DQmfxrBnsdShdXChMJ4ov4BmYMaacbg9dA2D11Ga8eMflZrJMg7MXdBrrAenC+8dx66Dr+JEgGFP23q2ke1tungAVOYuPqtivVNkWbBALkUnBMV4S09eyC92aUvHeCCUaotv7o2REaKX8W3XwYa6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v4gkYya/kwD0R6gD20WJ7Ab+ X-Microsoft-Exchange-Diagnostics: 1; CO1PR02MB048; 31:Fx62u177QGiJsb63oc5Wg5iHpzNaTz2eoKQ9kVK0ezbYOvx45KoMzm+x18a4BUXQM0c73vMXdxdwL7bqm7MpFvZCUKEJOrZrpGZQeUAerHAL2DEdtnL8SVCJxbVwrPEbhrwKnSd00k67TXD5RpdbD5vEZypZHnc9i81dVQz2pqhgWFjSfuKs/pI5I30Tg5gR7jdmzuAWolfneaW2FI85roQ2dzqGFrMKykDqX5VtrIby/CMR/9GkX9tKQfaXRa0lAX1gQa9I8+1uGniPVz9nfg==; 20:AIzdTlmfemCzbzoS6WXbBQ3BuQv8OCQIqs2ofDaUgfEAEuTI+p2v2sYH6vSY+1UfO09JLO0+au46Zvm5xbTy/fe8FAB8Kz1Xnahpe0WHwHbckVlQjZ4ttTJQG332A26JRGxYxmKqA+0cuRWnDry2W4dLqRX8O/H5FILzrdLlE+f579NOeuxF56XW9+0qg0EBlm4BIEgQaPYlvX83hFlZQY/S2Caf/HkasdG4V1ZLRtyUzVDK/Iid3K8aTVZpBU6iWrTDWUTBiZEvpd9rbcaR3RwNzlvzxaOi2+VS457i9npmbBix87z+XyfS2Bb6eaA+rIDccGWFpkitLVvThc8fLsVi0PB0dRml+Qa5daaC4BgzOABLwf0L3tUBb28YJtKj26RpAc+BVT39wUPMqkvVjSdyMrf5ySEvzZKUOxh7wiXbCV2xdGXnAvGU2Xj/YHRbeJ5P6nqDkJS7ZlQyOfcZwYNmQx+qgGY6zhQizFtMrvirwMTdDGr7VcGFcIA2sF7E 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)(5005006)(8121501046)(13016025)(13018025)(10201501046)(3002001)(6055026)(6041248)(20161123560025)(20161123564025)(20161123562025)(20161123555025)(6072148); SRVR:CO1PR02MB048; BCL:0; PCL:0; RULEID:; SRVR:CO1PR02MB048; X-Microsoft-Exchange-Diagnostics: 1; CO1PR02MB048; 4:TzCmxkTndBbaGBZEStQmJPQNTFA36e688xPNNqcEcGSIFGXzAGFvSCEJo8J93HvRs81+PlrhRqjGUACU0b7aJ/RLI23Fl184P9FXpb2t5G7gGnm4tgmA3kRC4XyTdwYWGRZEiskqXQRJ5k8rbMW8vOmdST2DRXLnrPgikDDyy+CChbCBbC/MTgtEF+atlLZmK4JoC+SCyRKyHL7cdXMxK1Vb+BxxO1gxyoZWUUivcC0ke3fU4ygnbbhlH2BpP0p6OS96OuWgtKg8zJEvMbXdu/OJH85HK23Jcs9WA2Ncj0QNTsvZKCGrdhX0RCQv0XxOwlVEKJg9BKvZECriRqqmrfMBU75NtS2jMtF9WDXiygaIozYrHV4/nm0dj5ybc3w5bgbnJ2jbRuMbrkblo9YF3iS9l2OeQk1y5/acYplRr2Q4DewZlFCksbVPkU5hmf35/qc8f8bamDZj7wF15LbfS51BsK4pMCa0rIIlASWUYJawbaqgzfItqn8qsGnONYWYN7pj7KkmS/dr3fweHak/TQLtJYFVoYsKqFRw99OgX2YV8CzvUXzfeg8u8s8v6xMCx3SO6FHWPSZpIGHWy7ahGJCiQ1dNCOhFmvP+23el12yPqCd528qDXFBSsBZ3THY4XyCvvGJQEfP9aAEtwu2V3Sgc9RLBIETJEyBjk1lQvhwpMigZIjQUvwzkhAZ/I+XI/nGO3r1HYvtarYlun27cGA== X-Forefront-PRVS: 01930B2BA8 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CO1PR02MB048; 23:/kZwTSLxPXgJqY5JPEtC+4GLh0CMDKShZytA54GzwB?= =?us-ascii?Q?wPPcPp8lNULQI6yipMncl83A8nPuwhLOhBfPWRMXVDGMbSxRfMereJkIe8+m?= =?us-ascii?Q?5avHQNPxaZsn1VF4zOBXiQ0NWv89SqJ4p71S2hpSRv6ya6lh20GPuBPkuzge?= =?us-ascii?Q?fXlcd6LSUw/+gE5mJo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-ascii?Q?GYxeGIY/9/Cmqp6a6OnuSCwY3eE2g8B3MyOFWnPm3MSLe21TJN7iPZsGeRBw?= =?us-ascii?Q?u07wK7ehL2DqOg093G+KHdbhhCOuWq5szvR6Vkd3nUzBq/4M7B2KzASOUUJY?= =?us-ascii?Q?689WoMbWBn+R0=3D?= X-Microsoft-Exchange-Diagnostics: 1; CO1PR02MB048; 6:fDYJFgztnaj9ZoLB1i27oVZMs38biC1T+rUbo4wFo8r9LlDu2dw1MTPSAqESBejaUU898s9mFaYeNXQZ1M22KTno8VXyrNqMRYhwzqoaPmBjek5SdjC3c5boWEsn2OE2nVr3SDfPpOZaMEoykOKGcQM7ruah/+r/416qUNGbW0oi8ffUZdbZ1kJXWnalYpsd/OZTWQ0RcNAo3M4CFlpg1bXVgp0C5V7WiaS0onh7wqB+1+lUy2SLFotkvrxgzlfGywOIHIrNXDqCFtDul6oevr5SrZMSS6eAPeNV/dPClErVfdpFHa0wK5nYHK7TE7hN8GGqCxgRGS/WXTStsMIQ+Axe/11qlFg1pZECQVP7N7+BV/5tug87HQntacCjPyBXDfYLa6gJkOtbiCxnUDU8K4dGz1SZAjpKKc3VxrKgU3ul0dasecW6cyu6VzPXBCHhzyPvVPuYy5EUnIdanMMWwA==; 5:/XiPmB7MjopgcH3Hgk/Gd+qIv55PR1EXKZ5rTUZNvIK9r9JDRqw+F6HbJmCNErcIckvo15knEsxQjKyVNrPINIhhvJ15YOXg6g3ywP6tmV5rRSCixf8+5zqd8AR4iZvDz4TCqd5o5nwd/YvQr5LnWQ==; 24:xUYoJWCqEDrmAW+/mOeKQ0VclbpjJqEZ2XWXDt9T0BRNWv2vMkQ+UhGdxe3gDtcpliKaDoBG1fHsrn27K5u/KM6QuMzMy7pz0T1j18YtzKg= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CO1PR02MB048; 7:uRYSTNiiU00A56EJEJvhlBShZpdg5BpBMbqVXY+QnWSZ2/YD/XcCjP6s/LJ9RUrXvqdjoGTLE6q0lCaaY9hYY2ofPEm8x84QHabD+NqtLiC2rft5KAx1ecEpLjLdEmbiX6K35kbYo09+NoWswS4SGc9ZRIeZFzhTEU0mRu8Cu0rV6m45QDSD0sx0gVYHTPIsU7AghdYA6/nQVN9VVll+4vw3WMw6SyB04YJZpCaECNZSiRA7doDYx4r8YzhMyGUkG58Xb6DZ53UF+p9I10bLhDoIX0gyk7qwMmmL6eYUiEJArjQY7oNbw9brOofo5JsYWskoYvBTilKGa9D8sgTcMQT+vktCA9H9umISCyhg/4JbMtkaUlTIL3HQ9i6RuizUjVEf27AoYyfaV7oZzb68dnvn8EIpYZwvpX85gm2kuA2IfVmqIXVFRgs19k9BubqLNsd+ggeh0PDs5srAeyGTFQ== X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jan 2017 21:04:47.5703 (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: CO1PR02MB048 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 -};