From patchwork Wed Dec 20 17:50:57 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan Tan X-Patchwork-Id: 10126161 X-Patchwork-Delegate: jgg@ziepe.ca 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 8BBDB60390 for ; Wed, 20 Dec 2017 17:51:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7C962290E9 for ; Wed, 20 Dec 2017 17:51:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7178C29115; Wed, 20 Dec 2017 17:51:18 +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 E8200290E9 for ; Wed, 20 Dec 2017 17:51:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755830AbdLTRvR (ORCPT ); Wed, 20 Dec 2017 12:51:17 -0500 Received: from mail-co1nam03on0042.outbound.protection.outlook.com ([104.47.40.42]:24848 "EHLO NAM03-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755397AbdLTRvQ (ORCPT ); Wed, 20 Dec 2017 12:51:16 -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=TcjrGJ1ZaO6g/qqksp0PFqxznjRaBXVNrp4mULPQXNM=; b=JiHgG8p9eZAT6SPV6CZIsdjubClTS9e+VMHt0g9rE7GWE6sZWR4lrit+aCsjO4C5btrAw3No0AhXwgC4T5r2Ef53oMzihI6CFqS2tQwrSnngBDkBrfbvgdFlRuUBC6OMYrKl+04NS93RP4WpqqttdiQWS2SBrTUQRxG9xpvQHs4= Received: from bryantan-devbox.prom.eng.vmware.com.prom.eng.vmware.com (208.91.1.34) by SN2PR05MB2783.namprd05.prod.outlook.com (2603:10b6:804:16::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.302.2; Wed, 20 Dec 2017 17:51:14 +0000 Date: Wed, 20 Dec 2017 09:50:57 -0800 From: Bryan Tan To: linux-rdma@vger.kernel.org Subject: [PATCH v2 for-rc 3/4] RDMA/vmw_pvrdma: Add UAR SRQ macros in ABI header file Message-ID: <20171220175051.GA22751@bryantan-devbox.prom.eng.vmware.com.prom.eng.vmware.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20171220174748.GA18149@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: MWHPR20CA0010.namprd20.prod.outlook.com (2603:10b6:300:13d::20) To SN2PR05MB2783.namprd05.prod.outlook.com (2603:10b6:804:16::12) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 083afce9-e06f-49ad-5c09-08d547d2436d X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(5600026)(4604075)(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(2017052603307)(7153060); SRVR:SN2PR05MB2783; X-Microsoft-Exchange-Diagnostics: 1; SN2PR05MB2783; 3:K/BhreZur2eOlP8aH3UJsqEAVn0wSVUUjbGcfaDX68MIe4I6Dwdq71UPtze3GkZFvacqZmHfvI6H0AhtNxPTIoiv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SDzk/Td3C4UDue60PLnwpuqK9N+napOumbn8QNK44NZ2n0spmHtWdj8CuDIKLBE2NrjxcFCWznvKWvwP/Dog4j/f/iqhXft2VThJvlZcYIThxIonBINjax3YaB6HYCWM55P1e+OBHd/D6dPEKlcU387XqiETDL9zclMiJnhpSiDHMITwa5007ypmfrSqnVNcvoaeCoXXrb6DpoRbRzilM5s1BaidnBCuFXCDSnoy984/XNPM/p44xlD89SHnH72Q; 4:KqKNpTTySGMkmiNEJdIXnoF6XcNV3pRkRn9LUyrVkCe0h32TXvSVB32bmR8O37+BtMNf+3cNnHcN6J7emFEnFQXy+fhoGRE31jJmZ4hzGLgRJo0SKCkEL1a7fteZP3wVgkFMSqFbcaRt++0SX9ZdymIdQqNc6L3Uzm0eCfrBdb6VOFk0R4ODU5xVpbEmRUM6F421D5zZD+zlkpV0LGhBPvkQydd4xGJLnQuG8eMhfYhH0ueT18+V7VIQh4m2+ZNwjtN44QM3BYnyz85BHNYYvIf2cQ/x1LkwHqRJYTZUPS1PnUaPPr0K7lhwSrMLyjU9 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(61668805478150); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040470)(2401047)(5005006)(8121501046)(10201501046)(93006095)(93001095)(3231023)(3002001)(6041268)(20161123562045)(20161123560045)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(6072148)(201708071742011); SRVR:SN2PR05MB2783; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:SN2PR05MB2783; X-Forefront-PRVS: 0527DFA348 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(39380400002)(376002)(39860400002)(346002)(366004)(396003)(189003)(199004)(106356001)(50466002)(55016002)(1076002)(23726003)(25786009)(83506002)(2906002)(86362001)(81166006)(386003)(105586002)(97736004)(81156014)(8676002)(52116002)(66066001)(6116002)(68736007)(8936002)(16586007)(58126008)(2351001)(2361001)(3846002)(316002)(16526018)(7696005)(33656002)(47776003)(5660300001)(2950100002)(53936002)(6916009)(305945005)(478600001)(7736002)(6666003)(18370500001)(217873001); DIR:OUT; SFP:1101; SCL:1; SRVR:SN2PR05MB2783; 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) Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=bryantan@vmware.com; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SN2PR05MB2783; 23:Q912Xoacmcib4FcOrClGi02exITw07CKRYcT29fvT?= =?us-ascii?Q?w9pg40GDzWCBi+6y+/S5k2hdkBO6CcUUMUj9qou78ABrfPDmc3k5EM2plrEG?= =?us-ascii?Q?Y6C0AIcfnmouCm6q35bEIwTBOdrAJP4Eu1xH1CrqJlROm08o/mAhqQS5ukyp?= =?us-ascii?Q?gxpazjdlljWX+rnLYemvB80rV9NsfzhBBPPC9M6Eq8cQZVgdNARIArXoU+yU?= =?us-ascii?Q?R3S+tpwXIRIbXXnSMAr7JcKsKZwp42lgPGHoUulnqyStcjc8nmB18iQ0KZQZ?= =?us-ascii?Q?liwjWnfNO21HM+FuTpJukOXtyNSqtTaAiU0R9WBRxoLhTFo/Era3u+mG5pUS?= =?us-ascii?Q?VjI+UyiCEhcPk1MFS5dpSNMzhf43f+5p490++l50h++oAv0Qi5MfYA8I61r4?= =?us-ascii?Q?yAVaSwMZLoJ4bHDW6ukgrypfeCoHQnxzrj4INLvGWqfJf7gICYX3Xh8uq6kF?= =?us-ascii?Q?7beMH6ZgoAy35Zdbk26dhN1XKoG2fYlkUIYUULWps4V7RLbVq77AI6bnawHW?= =?us-ascii?Q?aHc2B+Xg0vBBK327lsf12xi8jgcv2aYx07yzlb7v8N0DoxcBQQEZfnzgRyhK?= =?us-ascii?Q?Ms9VM3ErQMQONvr3FbyNdpDnhP2YBAbYX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xTs1C1pM0422kzQBlKBWlR1MtsKSU3nue5k1DNLsOeJu5BSAh+k3O2xcsUDv3/1P1okGf39ZqAUbqAjYCt8EeY6oWfXgz846QCMung8BZaNOf7AjA5SxrPqUVYxylqNzjEITP7G7b0E=; 24:V/XxgAsRsVfe/Q4mBukee6ok3ORBwzXRlg6j8vpHU1ZG/zMPGKpwiAXblVK6Mt5X9AkCA+NsQvXYTXzvnN6nPplAYqaGVORmuOIqE1+raWU=; 7:M6DuKtVgWuS6O0EteizjV1OXLnWcwazbq4EmlceevgfUw3UwUigD6DNbCQA9V8XV5k3xEssexIB3BfC2fxodvbgcTRP8DeyrcGO6sjK0fzU8UPl5fQEpio9jiyf/UHoTFV+27UPdSrOzz9Wq6jm7pmg8B7tDYyl0bXv0ysdzREVGTb3IzL0iO2KJCf/ANRdK5dNR/qoLjNhcU7aWFKB7Pz1sulRcAH8+kNBTfUD8D//cCCJ6E7n6JzWQdlC8CZzM SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; SN2PR05MB2783; 20:Ye+P9BkbfjLf36PQmvBWFrb8eOgZiW6XJNRmWurGDQWMqdUqo8mtSbv6qz1EExQ1rqD1tlvGXn2wrSuOtTcjZ0SnWLwbVIEhWYVO5m5CXIG6bNTPEjvNYpG6IKbpTyrP6F39PLH/yxqU98TrpL4JRayKNz1Dfmu7aGvHD5KY/v0= X-OriginatorOrg: vmware.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Dec 2017 17:51:14.0081 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 083afce9-e06f-49ad-5c09-08d547d2436d X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: b39138ca-3cee-4b4a-a4d6-cd83d9dd62f0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN2PR05MB2783 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 Support for SRQs were added in the vmw_pvrdma userlevel library before two necessary macros were added into the kernel ABI header file. Add the two UAR SRQ macros that are required by the userlevel library so that the library can rely on the kernel ABI header file for these SRQ macro definitions. 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,