RFC Add PCIe support to TI's J721E SoC
Status from this message: NAK
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest30 patches 4 repliesNAK
Patches in v1
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/30 | dt-bindings: PCI: cadence: Add DT binding to use PCIe with IOMMUDocumentation/ | +1 | 0 replies | |
| 2/30 | dt-bindings: PCI: cadence: Add binding to reset PERST#Documentation/ | +1 | 0 replies | |
| 3/30 | dt-bindings: PCI: cadence: Update host DT bindings with TI specific compatibleDocumentation/ | +1 | 0 replies | |
| 4/30 | dt-bindings: PCI: cadence: Update EP DT bindings with TI specific compatibleDocumentation/ | +1 | 0 replies | |
| 5/30 | linux/kernel.h: Add PTR_ALIGN_DOWN macroinclude/ | +1 | 0 replies | |
| 6/30 | PCI: cadence: Add support to use custom read and write accessorsdrivers/ drivers/ drivers/ | +131 | 0 replies | |
| 7/30 | PCI: cadence: Add read and write accessors to perform only 32-bit accessesdrivers/ drivers/ | +42 | 0 replies | |
| 8/30 | PCI: cadence: Add support to use PCIe in J721E SoCdrivers/ drivers/ | +55 | 0 replies | |
| 9/30 | PCI: cadence: Add platform_data to start link and check link statusdrivers/ drivers/ drivers/ +1 more | +56 | 0 replies | |
| 10/30 | PCI: cadence: Use *_start_link() and *_wait_for_link() to establish linkdrivers/ drivers/ | +21 | 0 replies | |
| 11/30 | PCI: cadence: Add support to drive PERST# line using GPIOdrivers/ | +26 | 0 replies | |
| 12/30 | PCI: cadence: Make "mem" an optional memory resourcedrivers/ drivers/ drivers/ | +9 | 0 replies | |
| 13/30 | PCI: cadence: Use local management register to configure Vendor IDdrivers/ | +7 | 0 replies | |
| 14/30 | PCI: endpoint: Use notification chain mechanism to notify EPC events to EPFdrivers/ drivers/ drivers/ +2 more | +23 | 0 replies | |
| 15/30 | PCI: endpoint: Replace spinlock with mutexdrivers/ include/ | +34 | 0 replies | |
| 16/30 | PCI: endpoint: Assign function number of each PF in EPC coredrivers/ drivers/ include/ | +18 | 0 replies | |
| 17/30 | PCI: endpoint: Protect concurrent access to pci_epf_ops with mutexdrivers/ include/ | +13 | 0 replies | |
| 18/30 | PCI: endpoint: Add support to add virtual function in endpoint coredrivers/ drivers/ include/ | +109 | 0 replies | |
| 19/30 | PCI: endpoint: Add support to link a physical function to a virtual functiondrivers/ | +24 | 0 replies | |
| 20/30 | PCI: endpoint: Add virtual function number in pci_epc opsdrivers/ drivers/ drivers/ +3 more | +151 | 0 replies | |
| 21/30 | PCI: cadence: Add support to configure virtual functionsdrivers/ drivers/ | +98 | 0 replies | |
| 22/30 | PCI: cadence: Configure pci_epc_features to align BAR addresses to 256 Bytesdrivers/ | +1 | 0 replies | |
| 23/30 | of/platform: Export of_platform_device_create_pdata()drivers/ include/ | +7 | 3 replies | |
| 24/30 | dt-bindings: PCI: J721E: Add DT bindings for PCIe controller in J721EDocumentation/ include/ | +75 | 0 replies | |
| 25/30 | PCI: j721e: Add TI J721E PCIe driverdrivers/ drivers/ drivers/ | +441 | 0 replies | |
| 26/30 | MAINTAINERS: Add MAINTAINER entry for PCIe on TI's J721E SoCMAINTAINERS | +2 | 1 reply | |
| 27/30 | misc: pci_endpoint_test: Add J721E in pci_device_id tabledrivers/ | +9 | 0 replies | |
| 28/30 | misc: pci_endpoint_test: Avoid using module parameter to determine irqtypedrivers/ | +8 | 0 replies | |
| 29/30 | misc: pci_endpoint_test: Populate sriov_configure ops to configure SRIOV devicedrivers/ | +1 | 0 replies | |
| 30/30 | misc: pci_endpoint_test: Enable legacy interruptdrivers/ | +1 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [RFC PATCH 00/30] Add PCIe support to TI's J721E SoC
TI's J721E SoC uses Cadence PCIe core to implement both RC mode and EP mode.
The high level features are:
*) Supports Legacy, MSI and MSI-X interrupt
*) Supports upto GEN4 speed mode
*) Supports SR-IOV
*) Supports multipe physical function
*) Ability to route all transactions via SMMU
This patch series
*) Modify Cadence driver to be used for TI's J721E SoC *) Add a driver for J721E PCIe wrapper
*) Add SR-IOV support to PCI endpoint core and enable it in Cadence
driver
*) Other cleanups in endpoint core and pci_endpoint_test.c
I can split the series into sepearate series if that is preferred.
Initial support for J721E SoC is sent here [1].
[1] -> https://lkml.org/lkml/2019/5/22/593
Kishon Vijay Abraham I (30):
dt-bindings: PCI: cadence: Add DT binding to use PCIe with IOMMU
dt-bindings: PCI: cadence: Add binding to reset PERST#
dt-bindings: PCI: cadence: Update host DT bindings with TI specific
compatible
dt-bindings: PCI: cadence: Update EP DT bindings with TI specific
compatible
linux/kernel.h: Add PTR_ALIGN_DOWN macro
PCI: cadence: Add support to use custom read and write accessors
PCI: cadence: Add read and write accessors to perform only 32-bit
accesses
PCI: cadence: Add support to use PCIe in J721E SoC
PCI: cadence: Add platform_data to start link and check link status
PCI: cadence: Use *_start_link() and *_wait_for_link() to establish
link
PCI: cadence: Add support to drive PERST# line using GPIO
PCI: cadence: Make "mem" an optional memory resource
PCI: cadence: Use local management register to configure Vendor ID
PCI: endpoint: Use notification chain mechanism to notify EPC events
to EPF
PCI: endpoint: Replace spinlock with mutex
PCI: endpoint: Assign function number of each PF in EPC core
PCI: endpoint: Protect concurrent access to pci_epf_ops with mutex
PCI: endpoint: Add support to add virtual function in endpoint core
PCI: endpoint: Add support to link a physical function to a virtual
function
PCI: endpoint: Add virtual function number in pci_epc ops
PCI: cadence: Add support to configure virtual functions
PCI: cadence: Configure pci_epc_features to align BAR addresses to 256
Bytes
of/platform: Export of_platform_device_create_pdata()
dt-bindings: PCI: J721E: Add DT bindings for PCIe controller in J721E
PCI: j721e: Add TI J721E PCIe driver
MAINTAINERS: Add MAINTAINER entry for PCIe on TI's J721E SoC
misc: pci_endpoint_test: Add J721E in pci_device_id table
misc: pci_endpoint_test: Avoid using module parameter to determine
irqtype
misc: pci_endpoint_test: Populate sriov_configure ops to configure
SRIOV device
misc: pci_endpoint_test: Enable legacy interrupt
.../bindings/pci/cdns,cdns-pcie-ep.txt | 1 + .../bindings/pci/cdns,cdns-pcie-host.txt | 3 + .../devicetree/bindings/pci/ti,j721e-pci.txt | 63 +++ MAINTAINERS | 3 +- drivers/misc/pci_endpoint_test.c | 22 +- drivers/of/platform.c | 9 +- drivers/pci/controller/Kconfig | 9 + drivers/pci/controller/Makefile | 1 + .../pci/controller/dwc/pcie-designware-ep.c | 35 +- drivers/pci/controller/pci-j721e.c | 431 ++++++++++++++++++ drivers/pci/controller/pcie-cadence-ep.c | 181 ++++++-- drivers/pci/controller/pcie-cadence-host.c | 119 ++++- drivers/pci/controller/pcie-cadence.c | 87 +++- drivers/pci/controller/pcie-cadence.h | 125 ++++- drivers/pci/controller/pcie-rockchip-ep.c | 18 +- drivers/pci/endpoint/functions/pci-epf-test.c | 77 ++-- drivers/pci/endpoint/pci-ep-cfs.c | 51 ++- drivers/pci/endpoint/pci-epc-core.c | 179 ++++---- drivers/pci/endpoint/pci-epf-core.c | 125 ++++- include/dt-bindings/pci/pci.h | 12 + include/linux/kernel.h | 1 + include/linux/of_platform.h | 3 + include/linux/pci-epc.h | 64 ++- include/linux/pci-epf.h | 27 +- 24 files changed, 1365 insertions(+), 281 deletions(-) create mode 100644 Documentation/devicetree/bindings/pci/ti,j721e-pci.txt create mode 100644 drivers/pci/controller/pci-j721e.c create mode 100644 include/dt-bindings/pci/pci.h
Signature · 1 line
2.17.1