提交 2ce2c67a 编写于 作者: L lingmingqiang 提交者: Xie XiuQi

ACC: crypto/zip/hpre: Notify uacce before doing FLR

driver inclusion
category: bugfix
bugzilla: NA
CVE: NA

This patch adds uacce_reset_prepare before doing zip and hpre FLR and
uacce_reset_done after zip and hpre FLR.
Signed-off-by: NZhou Wang <wangzhou1@hisilicon.com>
Reviewed-by: Nfanghao <fanghao11@huawei.com>
Reviewed-by: Nxuzaibo <xuzaibo@huawei.com>
Signed-off-by: Nlingmingqiang <lingmingqiang@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 cbe7391c
......@@ -1190,6 +1190,11 @@ static void hpre_reset_prepare(struct pci_dev *pdev)
return;
}
#ifdef CONFIG_CRYPTO_QM_UACCE
if (qm->use_uacce)
uacce_reset_prepare(&qm->uacce);
#endif
dev_info(dev, "FLR resetting...\n");
}
......@@ -1225,6 +1230,12 @@ static void hpre_reset_done(struct pci_dev *pdev)
}
}
}
#ifdef CONFIG_CRYPTO_QM_UACCE
if (qm->use_uacce)
uacce_reset_done(&qm->uacce);
#endif
dev_info(dev, "FLR reset complete\n");
}
......
......@@ -1206,6 +1206,11 @@ static void hisi_zip_reset_prepare(struct pci_dev *pdev)
hisi_zip_vf_flr_reset_prepare(pdev);
#ifdef CONFIG_CRYPTO_QM_UACCE
if (qm->use_uacce)
uacce_reset_prepare(&qm->uacce);
#endif
dev_info(dev, "FLR resetting...\n");
}
......@@ -1252,6 +1257,10 @@ static void hisi_zip_reset_done(struct pci_dev *pdev)
hisi_zip_vf_flr_reset_done(pdev);
#ifdef CONFIG_CRYPTO_QM_UACCE
if (qm->use_uacce)
uacce_reset_done(&qm->uacce);
#endif
dev_info(dev, "FLR reset complete\n");
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册