Skip to content

Commit 866422c

Browse files
YonatanNachumjgunthorpe
authored andcommitted
RDMA/efa: Fix unsupported page sizes in device
Device uses 4KB size blocks for user pages indirect list while the driver creates those blocks with the size of PAGE_SIZE of the kernel. On kernels with PAGE_SIZE different than 4KB (ARM RHEL), this leads to a failure on register MR with indirect list because of the miss communication between driver and device. Fixes: 40909f6 ("RDMA/efa: Add EFA verbs implementation") Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Firas Jahjah <[email protected]> Reviewed-by: Michael Margolin <[email protected]> Signed-off-by: Yonatan Nachum <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
1 parent b5f3fe2 commit 866422c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/infiniband/hw/efa/efa_verbs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1403,7 +1403,7 @@ static int pbl_continuous_initialize(struct efa_dev *dev,
14031403
*/
14041404
static int pbl_indirect_initialize(struct efa_dev *dev, struct pbl_context *pbl)
14051405
{
1406-
u32 size_in_pages = DIV_ROUND_UP(pbl->pbl_buf_size_in_bytes, PAGE_SIZE);
1406+
u32 size_in_pages = DIV_ROUND_UP(pbl->pbl_buf_size_in_bytes, EFA_CHUNK_PAYLOAD_SIZE);
14071407
struct scatterlist *sgl;
14081408
int sg_dma_cnt, err;
14091409

0 commit comments

Comments
 (0)