crypto: hisilicon/qm - support the userspace task resetting
authorKai Ye <yekai13@huawei.com>
Sat, 28 Aug 2021 03:39:39 +0000 (11:39 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 17 Sep 2021 03:05:12 +0000 (11:05 +0800)
commit8bb765271aded24ca724a39701c6e686234c7020
tree0e42cc1823be8ed6e115f04da6308d22c2e82c6f
parent8de8d4fe7d5a38e1ded234269f808898e72e9fb2
crypto: hisilicon/qm - support the userspace task resetting

Allocate an extra memory page for qp in the qp memory initialization.
Set a qp error flag in the extra page addr when device resetting.
This error flag can be seen in the userspace. This flag can helps
users to stop tasks when device resetting. After resetting, this error
flag will be reset when this qp is created again. So app should release
the old qp and request a new one, and do the task on the new queue
again.

Signed-off-by: Kai Ye <yekai13@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/hisilicon/qm.c