Skip to contentSkip to conversation

PCI: cadence: j721e: Add support for PCI NTB functionality

PATCH In review Aksh Garg 3 participants 3 messages Feb 20 – Mar 5

Subsystems (3)
lore
Share & tools
lore

Aksh Garg

author reviewer
#0 lore raw

PATCH 1/1 PCI: cadence: j721e: Add support for PCI NTB functionality

Configure Non-Transparent Bridge (NTB) components to build along with J721E PCIe controller driver to add support for PCI NTB functionality in TI SoCs.

NTB_NETDEV allows to setup a virtual ethernet interface over the NTB Transport layer, enabling connected systems to communicate with each other using standard network protocols and transfer data as ethernet traffic over the link.

---
 drivers/pci/controller/cadence/Kconfig | 5 +++++
 1 file changed, 5 insertions(+)
drivers/pci/controller/cadence/Kconfig +5 -0
index 9e651d545973..2da9d4ed3ed0 100644
@@ -76,6 +76,10 @@ config PCI_J721E_HOST
 	depends on ARCH_K3 || COMPILE_TEST
 	depends on OF
 	select PCI_J721E
+	imply NTB
+	imply NTB_TRANSPORT
+	imply NTB_EPF
+	imply NTB_NETDEV
 	help
 	  Say Y here if you want to support the TI J721E PCIe platform
 	  controller in host mode. TI J721E PCIe controller uses Cadence PCIe
@@ -87,6 +91,7 @@ config PCI_J721E_EP
 	depends on OF
 	depends on PCI_ENDPOINT
 	select PCI_J721E
+	imply PCI_EPF_NTB
 	help
 	  Say Y here if you want to support the TI J721E PCIe platform
 	  controller in endpoint mode. TI J721E PCIe controller uses Cadence PCIe
Signature · 1 line
2.34.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 10 lines · Aksh Garg

Configure Non-Transparent Bridge (NTB) components to build along with J721E PCIe controller driver to add support for PCI NTB functionality in TI SoCs.

NTB_NETDEV allows to setup a virtual ethernet interface over the NTB Transport layer, enabling connected systems to communicate with each other using standard network protocols and transfer data as ethernet traffic over the link.

Regards,
Siddharth.

#2 lore raw
In reply to Aksh Garg
Quoted 4 lines · Aksh Garg

Configure Non-Transparent Bridge (NTB) components to build along with J721E PCIe controller driver to add support for PCI NTB functionality in TI SoCs.

Driver Kconfig is not the place to select your usecase specific drivers. Drivers should only select drivers that they themselves need it, not the end usecase.

So please do it in your distro config or arch defconfig as you see fit.

- Mani

Quoted 36 lines

NTB_NETDEV allows to setup a virtual ethernet interface over the NTB Transport layer, enabling connected systems to communicate with each other using standard network protocols and transfer data as ethernet traffic over the link.

---
 drivers/pci/controller/cadence/Kconfig | 5 +++++
 1 file changed, 5 insertions(+)
drivers/pci/controller/cadence/Kconfig +5 -0
index 9e651d545973..2da9d4ed3ed0 100644
@@ -76,6 +76,10 @@ config PCI_J721E_HOST
 	depends on ARCH_K3 || COMPILE_TEST
 	depends on OF
 	select PCI_J721E
+	imply NTB
+	imply NTB_TRANSPORT
+	imply NTB_EPF
+	imply NTB_NETDEV
 	help
 	  Say Y here if you want to support the TI J721E PCIe platform
 	  controller in host mode. TI J721E PCIe controller uses Cadence PCIe
@@ -87,6 +91,7 @@ config PCI_J721E_EP
 	depends on OF
 	depends on PCI_ENDPOINT
 	select PCI_J721E
+	imply PCI_EPF_NTB
 	help
 	  Say Y here if you want to support the TI J721E PCIe platform
 	  controller in endpoint mode. TI J721E PCIe controller uses Cadence PCIe
Signature · 1 line
2.34.1
Signature · 1 line
மணிவண்ணன் சதாசிவம்