mbox series

[rdma-next,0/3] Indirect MKEY over DEVX

Message ID 20190113140118.10204-1-leon@kernel.org
Headers show
Series Indirect MKEY over DEVX | expand

Message

Leon Romanovsky Jan. 13, 2019, 2:01 p.m. UTC
From: Leon Romanovsky <leonro@mellanox.com>

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

Comments

Jason Gunthorpe Jan. 22, 2019, 3:08 a.m. UTC | #1
On Sun, Jan 13, 2019 at 04:01:15PM +0200, Leon Romanovsky wrote:
> From: Leon Romanovsky <leonro@mellanox.com>
> 
> 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

applied to for-next

Thanks,
Jason