提交 34c8a762 编写于 作者: L lingmingqiang 提交者: Xie XiuQi

ACC: Bugfix on "QM wirteback sqc cache fail"

driver inclusion
category: bugfix
bugzilla: NA
CVE: NA

Bugfix on "QM wirteback sqc cache fail"

Changes to be committed:
	modified:   drivers/crypto/hisilicon/qm.c
Reviewed-by: Nhucheng.hu <hucheng.hu@huawei.com>
Signed-off-by: Nlingmingqiang <lingmingqiang@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 2c2e9512
...@@ -1465,13 +1465,17 @@ static int hisi_qm_uacce_get_queue(struct uacce *uacce, unsigned long arg, ...@@ -1465,13 +1465,17 @@ static int hisi_qm_uacce_get_queue(struct uacce *uacce, unsigned long arg,
static void hisi_qm_uacce_put_queue(struct uacce_queue *q) static void hisi_qm_uacce_put_queue(struct uacce_queue *q)
{ {
struct hisi_qm *qm = q->uacce->priv;
struct hisi_qp *qp = q->priv; struct hisi_qp *qp = q->priv;
if (!qm->use_dma_api) {
/* /*
* As put_queue is only called in uacce_mode=1, and only one queue can * As put_queue is only called in uacce_mode=1, and only one
* be used in this mode. we flush all sqc cache back in put queue. * queue can be used in this mode. we flush all sqc cache back
* in put queue.
*/ */
hisi_qm_cache_wb(qp->qm); hisi_qm_cache_wb(qp->qm);
}
/* need to stop hardware, but can not support in v1 */ /* need to stop hardware, but can not support in v1 */
hisi_qm_release_qp(qp); hisi_qm_release_qp(qp);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册