RDMA/efa: Fix unsupported page sizes in device
authorYonatan Nachum <ynachum@amazon.com>
Thu, 11 May 2023 11:51:03 +0000 (11:51 +0000)
committerJason Gunthorpe <jgg@nvidia.com>
Wed, 17 May 2023 00:13:22 +0000 (21:13 -0300)
commit866422cdddcdf59d8c68e9472d49ba1be29b5fcf
tree67dc537b00f2fdf321edf467ce59a8245bc125b8
parentb5f3fe27c54b1fe77d4dd834ccd48a6d694f872e
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: 40909f664d27 ("RDMA/efa: Add EFA verbs implementation")
Link: https://lore.kernel.org/r/20230511115103.13876-1-ynachum@amazon.com
Reviewed-by: Firas Jahjah <firasj@amazon.com>
Reviewed-by: Michael Margolin <mrgolin@amazon.com>
Signed-off-by: Yonatan Nachum <ynachum@amazon.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/efa/efa_verbs.c