提交 ae3b01ca 编写于 作者: Y yumeng 提交者: Xie XiuQi

arm64: HPRE not support ES, delete the operations of ES

driver inclusion
category: bugfix
bugzilla: 13683
CVE: NA

-------------------------------------------------

HPRE not support ES, delete the operations of ES.

Feature or Bugfix:Bugfix
Signed-off-by: Nyumeng <yumeng18@huawei.com>
Reviewed-by: Nxuzaibo <xuzaibo@huawei.com>
Signed-off-by: NMingqiang Ling <lingmingqiang@huawei.com>
Reviewed-by: NXie XiuQi <xiexiuqi@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 b9a8af79
...@@ -739,10 +739,8 @@ static int hpre_qm_pre_init(struct hisi_qm *qm, struct pci_dev *pdev) ...@@ -739,10 +739,8 @@ static int hpre_qm_pre_init(struct hisi_qm *qm, struct pci_dev *pdev)
if (pdev->is_physfn) { if (pdev->is_physfn) {
qm->qp_base = HPRE_PF_DEF_Q_BASE; qm->qp_base = HPRE_PF_DEF_Q_BASE;
qm->qp_num = pf_q_num; qm->qp_num = pf_q_num;
} else if (qm->fun_type == QM_HW_VF && qm->ver == QM_HW_V1) {
qm->qp_base = HPRE_PF_DEF_Q_NUM;
qm->qp_num = HPRE_QUEUE_NUM_V1 - HPRE_PF_DEF_Q_NUM;
} }
return 0; return 0;
} }
...@@ -764,18 +762,11 @@ static int hpre_pf_probe_init(struct hpre *hpre) ...@@ -764,18 +762,11 @@ static int hpre_pf_probe_init(struct hpre *hpre)
return -ENOMEM; return -ENOMEM;
hpre->ctrl = ctrl; hpre->ctrl = ctrl;
ctrl->hpre = hpre; ctrl->hpre = hpre;
switch (qm->ver) { if (qm->ver == QM_HW_V2)
case QM_HW_V1:
qm->ctrl_q_num = HPRE_QUEUE_NUM_V1;
break;
case QM_HW_V2:
qm->ctrl_q_num = HPRE_QUEUE_NUM_V2; qm->ctrl_q_num = HPRE_QUEUE_NUM_V2;
break; else
default:
return -EINVAL; return -EINVAL;
}
ret = hpre_set_user_domain_and_cache(hpre); ret = hpre_set_user_domain_and_cache(hpre);
if (ret) if (ret)
return ret; return ret;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册