]> asedeno.scripts.mit.edu Git - linux.git/commit
RDMA/i40iw: Use core helpers to get aligned DMA address within a supported page size
authorShiraz Saleem <shiraz.saleem@intel.com>
Mon, 6 May 2019 13:53:34 +0000 (08:53 -0500)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 6 May 2019 16:08:11 +0000 (13:08 -0300)
commiteb52c0333f06b88bca5bac0dc0aeca729de6eb11
treec4056004b8d1dc3d51af41251ea07280f028751a
parenta808273a495c657e33281b181fd7fcc2bb28f662
RDMA/i40iw: Use core helpers to get aligned DMA address within a supported page size

Call the core helpers to retrieve the HW aligned address to use for the
MR, within a supported i40iw page size.

Remove code in i40iw to determine when MR is backed by 2M huge pages which
involves checking the umem->hugetlb flag and VMA inspection.  The new DMA
iterator will return the 2M aligned address if the MR is backed by 2M
pages.

Fixes: f26c7c83395b ("i40iw: Add 2MB page support")
Reviewed-by: Michael J. Ruhl <michael.j.ruhl@intel.com>
Signed-off-by: Shiraz Saleem <shiraz.saleem@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/i40iw/i40iw_verbs.c
drivers/infiniband/hw/i40iw/i40iw_verbs.h