linux-rdma.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [net-next, rdma-next] [pull request] Use ODP MRs for kernel ULPs
@ 2020-01-20  7:30 Leon Romanovsky
  2020-01-21  9:35 ` David Miller
  0 siblings, 1 reply; 4+ messages in thread
From: Leon Romanovsky @ 2020-01-20  7:30 UTC (permalink / raw)
  To: David S . Miller, kuba, Doug Ledford, Jason Gunthorpe
  Cc: Leon Romanovsky, Santosh Shilimkar, RDMA mailing list, linux-netdev

From: Leon Romanovsky <leonro@mellanox.com>

Hi David, Jakub, Doug and Jason

This is pull request to previously posted and reviewed series [1] which touches
RDMA and netdev subsystems. RDMA part was approved for inclusion by Jason [2]
and RDS patches were acked by Santosh [3].

For your convenience, the series is based on clean v5.5-rc6 tag and applies
cleanly to both subsystems.

Please pull and let me know if there's any problem. I'm very rare doing PRs
and sorry in advance if something is not as expected.

[1] https://lore.kernel.org/linux-rdma/20200115124340.79108-1-leon@kernel.org
[2] https://lore.kernel.org/linux-rdma/20200117141232.GX20978@mellanox.com
[3] https://lore.kernel.org/linux-rdma/3c479d8a-f98a-a4c9-bd85-6332e919bf35@oracle.com

----------------------------------------------------------------
The following series extends MR creation routines to allow creation of
user MRs through kernel ULPs as a proxy. The immediate use case is to
allow RDS to work over FS-DAX, which requires ODP (on-demand-paging)
MRs to be created and such MRs were not possible to create prior this
series.

The first part of this patchset extends RDMA to have special verb
ib_reg_user_mr(). The common use case that uses this function is a
userspace application that allocates memory for HCA access but the
responsibility to register the memory at the HCA is on an kernel ULP.
This ULP acts as an agent for the userspace application.

The second part provides advise MR functionality for ULPs. This is
integral part of ODP flows and used to trigger pagefaults in advance
to prepare memory before running working set.

The third part is actual user of those in-kernel APIs.

Thanks
----------------------------------------------------------------
The following changes since commit b3a987b0264d3ddbb24293ebff10eddfc472f653:

  Linux 5.5-rc6 (2020-01-12 16:55:08 -0800)

are available in the Git repository at:

  https://git.kernel.org/pub/scm/linux/kernel/git/leon/linux-rdma.git tags/rds-odp-for-5.5

for you to fetch changes up to b2dfc6765e45a3154800333234e4952b5412d792:

  net/rds: Use prefetch for On-Demand-Paging MR (2020-01-18 11:48:19 +0200)

----------------------------------------------------------------
Hans Westgaard Ry (3):
      net/rds: Detect need of On-Demand-Paging memory registration
      net/rds: Handle ODP mr registration/unregistration
      net/rds: Use prefetch for On-Demand-Paging MR

Jason Gunthorpe (1):
      RDMA/mlx5: Fix handling of IOVA != user_va in ODP paths

Leon Romanovsky (1):
      RDMA/mlx5: Don't fake udata for kernel path

Moni Shoua (5):
      IB: Allow calls to ib_umem_get from kernel ULPs
      IB/core: Introduce ib_reg_user_mr
      IB/core: Add interface to advise_mr for kernel users
      IB/mlx5: Add ODP WQE handlers for kernel QPs
      IB/mlx5: Mask out unsupported ODP capabilities for kernel QPs

 drivers/infiniband/core/umem.c                |  27 ++---
 drivers/infiniband/core/umem_odp.c            |  29 ++---
 drivers/infiniband/core/verbs.c               |  41 +++++++
 drivers/infiniband/hw/bnxt_re/ib_verbs.c      |  12 +-
 drivers/infiniband/hw/cxgb4/mem.c             |   2 +-
 drivers/infiniband/hw/efa/efa_verbs.c         |   4 +-
 drivers/infiniband/hw/hns/hns_roce_cq.c       |   2 +-
 drivers/infiniband/hw/hns/hns_roce_db.c       |   3 +-
 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      |   5 +-
 drivers/infiniband/hw/i40iw/i40iw_verbs.c     |   5 +-
 drivers/infiniband/hw/mlx4/cq.c               |   2 +-
 drivers/infiniband/hw/mlx4/doorbell.c         |   3 +-
 drivers/infiniband/hw/mlx4/mr.c               |   8 +-
 drivers/infiniband/hw/mlx4/qp.c               |   5 +-
 drivers/infiniband/hw/mlx4/srq.c              |   3 +-
 drivers/infiniband/hw/mlx5/cq.c               |   6 +-
 drivers/infiniband/hw/mlx5/devx.c             |   2 +-
 drivers/infiniband/hw/mlx5/doorbell.c         |   3 +-
 drivers/infiniband/hw/mlx5/main.c             |  51 +++++---
 drivers/infiniband/hw/mlx5/mlx5_ib.h          |  12 +-
 drivers/infiniband/hw/mlx5/mr.c               |  20 +--
 drivers/infiniband/hw/mlx5/odp.c              |  33 +++--
 drivers/infiniband/hw/mlx5/qp.c               | 167 +++++++++++++++++---------
 drivers/infiniband/hw/mlx5/srq.c              |   2 +-
 drivers/infiniband/hw/mthca/mthca_provider.c  |   2 +-
 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c   |   2 +-
 drivers/infiniband/hw/qedr/verbs.c            |   9 +-
 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  |   7 +-
 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                        |   4 +-
 include/rdma/ib_umem_odp.h                    |   6 +-
 include/rdma/ib_verbs.h                       |   9 ++
 net/rds/ib.c                                  |   7 ++
 net/rds/ib.h                                  |   3 +-
 net/rds/ib_mr.h                               |   7 +-
 net/rds/ib_rdma.c                             |  84 ++++++++++++-
 net/rds/ib_send.c                             |  44 +++++--
 net/rds/rdma.c                                | 157 ++++++++++++++++++------
 net/rds/rds.h                                 |  13 +-
 45 files changed, 561 insertions(+), 256 deletions(-)

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [net-next, rdma-next] [pull request] Use ODP MRs for kernel ULPs
  2020-01-20  7:30 [net-next, rdma-next] [pull request] Use ODP MRs for kernel ULPs Leon Romanovsky
@ 2020-01-21  9:35 ` David Miller
  2020-01-21 11:05   ` Leon Romanovsky
  2020-01-23 22:49   ` Jason Gunthorpe
  0 siblings, 2 replies; 4+ messages in thread
