]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
crypto: ccp: Skip SEV and SNP INIT for kdump boot
authorAshish Kalra <ashish.kalra@amd.com>
Mon, 25 Aug 2025 21:46:38 +0000 (21:46 +0000)
committerJoerg Roedel <joerg.roedel@amd.com>
Fri, 5 Sep 2025 12:45:16 +0000 (14:45 +0200)
commit8c571019d8a817b701888926529a5d7a826b947b
tree5e1f22110b28f94e61c92a3465b8b12a31a53808
parent38e5f33ee3596f37ee8d1e694073a17590904004
crypto: ccp: Skip SEV and SNP INIT for kdump boot

Since SEV or SNP may already be initialized in the previous kernel,
attempting to initialize them again in the kdump kernel can result
in SNP initialization failures, which in turn lead to IOMMU
initialization failures. Moreover, SNP/SEV guests are not run under a
kdump kernel, so there is no need to initialize SEV or SNP during
kdump boot.

Skip SNP and SEV INIT if doing kdump boot.

Tested-by: Sairaj Kodilkar <sarunkod@amd.com>
Signed-off-by: Ashish Kalra <ashish.kalra@amd.com>
Link: https://lore.kernel.org/r/d884eff5f6180d8b8c6698a6168988118cf9cba1.1756157913.git.ashish.kalra@amd.com
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
drivers/crypto/ccp/sev-dev.c