mbox series

[v1,rdma-next,0/5] Use correct sizing on buffers holding page DMA addresses

Message ID 20190328164947.13232-1-shiraz.saleem@intel.com (mailing list archive)
Headers show
Series Use correct sizing on buffers holding page DMA addresses | expand

Message

Shiraz Saleem March 28, 2019, 4:49 p.m. UTC
From: "Saleem, Shiraz" <shiraz.saleem@intel.com>

This patchset updates certain drivers that incorrectly size their internal
buffers to hold the page DMA addresses while iterating the DMA-mapped umem SGL.
It is a precursor series to adding page combining for umem SGLs.

v0->v1:
*Use ib_umem_num_pages() accessor as opposed to umem->npages
to size the buffers.

Selvin Xavier (1):
  RDMA/bnxt_re: Use correct sizing on buffers holding page DMA addresses

Shiraz Saleem (4):
  RDMA/cxbg: Use correct sizing on buffers holding page DMA addresses
  RDMA/mthca: Use correct sizing on buffers holding page DMA addresses
  RDMA/rxe: Use correct sizing on buffers holding page DMA addresses
  RDMA/rdmavt: Use correct sizing on buffers holding page DMA addresses

 drivers/infiniband/hw/bnxt_re/ib_verbs.c     | 25 ++++++++--------
 drivers/infiniband/hw/bnxt_re/qplib_fp.c     | 27 ++++++++---------
 drivers/infiniband/hw/bnxt_re/qplib_fp.h     |  9 ++----
 drivers/infiniband/hw/bnxt_re/qplib_rcfw.c   |  4 +--
 drivers/infiniband/hw/bnxt_re/qplib_res.c    | 43 +++++++++++++++++-----------
 drivers/infiniband/hw/bnxt_re/qplib_res.h    |  8 +++++-
 drivers/infiniband/hw/bnxt_re/qplib_sp.c     |  4 +--
 drivers/infiniband/hw/cxgb3/iwch_provider.c  |  2 +-
 drivers/infiniband/hw/cxgb4/mem.c            |  2 +-
 drivers/infiniband/hw/mthca/mthca_provider.c |  2 +-
 drivers/infiniband/sw/rdmavt/mr.c            |  2 +-
 drivers/infiniband/sw/rxe/rxe_mr.c           |  2 +-
 12 files changed, 72 insertions(+), 58 deletions(-)

Comments

Jason Gunthorpe March 28, 2019, 5:18 p.m. UTC | #1
On Thu, Mar 28, 2019 at 11:49:42AM -0500, Shiraz Saleem wrote:
> From: "Saleem, Shiraz" <shiraz.saleem@intel.com>
> 
> This patchset updates certain drivers that incorrectly size their internal
> buffers to hold the page DMA addresses while iterating the DMA-mapped umem SGL.
> It is a precursor series to adding page combining for umem SGLs.
> 
> v0->v1:
> *Use ib_umem_num_pages() accessor as opposed to umem->npages
> to size the buffers.
> 
> Selvin Xavier (1):
>   RDMA/bnxt_re: Use correct sizing on buffers holding page DMA addresses
> 
> Shiraz Saleem (4):
>   RDMA/cxbg: Use correct sizing on buffers holding page DMA addresses
>   RDMA/mthca: Use correct sizing on buffers holding page DMA addresses
>   RDMA/rxe: Use correct sizing on buffers holding page DMA addresses
>   RDMA/rdmavt: Use correct sizing on buffers holding page DMA addresses

Applied to for-next, thanks

Jason