From: David Miller @ 2020-01-21  9:35 UTC (permalink / raw)
  To: leon; +Cc: kuba, dledford, jgg, leonro, santosh.shilimkar, linux-rdma, netdev

From: Leon Romanovsky <leon@kernel.org>
Date: Mon, 20 Jan 2020 09:30:46 +0200

> From: Leon Romanovsky <leonro@mellanox.com>
> 
> Hi David, Jakub, Doug and Jason
> 
> This is pull request to previously posted and reviewed series [1] which touches
> RDMA and netdev subsystems. RDMA part was approved for inclusion by Jason [2]
> and RDS patches were acked by Santosh [3].
> 
> For your convenience, the series is based on clean v5.5-rc6 tag and applies
> cleanly to both subsystems.
> 
> Please pull and let me know if there's any problem. I'm very rare doing PRs
> and sorry in advance if something is not as expected.

Pulled into net-next, thanks.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [net-next, rdma-next] [pull request] Use ODP MRs for kernel ULPs
  2020-01-21  9:35 ` David Miller
@ 2020-01-21 11:05   ` Leon Romanovsky
  2020-01-23 22:49   ` Jason Gunthorpe
  1 sibling, 0 replies; 4+ messages in thread
From: Leon Romanovsky @ 2020-01-21 11:05 UTC (permalink / raw)
  To: David Miller; +Cc: kuba, dledford, jgg, santosh.shilimkar, linux-rdma, netdev

On Tue, Jan 21, 2020 at 10:35:46AM +0100, David Miller wrote:
> From: Leon Romanovsky <leon@kernel.org>
> Date: Mon, 20 Jan 2020 09:30:46 +0200
>
> > From: Leon Romanovsky <leonro@mellanox.com>
> >
> > Hi David, Jakub, Doug and Jason
> >
> > This is pull request to previously posted and reviewed series [1] which touches
> > RDMA and netdev subsystems. RDMA part was approved for inclusion by Jason [2]
> > and RDS patches were acked by Santosh [3].
> >
> > For your convenience, the series is based on clean v5.5-rc6 tag and applies
> > cleanly to both subsystems.
> >
> > Please pull and let me know if there's any problem. I'm very rare doing PRs
> > and sorry in advance if something is not as expected.
>
> Pulled into net-next, thanks.

Thanks a lot.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [net-next, rdma-next] [pull request] Use ODP MRs for kernel ULPs
  2020-01-21  9:35 ` David Miller
  2020-01-21 11:05   ` Leon Romanovsky
@ 2020-01-23 22:49   ` Jason Gunthorpe
  1 sibling, 0 replies; 4+ messages in thread
From: Jason Gunthorpe @ 2020-01-23 22:49 UTC (permalink / raw)
  To: David Miller
  Cc: leon, kuba, dledford, Leon Romanovsky, santosh.shilimkar,
	linux-rdma, netdev

On Tue, Jan 21, 2020 at 10:35:46AM +0100, David Miller wrote:
> From: Leon Romanovsky <leon@kernel.org>
> Date: Mon, 20 Jan 2020 09:30:46 +0200
> 
> > From: Leon Romanovsky <leonro@mellanox.com>
> > 
> > Hi David, Jakub, Doug and Jason
> > 
> > This is pull request to previously posted and reviewed series [1] which touches
> > RDMA and netdev subsystems. RDMA part was approved for inclusion by Jason [2]
> > and RDS patches were acked by Santosh [3].
> > 
> > For your convenience, the series is based on clean v5.5-rc6 tag and applies
> > cleanly to both subsystems.
> > 
> > Please pull and let me know if there's any problem. I'm very rare doing PRs
> > and sorry in advance if something is not as expected.
> 
> Pulled into net-next, thanks.

I've merged it into rdma.get as well, thanks everyone

Jason

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-01-23 22:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-20  7:30 [net-next, rdma-next] [pull request] Use ODP MRs for kernel ULPs Leon Romanovsky
2020-01-21  9:35 ` David Miller
2020-01-21 11:05   ` Leon Romanovsky
2020-01-23 22:49   ` Jason Gunthorpe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).