mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v1 1/2] crypto: ccp - Bump minimum firmware version for SEV-SNP support
@ 2026-11-03 18:10 Tycho Andersen
  2026-11-03 18:10 ` [PATCH v1 2/2] crypto: ccp - Drop support for SNP without INIT_EX Tycho Andersen
  0 siblings, 1 reply; 2+ messages in thread
From: Tycho Andersen @ 2026-11-03 18:10 UTC (permalink / raw)
  To: Ashish Kalra, Tom Lendacky, Herbert Xu, David S. Miller
  Cc: linux-crypto, linux-kernel, Tycho Andersen (AMD)

From: "Tycho Andersen (AMD)" <tycho@kernel.org>

The SEV firmware has received many critical bug and security fixes since
1.52. Bump the minimum supported firmware version for SEV-SNP to 1.55
(first available in linux-firmware release 20230919). See
https://www.amd.com/en/developer/sev.html for firmware release notes with
exact bug fixes and CVE details.

While these macros are called SNP_MIN_API_*, since 6131e119f579 ("crypto:
ccp - Abort doing SEV INIT if SNP INIT fails") both SEV and SNP fail if SNP
fails to initialize, so this firmware requirement really applies to SEV
hosts that are SNP capable at the time of init.

Also upgrade the debug log to an error log to give people some idea about
why things failed.

Signed-off-by: Tycho Andersen (AMD) <tycho@kernel.org>
Reviewed-by: Tom Lendacky <thomas.lendacky@amd.com>
---
 drivers/crypto/ccp/sev-dev.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/crypto/ccp/sev-dev.c b/drivers/crypto/ccp/sev-dev.c
index 5c996ab63895..13e6af5549f5 100644
--- a/drivers/crypto/ccp/sev-dev.c
+++ b/drivers/crypto/ccp/sev-dev.c
@@ -43,9 +43,9 @@
 #define SEV_FW_FILE		"amd/sev.fw"
 #define SEV_FW_NAME_SIZE	64
 
-/* Minimum firmware version required for the SEV-SNP support */
+/* Minimum firmware version required for SEV-SNP support */
 #define SNP_MIN_API_MAJOR	1
-#define SNP_MIN_API_MINOR	51
+#define SNP_MIN_API_MINOR	55
 
 /*
  * Maximum number of firmware-writable buffers that might be specified
@@ -1523,7 +1523,7 @@ static int __sev_snp_init_locked(int *error, unsigned int max_snp_asid)
 		return 0;
 
 	if (!sev_version_greater_or_equal(SNP_MIN_API_MAJOR, SNP_MIN_API_MINOR)) {
-		dev_dbg(sev->dev, "SEV-SNP support requires firmware version >= %d:%d\n",
+		dev_err(sev->dev, "SEV-SNP support requires firmware version >= %d:%d\n",
 			SNP_MIN_API_MAJOR, SNP_MIN_API_MINOR);
 		return -EOPNOTSUPP;
 	}

base-commit: 6628e7d4c6b25c8d18f1345e3a20d21829aae7e4
-- 
2.56.0


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-11-03 18:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-03 18:10 [PATCH v1 1/2] crypto: ccp - Bump minimum firmware version for SEV-SNP support Tycho Andersen
2026-11-03 18:10 ` [PATCH v1 2/2] crypto: ccp - Drop support for SNP without INIT_EX Tycho Andersen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®