[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20200122144134.axqpwx65j7xysyy3@gondor.apana.org.au>
Date: Wed, 22 Jan 2020 22:41:34 +0800
From: Herbert Xu <herbert@...dor.apana.org.au>
To: Iuliana Prodan <iuliana.prodan@....com>
Cc: Baolin Wang <baolin.wang@...aro.org>,
Corentin Labbe <clabbe.montjoie@...il.com>,
Ard Biesheuvel <ard.biesheuvel@...aro.org>,
Horia Geanta <horia.geanta@....com>,
Maxime Coquelin <mcoquelin.stm32@...il.com>,
Alexandre Torgue <alexandre.torgue@...com>,
Maxime Ripard <mripard@...nel.org>,
Aymen Sghaier <aymen.sghaier@....com>,
"David S. Miller" <davem@...emloft.net>,
Silvano Di Ninno <silvano.dininno@....com>,
Franck Lenormand <franck.lenormand@....com>,
"linux-crypto@...r.kernel.org" <linux-crypto@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
dl-linux-imx <linux-imx@....com>
Subject: Re: [RFC PATCH] Crypto-engine support for parallel requests
On Wed, Jan 22, 2020 at 12:29:22PM +0000, Iuliana Prodan wrote:
>
> > do_one_request is a blocking operation on amlogic/sun8i-ce/sun8i-ss and the "documentation" is clear "@do_one_request: do encryption for current request".
> > But I agree that is a bit small for a documentation.
> >
>
> Herbert, Baolin,
>
> What do you think about do_one_requet operation: is blocking or not?
>
> There are several drivers (stm32, omap, virtio, caam) that include
> crypto-engine, and uses do_one_request as non-blocking, only the ones
> mentioned and implemented by Corentin use do_one_request as blocking.
It certainly shouldn't be blocking in the general case. The only
time when it might make sense to block is if the hardware is
incapable of using IRQs to signal completion.
Thanks,
--
Email: Herbert Xu <herbert@...dor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
Powered by blists - more mailing lists