From patchwork Mon Jun 26 16:05:05 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Amrani, Ram" X-Patchwork-Id: 9810025 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 7BA69603F2 for ; Mon, 26 Jun 2017 16:05:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7C37128556 for ; Mon, 26 Jun 2017 16:05:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6EFC6285E8; Mon, 26 Jun 2017 16:05:47 +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 3BFFE28556 for ; Mon, 26 Jun 2017 16:05:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751434AbdFZQFp (ORCPT ); Mon, 26 Jun 2017 12:05:45 -0400 Received: from mail-by2nam01on0067.outbound.protection.outlook.com ([104.47.34.67]:37312 "EHLO NAM01-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750919AbdFZQFn (ORCPT ); Mon, 26 Jun 2017 12:05:43 -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=4VUCaXgoaJ1WT8Qltr1EF6NLSABXZHZdurzx3iMd7mI=; b=CfVv1mMAlfM5y3tOYyvbH6ICZBF4sxlElOOi2Qld4dkr8eprix69aoSM781dVcTKX/qZebaOorEgzA/fneORihuOrT4CowWZ5jZE2bk1x7RMZGlJrNrCznSKqX1loEgY2LdhxhYftRHyTPAFL1RbKOB1r1insEsklqVr7MKr6AI= Received: from SN1PR0701CA0072.namprd07.prod.outlook.com (2a01:111:e400:52fd::40) by DM2PR0701MB1018.namprd07.prod.outlook.com (2a01:111:e400:246f::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1199.15; Mon, 26 Jun 2017 16:05:42 +0000 Received: from BN1AFFO11FD012.protection.gbl (2a01:111:f400:7c10::133) by SN1PR0701CA0072.outlook.office365.com (2a01:111:e400:52fd::40) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1199.15 via Frontend Transport; Mon, 26 Jun 2017 16:05:42 +0000 Authentication-Results: spf=none (sender IP is 50.232.66.26) smtp.mailfrom=cavium.com; obsidianresearch.com; dkim=none (message not signed) header.d=none;obsidianresearch.com; 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 BN1AFFO11FD012.mail.protection.outlook.com (10.58.52.72) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.1199.9 via Frontend Transport; Mon, 26 Jun 2017 16:05:41 +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; Mon, 26 Jun 2017 09:05:38 -0700 From: Ram Amrani To: CC: , , , Ram Amrani Subject: [PATCH rdma 2/3] RDMA/qedr: notify user application if DPM is supported Date: Mon, 26 Jun 2017 19:05:05 +0300 Message-ID: <1498493106-28604-3-git-send-email-Ram.Amrani@cavium.com> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1498493106-28604-1-git-send-email-Ram.Amrani@cavium.com> References: <1498493106-28604-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)(39840400002)(39450400003)(39400400002)(39410400002)(39850400002)(2980300002)(428002)(189002)(199003)(9170700003)(38730400002)(6916009)(5003940100001)(2950100002)(107886003)(110136004)(4326008)(50986999)(189998001)(76176999)(47776003)(478600001)(72206003)(2351001)(81166006)(104016004)(8676002)(50466002)(48376002)(5660300001)(36756003)(50226002)(2906002)(105586002)(106466001)(101416001)(8936002)(305945005)(6666003)(77096006)(356003)(54906002)(86362001); DIR:OUT; SFP:1101; SCL:1; SRVR:DM2PR0701MB1018; H:CAEXCH02.caveonetworks.com; FPR:; SPF:None; MLV:sfv; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD012; 1:tW2skYt+7CkkND/NtATgd5KW93td5cNlKjJhTNqoNEBuyVbYbuxvZY67RZkQ7Y+bn51HdDi+CVC9YHdh1noWD8bUXyUFGhNAZXdF0SKNRit2SalfukxAiCB0e/LlBRNoUxF3g/BSRe4beS+LMrhJ64GGii7vE7M/Twn7Jt0scSIRpTH4kXIrniHv6ruP8ROzX1z7d4J4JxoCHSy+OYBsshro4UvB6spN3nNU9clyOjMHmYi1zJAyK0WzKqOFvaoONv1NYF60I5BQ964u2DCc01xS4jS/cr3HWEWvEEdTCxzMThQ+1C8NaJZ0qpOchAAxdjq1o1PO3fkUxdQDwlXk7/mkPInOWRed7uLNAPmf8Pugw92Yoy8lQqVks/I/AsH5MRgAewD855gYWSDocTnWZ/mQbBxrWJbTArP3aSMq1Xk+leff7a3er9x60R9AGMvvrJlGDotpOqkpc+tCMPLibFBXICPbHhEJXudGy3o5+7YXwg8Ize1yHFJcv10lk7UgI4iWco0PElVFHx9Xi69H8LGKmx86H7u4BJcibJ1OnGRFwChsoEuvXRHaqeeOIXpE0jeRwXjSQ3O0194IYAMMVIis9i3Nm1eychnXX45SK9rGpiu0BNrjeptZ4Yay8EoyOMInDwOFCdTyBvljYsMPchzAik+GJrIURerbwEwj7CriN2dE7XrPWbKNs1GDt/9doXXPWRhqgx7giZGE19zj+RETciRVAXbgpE5Bp6r1Q5ctrT5kkAgaHgpkDARW+0nixb79Az7z8BLRmbGcj+Dny5ZgbeGDXQD9WUQY1I5yKVbX889ivQ3JXQUdY1WNwlkz6gl8UTzp7vnJYEakMMe7741UyP1dmfrlkY+oiYkP4Gw= X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: fc95f4a0-f8a3-4e87-b426-08d4bcad31da X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254075)(300000503095)(300135400095)(201703131423075)(201703031133081)(300000504095)(300135200095)(300000505095)(300135600095)(300000506067)(300135500095); SRVR:DM2PR0701MB1018; X-Microsoft-Exchange-Diagnostics: 1; DM2PR0701MB1018; 3:h/efD+IlgDlIGCdEkz1kt/HYCKk0v/yMrBw0D6taeMen+3Zr76lKSo11IsH6NUaK7vFGT4aWRDSHkfYMnjHrQYU0QjRToa0Ir+ixpIvYDgJeHP3zKG7g+0bdVN6QRENwsYzFN9dO2xid/4mrV6y83r2+ancLjpjDJFYt86nPscR/+yiChzVfYUj5h1skGFKk4fCL8jd3bFXoRE1JmaO7El1voCTKEWzxwdyCl1xmPrU/QMXprTPHqmSTlWltsmoEdYTX85lhGOPPjq7vORy8aEtQ/+Sh17lTPDDa6bL9734+0o4trIGMcC3/Za+ulpYBshaMnbhy7yDXM26U5jOeEsssm9zdAwiUD1MchbOe1vOD0ZJRDe/lSlq5eTWim30PvWi1Ko4zx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gFE8Tz5xTVWJwitFwEseDN6b4ANMvvT5gp9RTuUFbKpoukZx3T6G+M3VP0BL/smKjVPk4UaeysxNFbxZqp5OxA== X-Microsoft-Exchange-Diagnostics: 1; DM2PR0701MB1018; 20:crIAymurSeDcV7O6w5Gvn408SG9w/WNUnRuB4y124CuScvVrQ4MveJlasaPZdH4muYM7oITWyEx5zAiH6TYdocuzzqUn/4SGTeVA6wP9VMsa/FofJDGh3EKmJec8giFWoFpb0zecDz5xa+rT/ZO30YtFodrdLAw69giC7tXb0L50XtkhiElajw7yikXiHnNqMCxdeO0T7Ly0+qGMvA9snWjCk/44gTcnrNLtdbYr6a5zjYpQZRF4Md593bHIa9HMQvfc9sNBQtPpyRvFh4UIhy5zWZLHUGY8zLZBZ96BhdwuR75PRcPGHx5MglGwZe4xCRuZ7YyNUrAjOi1hFbcyUb5reNIlxsw14Z/E+jfBe6AGMAD5bKxio39YQS2sYjZAvUL296MXPZ88NvmHFAb2KGhtEJ/BZEol4DZO8G2G3Exm69KMOeSCYdlG8jjp/Qx4CIW8sGv8RBpYcXnfDnHXRe669g1/ITYMviywtDJGodh6uxheYG2awgHYH5ojaoxZ X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(133145235818549)(236129657087228); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(5005006)(8121501046)(13016025)(13018025)(3002001)(93006095)(93001095)(10201501046)(100000703101)(100105400095)(6041248)(20161123558100)(20161123564025)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(20161123555025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:DM2PR0701MB1018; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:DM2PR0701MB1018; X-Microsoft-Ex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JflohCcXcOfvaAsETKohJeTRxfXz6VGaK6ClUU8lSuNtvM/sesyjACV6zZuWS4w1BLlPp6bzreaYbc5vnus/g5YDxNyLQuFgQWp2CY5U5LnOSvo64wpqhrXhrXBBYxW0RIM2UbIJh7egIt53QpjGYEMK5rV/Pq3Shp//dWTn47dJL3cMo4iOc/0QcqlbnvbYP9zm/BnWr/WlK6k9hHc/bhhLNN+nlVsPGZjXwl4e2P5XD7AMd8G/ZhxkYhqJNMCsX8Wx0C+sZOrSju4kpnbkF7n+0bkT07zQO8OaF+RZvV9C5dWBTs+Ar77hfY62AlV6uHfyI75CuiAOV8C+MrW5mbMLj3YoUZ4C0zbEmQC1yWOiJtuoOmp9JR3Q8pcxb/YDVZzrq5A1RYqnLKaXtJqSfFGIRm6O7XQrhsm0TW+Zvfk6HlkHwmpQ2GthysbO88RYQa8z9TzTeKMZMl646tIsiM+qSBwqUtmGHJKTHoC+zxvVcjCjibvJoiyN2vcLT/xioivC8gEqeMBcJPW7i+OQRXLEfInG0= X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Jun 2017 16:05:41.4431 (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: DM2PR0701MB1018 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 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 | 1 + include/uapi/rdma/qedr-abi.h | 1 + 4 files changed, 5 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 3ec861c..d655364 100644 --- a/drivers/infiniband/hw/qedr/verbs.c +++ b/drivers/infiniband/hw/qedr/verbs.c @@ -376,6 +376,7 @@ struct ib_ucontext *qedr_alloc_ucontext(struct ib_device *ibdev, memset(&uresp, 0, sizeof(uresp)); + uresp.dpm_enabled = 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 {