OSDN Git Service

crypto: hisilicon/qm - enable to close master ooo when NFE occurs
authorWeili Qian <qianweili@huawei.com>
Sat, 15 May 2021 10:44:40 +0000 (18:44 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sun, 23 May 2021 00:52:41 +0000 (08:52 +0800)
commitb7da13d092a4919823c2b260ca7ea6ef1690b80b
tree62e4f0475a2fff0e0cf861f2b734e0ee8ccbb514
parent3b9c24dec891d418e26032709d6f01fe3757a4a6
crypto: hisilicon/qm - enable to close master ooo when NFE occurs

Kunpeng930 could be able to close master ooo when NFE occurs, which will
disable memory accessing from device and execute tasks. This ensures that
errors do not spread.

This patch enables the hardware to close master ooo when an error occurs
by writing hardware registers, and ensures that the driver will not drain
qp because the hardware will empty the tasks automatically.

Signed-off-by: Weili Qian <qianweili@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/hisilicon/hpre/hpre_main.c
drivers/crypto/hisilicon/qm.c
drivers/crypto/hisilicon/sec2/sec_main.c
drivers/crypto/hisilicon/zip/zip_main.c