Skip to contentSkip to conversation

crypto/ccp: Fix CONFIG_PCI=n build

PATCH In review Dan Williams 3 participants 3 messages Dec 3, 2025 – Dec 5, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 crypto/ccp: Fix CONFIG_PCI=n build

It turns out that the PCI driver for ccp is unconditionally built into the kernel in the CONFIG_PCI=y case. This means that the new SEV-TIO support needs an explicit dependency on PCI to avoid build errors when CONFIG_CRYPTO_DEV_SP_PSP=y and CONFIG_PCI=n.

---
 drivers/crypto/ccp/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/crypto/ccp/Kconfig +1 -1
index e2b127f0986b..f16a0f611317 100644
@@ -39,7 +39,7 @@ config CRYPTO_DEV_SP_PSP
 	bool "Platform Security Processor (PSP) device"
 	default y
 	depends on CRYPTO_DEV_CCP_DD && X86_64 && AMD_IOMMU
-	select PCI_TSM
+	select PCI_TSM if PCI
 	help
 	 Provide support for the AMD Platform Security Processor (PSP).
 	 The PSP is a dedicated processor that provides support for key

base-commit: f7ae6d4ec6520a901787cbab273983e96d8516da
prerequisite-patch-id: 085ed7fc143cfcfd0418527cfad03db88d4b64ec
prerequisite-patch-id: c1d1a6d802b3b4bfffb9f45fc5ac6a9a1b5e361d
prerequisite-patch-id: 44c6ea6fb683418ae67ff3efdb0c07fda013e6b2
prerequisite-patch-id: 407daf59d54ecebcb7fefd22a5b5833e03c038e4

Signature · 1 line
2.51.1
Acked-by on v1 1/1
#1 lore raw
Quoted 20 lines · Dan Williams

It turns out that the PCI driver for ccp is unconditionally built into the kernel in the CONFIG_PCI=y case. This means that the new SEV-TIO support needs an explicit dependency on PCI to avoid build errors when CONFIG_CRYPTO_DEV_SP_PSP=y and CONFIG_PCI=n.

---
  drivers/crypto/ccp/Kconfig | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/crypto/ccp/Kconfig +0 -0
index e2b127f0986b..f16a0f611317 100644

drivers/crypto/ccp/Kconfig config CRYPTO_DEV_SP_PSP · line 42

Quoted 5 lines
drivers/crypto/ccp/Kconfig +1 -1
@@ -39,7 +39,7 @@ config CRYPTO_DEV_SP_PSP
  	bool "Platform Security Processor (PSP) device"
  	default y
  	depends on CRYPTO_DEV_CCP_DD && X86_64 && AMD_IOMMU
-	select PCI_TSM
+	select PCI_TSM if PCI
Quoted 9 lines
drivers/crypto/ccp/Kconfig +0 -0
  	help
  	 Provide support for the AMD Platform Security Processor (PSP).
  	 The PSP is a dedicated processor that provides support for key

base-commit: f7ae6d4ec6520a901787cbab273983e96d8516da
prerequisite-patch-id: 085ed7fc143cfcfd0418527cfad03db88d4b64ec
prerequisite-patch-id: c1d1a6d802b3b4bfffb9f45fc5ac6a9a1b5e361d
prerequisite-patch-id: 44c6ea6fb683418ae67ff3efdb0c07fda013e6b2
prerequisite-patch-id: 407daf59d54ecebcb7fefd22a5b5833e03c038e4

oh it can do this too now, cool :) Thanks,

Signature · 1 line
Alexey
maintainer Acked-by on v1 1/1
#2 lore raw
In reply to Dan Williams
Quoted 11 lines · Dan Williams

It turns out that the PCI driver for ccp is unconditionally built into the kernel in the CONFIG_PCI=y case. This means that the new SEV-TIO support needs an explicit dependency on PCI to avoid build errors when CONFIG_CRYPTO_DEV_SP_PSP=y and CONFIG_PCI=n.

Quoted 23 lines
---
 drivers/crypto/ccp/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/crypto/ccp/Kconfig +1 -1
index e2b127f0986b..f16a0f611317 100644
@@ -39,7 +39,7 @@ config CRYPTO_DEV_SP_PSP
 	bool "Platform Security Processor (PSP) device"
 	default y
 	depends on CRYPTO_DEV_CCP_DD && X86_64 && AMD_IOMMU
-	select PCI_TSM
+	select PCI_TSM if PCI
 	help
 	 Provide support for the AMD Platform Security Processor (PSP).
 	 The PSP is a dedicated processor that provides support for key

base-commit: f7ae6d4ec6520a901787cbab273983e96d8516da
prerequisite-patch-id: 085ed7fc143cfcfd0418527cfad03db88d4b64ec
prerequisite-patch-id: c1d1a6d802b3b4bfffb9f45fc5ac6a9a1b5e361d
prerequisite-patch-id: 44c6ea6fb683418ae67ff3efdb0c07fda013e6b2
prerequisite-patch-id: 407daf59d54ecebcb7fefd22a5b5833e03c038e4