Skip to content

Track memory allocation with restrack DB help (Part II)

Leon Romanovsky linux-rdma lkml 6 versions – Applied

Status from this message: Applied to for-next, thanks

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest3 patches 1 replyApplied
  2. v45 patches 3 repliesSuperseded
  3. v3 posting 2/29 patches 11 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v3 posting 1/25 patches1 replyApplied
v214 patches17 repliesSuperseded
v113 patches8 repliesSuperseded

Changes in v5 from the cover letter · 21 lines

* Reorder patches to postpone changes in rdma_restrack_add to be in next series.
v4: https://lore.kernel.org/linux-rdma/[email protected]/
* Rebased on latest for-upstream, all that time the patches were in
our regression and didn't introduce any issues.
* Took first five patches that hadn't any comments
v3: https://lore.kernel.org/lkml/[email protected]
* Rebased on already accepted patches.
* Added mlx4 special QPs to the list of not-tracked QPs (dropped previous mlx4 special QP patch).
* Separated to two patches change in return value of cma_listen_* routines.
* Changed commit messages and added Fixes as Jason requested.
v2: https://lore.kernel.org/linux-rdma/[email protected]/
* Added new patch to fix mlx4 failure on SR-IOV, it didn't have port set.
* Changed "RDMA/cma: Delete from restrack DB after successful destroy" patch.
v1: https://lore.kernel.org/lkml/[email protected]
* Fixed rebase error, deleted second assignment of qp_type.
* Rebased code on latests rdma-next, the changes in cma.c caused to change
in patch "RDMA/cma: Delete from restrack DB after successful destroy".
* Dropped patch of port assignment, it is already done as part of this
series.
* I didn't add @calller description, regular users should not use _named() funciton.
v0: https://lore.kernel.org/lkml/[email protected]

Patches in v5 Applied

#Subject and filesSizeRepliesApplied
1/3RDMA/core: Track device memory MRsdrivers/infiniband/core/uverbs_std_types_mr.c+4 -00 replies
2/3RDMA/core: Allow drivers to disable restrack DBdrivers/infiniband/core/counters.c drivers/infiniband/core/restrack.c drivers/infiniband/hw/mlx4/qp.c +2 more+41 -40 replies
3/3RDMA/restrack: Support all QP typesdrivers/infiniband/core/core_priv.h drivers/infiniband/core/uverbs_cmd.c drivers/infiniband/core/uverbs_std_types_qp.c +2 more+25 -290 replies

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by.

PatchMark Zhang
1/3
2/3
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v5 thread

Cover letter [PATCH rdma-next v5 0/3] Track memory allocation with restrack DB help (Part II)

From: Leon Romanovsky <[email protected]>

Changelog:
v5:
* Reorder patches to postpone changes in rdma_restrack_add to be in next series.
v4: https://lore.kernel.org/linux-rdma/[email protected]/
* Rebased on latest for-upstream, all that time the patches were in
our regression and didn't introduce any issues.
* Took first five patches that hadn't any comments
v3: https://lore.kernel.org/lkml/[email protected]
* Rebased on already accepted patches.
* Added mlx4 special QPs to the list of not-tracked QPs (dropped previous mlx4 special QP patch).
* Separated to two patches change in return value of cma_listen_* routines.
* Changed commit messages and added Fixes as Jason requested.
v2: https://lore.kernel.org/linux-rdma/[email protected]/
* Added new patch to fix mlx4 failure on SR-IOV, it didn't have port set.
* Changed "RDMA/cma: Delete from restrack DB after successful destroy" patch.
v1: https://lore.kernel.org/lkml/[email protected]
* Fixed rebase error, deleted second assignment of qp_type.
* Rebased code on latests rdma-next, the changes in cma.c caused to change
in patch "RDMA/cma: Delete from restrack DB after successful destroy".
* Dropped patch of port assignment, it is already done as part of this
series.
* I didn't add @calller description, regular users should not use _named() funciton.
v0: https://lore.kernel.org/lkml/[email protected]

----------------------------------------------------------------------------------

Leon Romanovsky (3):
RDMA/core: Track device memory MRs
RDMA/core: Allow drivers to disable restrack DB
RDMA/restrack: Support all QP types

 drivers/infiniband/core/core_priv.h           | 25 ++++++-------------
 drivers/infiniband/core/counters.c            |  2 +-
 drivers/infiniband/core/restrack.c            | 12 +++++++--
 drivers/infiniband/core/uverbs_cmd.c          |  4 +--
 drivers/infiniband/core/uverbs_std_types_mr.c |  4 +++
 drivers/infiniband/core/uverbs_std_types_qp.c |  4 +--
 drivers/infiniband/core/verbs.c               | 11 ++++----
 drivers/infiniband/hw/mlx4/qp.c               |  5 ++++
 drivers/infiniband/hw/mlx5/qp.c               |  2 +-
 include/rdma/ib_verbs.h                       | 10 ++++++--
 include/rdma/restrack.h                       | 24 ++++++++++++++++++
 11 files changed, 70 insertions(+), 33 deletions(-)

--
2.28.0