RDMA/erdma: Use fixed hardware page size
authorCheng Xu <chengyou@linux.alibaba.com>
Tue, 7 Mar 2023 10:29:23 +0000 (18:29 +0800)
committerJason Gunthorpe <jgg@nvidia.com>
Fri, 24 Mar 2023 14:31:22 +0000 (11:31 -0300)
commitd649c638dc26f3501da510cf7fceb5c15ca54258
tree53bab1aa6a3138f69606e3422cca861a598c7a9f
parentd94671632572813e90bcf475bb4c7d51fbf20173
RDMA/erdma: Use fixed hardware page size

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>
drivers/infiniband/hw/erdma/erdma_hw.h
drivers/infiniband/hw/erdma/erdma_verbs.c