Skip to content

Commit 03769f7

Browse files
mmarcinijgunthorpe
authored andcommitted
RDMA/irdma: Fix support for 64k pages
Virtual QP and CQ require a 4K HW page size but the driver passes PAGE_SIZE to ib_umem_find_best_pgsz() instead. Fix this by using the appropriate 4k value in the bitmap passed to ib_umem_find_best_pgsz(). Fixes: 693a538 ("RDMA/irdma: Split mr alloc and free into new functions") Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mike Marciniszyn <[email protected]> Signed-off-by: Shiraz Saleem <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
1 parent 0a5ec36 commit 03769f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/infiniband/hw/irdma/verbs.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -2914,7 +2914,7 @@ static struct irdma_mr *irdma_alloc_iwmr(struct ib_umem *region,
29142914
iwmr->type = reg_type;
29152915

29162916
pgsz_bitmap = (reg_type == IRDMA_MEMREG_TYPE_MEM) ?
2917-
iwdev->rf->sc_dev.hw_attrs.page_size_cap : PAGE_SIZE;
2917+
iwdev->rf->sc_dev.hw_attrs.page_size_cap : SZ_4K;
29182918

29192919
iwmr->page_size = ib_umem_find_best_pgsz(region, pgsz_bitmap, virt);
29202920
if (unlikely(!iwmr->page_size)) {

0 commit comments

Comments
 (0)