From patchwork Fri Dec 8 19:03:26 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan Tan X-Patchwork-Id: 10103189 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 2665060325 for ; Fri, 8 Dec 2017 19:03:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1493628EB5 for ; Fri, 8 Dec 2017 19:03:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 07F4E28ED1; Fri, 8 Dec 2017 19:03:40 +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 843BB28EB5 for ; Fri, 8 Dec 2017 19:03:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752338AbdLHTDi (ORCPT ); Fri, 8 Dec 2017 14:03:38 -0500 Received: from mail-bl2nam02on0073.outbound.protection.outlook.com ([104.47.38.73]:23280 "EHLO NAM02-BL2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751268AbdLHTDh (ORCPT ); Fri, 8 Dec 2017 14:03:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=onevmw.onmicrosoft.com; s=selector1-vmware-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=/EHLFYleJcUOIoJmpi0eZ7au2xljwnfWDjlrjVvHl0A=; b=KQIDhBoUK3l/9+O6k1x4QmaGnq8nXKopf69epAPENIcDsjBAWZJ7zhSNyJC1xLN3i122ENBYU65mVygHAvqPMG5kFBWz6QRHyCfcXrYNe5ardRqSk5soDs7HQ81kyH3tmFpqzK18NdU9L6avX+i6nHWJ+WZh4ap9BXPpQ93E5Qg= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=bryantan@vmware.com; Received: from bryantan-devbox.prom.eng.vmware.com.prom.eng.vmware.com (208.91.1.34) by CY1PR05MB2779.namprd05.prod.outlook.com (10.167.18.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.302.2; Fri, 8 Dec 2017 19:03:35 +0000 Date: Fri, 8 Dec 2017 11:03:26 -0800 From: Bryan Tan To: linux-rdma@vger.kernel.org Subject: [PATCH for-rc 6/6] RDMA/vmw_pvrdma: Add UAR SRQ macros in ABI header file Message-ID: <20171208190317.GA3636@bryantan-devbox.prom.eng.vmware.com.prom.eng.vmware.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20171208185818.GA28514@bryantan-devbox.prom.eng.vmware.com.prom.eng.vmware.com> User-Agent: Mutt/1.5.24 (2015-08-30) X-Originating-IP: [208.91.1.34] X-ClientProxiedBy: YQXPR0101CA0048.CANPRD01.PROD.OUTLOOK.COM (52.132.74.25) To CY1PR05MB2779.namprd05.prod.outlook.com (10.167.18.25) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 9819ea3a-f2ef-4950-16e5-08d53e6e6283 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(5600026)(4604075)(2017052603307); SRVR:CY1PR05MB2779; X-Microsoft-Exchange-Diagnostics: 1; CY1PR05MB2779; 3:F5tJ/w4YMO7k/eRRT3YreDK1ymXYbPSfvYqsLzUFbaHVT/daVkG95Vrf1ivkc2MXalWLtw5ymmHH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0tya50AdmsqhGjbP+84WH5wUwIyFlFgjPziYEqe5/PShnqVDvwy5FYZFYk8hwEt99o6buLvP6ox+IH3oZFyTTRkmZJKz9x4x7W5Ur3Is5MHiBPsaKBl9ocOzJZ+1flwtsxifcaRgaSJFOK7s48RI6QVVlKY/Pu1gIbhJSieD/gQh2Of14dnAI45JrlLfhKINAEV3hhaYvH96eYUnYBac7aYc4MwRdtZVcJ0pjW/dka2j+1t3ZCDUcQWfOaC/pWfp+HsxyTw; 4:RKevhgsOKV4xtzWqAHQfgqG56VMVCe0dqNp9d61W2ZAi4s4kVXCGSIYhDamPWvIGqP20ocvoaiYOocWGJH9ZDtkVR1yv6cUuB9UD/+nCo7OesH9Hh3J+4PX3s67cKW7gULcjl8vO4gPGb8ganoa709yNqBBNfyRAv5u2Wp1LsgBgDR5bFlSbAWnKo+wlKaClVKIW75CHRM7C/QMgV39yjwdKAy2XvcMEersw9M6jcdkUaZ00/MZBs/TeKzbyQt7TmeucEiu0pi/uAfgVZoMmO3QGdfCm/bS2mdVNJ2HQrHGLiOWxP3nJGv4b/DPbC9Q/ X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(61668805478150); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(2401047)(8121501046)(5005006)(3231022)(3002001)(93006095)(93001095)(10201501046)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(20161123555025)(20161123562025)(20161123564025)(20161123558100)(6072148)(201708071742011); SRVR:CY1PR05MB2779; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:CY1PR05MB2779; X-Forefront-PRVS: 0515208626 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(346002)(39860400002)(366004)(376002)(189003)(199004)(8676002)(47776003)(2361001)(305945005)(106356001)(2351001)(105586002)(5660300001)(55016002)(25786009)(68736007)(1076002)(2906002)(16526018)(33656002)(83506002)(50466002)(66066001)(23726003)(7696005)(3846002)(7736002)(53936002)(52116002)(81166006)(6116002)(97736004)(6666003)(478600001)(58126008)(16586007)(8936002)(6916009)(86362001)(316002)(2950100002)(81156014)(18370500001)(217873001); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR05MB2779; H:bryantan-devbox.prom.eng.vmware.com.prom.eng.vmware.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: vmware.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR05MB2779; 23:nHcYHmUJTXZvwEbDR+WQmj5KQiOwOjhogLOmq54et?= =?us-ascii?Q?Ntoar9+CXlztYzj6XCbsP6sLcSPzNJXXvFiHqZJhxL7ePuqWs1jJaMoiFj8a?= =?us-ascii?Q?uSbr/lCycylEyCg03EP/Tc4KL6soWWLaqAZF6PvrezGwiVXpzaFIKolKnNN9?= =?us-ascii?Q?zUD4GuWElldGyzVRMEwrTK9GFInKj1VWSn1pxjmFWWgRxSSD3kE3m2ZLIZiz?= =?us-ascii?Q?cPIJKCeE6sdNQETFjjQdpry6Kb/EDJBrf7Or7bJk2g61OLPLjCq0ZUca5UlQ?= =?us-ascii?Q?0kMwlbavj3Ck+EQRFi4omqSdkDr1m7W+ErPBJz81Zu/4ivBgkC3gk6R4C7r/?= =?us-ascii?Q?XzTF+gV/+EDjuyMMQmnk4ZnrAhRsRxRWn4nIK7duMt5waAPU2lGaLZzOg8RO?= =?us-ascii?Q?br1mUTwHle2y/9PG6Icv50B12+2kvpUZLss4xxZyc5xejOKPxBPTg5Liwiba?= =?us-ascii?Q?fuGVTvI1EbLkI1hhuBavSrSMBR9FUeNEiE4x9GN4uwZ4LoOe5RYhciDqg3BX?= =?us-ascii?Q?nUIT41+YUppnatP0KapW0z1BcgG6mMmQslV83JwnX6dolQJkM0bKmq0NdrvM?= =?us-ascii?Q?azMbxfTwQzuOkSg+FZgqCFuOeE6wTMH3+WgdJGl+/471eL492cucnz3eiJa2?= =?us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M0sfTt/uadbM2xg//IB/0dRg/N+LU0fMha3YO9F2awc=; 24:X1vn6JRAO7FeeS+zMUFDsVBiFE6mgXwUS/mg+5UocyBBzt/Ol8/QNXlDXFEb/Lc1+6eOvxbWFGQUcgMs4o2s4smyioNQ54B5FCpxyfBRBa4=; 7:vLzryr0rRgU3jtqD7oMA24/+DjNd278XKaHMSDIvi5qii4kpR7A98OATRQ2AkKPgo9vCF63K0MXVp/1ERm6bt8b4lumthukf26mG4hKpvaGYiSeGvCFKPZNVw5zT5qv5j/GqtAEzDc71csG8K4gH/TWB9KPoeJ24bWIhpXd/yvg7RNWnn5wx6wo4ZD/7kYNs4kMIHxf0MfW9Gx2S8dOHKa3heodNB4y9sn9IeOMudNmaI2sX5GCi/RHUNNSsvV1D SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY1PR05MB2779; 20:RbUE60zO6X8Fu7DBCh/jEy18BzSpo0aub0cadMH8GrSxDJXnD81QNydNPbcumQOL1kOyvKii9wNpdEl+wUHQTQC3htIOb1Wy10vcrQ93Ihbsf20VAOe75E1afN1FjUWetjf81jH3Oz6cDpal4da1G8SyfDoN0rh8uw7dYKe3uSU= X-OriginatorOrg: vmware.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Dec 2017 19:03:35.7251 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 9819ea3a-f2ef-4950-16e5-08d53e6e6283 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: b39138ca-3cee-4b4a-a4d6-cd83d9dd62f0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR05MB2779 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 Add the two UAR SRQ macros that are required by the userlevel library. Fixes: 8b10ba783c9d ("RDMA/vmw_pvrdma: Add shared receive queue support") Reviewed-by: Adit Ranadive Reviewed-by: Aditya Sarwade Reviewed-by: Jorgen Hansen Signed-off-by: Bryan Tan --- include/uapi/rdma/vmw_pvrdma-abi.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/uapi/rdma/vmw_pvrdma-abi.h b/include/uapi/rdma/vmw_pvrdma-abi.h index aaa352f..4007cac 100644 --- a/include/uapi/rdma/vmw_pvrdma-abi.h +++ b/include/uapi/rdma/vmw_pvrdma-abi.h @@ -58,6 +58,8 @@ #define PVRDMA_UAR_CQ_ARM_SOL BIT(29) /* Arm solicited bit. */ #define PVRDMA_UAR_CQ_ARM BIT(30) /* Arm bit. */ #define PVRDMA_UAR_CQ_POLL BIT(31) /* Poll bit. */ +#define PVRDMA_UAR_SRQ_OFFSET 8 /* SRQ doorbell. */ +#define PVRDMA_UAR_SRQ_RECV BIT(30) /* Recv bit. */ enum pvrdma_wr_opcode { PVRDMA_WR_RDMA_WRITE,