NTB: Add support for AMD PCI-Express Non-Transparent Bridge
Subsystems (2)
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
@@ -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
@@ -1 +1,2 @@ +source "drivers/ntb/hw/amd/Kconfig" source "drivers/ntb/hw/intel/Kconfig"
drivers/ntb/hw/Makefile +1 -0
@@ -1 +1,2 @@ +obj-$(CONFIG_NTB_AMD) += amd/ obj-$(CONFIG_NTB_INTEL) += intel/
drivers/ntb/hw/amd/Kconfig new file +7 -0
@@ -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
@@ -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
From: Xiangliang Yu <[email protected]>
Quoted 1 line
Signed-off-by Xiangliang Yu <[email protected]>
Yes.
Quoted 1 line
Reviewed-by Jon Mason <[email protected]>
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.
Quoted 1 line
Reviewed-by Allen Hubbe <[email protected]>
Adding my reviewed-by is hardly a reason to resend the whole patch.
Quoted 10 lines
From: Xiangliang Yu <[email protected]>
Quoted 1 line
Signed-off-by Xiangliang Yu <[email protected]>Yes.
Quoted 1 line
Reviewed-by Jon Mason <[email protected]>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
Reviewed-by Allen Hubbe <[email protected]>Adding my reviewed-by is hardly a reason to resend the whole patch.
It will make work easier if merging.
Jon Mason
maintainerQuoted 6 lines · Xiangliang
Quoted 6 lines
From: Xiangliang Yu <[email protected]>
Quoted 1 line
Signed-off-by Xiangliang Yu <[email protected]>Yes.
Quoted 7 lines
Quoted 4 lines
Quoted 1 line
Reviewed-by Jon Mason <[email protected]>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
Reviewed-by Allen Hubbe <[email protected]>Adding my reviewed-by is hardly a reason to resend the whole patch.
It will make work easier if merging.