Skip to contentSkip to conversation

NTB: Add support for AMD PCI-Express Non-Transparent Bridge

PATCH RESEND In review Xiangliang Yu 3 participants 4 messages Jan 21, 2016

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

PATCH RESEND v5 1/1 NTB: Add support for AMD PCI-Express Non-Transparent Bridge

This adds support for AMD's PCI-Express Non-Transparent Bridge (NTB) device on the Zeppelin platform. The driver connnects to the standard NTB sub-system interface, with modification to add hooks for power management in a separate patch. The AMD NTB device has 3 memory windows, 16 doorbell, 16 scratch-pad registers, and supports up to 16 PCIe lanes running a Gen3 speeds.

---
 MAINTAINERS                     |    6 +
 drivers/ntb/hw/Kconfig          |    1 +
 drivers/ntb/hw/Makefile         |    1 +
 drivers/ntb/hw/amd/Kconfig      |    7 +
 drivers/ntb/hw/amd/Makefile     |    1 +
 drivers/ntb/hw/amd/ntb_hw_amd.c | 1143 +++++++++++++++++++++++++++++++++++++++
 drivers/ntb/hw/amd/ntb_hw_amd.h |  217 ++++++++
 7 files changed, 1376 insertions(+)
 create mode 100644 drivers/ntb/hw/amd/Kconfig
 create mode 100644 drivers/ntb/hw/amd/Makefile
 create mode 100644 drivers/ntb/hw/amd/ntb_hw_amd.c
 create mode 100644 drivers/ntb/hw/amd/ntb_hw_amd.h
MAINTAINERS +6 -0
index 5192700..908941a 100644
@@ -7585,6 +7585,12 @@ W:	https://github.com/jonmason/ntb/wiki
 T:	git git://github.com/jonmason/ntb.git
 F:	drivers/ntb/hw/intel/
 
+NTB AMD DRIVER
+M:	Xiangliang Yu <[email protected]>
+L:	[email protected]
+S:	Supported
+F:	drivers/ntb/hw/amd/
+
 NTFS FILESYSTEM
 M:	Anton Altaparmakov <[email protected]>
 L:	[email protected]
drivers/ntb/hw/Kconfig +1 -0
index 4d5535c..7116472 100644
@@ -1 +1,2 @@
+source "drivers/ntb/hw/amd/Kconfig"
 source "drivers/ntb/hw/intel/Kconfig"
drivers/ntb/hw/Makefile +1 -0
index 175d7c9..532e085 100644
@@ -1 +1,2 @@
+obj-$(CONFIG_NTB_AMD)	+= amd/
 obj-$(CONFIG_NTB_INTEL)	+= intel/
drivers/ntb/hw/amd/Kconfig new file +7 -0
new file mode 100644
index 0000000..cfe903c
@@ -0,0 +1,7 @@
+config NTB_AMD
+	tristate "AMD Non-Transparent Bridge support"
+	depends on X86_64
+	help
+	 This driver supports AMD NTB on capable Zeppelin hardware.
+
+	 If unsure, say N.
drivers/ntb/hw/amd/Makefile new file +1 -0
new file mode 100644
index 0000000..ad54da9
@@ -0,0 +1 @@
+obj-$(CONFIG_NTB_AMD) += ntb_hw_amd.o
drivers/ntb/hw/amd/ntb_hw_amd.c new file +1143 -0

1,143 lines not on this page · raw message

drivers/ntb/hw/amd/ntb_hw_amd.h new file +217 -0

217 lines not on this page · raw message

Signature · 1 line
1.9.1
#2 lore raw
Quoted 10 lines

From: Xiangliang Yu <[email protected]>

Quoted 1 line

Yes.

Quoted 1 line

Maybe, but that's for Jon to decide. If he accepts it, he will add signed-off-by, but again, that's for Jon to decide.

Jon also spend a lot of time to review the code, I think should show his working On this patch.

Quoted 3 lines
Quoted 1 line

Adding my reviewed-by is hardly a reason to resend the whole patch.

It will make work easier if merging.

maintainer
#3 lore raw
Quoted 6 lines · Xiangliang
Quoted 6 lines

From: Xiangliang Yu <[email protected]>

Quoted 1 line

Yes.

Quoted 7 lines
Quoted 4 lines
Quoted 1 line

Maybe, but that's for Jon to decide. If he accepts it, he will add signed-off-by, but again, that's for Jon to decide.

Jon also spend a lot of time to review the code, I think should show his working On this patch.

I appreciate you trying to give me credit for the review of this code, but this is not how it works. Please read Documentation/SubmittingPatches
"Reviewed-by:, instead, indicates that the patch has been reviewed and found acceptable according to the Reviewer's Statement:"

While I am content with this patch, you cannot say that for me :)

Thanks,
Jon

Quoted 7 lines
Quoted 4 lines
Quoted 2 lines

Adding my reviewed-by is hardly a reason to resend the whole patch.

It will make work easier if merging.