linux-yocto/drivers/crypto/ccp
Tom Lendacky 0642f87cbf crypto: ccp - Fix check for the primary ASP device
commit 07bb097b92b987db518e72525b515d77904e966e upstream.

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: 2a6170dfe7 ("crypto: ccp: Add Platform Security Processor (PSP) device support")
Cc: stable@vger.kernel.org
Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-04-25 10:43:44 +02:00
..
ccp-crypto-aes-cmac.c
ccp-crypto-aes-galois.c
ccp-crypto-aes-xts.c
ccp-crypto-aes.c
ccp-crypto-des3.c
ccp-crypto-main.c
ccp-crypto-rsa.c
ccp-crypto-sha.c
ccp-crypto.h
ccp-debugfs.c
ccp-dev-v3.c
ccp-dev-v5.c
ccp-dev.c
ccp-dev.h
ccp-dmaengine.c
ccp-ops.c crypto: ccp - fix memleak in ccp_init_dm_workarea 2024-01-25 15:27:21 -08:00
Kconfig
Makefile
psp-dev.c crypto: ccp - Clear PSP interrupt status register before calling handler 2023-05-17 11:53:27 +02:00
psp-dev.h
sev-dev.c crypto: ccp - Properly unregister /dev/sev on sev PLATFORM_STATUS failure 2024-10-17 15:21:20 +02:00
sev-dev.h
sp-dev.c
sp-dev.h
sp-pci.c crypto: ccp - Fix check for the primary ASP device 2025-04-25 10:43:44 +02:00
sp-platform.c crypto: ccp - drop platform ifdef checks 2024-06-12 11:03:04 +02:00
tee-dev.c
tee-dev.h