summaryrefslogtreecommitdiff
path: root/drivers/infiniband/hw/hns/hns_roce_mr.c
diff options
context:
space:
mode:
authorYixian Liu <liuyixian@huawei.com>2018-05-11 11:31:23 +0300
committerJason Gunthorpe <jgg@mellanox.com>2018-05-17 06:44:05 +0300
commit5e6e78dbd3b93414ca53af5d51c090878d1c9e5d (patch)
tree8ae9ba8cd638a5d451dac4f5388b78bd32d1115d /drivers/infiniband/hw/hns/hns_roce_mr.c
parent112f5c8199dd02dbee2aa9f21e087e777fb7f15e (diff)
downloadlinux-5e6e78dbd3b93414ca53af5d51c090878d1c9e5d.tar.xz
RDMA/hns: Add 64KB page size support for hip08
This patch adds the support of 64KB page size for hip08 in kernel. Signed-off-by: Yixian Liu <liuyixian@huawei.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers/infiniband/hw/hns/hns_roce_mr.c')
-rw-r--r--drivers/infiniband/hw/hns/hns_roce_mr.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/infiniband/hw/hns/hns_roce_mr.c b/drivers/infiniband/hw/hns/hns_roce_mr.c
index f7256d88d38f..d1fe0e7957e3 100644
--- a/drivers/infiniband/hw/hns/hns_roce_mr.c
+++ b/drivers/infiniband/hw/hns/hns_roce_mr.c
@@ -1007,12 +1007,6 @@ struct ib_mr *hns_roce_reg_user_mr(struct ib_pd *pd, u64 start, u64 length,
}
n = ib_umem_page_count(mr->umem);
- if (mr->umem->page_shift != HNS_ROCE_HEM_PAGE_SHIFT) {
- dev_err(dev, "Just support 4K page size but is 0x%lx now!\n",
- BIT(mr->umem->page_shift));
- ret = -EINVAL;
- goto err_umem;
- }
if (!hr_dev->caps.pbl_hop_num) {
if (n > HNS_ROCE_MAX_MTPT_PBL_NUM) {