Commit 3401f63e authored by Amit Shah's avatar Amit Shah Committed by Herbert Xu
Browse files

crypto: ccp - do not request interrupt on cmd completion when irqs disabled



While sending a command to the PSP, we always requested an interrupt
from the PSP after command completion.  This worked for most cases.  For
the special case of irqs being disabled -- e.g. when running within
crashdump or kexec contexts, we should not set the SEV_CMDRESP_IOC flag,
so the PSP knows to not attempt interrupt delivery.

Fixes: 8ef97958 ("crypto: ccp: Add panic notifier for SEV/SNP firmware shutdown on kdump")

Based-on-patch-by: default avatarTom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: default avatarAmit Shah <amit.shah@amd.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent c299d7af
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment