On Sun, May 07, 2023 at 11:29:29AM -0700, Selvin Xavier wrote: > Driver populates the list of pages used for Memory region wrongly when > page size is more than system page size. This is causing a failure > when some of the applications that creates MR with page size as 2M. > Since HW can support multiple page sizes, pass the correct page size > while creating the MR. > > Also, driver need not adjust the number of pages when HW Queues > are created with user memory. It should work with the number of > dma blocks returned by ib_umem_num_dma_blocks. Fix this calculation also. > > Fixes: 0c4dcd602817 ("RDMA/bnxt_re: Refactor hardware queue memory allocation") > Fixes: f6919d56388c ("RDMA/bnxt_re: Code refactor while populating user MRs") > Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@xxxxxxxxxxxx> > Signed-off-by: Kashyap Desai <kashyap.desai@xxxxxxxxxxxx> > Signed-off-by: Selvin Xavier <selvin.xavier@xxxxxxxxxxxx> > --- > drivers/infiniband/hw/bnxt_re/qplib_res.c | 12 ++---------- > drivers/infiniband/hw/bnxt_re/qplib_sp.c | 7 +++---- > 2 files changed, 5 insertions(+), 14 deletions(-) Applied to for-rc, thanks Jason