OSDN Git Service

crypto: ccp - Add DOWNLOAD_FIRMWARE SEV command
authorJanakarajan Natarajan <Janakarajan.Natarajan@amd.com>
Fri, 25 May 2018 20:23:29 +0000 (15:23 -0500)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 30 May 2018 16:13:54 +0000 (00:13 +0800)
commitedd303ff0e9ebc39118e633916278b5ca8558c30
treeed6a935943d2961fe6b0278d58a6f58ffd1e7c8e
parent1ebe6da2f989c1ce296be69ada40e8cfc3e78b3e
crypto: ccp - Add DOWNLOAD_FIRMWARE SEV command

The DOWNLOAD_FIRMWARE command, added as of SEV API v0.15, allows the OS
to install SEV firmware newer than the currently active SEV firmware.

For the new SEV firmware to be applied it must:
* Pass the validation test performed by the existing firmware.
* Be of the same build or a newer build compared to the existing firmware.

For more information please refer to "Section 5.11 DOWNLOAD_FIRMWARE" of
https://support.amd.com/TechDocs/55766_SEV-KM%20API_Specification.pdf

Signed-off-by: Janakarajan Natarajan <Janakarajan.Natarajan@amd.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/ccp/psp-dev.c
drivers/crypto/ccp/psp-dev.h
include/linux/psp-sev.h