From patchwork Sun Oct 7 07:23:05 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shamir Rabinovitch X-Patchwork-Id: 10629369 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id CA48813AA for ; Sun, 7 Oct 2018 07:23:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A8BB629174 for ; Sun, 7 Oct 2018 07:23:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9CDE02917E; Sun, 7 Oct 2018 07:23:55 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI, UNPARSEABLE_RELAY 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 40DE329174 for ; Sun, 7 Oct 2018 07:23:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726402AbeJGOaO (ORCPT ); Sun, 7 Oct 2018 10:30:14 -0400 Received: from userp2120.oracle.com ([156.151.31.85]:43244 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726351AbeJGOaN (ORCPT ); Sun, 7 Oct 2018 10:30:13 -0400 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w977K2OX154520; Sun, 7 Oct 2018 07:23:48 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id; s=corp-2018-07-02; bh=S6f6OAJY65Fdr3Ls8ejht9aHpzxt0pLVkG3e+qCaPnw=; b=h3jMJb1fh+0qqVGTGTj5MQZ8SDGpumRQ3MfwrvOaRBzuZELuCVzYYPk/r4l5xjTbVj2Z pV+4a5zPOY+8bt0yNjPPz7wr8sLa+Dclfg1zve78aLEwSW8Y0LigBmS7ImQBRNEFjiXR T/KEy5KuPP4d7dx8Nim4bbqXS8LiT9kdB7Rqw/mMGOlS+w/WuEq8w7bYyoaVh0B3Lq5T x/bTSik+0xmJPKiMMiUeKcSbQ2PVbDZqnuZ/snzv/VMwW9/QhRbHF7SidOGptYPl5S05 JfPK8krTJL5KeKcUT258RWqieyPiKT6Rr7MdOX3EMopk64jUoe0TxUvfK35nkcSK6+Y/ Fw== Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by userp2120.oracle.com with ESMTP id 2mxnpqj0as-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 07 Oct 2018 07:23:48 +0000 Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by userv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w977NlAG000711 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 7 Oct 2018 07:23:47 GMT Received: from abhmp0018.oracle.com (abhmp0018.oracle.com [141.146.116.24]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id w977Nksw011328; Sun, 7 Oct 2018 07:23:46 GMT Received: from localhost.localdomain (/77.127.47.118) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sun, 07 Oct 2018 07:23:46 +0000 From: Shamir Rabinovitch To: linux-rdma@vger.kernel.org Cc: dledford@redhat.com, jgg@ziepe.ca, leon@kernel.org, santosh.shilimkar@oracle.com, shamir.rabinovitch@oracle.com Subject: [PATCH 0/3] figure uverbs/kernel ib_pd w/o using ib_pd uobject Date: Sun, 7 Oct 2018 10:23:05 +0300 Message-Id: <20181007072308.10936-1-shamir.rabinovitch@oracle.com> X-Mailer: git-send-email 2.17.1 X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9038 signatures=668706 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=1 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=625 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1807170000 definitions=main-1810070078 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 This series and follow up couple of series are doing ground work to be able to add Shared Protection domain verbs. I have been reviewing these bits with Jason Gunthorpe, Leon Romanovsky and Santosh Shilimkar and we thought of taking these to wider list. This particular series has two steps. First step is to change the resource tracker so it will not use ib_x uobject pointer to figure if ib_x object was created by uverbs/kernel. Second step is to use the resource tracker ability to tell if ib_pd was created by uverbs/kernel and replace every place in the code where the code test for valid ib_pd uobject pointer just to tell if the ib_pd was created by uverbs/kernel. This series is the first step toward releasing the code from the dependency in the uobject pointer in the ib_pd. This change is required before we can move to shared ib_pd model. Shamir Rabinovitch (3): RDMA/restrack: resource-tracker should not use uobject pointers IB/verbs: Add rdma_is_user_pd function IB/{hw,sw}: use rdma_is_user_pd instead of pd uobject pointer drivers/infiniband/core/core_priv.h | 1 + drivers/infiniband/core/cq.c | 1 + drivers/infiniband/core/restrack.c | 16 +--------------- drivers/infiniband/core/uverbs_cmd.c | 3 +++ drivers/infiniband/core/uverbs_std_types_cq.c | 1 + drivers/infiniband/core/verbs.c | 3 +++ drivers/infiniband/hw/bnxt_re/ib_verbs.c | 4 ++-- drivers/infiniband/hw/hns/hns_roce_hw_v1.c | 2 +- drivers/infiniband/hw/hns/hns_roce_hw_v2.c | 3 ++- drivers/infiniband/hw/hns/hns_roce_qp.c | 17 +++++++++-------- drivers/infiniband/hw/i40iw/i40iw_verbs.c | 6 +++--- drivers/infiniband/hw/mlx4/qp.c | 17 +++++++++-------- drivers/infiniband/hw/mlx4/srq.c | 10 +++++----- drivers/infiniband/hw/mlx5/qp.c | 8 ++++---- drivers/infiniband/hw/mlx5/srq.c | 8 ++++---- drivers/infiniband/hw/mthca/mthca_provider.c | 10 +++++----- drivers/infiniband/hw/mthca/mthca_qp.c | 7 ++++--- drivers/infiniband/hw/mthca/mthca_srq.c | 8 ++++---- drivers/infiniband/hw/nes/nes_verbs.c | 7 ++++--- drivers/infiniband/hw/ocrdma/ocrdma_verbs.c | 2 +- drivers/infiniband/hw/qedr/verbs.c | 4 ++-- drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c | 2 +- drivers/infiniband/hw/vmw_pvrdma/pvrdma_srq.c | 2 +- drivers/infiniband/sw/rxe/rxe_qp.c | 3 ++- include/rdma/ib_verbs.h | 5 +++++ include/rdma/restrack.h | 4 ++++ 26 files changed, 82 insertions(+), 72 deletions(-)