OSDN Git Service

crypto: ccp - Allow SEV firmware to be chosen based on Family and Model
authorJanakarajan Natarajan <Janakarajan.Natarajan@amd.com>
Fri, 14 Sep 2018 22:32:04 +0000 (17:32 -0500)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 21 Sep 2018 05:24:52 +0000 (13:24 +0800)
commite93720606efdbe914110e0ee94bd086f5514a6f1
tree2d2f9814213d3449926588711627a6deed32b495
parentb78d3795177db479107b3493608bf088117325e3
crypto: ccp - Allow SEV firmware to be chosen based on Family and Model

During PSP initialization, there is an attempt to update the SEV firmware
by looking in /lib/firmware/amd/. Currently, sev.fw is the expected name
of the firmware blob.

This patch will allow for firmware filenames based on the family and
model of the processor.

Model specific firmware files are given highest priority. Followed by
firmware for a subset of models. Lastly, failing the previous two options,
fallback to looking for sev.fw.

Signed-off-by: Janakarajan Natarajan <Janakarajan.Natarajan@amd.com>
Reviewed-by: Tom Lendacky <thomas.lendacky@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