From: Brijesh Singh <brijesh.singh@amd.com>
To: Herbert Xu <herbert@gondor.apana.org.au>
Cc: brijesh.singh@amd.com, linux-crypto@vger.kernel.org,
thomas.lendacky@amd.com, Gary Hook <Gary.Hook@amd.com>,
linux-kernel@vger.kernel.org, Ingo Molnar <mingo@redhat.com>
Subject: Re: [PATCH crypto-2.6] crypto: ccp: add timeout support in the SEV command
Date: Tue, 11 Sep 2018 19:11:05 -0500 [thread overview]
Message-ID: <ec8245a3-1620-4501-0ebd-f04dfe973bc8@amd.com> (raw)
In-Reply-To: <20180904051930.5kvyyu75ym5mubuz@gondor.apana.org.au>
On 9/4/18 12:19 AM, Herbert Xu wrote:
> On Wed, Aug 15, 2018 at 04:11:25PM -0500, Brijesh Singh wrote:
>> Currently, the CCP driver assumes that the SEV command issued to the PSP
>> will always return (i.e. it will never hang). But recently, firmware bugs
>> have shown that a command can hang. Since of the SEV commands are used
>> in probe routines, this can cause boot hangs and/or loss of virtualization
>> capabilities.
>>
>> To protect against firmware bugs, add a timeout in the SEV command
>> execution flow. If a command does not complete within the specified
>> timeout then return -ETIMEOUT and stop the driver from executing any
>> further commands since the state of the SEV firmware is unknown.
>>
>> Cc: Tom Lendacky <thomas.lendacky@amd.com>
>> Cc: Gary Hook <Gary.Hook@amd.com>
>> Cc: Herbert Xu <herbert@gondor.apana.org.au>
>> Cc: linux-kernel@vger.kernel.org
>> Signed-off-by: Brijesh Singh <brijesh.singh@amd.com>
>> ---
>> drivers/crypto/ccp/psp-dev.c | 46 +++++++++++++++++++++++++++++++++++++++-----
>> 1 file changed, 41 insertions(+), 5 deletions(-)
> Patch applied. Thanks.
Thanks Herbert.
Can you please include this patch in your next 4.19-rcX pull request?
Multiple folks are encountering this firmware bug on Ryzen systems. I
will submit the modified version of this patch for stable release (s) so
that we fix issues in 4.18,.17 and .16. thank you.
-Brijesh
next prev parent reply other threads:[~2018-09-12 0:11 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1534367485-4386-1-git-send-email-brijesh.singh@amd.com>
2018-08-15 21:11 ` [PATCH crypto-2.6] crypto: ccp: add timeout support in the SEV command Brijesh Singh
2018-09-04 5:19 ` Herbert Xu
2018-09-12 0:11 ` Brijesh Singh [this message]
2018-09-13 5:02 ` Herbert Xu
2018-09-04 8:11 ` Borislav Petkov
2018-09-10 19:06 ` Brijesh Singh
2018-09-11 13:53 ` Borislav Petkov
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=ec8245a3-1620-4501-0ebd-f04dfe973bc8@amd.com \
--to=brijesh.singh@amd.com \
--cc=Gary.Hook@amd.com \
--cc=herbert@gondor.apana.org.au \
--cc=linux-crypto@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.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