From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leon Romanovsky Subject: [PATCH rdma-next 0/3] Indirect MKEY over DEVX Date: Sun, 13 Jan 2019 16:01:15 +0200 Message-ID: <20190113140118.10204-1-leon@kernel.org> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Cc: Leon Romanovsky , RDMA mailing list , Artemy Kovalyov , Yishai Hadas , Saeed Mahameed , linux-netdev To: Doug Ledford , Jason Gunthorpe Return-path: Received: from mail.kernel.org ([198.145.29.99]:41740 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726510AbfAMOBX (ORCPT ); Sun, 13 Jan 2019 09:01:23 -0500 Sender: netdev-owner@vger.kernel.org List-ID: From: Leon Romanovsky Hi, >>From Yishai, ----------------------------------------------------------------------- This series enables using indirect mkey over DEVX. The first patch recognizes the creation of an indirect mkey as part of DEVX object creation, in that case the umem valid bit shouldn't be set as this mkey doesn't really hold a umem. The next two patches manage indirection mkey upon DEVX flow to support ODP. To support a page fault event on an indirection mkey it needs to be part of the device mkey radix tree. Both the creation and the deletion flows for a DEVX object which is indirection mkey were adapted to handle that. In addition, the page fault flow was adapted to support indirect mkey type, it's handled in a similar flow as of the memory window mkey type. Yishai Yishai Hadas (3): IB/mlx5: DEVX handling for indirection MKEY IB/mlx5: Manage indirection mkey upon DEVX flow for ODP IB/mlx5: Add support for ODP for DEVX indirection mkey drivers/infiniband/hw/mlx5/devx.c | 125 ++++++++++++++++++++++++++- drivers/infiniband/hw/mlx5/main.c | 1 + drivers/infiniband/hw/mlx5/mlx5_ib.h | 6 ++ drivers/infiniband/hw/mlx5/odp.c | 26 ++++-- include/linux/mlx5/driver.h | 1 + 5 files changed, 152 insertions(+), 7 deletions(-) From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B5CEAC43387 for ; Sun, 13 Jan 2019 14:01:24 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 794B020842 for ; Sun, 13 Jan 2019 14:01:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1547388084; bh=lMY3AaxrBw6MshKbG2bR40UOqoRXdHOHOOnfLk2YOxY=; h=From:To:Cc:Subject:Date:List-ID:From; b=05D5oiQBu2fHTSwUk889TLD9FJI0zGNNWQw3JM7oUp1fWPNKzUtKETatCvIFnBiWK 6aq/8Rf9M5GpKfQ8tuA0uqTF2T8x0EO+R75fN0LXP5gTlBh2+M74yDOO0Dhg7rh1VL 7EVf8twa/TbceYO740FGjOYXf2w2nwTU+Snq3/eo= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726600AbfAMOBX (ORCPT ); Sun, 13 Jan 2019 09:01:23 -0500 Received: from mail.kernel.org ([198.145.29.99]:41740 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726510AbfAMOBX (ORCPT ); Sun, 13 Jan 2019 09:01:23 -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 02417206B7; Sun, 13 Jan 2019 14:01:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1547388082; bh=lMY3AaxrBw6MshKbG2bR40UOqoRXdHOHOOnfLk2YOxY=; h=From:To:Cc:Subject:Date:From; b=w4JA48m2XOsdmKd1Bnd4yBpQN5QnTFep5EaXnXmD4TGrRR6Dwy08xbac0EqbL44dM XL/2WZO1thFB8z8g0RptMjgnYc+8INwWiYETXLYQobi742HNXr8EmZPH3XFTild+fq M+/6r2N1Hq5X8j/l6TxdAPUSmKDtV+2Al+Z0NjkQ= From: Leon Romanovsky To: Doug Ledford , Jason Gunthorpe Cc: Leon Romanovsky , RDMA mailing list , Artemy Kovalyov , Yishai Hadas , Saeed Mahameed , linux-netdev Subject: [PATCH rdma-next 0/3] Indirect MKEY over DEVX Date: Sun, 13 Jan 2019 16:01:15 +0200 Message-Id: <20190113140118.10204-1-leon@kernel.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Message-ID: <20190113140115.xY8W-PhbdQAgKJGnFbswF77xMa2SNxeD54RkaiH4Xuo@z> From: Leon Romanovsky Hi, >From Yishai, ----------------------------------------------------------------------- This series enables using indirect mkey over DEVX. The first patch recognizes the creation of an indirect mkey as part of DEVX object creation, in that case the umem valid bit shouldn't be set as this mkey doesn't really hold a umem. The next two patches manage indirection mkey upon DEVX flow to support ODP. To support a page fault event on an indirection mkey it needs to be part of the device mkey radix tree. Both the creation and the deletion flows for a DEVX object which is indirection mkey were adapted to handle that. In addition, the page fault flow was adapted to support indirect mkey type, it's handled in a similar flow as of the memory window mkey type. Yishai Yishai Hadas (3): IB/mlx5: DEVX handling for indirection MKEY IB/mlx5: Manage indirection mkey upon DEVX flow for ODP IB/mlx5: Add support for ODP for DEVX indirection mkey drivers/infiniband/hw/mlx5/devx.c | 125 ++++++++++++++++++++++++++- drivers/infiniband/hw/mlx5/main.c | 1 + drivers/infiniband/hw/mlx5/mlx5_ib.h | 6 ++ drivers/infiniband/hw/mlx5/odp.c | 26 ++++-- include/linux/mlx5/driver.h | 1 + 5 files changed, 152 insertions(+), 7 deletions(-) -- 2.19.1