[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <Z6iCAnIV3f0aiMV-@gondor.apana.org.au>
Date: Sun, 9 Feb 2025 18:22:58 +0800
From: Herbert Xu <herbert@...dor.apana.org.au>
To: Tom Lendacky <thomas.lendacky@....com>
Cc: linux-crypto@...r.kernel.org, linux-kernel@...r.kernel.org,
David Miller <davem@...emloft.net>, John Allen <john.allen@....com>,
stable@...r.kernel.org
Subject: Re: [PATCH] crypto: ccp - Fix check for the primary ASP device
On Fri, Jan 17, 2025 at 05:05:47PM -0600, Tom Lendacky wrote:
> Currently, the ASP primary device check does not have support for PCI
> domains, and, as a result, when the system is configured with PCI domains
> (PCI segments) the wrong device can be selected as primary. This results
> in commands submitted to the device timing out and failing. The device
> check also relies on specific device and function assignments that may
> not hold in the future.
>
> Fix the primary ASP device check to include support for PCI domains and
> to perform proper checking of the Bus/Device/Function positions.
>
> Fixes: 2a6170dfe755 ("crypto: ccp: Add Platform Security Processor (PSP) device support")
> Cc: stable@...r.kernel.org
> Signed-off-by: Tom Lendacky <thomas.lendacky@....com>
> ---
> drivers/crypto/ccp/sp-pci.c | 15 +++++++++------
> 1 file changed, 9 insertions(+), 6 deletions(-)
Patch applied. Thanks.
--
Email: Herbert Xu <herbert@...dor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
Powered by blists - more mailing lists