Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Mario Limonciello (AMD) and committed by
Ilpo Järvinen
5e599d78 48d229c7

+1
+1
drivers/crypto/ccp/tee-dev.c
··· 125 125 dev_err(tee->dev, "tee: ring init command failed (%#010lx)\n", 126 126 FIELD_GET(PSP_CMDRESP_STS, reg)); 127 127 tee_free_ring(tee); 128 + psp_dead = true; 128 129 ret = -EIO; 129 130 } 130 131