crypto: ccp - check whether PSP supports SEV or TEE before initialization
authorRijo Thomas <Rijo-john.Thomas@amd.com>
Wed, 4 Dec 2019 06:19:01 +0000 (11:49 +0530)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 20 Dec 2019 06:58:32 +0000 (14:58 +0800)
commitf100ab62b68922c343a8efc84e83d2275c1ade47
tree12e3b12da3fbbd0284c26f1a6b43c6087a8d2800
parent6eb0cc72bcbe9cc5b9ccd41d7226929767e41311
crypto: ccp - check whether PSP supports SEV or TEE before initialization

Read PSP feature register to check for TEE (Trusted Execution Environment)
support.

If neither SEV nor TEE is supported by PSP, then skip PSP initialization.

Cc: Tom Lendacky <thomas.lendacky@amd.com>
Cc: Jens Wiklander <jens.wiklander@linaro.org>
Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Co-developed-by: Devaraj Rangasamy <Devaraj.Rangasamy@amd.com>
Signed-off-by: Devaraj Rangasamy <Devaraj.Rangasamy@amd.com>
Signed-off-by: Rijo Thomas <Rijo-john.Thomas@amd.com>
Acked-by: Gary R Hook <gary.hook@amd.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/ccp/psp-dev.c