]> git.ipfire.org Git - thirdparty/linux.git/commit
crypto: ccp - Declare PSP dead if PSP_CMD_TEE_RING_INIT fails
authorMario Limonciello (AMD) <superm1@kernel.org>
Fri, 16 Jan 2026 04:11:29 +0000 (22:11 -0600)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Wed, 21 Jan 2026 08:51:58 +0000 (10:51 +0200)
commit5e599d7871bf852e94e8aa08b99724635f2cbf96
tree78317b8591b5d4bbc6847f74a6492bcb97b22513
parent48d229c7047128dd52eaf863881bb3e62b5896e5
crypto: ccp - Declare PSP dead if PSP_CMD_TEE_RING_INIT fails

tee_init_ring() only declares PSP dead if the command times out.
If there is any other failure it is still considered fatal though.
Set psp_dead for other failures as well.

Fixes: 949a0c8dd3c2 ("crypto: ccp - Move direct access to some PSP registers out of TEE")
Tested-by: Yijun Shen <Yijun.Shen@Dell.com>
Signed-off-by: Mario Limonciello (AMD) <superm1@kernel.org>
Acked-by: Tom Lendacky <thomas.lendacky@amd.com>
Reviewed-by: Shyam Sundar S K <Shyam-sundar.S-k@amd.com>
Link: https://patch.msgid.link/20260116041132.153674-3-superm1@kernel.org
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/crypto/ccp/tee-dev.c