RDMA/erdma: Use fixed hardware page size
authorCheng Xu <chengyou@linux.alibaba.com>
Tue, 7 Mar 2023 10:29:23 +0000 (18:29 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 11 May 2023 14:03:33 +0000 (23:03 +0900)
commit7d374becc000a19065e53ab53499a28470d1bdc4
tree728c5e97d4d36475fe3cb714a8027d48adedf387
parentbb0433ae6fa2a35e0bf197427f369b2ec3f50d3b
RDMA/erdma: Use fixed hardware page size

[ Upstream commit d649c638dc26f3501da510cf7fceb5c15ca54258 ]

Hardware's page size is 4096, but the kernel's page size may vary. Driver
should use hardware's page size when communicating with hardware.

Fixes: 155055771704 ("RDMA/erdma: Add verbs implementation")
Link: https://lore.kernel.org/r/20230307102924.70577-2-chengyou@linux.alibaba.com
Signed-off-by: Cheng Xu <chengyou@linux.alibaba.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/infiniband/hw/erdma/erdma_hw.h
drivers/infiniband/hw/erdma/erdma_verbs.c