提交 6e44486d 编写于 作者: W Weili Qian 提交者: Zheng Zengkai

crypto: hisilicon/qm - modify device status check parameter

driver inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I4W3OQ

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

If the device master ooo is blocked, there is
no need to empty the queue. Only the PF can obtain the
status of the device. If the VF runs on the host,
the device status can be obtained by PF.
Signed-off-by: NWeili Qian <qianweili@huawei.com>
Signed-off-by: NYang Shen <shenyang39@huawei.com>
Reviewed-by: NXiu Jianfeng <xiujianfeng@huawei.com>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 ed3b55da
...@@ -2858,6 +2858,7 @@ static int qm_drain_qp(struct hisi_qp *qp) ...@@ -2858,6 +2858,7 @@ static int qm_drain_qp(struct hisi_qp *qp)
{ {
size_t size = sizeof(struct qm_sqc) + sizeof(struct qm_cqc); size_t size = sizeof(struct qm_sqc) + sizeof(struct qm_cqc);
struct hisi_qm *qm = qp->qm; struct hisi_qm *qm = qp->qm;
struct hisi_qm *pf_qm = pci_get_drvdata(pci_physfn(qm->pdev));
struct device *dev = &qm->pdev->dev; struct device *dev = &qm->pdev->dev;
struct qm_sqc *sqc; struct qm_sqc *sqc;
struct qm_cqc *cqc; struct qm_cqc *cqc;
...@@ -2866,7 +2867,7 @@ static int qm_drain_qp(struct hisi_qp *qp) ...@@ -2866,7 +2867,7 @@ static int qm_drain_qp(struct hisi_qp *qp)
void *addr; void *addr;
/* No need to judge if master OOO is blocked. */ /* No need to judge if master OOO is blocked. */
if (qm_check_dev_error(qm)) if (qm_check_dev_error(pf_qm))
return 0; return 0;
/* Kunpeng930 supports drain qp by device */ /* Kunpeng930 supports drain qp by device */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册