RDMA/efa: Fix unsupported page sizes in device
Subsystems (2)
PATCH 1/1 RDMA/efa: Fix unsupported page sizes in device
From: Yonatan Nachum <[email protected]>
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.
--- drivers/infiniband/hw/efa/efa_verbs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/infiniband/hw/efa/efa_verbs.c +1 -1
@@ -1403,7 +1403,7 @@ static int pbl_continuous_initialize(struct efa_dev *dev,*/ static int pbl_indirect_initialize (struct efa_dev *dev,struct pbl_context *pbl) { -u32 size_in_pages =DIV_ROUND_UP (pbl->pbl_buf_size_in_bytes,PAGE_SIZE ); +u32 size_in_pages =DIV_ROUND_UP (pbl->pbl_buf_size_in_bytes,EFA_CHUNK_PAYLOAD_SIZE );struct scatterlist *sgl;int sg_dma_cnt, err;
Signature · 1 line
2.39.2
Quoted 8 lines · On Thu, May 11, 2023 at 11:51:03AM +0000, [email protected] wrote:
From: Yonatan Nachum <[email protected]>
Device uses 4KB size blocks for user pages indirect list while the driver creates those blocks with the size of
PAGE_SIZEof the kernel. On kernels withPAGE_SIZEdifferent than 4KB (ARM RHEL), this leads to a failure on register MR with indirect list because of the miss communication between driver and device.
Quoted 6 lines
Reviewed-by Firas Jahjah <[email protected]>Reviewed-by Michael Margolin <[email protected]>Signed-off-by Yonatan Nachum <[email protected]>--- drivers/infiniband/hw/efa/efa_verbs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Applied to for-rc, thanks
Jason