mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Herbert Xu <herbert@gondor.apana.org.au>
To: Amit Shah <amit@kernel.org>
Cc: ashish.kalra@amd.com, thomas.lendacky@amd.com, bp@alien8.de,
	john.allen@amd.com, davem@davemloft.net, michael.roth@amd.com,
	linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org,
	amit.shah@amd.com
Subject: Re: [PATCH] crypto: ccp: do not request interrupt on cmd completion when irqs disabled
Date: Fri, 6 Sep 2024 15:07:25 +0800	[thread overview]
Message-ID: <ZtqqLSNSYpsD5Cgy@gondor.apana.org.au> (raw)
In-Reply-To: <20240829102007.34355-1-amit@kernel.org>

On Thu, Aug 29, 2024 at 12:20:07PM +0200, Amit Shah wrote:
> From: Amit Shah <amit.shah@amd.com>
> 
> 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: 8ef979584ea8 ("crypto: ccp: Add panic notifier for SEV/SNP firmware shutdown on kdump")
> 
> Based-on-patch-by: Tom Lendacky <thomas.lendacky@amd.com>
> Signed-off-by: Amit Shah <amit.shah@amd.com>
> ---
>  drivers/crypto/ccp/sev-dev.c | 13 ++++++++++++-
>  1 file changed, 12 insertions(+), 1 deletion(-)

Patch applied.  Thanks.
-- 
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

      reply	other threads:[~2024-09-06  7:07 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-29 10:20 Amit Shah
2024-09-06  7:07 ` Herbert Xu [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ZtqqLSNSYpsD5Cgy@gondor.apana.org.au \
    --to=herbert@gondor.apana.org.au \
    --cc=amit.shah@amd.com \
    --cc=amit@kernel.org \
    --cc=ashish.kalra@amd.com \
    --cc=bp@alien8.de \
    --cc=davem@davemloft.net \
    --cc=john.allen@amd.com \
    --cc=linux-crypto@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=michael.roth@amd.com \
    --cc=thomas.lendacky@amd.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®