From patchwork Mon Jan 7 14:39:28 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shamir Rabinovitch X-Patchwork-Id: 10750671 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 970FF91E for ; Mon, 7 Jan 2019 14:40:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 84EEC28A8C for ; Mon, 7 Jan 2019 14:40:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 78F6528A8E; Mon, 7 Jan 2019 14:40:16 +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 1B55928A3B for ; Mon, 7 Jan 2019 14:40:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729016AbfAGOkP (ORCPT ); Mon, 7 Jan 2019 09:40:15 -0500 Received: from userp2120.oracle.com ([156.151.31.85]:45782 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728811AbfAGOkO (ORCPT ); Mon, 7 Jan 2019 09:40:14 -0500 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 x07EXx6H073791; Mon, 7 Jan 2019 14:40:08 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=9JnNopWgpewkSYDPX/RAbCzv/fTrQ/VUSBaT9IcrLsI=; b=RmqrODRnGIqbVm1kJhVpEpgY+7HlIrLMo3mHA2m2thSzJE7NgS6Hd4fk3oKZtoXi9bqI edbQJCEFqIWBeIo6jWOSX+7MS9gbbWZzmr/8E+dk5Sq7vR0QLu7jEGgMtUHQIhU6tdz2 WXYUg8sgGbLTuGWzoNyiT9HjMe9kIBbsx8cYraKK03QbE61Edpq6cfIfHWHg3P5egIef VX/In4xiHXagKkIhrmQFlGPU1KEWQRznwtrMCT07Uhk1SZ+vvgkNzvWZmlkS/fMWPMSx iE6R98V7KGRARDMLNVa7QPzLecRvAcaElg+j/hIETUMz9XTCGGvFtlNLKSm1lCrlnlq8 Nw== Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by userp2120.oracle.com with ESMTP id 2ptn7qnxnt-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 07 Jan 2019 14:40:08 +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 x07Ee7u7006660 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 7 Jan 2019 14:40:07 GMT Received: from abhmp0015.oracle.com (abhmp0015.oracle.com [141.146.116.21]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id x07Ee61o025385; Mon, 7 Jan 2019 14:40:06 GMT Received: from localhost.localdomain (/10.175.23.6) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 07 Jan 2019 06:40:06 -0800 From: Shamir Rabinovitch To: linux-rdma@vger.kernel.org Cc: dledford@redhat.com, jgg@ziepe.ca, monis@mellanox.com Subject: [RFC for-next 0/2] ib_umem_get extract ib_ucontext from ib_udata Date: Mon, 7 Jan 2019 16:39:28 +0200 Message-Id: <20190107143930.4922-1-shamir.rabinovitch@oracle.com> X-Mailer: git-send-email 2.17.2 X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9128 signatures=668680 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=1 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=456 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1901070129 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 Follw the RFC patch from Jason, I have added the required code to eliminate depmod circular dependency from the form ib_core -> ib_uverbs -> ib_core arose from the second patch. Both patches worked OK for me with some minimal ibv_rc_pingpond and ib_[write|send]_bw tests. I also tested removal of all rdma modules. If the approach is OK I can send formal patch set for this part. shamir rabinovitch (2): IB/{core,uverbs}: ib_uverbs callback registration in ib_core IB/{core,hw}: ib_umem_get extract ib_ucontext from ib_udata drivers/infiniband/core/device.c | 51 +++++++++++++++++++ drivers/infiniband/core/umem.c | 17 ++++++- drivers/infiniband/core/uverbs_main.c | 38 ++++++++++++++ drivers/infiniband/hw/bnxt_re/ib_verbs.c | 10 ++-- drivers/infiniband/hw/cxgb3/iwch_provider.c | 2 +- drivers/infiniband/hw/cxgb4/mem.c | 2 +- drivers/infiniband/hw/hns/hns_roce_cq.c | 6 +-- drivers/infiniband/hw/hns/hns_roce_db.c | 5 +- drivers/infiniband/hw/hns/hns_roce_mr.c | 4 +- drivers/infiniband/hw/hns/hns_roce_qp.c | 2 +- drivers/infiniband/hw/hns/hns_roce_srq.c | 4 +- drivers/infiniband/hw/i40iw/i40iw_verbs.c | 2 +- drivers/infiniband/hw/mlx4/cq.c | 12 ++--- drivers/infiniband/hw/mlx4/doorbell.c | 5 +- drivers/infiniband/hw/mlx4/mlx4_ib.h | 3 +- drivers/infiniband/hw/mlx4/mr.c | 11 ++-- drivers/infiniband/hw/mlx4/qp.c | 5 +- drivers/infiniband/hw/mlx4/srq.c | 4 +- drivers/infiniband/hw/mlx5/cq.c | 7 ++- drivers/infiniband/hw/mlx5/devx.c | 2 +- drivers/infiniband/hw/mlx5/doorbell.c | 5 +- drivers/infiniband/hw/mlx5/mlx5_ib.h | 4 +- drivers/infiniband/hw/mlx5/mr.c | 22 ++++---- drivers/infiniband/hw/mlx5/odp.c | 4 +- drivers/infiniband/hw/mlx5/qp.c | 24 ++++----- drivers/infiniband/hw/mlx5/srq.c | 4 +- drivers/infiniband/hw/mthca/mthca_provider.c | 2 +- drivers/infiniband/hw/nes/nes_verbs.c | 2 +- drivers/infiniband/hw/ocrdma/ocrdma_verbs.c | 2 +- drivers/infiniband/hw/qedr/verbs.c | 24 ++++----- drivers/infiniband/hw/vmw_pvrdma/pvrdma_cq.c | 2 +- drivers/infiniband/hw/vmw_pvrdma/pvrdma_mr.c | 2 +- drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c | 4 +- drivers/infiniband/hw/vmw_pvrdma/pvrdma_srq.c | 2 +- drivers/infiniband/sw/rdmavt/mr.c | 2 +- drivers/infiniband/sw/rxe/rxe_mr.c | 2 +- include/rdma/ib_umem.h | 5 +- include/rdma/ib_verbs.h | 14 +++++ 38 files changed, 221 insertions(+), 97 deletions(-)