diff --git a/drivers/infiniband/hw/hns/hns_roce_main.c b/drivers/infiniband/hw/hns/hns_roce_main.c index cdb6def7923e4e025474daa0857f50b0dfb49256..9f30e242d23aa91081cdf34631ae61e4e14bb3ee 100644 --- a/drivers/infiniband/hw/hns/hns_roce_main.c +++ b/drivers/infiniband/hw/hns/hns_roce_main.c @@ -654,7 +654,12 @@ static int hns_roce_register_device(struct hns_roce_dev *hr_dev) (1ULL << IB_USER_VERBS_CMD_CREATE_AH) | (1ULL << IB_USER_VERBS_CMD_DESTROY_AH); - ib_dev->uverbs_ex_cmd_mask |= (1ULL << IB_USER_VERBS_EX_CMD_MODIFY_CQ); + ib_dev->uverbs_ex_cmd_mask |= + (1ULL << IB_USER_VERBS_EX_CMD_QUERY_DEVICE) | + (1ULL << IB_USER_VERBS_EX_CMD_MODIFY_CQ) | + (1ULL << IB_USER_VERBS_EX_CMD_CREATE_CQ) | + (1ULL << IB_USER_VERBS_EX_CMD_MODIFY_QP) | + (1ULL << IB_USER_VERBS_EX_CMD_CREATE_QP); if (hr_dev->caps.flags & HNS_ROCE_CAP_FLAG_REREG_MR) { ib_dev->uverbs_cmd_mask |= (1ULL << IB_USER_VERBS_CMD_REREG_MR);