Re: [PATCH] crypto: octeontx2 - add synchronization between mailbox accesses

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Feb 04, 2022 at 06:16:01PM +0530, Harman Kalra wrote:
> Since there are two workqueues implemented in CPTPF driver - one
> for handling mailbox requests from VFs and another for handling FLR.
> In both cases PF driver will forward the request to AF driver by
> writing to mailbox memory. A race condition may arise if two
> simultaneous requests are written to mailbox memory. Introducing
> locking mechanism to maintain synchronization between multiple
> mailbox accesses.
> 
> Signed-off-by: Harman Kalra <hkalra@xxxxxxxxxxx>
> ---
>  .../marvell/octeontx2/otx2_cpt_common.h       |  1 +
>  .../marvell/octeontx2/otx2_cpt_mbox_common.c  | 14 +++++++++++
>  drivers/crypto/marvell/octeontx2/otx2_cptpf.h |  1 +
>  .../marvell/octeontx2/otx2_cptpf_main.c       | 21 ++++++++++-------
>  .../marvell/octeontx2/otx2_cptpf_mbox.c       | 23 ++++++++++++++-----
>  5 files changed, 46 insertions(+), 14 deletions(-)

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



[Index of Archives]     [Kernel]     [Gnu Classpath]     [Gnu Crypto]     [DM Crypt]     [Netfilter]     [Bugtraq]

  Powered by Linux