linux_dsm_epyc7002/drivers/crypto/ccree
Gilad Ben-Yossef 1358c13a48 crypto: ccree - fix resume race condition on init
We were enabling autosuspend, which is using data set by the
hash module, prior to the hash module being inited, casuing
a crash on resume as part of the startup sequence if the race
was lost.

This was never a real problem because the PM infra was using low
res timers so we were always winning the race, until commit 8234f6734c
("PM-runtime: Switch autosuspend over to using hrtimers") changed that :-)

Fix this by seperating the PM setup and enablement and doing the
latter only at the end of the init sequence.

Signed-off-by: Gilad Ben-Yossef <gilad@benyossef.com>
Cc: Vincent Guittot <vincent.guittot@linaro.org>
Cc: stable@kernel.org # v4.20
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2019-02-08 15:28:02 +08:00
..
cc_aead.c crypto: ccree - convert to use crypto_authenc_extractkeys() 2019-01-10 21:37:31 +08:00
cc_aead.h crypto: ccree - add AEAD support 2018-02-15 23:26:42 +08:00
cc_buffer_mgr.c crypto: ccree - remove cipher ivgen left overs 2018-08-03 18:06:05 +08:00
cc_buffer_mgr.h crypto: ccree - add AEAD support 2018-02-15 23:26:42 +08:00
cc_cipher.c crypto: ccree - add support for CryptoCell 703 2018-12-07 14:14:59 +08:00
cc_cipher.h crypto: ccree - remove cipher ivgen left overs 2018-08-03 18:06:05 +08:00
cc_crypto_ctx.h crypto: ccree - add SM3 support 2018-11-09 17:37:58 +08:00
cc_debugfs.c crypto: ccree - correct host regs offset 2018-05-31 00:13:49 +08:00
cc_debugfs.h crypto: ccree - introduce CryptoCell driver 2018-02-15 23:26:40 +08:00
cc_driver.c crypto: ccree - fix resume race condition on init 2019-02-08 15:28:02 +08:00
cc_driver.h crypto: ccree - add support for CryptoCell 703 2018-12-07 14:14:59 +08:00
cc_fips.c crypto: ccree - add support for older HW revs 2018-03-03 00:03:16 +08:00
cc_fips.h crypto: ccree - add FIPS support 2018-02-15 23:26:42 +08:00
cc_hash.c crypto: ccree - add support for CryptoCell 703 2018-12-07 14:14:59 +08:00
cc_hash.h crypto: ccree - add support for older HW revs 2018-03-03 00:03:16 +08:00
cc_host_regs.h crypto: ccree - correct host regs offset 2018-05-31 00:13:49 +08:00
cc_hw_queue_defs.h crypto: ccree - add SM3 support 2018-11-09 17:37:58 +08:00
cc_ivgen.c crypto: ccree - introduce CryptoCell driver 2018-02-15 23:26:40 +08:00
cc_ivgen.h crypto: ccree - introduce CryptoCell driver 2018-02-15 23:26:40 +08:00
cc_kernel_regs.h crypto: ccree - add support for older HW revs 2018-03-03 00:03:16 +08:00
cc_lli_defs.h crypto: ccree - introduce CryptoCell driver 2018-02-15 23:26:40 +08:00
cc_pm.c crypto: ccree - fix resume race condition on init 2019-02-08 15:28:02 +08:00
cc_pm.h crypto: ccree - fix resume race condition on init 2019-02-08 15:28:02 +08:00
cc_request_mgr.c crypto: ccree - replace memset+kfree with kzfree 2018-03-03 00:03:16 +08:00
cc_request_mgr.h crypto: ccree - introduce CryptoCell driver 2018-02-15 23:26:40 +08:00
cc_sram_mgr.c crypto: ccree - add support for older HW revs 2018-03-03 00:03:16 +08:00
cc_sram_mgr.h crypto: ccree - introduce CryptoCell driver 2018-02-15 23:26:40 +08:00
Makefile crypto: ccree - add FIPS support 2018-02-15 23:26:42 +08:00