linux/drivers/crypto/hisilicon
Chenghai Huang a321dd2b63 crypto: hisilicon/qm - move the barrier before writing to the mailbox register
[ Upstream commit ebf35d8f93 ]

Before sending the data via the mailbox to the hardware, to ensure
that the data accessed by the hardware is the most up-to-date,
a write barrier should be added before writing to the mailbox register.
The current memory barrier is placed after writing to the register,
the barrier order should be modified to be before writing to the register.

Signed-off-by: Chenghai Huang <huangchenghai2@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2026-03-04 07:20:58 -05:00
..
hpre crypto: hisilicon - re-enable address prefetch after device resuming 2025-10-15 12:00:06 +02:00
sec crypto: hisilicon/sec - Remove trailing space after \n newline 2024-09-06 14:50:46 +08:00
sec2 crypto: hisilicon/sec2 - support skcipher/aead fallback for hardware queue unavailable 2026-03-04 07:19:34 -05:00
trng crypto: hisilicon/trng - support tfms sharing the device 2026-03-04 07:19:38 -05:00
zip crypto: hisilicon/zip - adjust the way to obtain the req in the callback function 2026-03-04 07:19:34 -05:00
debugfs.c crypto: hisilicon/qm - set NULL to qm->debug.qm_diff_regs 2025-10-15 12:00:14 +02:00
Kconfig hwrng: histb - Move driver to drivers/char/hw_random/histb-rng.c 2023-05-12 18:48:01 +08:00
Makefile hwrng: histb - Move driver to drivers/char/hw_random/histb-rng.c 2023-05-12 18:48:01 +08:00
qm.c crypto: hisilicon/qm - move the barrier before writing to the mailbox register 2026-03-04 07:20:58 -05:00
qm_common.h crypto: hisilicon/qm - simplify the status of qm 2023-12-01 18:03:26 +08:00
sgl.c crypto: hisilicon - fix missed error branch 2024-09-06 14:50:46 +08:00