crypto: hisilicon/qm - implement for querying hardware tasks status.
authorWenkai Lin <linwenkai6@hisilicon.com>
Fri, 18 Jun 2021 09:36:06 +0000 (17:36 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 24 Jun 2021 06:51:36 +0000 (14:51 +0800)
commitd18344c0d095df544bd7174b8fae2cba523dd4a4
treeb6f9e658ec6ae9eea7cac89eb4e77a83497d99f6
parentcac6f1b87b1f7feafb7db349a2b1ca86634bc950
crypto: hisilicon/qm - implement for querying hardware tasks status.

This patch adds a function hisi_qm_is_q_updated to
check if the task is ready in hardware queue when
user polls an UACCE queue.This prevents users from
repeatedly querying whether the accelerator has
completed tasks, which wastes CPU resources.

Signed-off-by: Wenkai Lin <linwenkai6@hisilicon.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/hisilicon/qm.c