From patchwork Fri Jan 20 21:04:12 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: 9529427 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 B549D6046A for ; 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 912BD283E7 for ; Fri, 20 Jan 2017 21:06:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 83FA0286D5; 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 9BC972868D for ; Fri, 20 Jan 2017 21:06:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752104AbdATVGr (ORCPT ); Fri, 20 Jan 2017 16:06:47 -0500 Received: from mail-sn1nam01on0052.outbound.protection.outlook.com ([104.47.32.52]:3040 "EHLO NAM01-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752058AbdATVGB (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=jo4ysLexLC7zKqfsDi8Ily70/NnAth0UK5OyoCixZgI=; b=SlHMBKYnBNWQ7pwn4gqZk2P7QCXo3vrwdpL/Sum0RITM0dT1HmZe+3G8rO/o8mmoEQMZyG9Crx20xLd+UoT+3aPUSIijJOZaMCYipbVRXGsk+eL/ufI9LROZN3NpzpCX2rMxFzhpEHupv+lRaGXK3zlKu/7ZXFXUVhg2nstCJNw= Received: from BY2PR02CA0042.namprd02.prod.outlook.com (10.141.216.32) by BY2PR02MB041.namprd02.prod.outlook.com (10.242.44.20) 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:47 +0000 Received: from BY2FFO11FD045.protection.gbl (2a01:111:f400:7c0c::115) by BY2PR02CA0042.outlook.office365.com (2a01:111:e400:2c40::32) 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:47 +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 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:46 +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 28.B8.65426.DA872885; Fri, 20 Jan 2017 12:53:01 -0800 (PST) Received: from milsmgip11.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; Fri, 20 Jan 2017 13:04:40 -0800 X-AuditID: 0ac94369-b62949800001ff92-27-588278ad1156 Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.8.100]) by (Symantec Messaging Gateway) with SMTP id 2B.33.16817.86B72885; Fri, 20 Jan 2017 13:04:40 -0800 (PST) From: Bart Van Assche To: Doug Ledford CC: , Bart Van Assche , Mike Marciniszyn , Dennis Dalessandro Subject: [PATCH v3 12/37] IB/qib: Remove DMA mapping code Date: Fri, 20 Jan 2017 13:04:12 -0800 Message-ID: <20170120210437.26389-13-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+NgFrrELMWRmVeSWpSXmKPExsXCddJ5ke7aiqYIg+1ThCye733NZvHy/AdW i2eHelksNvxvZHdg8Vi85yWTx/t9V9k8Pm+SC2CO4rJJSc3JLEst0rdL4MrYeXUDc8F9o4oP G2exNjC+0Ohi5OSQEDCROHNtAUsXIxeHkMBSJom52zYwQjg7GCVW37jGBlP1c+cyNojEZkaJ zd+7WUASbAJGEt/ezwSzRQTUJDa9WsQOUsQssIVR4vzE40CjODiEBSwlzncWg9SwCKhKvP+/ jhHE5hVwkDj4fgLUAnmJXW0XWUFsTqD4p8t9YDVCAvYSxy8/BZspIdDGKrHrxS9miGZBiZMz n4AtZhaQkDj44gUzRIO6xMkl85kmMArNQlI2C0nZAkamVYxiuZk5xbnpqQWGpnrFiXkpmcXZ esn5uZsYISGduYPx7hPvQ4wCHIxKPLwKAU0RQqyJZcWVuYcYJTiYlUR4X1cChXhTEiurUovy 44tKc1KLDzFKc7AoifO63fsSJiSQnliSmp2aWpBaBJNl4uCUamAsFlij9+PvL+acnzLv9884 NNH4n9ccD96EfTZcO0P/1JavWvh/yvyqXc2V+6s8DbV+/gnZyCpwtLPfdL+WF//Gn/yl/YdD Twfc9VPaF/VM/3hRMVuwbMyzH5suey457nnrMssRW+0kiTaDL60eMvt3CVuf93Gxirp56Jbs 3tuHQhOnOeRHBP9RYinOSDTUYi4qTgQAVxPwamUCAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrIJMWRmVeSWpSXmKPExsXCtZEjRTejuinCYPMGbYuDP9sYLZ7vfc1m 8fL8B1aLZ4d6WSw2/G9kd2D1WLznJZPH+31X2TymrTnP5PF5k1wASxSXTUpqTmZZapG+XQJX xs6rG5gL7htVfNg4i7WB8YVGFyMnh4SAicTPncvYuhi5OIQENjJKzF71ihEkwSZgJPHt/UwW EFtEQE1i06tF7CBFzAJbGCUOHVwDlODgEBawlDjfWQxSwyKgKvH+/zqwXl4BB4n+NcfZIRbI S+xqu8gKYnMCxT9d7gOrERKwlzh++Sn7BEbuBYwMqxjFcjNzinPTMwsMDfWKE/NSMouz9ZLz czcxggOBM3IH49OJ5ocYmTg4pRoYu/90L9dkUmo4eOvkrrqp05+cvPN90nynDZ8Fb1ssLqs/ c3N6pTR/Suw96eq39oc0Ll6U3v5tcUf6w3ffl85LmH7zbN+9T1f+zpN2nZ9rHrpsc86bVT1e N89+Udvxqdj7MZcvA5Pt59pFrjkbt3y92y69UY7Z28knS8hQpPVn+eETLw9I7t6S66bEUpyR aKjFXFScCADL0qyEtAEAAA== 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)(39860400002)(39450400003)(39850400002)(39840400002)(39410400002)(2980300002)(438002)(199003)(189002)(38730400001)(6916009)(53936002)(77096006)(68736007)(8936002)(50226002)(5003940100001)(189998001)(575784001)(86362001)(6666003)(92566002)(47776003)(106466001)(2950100002)(356003)(305945005)(76176999)(8676002)(36756003)(4326007)(110136003)(69596002)(81166006)(50986999)(626004)(81156014)(2270400002)(54906002)(50466002)(48376002)(97736004)(33646002)(1076002)(2906002)(5660300001); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR02MB041; H:milsmgep15.sandisk.com; FPR:; SPF:Pass; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD045; 1:JPWey0UAILsWnUp0YZ2sJ4kwyzhcBR2TiPetlMsOekQuqdqUVD/UWdRpu1o8k6QBRPv1oZzuEY1tXszB9zp919NDsQzELN+2Zg5YQ++ydlhY53UgFdkIKnyMQmWIWQmiQJ4A681bbfy8muhlq6yiJ8fFlGwjO98xIqKwJcgVeJ6xbGRaZ0k8Jyi9phlvTz1Pgi0UHFFz30fp2KYvDDoghr6iKScAmPh6NsDbCEDm6P62rkXJgqJ8RMS4shcvxy2hlGLt2dNeiabqoPSg87cp9feHbKGiZO/nSQvpWwYqWN40lTZvoDiA7JaBF123mGac876Q46Age+xPi1K5fM0z1o+tdfxaZCoaev2VJ4Hh4qBQSgMH1N6xs9M1xiNwnswai3b1Ps6zhBmTLMxzAOqCXbijpreOJ7l+g8I7JmQcXNLfXtslD9x+QyaXwkK8E8TMxSHplTU3ZHYHETlp71MgeBLs0pS6UrxKi/5MuRHNj29/NODhQQfG+JG5kcHLj+Jc X-MS-Office365-Filtering-Correlation-Id: 768bd058-09dc-46de-d987-08d44177f6db X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002); SRVR:BY2PR02MB041; X-Microsoft-Exchange-Diagnostics: 1; BY2PR02MB041; 3:VGASnN/xABu2egIkez5HkmAhsxlXv+JDMUSPFeDNf5Ojmz6XjN0XAIoPldDXI2enJnCi+tAFd2AtaMLAeQcwNt7EdlUEXBwdCxiG4DUS81EQcjb3iX5WpCgLa1q6ljhJ7OV/90rrej/SIcKxYRTkArhyBT28PRm9ykZ8x2PewaHt8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z/vnrPkYPW9H1TQZlYgY6wvIPQjBcpOQJhXmXm56trIu X-Microsoft-Exchange-Diagnostics: 1; BY2PR02MB041; 31:QdDUzZKuO4XFuzsYIDOkFLirTmsYHUh5DvoCtPelmazWd8zlBhJDs83FGd9qPFCZTuXypwathiOatvMNgp/4wEL03jvhaBtFrQR7W9qcvyXA8wjMghLXTrAZqgwlrk60Fxa6A6acuXsVuZiGwiC6MtYwaUHH/aaBp6Ldi20z4qCQPSJUzGlB97GCEr2BVkAVU/7/qSupJwwlWYgm5FkgvfSOx0e0IeronVSWZ4Itz+stqflu7IkutgeQ/BqrY4fV4YJHAPrM/L9Sqz0xc69xUg==; 20:zE8IkHeUwL0ZmAUoEjxFXG9f8/Jo/XqiwBsYajdNa1u5AAMWSUyvmjGM1HTYJ8SabTuhnXbkvQuDoosXFEXd3RDPk6WZin1nNaeXa1CRd1/Lap3V7klgw74nhE7oE0fJuVRxl6YHw1/IIAnK3KFisrF4+RRVmiqox/sHIRv72M1/AVB29emddxVId9i70MP1sN23OBHoUCK+kkVPXVRKjMZNDUdhn8q9vYXVepGeWqJ5DVpto6KkwIpBEmFtxZIn3J8NpqEMe6gdk9S0kDznrNvO2CnqM7mv6DLJODU0jRiS7vNaSu3CqCN5wQnuKZor3zCJD4I2Y25pdjacr1yvGNDARXJRcCehE1+762iG4dnw70THXPHBAUtwnvU/wN9TVQGHY0XcYGCDrPkgXjpk0nKXiuAOcMtgCiM0SjrRIhx5wujOZNA2AFC3thrL6WDRxKIBWCzTaVd8LUHAwPvzDt6Sy9CQXmf5gGCLIXFBjA9MYeiEGHqVESh/ISOK7sly 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)(20161123555025)(20161123562025)(20161123564025)(6072148); SRVR:BY2PR02MB041; BCL:0; PCL:0; RULEID:; SRVR:BY2PR02MB041; X-Microsoft-Exchange-Diagnostics: 1; BY2PR02MB041; 4:1uwVb24JiXaXbsUaKqSVNu6uPK6AVb/0uznWYFDSEMFE6x9OiyNbgXVKAg+pQMd5v3wVM8glimbJnINXrHOp8/Upa668ujh0i+4gdHWMWwgo3Yayq07uy6XGD2QSF0OTL9dORvWU2jhKVMRilX/uQNYrMstGYX62QGwWzq8oqCw8ZXUN1z9cJ2AEOPjoBxVtHVUb3g0OTeeU2lamOkmD4YgnDIhTI+70WRgLsL15vPBsF2r+s/qbxPm/wBy3UOSVZCVATOylp4BOxfMkMu2S3EqKSnrV6Ef+aQkvzYS1FVJQvp0LhL497BDJp5tEPBHiT/g1BdatMPejwu6Z5u5Tk9jEHQLDZ/2jff5Wb8zpUKVJwGKU9wb6c8VtrUQiSowGg2jiLwCRmohXWKdYA2/bccUC3l66IAdMy4IUPa4600uw/II4v8LEVxDnVBT2BVRYsX/5kcA5QYizY/U157TjuOLI9tsyUHiwdpi0l7YCQoPUPn/TyV5yp2m/dp9hUCWS167d4gcNxPZlFdsI+LuzbiRwYY/nsqFSiTUnnsr7ARGymNpkxuEiKhUN6MJUf2B9WZlYc2wTzX1XtRloUpCBWH1iv9nd1TntGERYHdUJD/iGNTNyPCcMFChdK4pD6/H1RibR5STUt5LG/O79+HyrACghLQ7lugpQ6/bfeP/m4SUM94vIy2m0eIj1GQkVCRtjCRXNo6OYvnXQSBEAZ6vrZw== X-Forefront-PRVS: 01930B2BA8 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY2PR02MB041; 23:G5GV/leCkbYR2TBESoaNjVKC/mt+/qjO5sB1KYAZnj?= =?us-ascii?Q?bVMA9hXHM7UPqzzG1/BrJ3jQe/oqdeCUMh9HYbPine7Uomvqk6ACLp3SwM2C?= =?us-ascii?Q?SIr2Ja5RL0o9sKG2mNNS8laBPyQhhcSM2Yce0H/909vZlnh+k8nPf+4ZpHd8?= =?us-asc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LMUf8xH2gr9vDmKq+ao?= =?us-ascii?Q?C6t7MkgGfD7FTvMXVSTdtRYa2s9YNYB4KeoyhnL1mN+RKU/WMhqG84EVicWk?= =?us-ascii?Q?4gk+M9KlyR7uYQexAmgCWNST5jjthjWjMhZiXT5YFzA82j519gSGxieYGk5e?= =?us-ascii?Q?BuD4nMtDKB5hg=3D?= X-Microsoft-Exchange-Diagnostics: 1; BY2PR02MB041; 6:Rhi3X5xpznzsO+yNWnhAuOEyANcJv2k5WjKf2coTXk8oxMwXbOr+TkhvEQVsQCzKV9hjiGoHXuynFC4q9rlPE4hZap9BaGMmm+gZfj2D1SdgLkbfKBEwk06k3GOixyK3WUngGU1u4yieyAhRCS7kZY0kqAipZRp6sPm7msnrBA3Ult1PA5Lt+kWjQEAXaNhBNpFG4+b1GkV8baWZPhjcQkRSfg8nfawVlf3dwuGjaqm/aKKuomRQ5ZnEo4rn388va3nJQATCnMqZf9yWCWwfcRWhEayACGwabbIA7HHEDq/KDsn2i1Rr5wRjChrhaMmb0xthCCgF31e5HGnWb9xC8QZfJ6SoGeqjnVY47UKdn2I0ErF4G3x32deILkmy5S6C/XpTDGHRY41/lGl2L9v2tRyCphBB24sinr17EUXTkp1TgYA2Pg5SYFWQw+vhvGwwpLzYAbQI8xOnX1rIhVb6fA==; 5:HmiLukIdd/KnEMEvDDdnYKdoxEqdDm/QArlorL07Id+c9q+hNmsMYQ7cXtTAMgBmkL66TFBwLtXuIRYY1th25chd8VLEZsZnd7XZpYW4DrSbfJE+5GMbTxZ7hr9c9FWcKXSES8FjlAN3sh0fan592Q==; 24:T9FRftOWgj4tESrafUOwrKJxhB7Fdwqd9oQHidW/PFq8e+eqT38WvvovqZEit4bzJGTZmJkajsGlFp4+qEqOk4MsreLiU8QXw/ADwgmfyFE= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BY2PR02MB041; 7:PqqUJ1buFQ3MZy5eIB7VM2nnqw0lDjq1F2NkkZqieSRO5OMc4BFI9Qd0vCtZKR5p6+uAoYHbqhBvbC8KtNG+lSsciyFF2cgNK6fXJp8BTfSA2caZ7PkEpR8LdvnTRzjHbggHaJxabw/Tx5VkqDMlbccViOBxItGcn6qDVNNxxWiD5C7PTT+zqnFIQjHR5AOH9StLw4gd22u7+eVHZTe9zGtzVJoPVp6XJA2kPkuvVZkoB0H94l9mJ36avT3VFEuYFsP1aES3IGjt/p7CzT+NVD6rhFQGkNxjvnd84KTR1OmTbpVDsCGxvW7J+X2VQAqPj6rnh7UIq2t3vESlVRvxuXiVAbvAoTF8CzgaEUYIwR/OZSzetxuDcC+GEY8TF+/Mb9wcl3zFtjqP+PSXVsI+9hk2L8QXPGbtsy+rPMjjyEV06gQfdr4JIv82IZTjhuvS2uw4qZiC2UO27B5G9H6Wpg== X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jan 2017 21:04:46.4131 (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: BY2PR02MB041 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);