Re: [PATCH] crypto: hisilicon/qm - implement for querying hardware tasks status.
From: Herbert Xu
Date: Thu Jun 24 2021 - 03:37:03 EST
On Fri, Jun 18, 2021 at 05:36:06PM +0800, Wenkai Lin wrote:
> 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@xxxxxxxxxxxxx>
> ---
> drivers/crypto/hisilicon/qm.c | 18 ++++++++++++++++++
> 1 file changed, 18 insertions(+)
Patch applied. Thanks.
--
Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt