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:
>
>  		offset = msg->next_msgoff;
> +		/* Write barrier required for VF responses which are handled by
> +		 * PF driver and not forwarded to AF.
> +		 */
> +		smp_wmb();

Who is the reader in this case? Is it also part of the kernel?
Because if a device is involved then smp_wmb is not appropriate.

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