Message ID | 20190120130600.8788-1-leon@kernel.org (mailing list archive) |
---|---|
Headers | show
Return-Path: <linux-rdma-owner@kernel.org> 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 13856746 for <patchwork-linux-rdma@patchwork.kernel.org>; Sun, 20 Jan 2019 13:06:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0209A2A6F1 for <patchwork-linux-rdma@patchwork.kernel.org>; Sun, 20 Jan 2019 13:06:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E8C002AA7D; Sun, 20 Jan 2019 13:06:06 +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 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 845352A6F1 for <patchwork-linux-rdma@patchwork.kernel.org>; Sun, 20 Jan 2019 13:06:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730582AbfATNGG (ORCPT <rfc822;patchwork-linux-rdma@patchwork.kernel.org>); Sun, 20 Jan 2019 08:06:06 -0500 Received: from mail.kernel.org ([198.145.29.99]:36284 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730542AbfATNGG (ORCPT <rfc822;linux-rdma@vger.kernel.org>); Sun, 20 Jan 2019 08:06:06 -0500 Received: from localhost (unknown [193.47.165.251]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C0D622087B; Sun, 20 Jan 2019 13:06:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1547989565; bh=lolAkqawneNBDs+3P0bXmxsBrJOmVVF6cbP7zzo++vE=; h=From:To:Cc:Subject:Date:From; b=KZFJa4e33TCrteEbCTi5qulaA0+DEXi6sZX2wMRH/AmWUKYLtBLbRt01x+Qwhfhtx +seOhuJY1mRdNTwoxXnWOHGXJ2yfg89VnC9YADlDDJGSPbgeSQVuBi/TiN5iI4w7KP CANKY23lRrYDbXgyGcgQcUSIinYku8H3NbfmZwy0= From: Leon Romanovsky <leon@kernel.org> To: Doug Ledford <dledford@redhat.com>, Jason Gunthorpe <jgg@mellanox.com> Cc: Leon Romanovsky <leonro@mellanox.com>, RDMA mailing list <linux-rdma@vger.kernel.org> Subject: [PATCH rdma-next v1 0/6] Annotate mlx5 driver to reuse restrack IDs Date: Sun, 20 Jan 2019 15:05:54 +0200 Message-Id: <20190120130600.8788-1-leon@kernel.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: <linux-rdma.vger.kernel.org> X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
Annotate mlx5 driver to reuse restrack IDs
|
expand
|
From: Leon Romanovsky <leonro@mellanox.com> Changelog v0->v1: * Fix Pd unwinding flow * First patch helped to find unset "struct ib_device *" in MR flow * Change CQ ID allocation from SW to HW mode. --------------------------------------------------------------------- Hi, This series is based on previously sent "Provide per-ID access to restrack objects" patch set. This annotation is needed to ensure that driver and nldev shares the same ID numbers. Based on that number, users will be able to perform explicit .doit callback (query on specific object) and see relations between various objects, e.g. see to which context, specific PD is connected. The supported code for such functionality will be posted this week together with ready to use rdmatool part. Thanks Leon Romanovsky (6): RDMA/restrack: Fortify source by ensuring that restrack type is set RDMA/mlx5: Use restrack allocation PD scheme RDMA/mlx5: Use HW restrack CQ ID allocation mode RDMA/mlx5: Use HW variant restrack QP ID allocation mode RDMA/mlx5: Convert CTX to use restrack HW allocation scheme RDMA/mlx5: Annotate MR allocation drivers/infiniband/core/core_priv.h | 3 +- drivers/infiniband/core/nldev.c | 2 +- drivers/infiniband/core/restrack.c | 32 +++++++++++--- drivers/infiniband/core/verbs.c | 2 + drivers/infiniband/hw/mlx5/cq.c | 10 ++++- drivers/infiniband/hw/mlx5/gsi.c | 5 ++- drivers/infiniband/hw/mlx5/main.c | 66 +++++++++++++++++++++------- drivers/infiniband/hw/mlx5/mlx5_ib.h | 3 -- drivers/infiniband/hw/mlx5/mr.c | 34 ++++++++++---- drivers/infiniband/hw/mlx5/qp.c | 44 ++++++++++++++----- drivers/infiniband/hw/mlx5/srq.c | 2 +- include/rdma/restrack.h | 20 ++++++++- 12 files changed, 171 insertions(+), 52 deletions(-) -- 2.19.1