crypto: ccp - Dump SEV command buffer registers on SEV command error
authorJohn Allen <john.allen@amd.com>
Tue, 10 Oct 2023 20:44:32 +0000 (20:44 +0000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 20 Oct 2023 05:39:26 +0000 (13:39 +0800)
commitc35b581e5197cced51047beeab0d3ccbfe948764
treeaf0e87f4e755c0da287b77a38ba196f60ba59285
parent1be7505933a5eb68f92700d8faba4633733f17d7
crypto: ccp - Dump SEV command buffer registers on SEV command error

PSP firmware may report additional error information in the SEV command
buffer registers in situations where an error occurs as the result of an
SEV command.  In this case, check if the command buffer registers have been
modified and if so, dump the contents.

Signed-off-by: John Allen <john.allen@amd.com>
Reviewed-by: Mario Limonciello <mario.limonciello@amd.com>
Reviewed-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/ccp/sev-dev.c