Re: [BUG] crypto: ccp: random crashes after kexec on AMD with PSP since commit 97f9ac3d

From: Lucas Nussbaum
Date: Wed Jul 28 2021 - 10:36:41 EST


Hi Brijesh,

On 28/07/21 at 08:36 -0500, Brijesh Singh wrote:
> Hi Lucas,
>
> >On several AMD systems, we see random crashes after kexec, during the
> >boot of the new system (typically 1 out of 5 boots ends up with a
> >crash).
>
> >According to git bisect, the regression was introduced by commit
> >97f9ac3d ("crypto: ccp - Add support for SEV-ES to the PSP driver"),
> >included since 5.8-rc1. 5.14-rc3 is still affected.
>
> Can you try the below patch and confirm whether it fixes the random
> crashes seen during the kexec.

I confirm that this fixes the crashes I was seeing.

Tested-by: Lucas Nussbaum <lucas.nussbaum@xxxxxxxx>

Lucas