]> www.infradead.org Git - users/jedix/linux-maple.git/commit
crypto: ccp - Abort doing SEV INIT if SNP INIT fails
authorAshish Kalra <ashish.kalra@amd.com>
Mon, 24 Mar 2025 21:13:57 +0000 (21:13 +0000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 7 Apr 2025 05:22:25 +0000 (13:22 +0800)
commit6131e119f5799bec55535530fa2fc44f5c7be1f1
tree98d705b761a51bce426a714b801eda284c683b76
parent39ccd0e54f164ea3c40327d9163205a8449047c2
crypto: ccp - Abort doing SEV INIT if SNP INIT fails

If SNP host support (SYSCFG.SNPEn) is set, then the RMP table must
be initialized before calling SEV INIT.

In other words, if SNP_INIT(_EX) is not issued or fails then
SEV INIT will fail if SNP host support (SYSCFG.SNPEn) is enabled.

Signed-off-by: Ashish Kalra <ashish.kalra@amd.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/ccp/sev-dev.c