commit | d18344c0d095df544bd7174b8fae2cba523dd4a4 | [log] [tgz] |
---|---|---|
author | Wenkai Lin <linwenkai6@hisilicon.com> | Fri Jun 18 17:36:06 2021 +0800 |
committer | Herbert Xu <herbert@gondor.apana.org.au> | Thu Jun 24 14:51:36 2021 +0800 |
tree | b6f9e658ec6ae9eea7cac89eb4e77a83497d99f6 | |
parent | cac6f1b87b1f7feafb7db349a2b1ca86634bc950 [diff] |
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>