From patchwork Sun Jun 18 13:01:10 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Amrani, Ram" X-Patchwork-Id: 9794811 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 3272F600F6 for ; Sun, 18 Jun 2017 13:01:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2A7C228484 for ; Sun, 18 Jun 2017 13:01:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1F06928498; Sun, 18 Jun 2017 13:01:39 +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 656D528484 for ; Sun, 18 Jun 2017 13:01:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753159AbdFRNBh (ORCPT ); Sun, 18 Jun 2017 09:01:37 -0400 Received: from mail-bn3nam01on0063.outbound.protection.outlook.com ([104.47.33.63]:61327 "EHLO NAM01-BN3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752909AbdFRNBg (ORCPT ); Sun, 18 Jun 2017 09:01:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=F7G2jlL1f0AM7adZg0lRLqj9su8R//OpMTUp8buZJ18=; b=fKiD1yDRWl1KVWJRXpI40AuBrTPX/Q1c7uXVm0V2o+yvPuZpk76VdXCneUgn3JKYiNF+iVKH5T1ZrmMu8dFH15q/FugbWix8eL9XFCR3jjQsqwempzRdQftm0+F+OLfVviN8MnWidR9rvvXxOZqTSqnckEudSVYcYnTWDjXjRcU= Received: from BY2PR07CA0093.namprd07.prod.outlook.com (10.166.107.46) by BN1PR07MB422.namprd07.prod.outlook.com (10.141.59.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1157.12; Sun, 18 Jun 2017 13:01:33 +0000 Received: from BL2FFO11FD005.protection.gbl (2a01:111:f400:7c09::196) by BY2PR07CA0093.outlook.office365.com (2a01:111:e400:7bff::46) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1178.14 via Frontend Transport; Sun, 18 Jun 2017 13:01:32 +0000 Authentication-Results: spf=none (sender IP is 50.232.66.26) smtp.mailfrom=cavium.com; vger.kernel.org; dkim=none (message not signed) header.d=none; vger.kernel.org; dmarc=none action=none header.from=cavium.com; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) Received: from CAEXCH02.caveonetworks.com (50.232.66.26) by BL2FFO11FD005.mail.protection.outlook.com (10.173.161.1) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.1157.12 via Frontend Transport; Sun, 18 Jun 2017 13:01:31 +0000 Received: from lb-tlvb-ramrani.il.qlogic.org (10.185.6.119) by CAEXCH02.caveonetworks.com (10.17.4.29) with Microsoft SMTP Server id 14.2.347.0; Sun, 18 Jun 2017 06:01:27 -0700 From: Ram Amrani To: CC: , , , Ram Amrani Subject: [PATCH for-next 1/2] RDMA/qedr: Notify user application if DPM is supported Date: Sun, 18 Jun 2017 16:01:10 +0300 Message-ID: <1497790871-23945-2-git-send-email-Ram.Amrani@cavium.com> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1497790871-23945-1-git-send-email-Ram.Amrani@cavium.com> References: <1497790871-23945-1-git-send-email-Ram.Amrani@cavium.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:50.232.66.26; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(39850400002)(39410400002)(39840400002)(39450400003)(2980300002)(428002)(189002)(199003)(9170700003)(50466002)(104016004)(575784001)(86362001)(2906002)(2351001)(5660300001)(77096006)(6916009)(48376002)(478600001)(189998001)(6666003)(72206003)(36756003)(47776003)(8936002)(54906002)(38730400002)(107886003)(305945005)(110136004)(50226002)(356003)(106466001)(50986999)(76176999)(4326008)(8676002)(5003940100001)(101416001)(81166006)(2950100002); DIR:OUT; SFP:1101; SCL:1; SRVR:BN1PR07MB422; H:CAEXCH02.caveonetworks.com; FPR:; SPF:None; MLV:sfv; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD005; 1:rGYHBCcvgffJMIrIh0nRGkORmyMcUVGWkhFRVxBfo+6fCwpsXmhEde2ghG4IMhCI8+X8ZllriiejuOA6I7yi4hithzMawyM9TWBAzADq5r2oX0ccMNlv2MJ1O22fYiEOmc5lqdV/MZkbYRiW4/JVSXEd38y3MiB1EOo9Kyt5Ua5wsUt6EcXMmbfGGgicZRFSjl1NNPNbi3yBeCEyEc9l5sXLgwGWHfMHU99ZcGnGBqldZDqBZ1Y5LZfLLZE4iDdbR1PCJsScy2o2eqIBVdA9iX4OrV4peX1DoFXjV9zy9VKulPgzw8RBNnZUfOO6P3BFtKd/Jthp/mijvL9lTXj5G8asH7Uj6rYiRzDEKdZNZtz2seHmS5A+I2GVZqaG741ygjaAh3wMWeqDpOVZUoJ+bikn/ens5d0ZFiRr35vLlHVdR4xN8w+JQMDUqZDZRhr+0IKWtbNQ5QaauEnWwie1BvRM0u5O+ifSUSh8w8+mT7IOCFlPy33Laws/pW4kwyvMVHj5+ZU0nV1+IILdzjmhBg== X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN1PR07MB422: X-MS-Office365-Filtering-Correlation-Id: bca89cbd-5376-493b-8160-08d4b64a248e X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254075)(201703131423075)(201703031133081)(201702281549075); SRVR:BN1PR07MB422; X-Microsoft-Exchange-Diagnostics: 1; BN1PR07MB422; 3:F187DDu4rnnhoyN/xnFEwrSTiomJfVOPChxfU3gXcV63o/nK5CCCSecXgSYIJLYp1Eu+W9TIz/V2OkgchABy2pVxinL4sdob2M5GBD8mcFsFQ8Y4wNqjJdONUh501FXjvkMQnn+P9sBNGnWioaWWn9sF1mNY18k+4URGAK3fJB3IMwjG7u0Ghe1QP4Pjq+SRrMykiyoZzm/Y2Z8xOzsN1BY7v20LDV/xUBQWdTEDtd/Sv3Q1SMxN4D1kdAoh42q/TX7B7lO8CRkn7PHq2LOFX0n3zIkw2o/Teu8iU2kEjh6C/xCtlczlczRYvnkckTAdMsFFwraHBSfBbfYmf+3dvZne7XAw4IQO7+lX7Kfz+lnY+JYAuFZIZNExXYSWl5E1o+x2R3xWBjExj5ZnKvz96524N8oLGOuToCFgDTe4+GqUYLC6ZIcy+N1JDysc0OClp4WAatLu5gFV8WFSJ8PPNwuRB9XZmvL3j4xIfXTMwY/JT+B9/PcroJuNRI6yQ/+x X-Microsoft-Exchange-Diagnostics: 1; BN1PR07MB422; 25:Jl86/Dut5lgT5vcCdiAv0M75TU9vJnzOgf2MBjJSvA4VFjXCcICQbM9t5c8kD6BQ7fuzo2W315t08dtAmypagw8zo3hXFC0+sG6ryBB1wAN6St33DVBdUNJ2BsyqMYqlnnNvrvBdl3bPF+Ozo6xQTndMBAgr5tdyGJaVLl0Eaks9R7gl5WlO21DTrSw45lEGnZXT7KR8mwAsM2goAGKWZkAEBH1wE295OuXBmxOXTWBeRBIUcb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soft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(13018025)(8121501046)(5005006)(13016025)(93006095)(93001095)(3002001)(100000703101)(100105400095)(10201501046)(6041248)(20161123558100)(20161123562025)(20161123564025)(20161123560025)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BN1PR07MB422; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BN1PR07MB422; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN1PR07MB422; 4:EcSrmdB0bieODJGMIWf0E/GLeX2fOnaRbr22GpUoiEl?= =?us-ascii?Q?79460Syc6ySMUCRRT3U0TywFSgeOCVrndawxo1mQYYNDZ4GHuzv0ODk020DL?= =?us-ascii?Q?gZlpN7xNlDcHtNSGGU+9BmPrmm8TAzSmpZXEZnb8cZZ2oPAaeiMUbc3CGkzn?= =?us-ascii?Q?wGXUMs4zmzhuCI23RCajssmTB5yRRpfQB4J9P0aXNPnQ8OTCDURMT+DfC+TG?= =?us-ascii?Q?X6xf24BLnrFcgJAd5uYIifzjf6amxlTWl6fttbo6TWWuR7KQSBad8muQ0A6+?= =?us-ascii?Q?sgDQRx9n/R10jICUFkmVwKRTrt2vKGzU4FnU+rmXFPNTNwgak5f7kBrKg9ta?= =?us-ascii?Q?asUwdzPavA9+OMNLma/vLITx21ti4QXlauEgcXAf+uC6Qbk4HZflfdY0IQbY?= =?us-ascii?Q?ijxw1XPJTe8/bBXz7g0bbl2DJHWuo0niZFVZqKHV5VyxShfdDX/bXq/CjL8i?= =?us-ascii?Q?3dovIZjV9D2j0bMkFqXEK/afaK9xMXv/5m5LlABdO6zXhm71+o7zHcYCWm73?= =?us-ascii?Q?l07U8UWzfViC0077xghwlMtThNJU9D2rf6Hn7pdSNhDjfk5ibYgxtHSm4qXR?= =?us-ascii?Q?7464AUD/n2WoqYqcgXHUwfB9eHlIPSdenO318jKXmXYaewnpGmQKHd+Vr//4?= =?us-ascii?Q?dIezugFKB+4ESKU+S7ft7IFEMqJtz6t+mP0UtythCcAW/k+R0xPiq1AW4v8g?= =?us-ascii?Q?P+YP39AHIhtrCK6icq5QRTntEZxqewycZ6fQSvzBXszK3xEq9SUgYEVpuOH4?= =?us-ascii?Q?GVKagarXkByokE6a4/0WLaG6/8MGtr8zIzKAAvdD5bWpo+BkVnJITKhkyfGs?= =?us-ascii?Q?01Y1kUHbdUdVprwiOqfJYqsU4y6Wjq3magmgueeSHN0kzswvVZqqZM4CdHyb?= =?us-ascii?Q?akrCQ1zsydBFQdliPxkl0VbIxeh/AIE5hxDjwL2n/4a8pXKtXrffvFh0Mswk?= =?us-ascii?Q?UJ6kHmJPUU+acKlrbwptKLQ+Wk4w1MDQIOKfCp1BHvwn7Ut5HkyIm0NzKfpz?= =?us-ascii?Q?qW1eqtEpddWwCIhF/TV5PeU1keptRR69kxyswtPQWZosJ0ivNKpTN2S//oOb?= =?us-ascii?Q?51AGMLrAq3Ck6fH9MJtBJm7MufAIHCwUPlS+/spG8JYRrH/gMz8m+pcvpujk?= =?us-ascii?Q?ZTWz3YTyiadYk7P5uMwwGmcDkyN9G2otOKYqvH+CEpaE2l7MV4iLeHeMlo10?= =?us-ascii?Q?QjlYsjmmGYwg=3D?= X-Forefront-PRVS: 034215E98F X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN1PR07MB422; 23:nCztHQmm30AnzV6h/WtolHuscfxZVM3grSuwG54Nga?= =?us-ascii?Q?yp1oajIU4Y2e7mH6FVoU86B8HBVVfsFcnWTaEmmjK4FpLPhZJI1AcmXMprUt?= =?us-ascii?Q?1vqTSCXif3/6bP3oLO4QyXp0nPzHi7Y2ZM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epNShSApHsqKSwIVEpRDkrQ6RMXfBt/J29bduct67oVUj3vmAZLtY?= =?us-ascii?Q?a8Ea+v+zq5yOXtKyc1ozhKsEfs?= X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN1PR07MB422; 6:Hyv+2ifp1amiYwabDkm3WgLzlfUELudYdm2F5fWhSb9?= =?us-ascii?Q?2g4HPaTrJHsxqL4x+FuL6qvtGsou77uU+sLkQW7f42aMqNINcqZ2Bfo/hrFr?= =?us-ascii?Q?F5DV+IhO38D/4hlhL2FOwi9TS6P9VFumXp3CKtOIbfOcXo+ZjR21D4R5boPx?= =?us-ascii?Q?xMPtUDO/76A5mLq3Sz6vsx2HUluRUbkcRCjLWGy7MqQOKjJIZ8fS42+fQ5R4?= =?us-ascii?Q?BW9sJXKZKlTW3pviVD6RCHy4yEA+3K1RAekXz0fierpCo8MGESesFSqdpZV2?= =?us-ascii?Q?uSEHB8CdWhyTtmcanld7rWJOYbfEJCh3+sDrYTJbdHxYwLha31PDaol0AGb2?= =?us-ascii?Q?tskGO/vRiIAY7vQeWYnA/dHl5hY8By6RsKo6zxr1UVReIMkxq+8DM+ooPCDK?= =?us-ascii?Q?DPEfTNif/ag/z1RxIe+Lvtr1Do9X4R0tGqCgg00S6QQoFc/2KsP2f/AecqAE?= =?us-ascii?Q?QyUkMImlKQ6O5EdJy6V27zXJ3z+K6JFg7o0QyWzkFueQbEhH6ozrmO4gytjC?= =?us-ascii?Q?7d1HANyabNYZruXmnpE1cjS3m3zACgOd5Dvym48+WQB4DXLPD5ndF4TltCbz?= =?us-ascii?Q?QjcyvWeopu8Ab121got+WsD1JdR/nJQ46LZGqfTabrsmC6AbAu6WyYJgHdpz?= =?us-ascii?Q?gM0j5MnNf9boqGbKxb/30vroAo82Zm83Ldfiwm4V/3W9SaArrpSAOcuK1Cg5?= =?us-ascii?Q?sjryQh+z2bofA/5Z6iRpaiDPI/90xqS47p3tL49t8bNuTQN4gg4i+uGyW6Dy?= =?us-ascii?Q?4c7CDIqYmpvZrwzc3huW+LHFDQ+rquW5HzaxkDRZo/0vVcnmpHGoxID/QN4S?= =?us-ascii?Q?HEDx+CfU1i/rdKFb10SVcwiz23nd2sLUA6rfedJZzsncPaeidWsGBzADoord?= =?us-ascii?Q?xs/ug5KUTn58/nrV7Mz3A3YA9JbVk022J1BtEXsizc3wXjOMrkgww3N1qAM2?= =?us-ascii?Q?FrM/DsGrULImzhBWz/PZ2K/OomA8CGibyiWhMotz6VOteNjZbt4VNGm8FPOs?= =?us-ascii?Q?=3D?= X-Microsoft-Exchange-Diagnostics: 1; BN1PR07MB422; 5:tXJUmOs8J7WoHBA7cRh0pD1on1KOzy9X0PpneM+C+qqTJUtYfEkLEdSXTIj3n47A7WwFZsbkiKNTUxrWg6OYArWZy3DkM5TykxW5Q7I6GCZjAdglsHbi1cG7WXg+saukJJ0Dhz/V3uUr0q0/uzUoCpqCtHr2VQxufE1Rtxl3F9FsRtiEpLP1UugLftRdwTYzZaIoVN43dbi6fVmzYzoxowja1m1RqYflHH8J/yH8RJoMKGlzeGsAwF3djcNxOFL9/QvCGrL5vWN/lj6ns9EBtg0q2zCVq3ICo0EnY2OMMWkWMq5FUyheLVhlzsGcQw38LQ7cdWGAH5hr5efKflLnE/3C1CxBSyK81JGOZvpMCYlZpPzJ3+0ZYjsf0Ankm7LLfw9ympG49qoS0cQco0A5Z/MBhJSpXm3NbC+52Dpo+WjVmVRu31FDWabHD9qm8RVz6YQcX8jo4rV+6kfzB4e0BtRWrnvZvmffSY/9GOmzsfJY2WvQ1+vuFdJhJqytagsN; 24:/pyB0YMZMRBby3/FLi+icX1QF3g5NPKTF0H6VrTg88KTZKkS9ycI6bTjqjJYnO6SkQq214ZZ5y7xiYE8nrJx6ZK9MA88I/BxSuWt4jxZmLc= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BN1PR07MB422; 7:ipMHVLsDDYgJv1Bl7NwVT5BoCvwrHtRwWv6zRR8nMj9aSRppE7hHnFVEEtA7XiBjKDo9jbyppfv6eFMEsktzBWtNFbjeqxv0tTeOJJ621xhl/T4490MOglhqHfGkV6l9vBzKM3of81KrAPe2IjNFeLHax4NDJKLit++2woK4D4DOVsQ+dchaEnRiL4mpcRAkFapJcX045LtAd90X6AdSWD58hYrnlFmgKhT2Iq2XvuRnbVC/7/zWY31eq5U51dyWbtj8DB5WbfpqW9joQ+8vnNSqS6VrJ7lA9hF1BuHAiQUeSgY090WpD9IU9yFu2tD2kqOZqVr1O51obRsDBttqwY/bpSgu9vUNuORE86KxxRe6AqK+F62ieHEY77b46ldgZcnCRpdSJVnREZM+GjVZMRLV4o6qg5FKqkZt616yWidk6WgpSeBYwGLjVG5V/XtctzX6j+RqDi+FXnNJmnL6aqPIQi0KxmFTioGTMpa/MhXowk1ZF8kD5i6HBo3PYV2R3ZBg/QwqusIg/GxCn6dTuArVdbyfpQLW9VN5rbQRf1UFDOOmn5gwXOMD+71pSM1lgpO03LlDsVSnzUE8wGiM64Tk7okNB/CpIcTOfSen+/s6l91b7ra8AJKrvs7FPPeiRXZbzqgUvA6INTqw4J6RH1/htmrFxfN8dFa/XL4xVMRQraJrQd1qoFCGJG2HXPUd/jb8qmzy4eX18NxCILpFAw8GF5SZ0DtWC/Vuu0auCAM3+B9kSMWZRj6yFlFsQnmpWJlJmLnjSQ3mX5OmOCj8cvohQRhLSJgNDq1BXmHTOxM= X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Jun 2017 13:01:31.9804 (UTC) X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=711e4ccf-2e9b-4bcf-a551-4094005b6194; Ip=[50.232.66.26]; Helo=[CAEXCH02.caveonetworks.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN1PR07MB422 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 Direct Packet Mode support may be disabled, e.g, due to limited BAR resources. Notifying the user application prevents wasting cycles on attempting to send these kind of packets. Signed-off-by: Ram Amrani --- drivers/infiniband/hw/qedr/main.c | 1 + drivers/infiniband/hw/qedr/qedr.h | 2 ++ drivers/infiniband/hw/qedr/verbs.c | 6 ++++++ include/uapi/rdma/qedr-abi.h | 1 + 4 files changed, 10 insertions(+) diff --git a/drivers/infiniband/hw/qedr/main.c b/drivers/infiniband/hw/qedr/main.c index 6a72095..d228718 100644 --- a/drivers/infiniband/hw/qedr/main.c +++ b/drivers/infiniband/hw/qedr/main.c @@ -778,6 +778,7 @@ static struct qedr_dev *qedr_add(struct qed_dev *cdev, struct pci_dev *pdev, if (rc) goto init_err; + dev->user_dpm_enabled = dev_info.user_dpm_enabled; dev->num_hwfns = dev_info.common.num_hwfns; dev->rdma_ctx = dev->ops->rdma_get_rdma_ctx(cdev); diff --git a/drivers/infiniband/hw/qedr/qedr.h b/drivers/infiniband/hw/qedr/qedr.h index aa08c76..42af9b6 100644 --- a/drivers/infiniband/hw/qedr/qedr.h +++ b/drivers/infiniband/hw/qedr/qedr.h @@ -158,6 +158,8 @@ struct qedr_dev { struct qedr_qp *gsi_qp; unsigned long enet_state; + + u8 user_dpm_enabled; }; #define QEDR_MAX_SQ_PBL (0x8000) diff --git a/drivers/infiniband/hw/qedr/verbs.c b/drivers/infiniband/hw/qedr/verbs.c index 17685cf..6a0acfa 100644 --- a/drivers/infiniband/hw/qedr/verbs.c +++ b/drivers/infiniband/hw/qedr/verbs.c @@ -335,6 +335,9 @@ static bool qedr_search_mmap(struct qedr_ucontext *uctx, u64 phy_addr, return found; } +#define QEDR_LIB_UCXT_SUPPORT(field, udata, value) \ + ((offsetof(struct qedr_alloc_ucontext_resp, field) < udata->outlen) ? \ + (value) : 0) struct ib_ucontext *qedr_alloc_ucontext(struct ib_device *ibdev, struct ib_udata *udata) { @@ -368,6 +371,9 @@ struct ib_ucontext *qedr_alloc_ucontext(struct ib_device *ibdev, memset(&uresp, 0, sizeof(uresp)); + uresp.dpm_enabled = QEDR_LIB_UCXT_SUPPORT(dpm_enabled, udata, + dev->user_dpm_enabled); + uresp.db_pa = ctx->dpi_phys_addr; uresp.db_size = ctx->dpi_size; uresp.max_send_wr = dev->attr.max_sqe; diff --git a/include/uapi/rdma/qedr-abi.h b/include/uapi/rdma/qedr-abi.h index 75c270d..2684004 100644 --- a/include/uapi/rdma/qedr-abi.h +++ b/include/uapi/rdma/qedr-abi.h @@ -49,6 +49,7 @@ struct qedr_alloc_ucontext_resp { __u32 sges_per_recv_wr; __u32 sges_per_srq_wr; __u32 max_cqes; + __u8 dpm_enabled; }; struct qedr_alloc_pd_ureq {