WSL2-Linux-Kernel/drivers/crypto/hisilicon
Yang Shen 64dfe49528 crypto: hisilicon/qm - register callback function to 'pci_driver.shutdown'
Since the drivers such as HPRE/SEC/ZIP do not implement
'pci_driver.shutdow', a RAS will be triggered at OS rebooting or shutting
down as the hardware device is processing request.
The log looks like this:
	NOTICE:  [NimbusSecNodeType1]:[2372L]This is sec, Base = 0x141800000
	NOTICE:  [NimbusSecHandle]:[2319L] SecIntSt = 0x3
	NOTICE:  [NimbusSecHandle]:[2320L] SecQmIntStatus = 0x2
	NOTICE:  [PrintSecurityType]:[344L] SecurityType is RECOVERABLE!

This patch offers a new API in qm to shutdown devices, and add shutdown
callbacks in ACC driver based on this new API.

So the running devices will be stopped when the OS reboot or shutdown.

Signed-off-by: Yang Shen <shenyang39@huawei.com>
Reviewed-by: Zhou Wang <wangzhou1@hisilicon.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2020-08-21 14:47:52 +10:00
..
hpre crypto: hisilicon/qm - register callback function to 'pci_driver.shutdown' 2020-08-21 14:47:52 +10:00
sec crypto: drivers - set the flag CRYPTO_ALG_ALLOCATES_MEMORY 2020-07-16 21:49:10 +10:00
sec2 crypto: hisilicon/qm - register callback function to 'pci_driver.shutdown' 2020-08-21 14:47:52 +10:00
zip crypto: hisilicon/qm - register callback function to 'pci_driver.shutdown' 2020-08-21 14:47:52 +10:00
Kconfig crypto: hisilicon/qm - add more ACPI dependencies 2020-04-22 23:28:55 +10:00
Makefile crypto: hisilicon - add HiSilicon SEC V2 driver 2019-11-22 18:48:36 +08:00
qm.c crypto: hisilicon/qm - register callback function to 'pci_driver.shutdown' 2020-08-21 14:47:52 +10:00
qm.h crypto: hisilicon/qm - register callback function to 'pci_driver.shutdown' 2020-08-21 14:47:52 +10:00
sgl.c crypto: hisilicon - Cap block size at 2^31 2020-06-15 17:38:53 +10:00