]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: hisilicon/qm - optimize the barrier operation
authorHui Tang <tanghui20@huawei.com>
Wed, 16 Mar 2022 11:26:03 +0000 (19:26 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 8 Apr 2022 08:13:30 +0000 (16:13 +0800)
commit4f1422d8e7378d98e5f3761a3a8a816acc6564c2
treeebb0d797ad7c57872e78a3a19a10693a40d188fa
parent341eeef3934b65ef6ae9525febd2761b81c986ab
crypto: hisilicon/qm - optimize the barrier operation

A 'dma_wmb' barrier is enough to guarantee previous writes
before accessing by acc device in the outer shareable domain.

A 'smp_wmb' barrier is enough to guarantee previous writes
before accessing by other cpus in the inner shareble domain.

Signed-off-by: Hui Tang <tanghui20@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/hisilicon/qm.c