[PATCH v4 03/17] PCI: endpoint: Add helper API to get the 'next' unreserved BAR

2020-09-14 Thread Kishon Vijay Abraham I
Add an API to get the next unreserved BAR starting from a given BAR number that can be used by the endpoint function. Signed-off-by: Kishon Vijay Abraham I --- drivers/pci/endpoint/pci-epc-core.c | 26 ++ include/linux/pci-epc.h | 2 ++ 2 files changed, 24

[PATCH v4 05/17] PCI: endpoint: Remove unused pci_epf_match_device()

2020-09-14 Thread Kishon Vijay Abraham I
Remove unused pci_epf_match_device() function added in pci-epf-core.c Signed-off-by: Kishon Vijay Abraham I --- drivers/pci/endpoint/pci-epf-core.c | 16 include/linux/pci-epf.h | 2 -- 2 files changed, 18 deletions(-) diff --git a/drivers/pci/endpoint/pci-epf

[PATCH v4 02/17] PCI: endpoint: Make *_get_first_free_bar() take into account 64 bit BAR

2020-09-14 Thread Kishon Vijay Abraham I
ount 64 bit BAR while returning the first free unreserved BAR. Signed-off-by: Kishon Vijay Abraham I --- drivers/pci/endpoint/pci-epc-core.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/drivers/pci/endpoint/pci-epc-core.c b/drivers/pci/endpoint/pci-e

Re: [PATCH v3 17/17] Documentation: PCI: Add userguide for PCI endpoint NTB function

2020-09-14 Thread Kishon Vijay Abraham I
Hi Randy, On 06/09/20 3:38 am, Randy Dunlap wrote: > On 9/4/20 12:50 AM, Kishon Vijay Abraham I wrote: >> Add documentation to help users use pci-epf-ntb function driver and >> existing host side NTB infrastructure for NTB functionality. >> >> Signed-off

[PATCH v2 1/2] arm64: dts: ti: k3-j721e-main: Add PCIe device tree nodes

2020-09-14 Thread Kishon Vijay Abraham I
Add PCIe device tree nodes (both RC and EP) for the four PCIe instances here. Also add the missing translations required in the "ranges" DT property of cbass_main to access all the four PCIe instances. Signed-off-by: Kishon Vijay Abraham I --- arch/arm64/boot/dts/ti/k3-j721e-main.

[PATCH v2 0/2] Add DT to get PCIe working in J721E SoC

2020-09-14 Thread Kishon Vijay Abraham I
syscon dt-nodes to "syscon" instead of pcieX-ctrl. 2) Add TI specific compatible for "syscon" DT nodes 3) Add information about appending "ranges" property to access all PCIe instances in commit log. Kishon Vijay Abraham I (2): arm64: dts: ti: k3-j721e-main: Add

[PATCH v2 2/2] arm64: dts: ti: k3-j721e-common-proc-board: Configure the PCIe instances

2020-09-14 Thread Kishon Vijay Abraham I
J721E Common Processor Board has PCIe connectors for the 1st three PCIe instances. Configure the three PCIe instances in RC mode and disable the 4th PCIe instance. Signed-off-by: Kishon Vijay Abraham I --- .../dts/ti/k3-j721e-common-proc-board.dts | 80 +++ 1 file changed

Re: [RESEND PATCH 1/2] arm64: dts: ti: k3-j721e-main: Add PCIe device tree nodes

2020-09-14 Thread Kishon Vijay Abraham I
Hi Nishanth, On 14/09/20 6:44 pm, Nishanth Menon wrote: > On 17:43-20200914, Kishon Vijay Abraham I wrote: >> Hi Nishanth, >> >> On 14/09/20 5:22 pm, Nishanth Menon wrote: >>> On 16:53-20200914, Kishon Vijay Abraham I wrote: >>>> Hi Rob, >>>>

Re: [RESEND PATCH 1/2] arm64: dts: ti: k3-j721e-main: Add PCIe device tree nodes

2020-09-14 Thread Kishon Vijay Abraham I
Hi Nishanth, On 14/09/20 5:22 pm, Nishanth Menon wrote: > On 16:53-20200914, Kishon Vijay Abraham I wrote: >> Hi Rob, >> >> On 02/09/20 1:07 pm, Kishon Vijay Abraham I wrote: >>> Hi Rob, >>> >>> On 02/09/20 10:24 am, Kishon Vijay Abraham I wrote:

Re: [RESEND PATCH 1/2] arm64: dts: ti: k3-j721e-main: Add PCIe device tree nodes

2020-09-14 Thread Kishon Vijay Abraham I
Hi Rob, On 02/09/20 1:07 pm, Kishon Vijay Abraham I wrote: > Hi Rob, > > On 02/09/20 10:24 am, Kishon Vijay Abraham I wrote: >> Hi Nishanth, >> >> On 01/09/20 8:22 pm, Nishanth Menon wrote: >>> On 19:36-20200901, Kishon Vijay Abraham I wrote: >>>>

Re: [RFC PATCH 00/22] Enhance VHOST to enable SoC-to-SoC communication

2020-09-14 Thread Kishon Vijay Abraham I
Hi Jason, On 01/09/20 2:20 pm, Jason Wang wrote: > > On 2020/9/1 下午1:24, Kishon Vijay Abraham I wrote: >> Hi, >> >> On 28/08/20 4:04 pm, Cornelia Huck wrote: >>> On Thu, 9 Jul 2020 14:26:53 +0800 >>> Jason Wang wrote: >>> >>> [Let

Re: [PATCH v2 0/4] arm64: dts: ti: k3-j7200: add dma and mcu cpsw

2020-09-10 Thread Kishon Vijay Abraham I
c, to enable DMA support > - MCU CPSW2g DT nodes to enable networking https://pastebin.ubuntu.com/p/FPVggcdQ6T/ Tested-by: Kishon Vijay Abraham I Thanks Kishon > > This series depends on: > - [PATCH v2 0/4] arm64: Initial support for Texas Instrument's J7200 > Platform [1] &

Re: [PATCH v5 2/2] phy: cadence-torrent: Use kernel PHY API to set PHY attributes

2020-09-09 Thread Kishon Vijay Abraham I
Hi Milind, On 08/09/20 7:45 pm, Milind Parab wrote: Hi Kishon, -Original Message- From: Laurent Pinchart Sent: Thursday, September 3, 2020 9:00 PM To: Kishon Vijay Abraham I Cc: Swapnil Kashinath Jakhade ; vk...@kernel.org; linux-kernel@vger.kernel.org; max...@cerno.tech; Milind

[PATCH v3 09/17] PCI: endpoint: Add pci_epf_ops for epf drivers to expose function specific attrs

2020-09-04 Thread Kishon Vijay Abraham I
be populated by the function driver if it has to expose any function specific attributes and pci_epf_type_add_cfs() to be invoked by pci-ep-cfs.c when sub-directory to main function directory is created. Signed-off-by: Kishon Vijay Abraham I --- drivers/pci/endpoint/pci-epf-core.c |

[PATCH v3 02/17] PCI: endpoint: Make *_get_first_free_bar() take into account 64 bit BAR

2020-09-04 Thread Kishon Vijay Abraham I
ount 64 bit BAR while returning the first free unreserved BAR. Signed-off-by: Kishon Vijay Abraham I --- drivers/pci/endpoint/pci-epc-core.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/drivers/pci/endpoint/pci-epc-core.c b/drivers/pci/endpoint/pci-e

[PATCH v3 08/17] PCI: endpoint: Add pci_epc_ops to map MSI irq

2020-09-04 Thread Kishon Vijay Abraham I
directly write to the physical address (in outbound region) of the other interface to ring doorbell using MSI. Signed-off-by: Kishon Vijay Abraham I --- drivers/pci/endpoint/pci-epc-core.c | 40 + include/linux/pci-epc.h | 7 + 2 files changed, 47 insertions

[PATCH v3 10/17] PCI: endpoint: Allow user to create sub-directory of 'EPF Device' directory

2020-09-04 Thread Kishon Vijay Abraham I
ributes that has to be exposed to the user. Signed-off-by: Kishon Vijay Abraham I --- drivers/pci/endpoint/pci-ep-cfs.c | 23 +++ include/linux/pci-epf.h | 3 +++ 2 files changed, 26 insertions(+) diff --git a/drivers/pci/endpoint/pci-ep-cfs.c b/drivers/p

[PATCH v3 14/17] NTB: Add support for EPF PCI-Express Non-Transparent Bridge

2020-09-04 Thread Kishon Vijay Abraham I
device has configurable number of memory windows (Max 4), configurable number of doorbell (Max 32), and configurable number of scratch-pad registers. Signed-off-by: Kishon Vijay Abraham I --- drivers/ntb/hw/Kconfig | 1 + drivers/ntb/hw/Makefile | 1 + drivers/ntb/hw/epf

[PATCH v3 17/17] Documentation: PCI: Add userguide for PCI endpoint NTB function

2020-09-04 Thread Kishon Vijay Abraham I
Add documentation to help users use pci-epf-ntb function driver and existing host side NTB infrastructure for NTB functionality. Signed-off-by: Kishon Vijay Abraham I --- Documentation/PCI/endpoint/index.rst | 1 + Documentation/PCI/endpoint/pci-ntb-howto.rst | 160

[PATCH v3 11/17] PCI: cadence: Implement ->msi_map_irq() ops

2020-09-04 Thread Kishon Vijay Abraham I
Implement ->msi_map_irq() ops in order to map physical address to MSI address and return MSI data. Signed-off-by: Kishon Vijay Abraham I --- .../pci/controller/cadence/pcie-cadence-ep.c | 50 +++ drivers/pci/endpoint/pci-epc-core.c | 7 ++- include/linux/pci-ep

[PATCH v3 15/17] NTB: tool: Enable the NTB/PCIe link on the local or remote side of bridge

2020-09-04 Thread Kishon Vijay Abraham I
Invoke ntb_link_enable() to enable the NTB/PCIe link on the local or remote side of the bridge. Signed-off-by: Kishon Vijay Abraham I --- drivers/ntb/test/ntb_tool.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/ntb/test/ntb_tool.c b/drivers/ntb/test/ntb_tool.c index b7bf3f863d79

[PATCH v3 16/17] Documentation: PCI: Add binding documentation for pci-ntb endpoint function

2020-09-04 Thread Kishon Vijay Abraham I
Add binding documentation for pci-ntb endpoint function that helps in adding and configuring pci-ntb endpoint function. Signed-off-by: Kishon Vijay Abraham I --- .../PCI/endpoint/function/binding/pci-ntb.rst | 38 +++ Documentation/PCI/endpoint/index.rst | 1 + 2 files

[PATCH v3 13/17] PCI: Add TI J721E device to pci ids

2020-09-04 Thread Kishon Vijay Abraham I
Add TI J721E device to the pci id database. Since this device has a configurable PCIe endpoint, it could be used with different drivers. Signed-off-by: Kishon Vijay Abraham I --- drivers/misc/pci_endpoint_test.c | 1 - include/linux/pci_ids.h | 1 + 2 files changed, 1 insertion(+), 1

[PATCH v3 12/17] PCI: endpoint: Add EP function driver to provide NTB functionality

2020-09-04 Thread Kishon Vijay Abraham I
Add a new endpoint function driver to provide NTB functionality using multiple PCIe endpoint instances. Signed-off-by: Kishon Vijay Abraham I --- drivers/pci/endpoint/functions/Kconfig | 12 + drivers/pci/endpoint/functions/Makefile |1 + drivers/pci/endpoint/functions/pci-epf

[PATCH v3 00/17] Implement NTB Controller using multiple PCI EP

2020-09-04 Thread Kishon Vijay Abraham I
/contributions/395/attachments/284/481/Implementing_NTB_Controller_Using_PCIe_Endpoint_-_final.pdf [2] -> http://lore.kernel.org/r/20190926112933.8922-1-kis...@ti.com [3] -> http://lore.kernel.org/r/20200514145927.17555-1-kis...@ti.com [4] -> http://lore.kernel.org/r/20200611130525.22746-1-

[PATCH v3 06/17] PCI: endpoint: Add support to associate secondary EPC with EPF

2020-09-04 Thread Kishon Vijay Abraham I
. This is in preparation for adding NTB endpoint function driver. Signed-off-by: Kishon Vijay Abraham I --- drivers/pci/endpoint/functions/pci-epf-test.c | 11 ++-- drivers/pci/endpoint/pci-ep-cfs.c | 6 +- drivers/pci/endpoint/pci-epc-core.c | 50 drivers/pci

[PATCH v3 01/17] Documentation: PCI: Add specification for the *PCI NTB* function device

2020-09-04 Thread Kishon Vijay Abraham I
Add specification for the *PCI NTB* function device. The endpoint function driver and the host PCI driver should be created based on this specification. Signed-off-by: Kishon Vijay Abraham I --- Documentation/PCI/endpoint/index.rst | 1 + .../PCI/endpoint/pci-ntb-function.rst

[PATCH v3 03/17] PCI: endpoint: Add helper API to get the 'next' unreserved BAR

2020-09-04 Thread Kishon Vijay Abraham I
Add an API to get the next unreserved BAR starting from a given BAR number that can be used by the endpoint function. Signed-off-by: Kishon Vijay Abraham I --- drivers/pci/endpoint/pci-epc-core.c | 26 ++ include/linux/pci-epc.h | 2 ++ 2 files changed, 24

[PATCH v3 07/17] PCI: endpoint: Add support in configfs to associate two EPCs with EPF

2020-09-04 Thread Kishon Vijay Abraham I
single EPC device with a EPF device will continue to work. Signed-off-by: Kishon Vijay Abraham I --- .../PCI/endpoint/pci-endpoint-cfs.rst | 10 ++ drivers/pci/endpoint/pci-ep-cfs.c | 147 ++ 2 files changed, 157 insertions(+) diff --git a/Documentat

[PATCH v3 05/17] PCI: endpoint: Remove unused pci_epf_match_device()

2020-09-04 Thread Kishon Vijay Abraham I
Remove unused pci_epf_match_device() function added in pci-epf-core.c Signed-off-by: Kishon Vijay Abraham I --- drivers/pci/endpoint/pci-epf-core.c | 16 include/linux/pci-epf.h | 2 -- 2 files changed, 18 deletions(-) diff --git a/drivers/pci/endpoint/pci-epf

[PATCH v3 04/17] PCI: endpoint: Make *_free_bar() to return error codes on failure

2020-09-04 Thread Kishon Vijay Abraham I
Modify pci_epc_get_next_free_bar() and pci_epc_get_first_free_bar() to return error values if there are no free BARs available. Signed-off-by: Kishon Vijay Abraham I --- drivers/pci/endpoint/functions/pci-epf-test.c | 2 ++ drivers/pci/endpoint/pci-epc-core.c | 12

Re: [PATCH v5 2/2] phy: cadence-torrent: Use kernel PHY API to set PHY attributes

2020-09-03 Thread Kishon Vijay Abraham I
Jakhade wrote: >>>>> Use generic PHY framework function phy_set_attrs() to set number >>>>> of lanes and maximum link rate supported by PHY. >>>>> >>>>> Signed-off-by: Swapnil Jakhade >>>>> Acked-by: Kishon Vijay Abraham I

Re: [RESEND PATCH 1/2] arm64: dts: ti: k3-j721e-main: Add PCIe device tree nodes

2020-09-02 Thread Kishon Vijay Abraham I
Hi Rob, On 02/09/20 10:24 am, Kishon Vijay Abraham I wrote: Hi Nishanth, On 01/09/20 8:22 pm, Nishanth Menon wrote: On 19:36-20200901, Kishon Vijay Abraham I wrote: Add PCIe device tree node (both RC and EP) for the four PCIe instances here. Signed-off-by: Kishon Vijay Abraham I ---   arch

Re: [RESEND PATCH 1/2] arm64: dts: ti: k3-j721e-main: Add PCIe device tree nodes

2020-09-01 Thread Kishon Vijay Abraham I
Hi Nishanth, On 01/09/20 8:22 pm, Nishanth Menon wrote: On 19:36-20200901, Kishon Vijay Abraham I wrote: Add PCIe device tree node (both RC and EP) for the four PCIe instances here. Signed-off-by: Kishon Vijay Abraham I --- arch/arm64/boot/dts/ti/k3-j721e-main.dtsi | 218

[RESEND PATCH 0/2] Add DT to get PCIe working in J721E SoC

2020-09-01 Thread Kishon Vijay Abraham I
version sent to http://lore.kernel.org/r/20200724055604.31498-1-kis...@ti.com Kishon Vijay Abraham I (2): arm64: dts: ti: k3-j721e-main: Add PCIe device tree nodes arm64: dts: ti: k3-j721e-common-proc-board: Configure the PCIe instances .../dts/ti/k3-j721e-common-proc-board.dts | 80

[RESEND PATCH 1/2] arm64: dts: ti: k3-j721e-main: Add PCIe device tree nodes

2020-09-01 Thread Kishon Vijay Abraham I
Add PCIe device tree node (both RC and EP) for the four PCIe instances here. Signed-off-by: Kishon Vijay Abraham I --- arch/arm64/boot/dts/ti/k3-j721e-main.dtsi | 218 ++ arch/arm64/boot/dts/ti/k3-j721e.dtsi | 5 +- 2 files changed, 222 insertions(+), 1 deletion

[RESEND PATCH 2/2] arm64: dts: ti: k3-j721e-common-proc-board: Configure the PCIe instances

2020-09-01 Thread Kishon Vijay Abraham I
J721E Common Processor Board has PCIe connectors for the 1st three PCIe instances. Configure the three PCIe instances in RC mode and disable the 4th PCIe instance. Signed-off-by: Kishon Vijay Abraham I --- .../dts/ti/k3-j721e-common-proc-board.dts | 80 +++ 1 file changed

Re: [RFC PATCH 00/22] Enhance VHOST to enable SoC-to-SoC communication

2020-08-31 Thread Kishon Vijay Abraham I
ogize beforehand for any confusion I might spread.] On 2020/7/8 下午9:13, Kishon Vijay Abraham I wrote: Hi Jason, On 7/8/2020 4:52 PM, Jason Wang wrote: On 2020/7/7 下午10:45, Kishon Vijay Abraham I wrote: Hi Jason, On 7/7/2020 3:17 PM, Jason Wang wrote: On 2020/7/6 下午5:32, Kishon Vijay Abraham I wrote

Re: [RFC PATCH 00/22] Enhance VHOST to enable SoC-to-SoC communication

2020-08-31 Thread Kishon Vijay Abraham I
Hi Mathieu, On 15/07/20 10:45 pm, Mathieu Poirier wrote: Hey Kishon, On Wed, Jul 08, 2020 at 06:43:45PM +0530, Kishon Vijay Abraham I wrote: Hi Jason, On 7/8/2020 4:52 PM, Jason Wang wrote: On 2020/7/7 下午10:45, Kishon Vijay Abraham I wrote: Hi Jason, On 7/7/2020 3:17 PM, Jason Wang wrote

Re: [PATCH v1 7/7] dt-bindings: phy: cadence-torrent: Update Torrent PHY bindings for generic use

2020-08-12 Thread Kishon Vijay Abraham I
Hi Swapnil, On 8/7/2020 3:42 PM, Swapnil Jakhade wrote: > Torrent PHY can be used in different multi-link multi-protocol > configurations including protocols other than DisplayPort also, > such as PCIe, USB, SGMII, QSGMII etc. Update the bindings to have > support for these configurations. > > Si

[PATCH 1/2] arm64: dts: ti: k3-j721e-main: Add PCIe device tree nodes

2020-07-23 Thread Kishon Vijay Abraham I
Add PCIe device tree node (both RC and EP) for the four PCIe instances here. Signed-off-by: Kishon Vijay Abraham I --- arch/arm64/boot/dts/ti/k3-j721e-main.dtsi | 218 ++ arch/arm64/boot/dts/ti/k3-j721e.dtsi | 5 +- 2 files changed, 222 insertions(+), 1 deletion

[PATCH 2/2] arm64: dts: ti: k3-j721e-common-proc-board: Configure the PCIe instances

2020-07-23 Thread Kishon Vijay Abraham I
J721E Common Processor Board has PCIe connectors for the 1st three PCIe instances. Configure the three PCIe instances in RC mode and disable the 4th PCIe instance. Signed-off-by: Kishon Vijay Abraham I --- .../dts/ti/k3-j721e-common-proc-board.dts | 80 +++ 1 file changed

[PATCH 0/2] Add DT to get PCIe working in J721E SoC

2020-07-23 Thread Kishon Vijay Abraham I
ux/kernel/git/lpieralisi/pci.git/log/?h=pci/cadence [2] -> https://git.kernel.org/pub/scm/linux/kernel/git/kristo/linux.git/log/?h=ti-k3-next Kishon Vijay Abraham I (2): arm64: dts: ti: k3-j721e-main: Add PCIe device tree nodes arm64: dts: ti: k3-j721e-common-proc-board: Configure the PCIe ins

[PATCH 2/2] arm64: dts: ti: k3-j721e-common-proc-board: Configure the PCIe instances

2020-07-23 Thread Kishon Vijay Abraham I
J721E Common Processor Board has PCIe connectors for the 1st three PCIe instances. Configure the three PCIe instances in RC mode and disable the 4th PCIe instance. Signed-off-by: Kishon Vijay Abraham I --- .../dts/ti/k3-j721e-common-proc-board.dts | 80 +++ 1 file changed

[PATCH 0/2] Add DT to get PCIe working in J721E SoC

2020-07-23 Thread Kishon Vijay Abraham I
ux/kernel/git/lpieralisi/pci.git/log/?h=pci/cadence [2] -> https://git.kernel.org/pub/scm/linux/kernel/git/kristo/linux.git/log/?h=ti-k3-next Kishon Vijay Abraham I (2): arm64: dts: ti: k3-j721e-main: Add PCIe device tree nodes arm64: dts: ti: k3-j721e-common-proc-board: Configure the PCIe ins

[PATCH 1/2] arm64: dts: ti: k3-j721e-main: Add PCIe device tree nodes

2020-07-23 Thread Kishon Vijay Abraham I
Add PCIe device tree node (both RC and EP) for the four PCIe instances here. Signed-off-by: Kishon Vijay Abraham I --- arch/arm64/boot/dts/ti/k3-j721e-main.dtsi | 218 ++ arch/arm64/boot/dts/ti/k3-j721e.dtsi | 5 +- 2 files changed, 222 insertions(+), 1 deletion

Re: [PATCH v8 00/15] Add PCIe support to TI's J721E SoC

2020-07-23 Thread Kishon Vijay Abraham I
On 7/23/2020 3:32 PM, Lorenzo Pieralisi wrote: > On Wed, Jul 22, 2020 at 04:33:02PM +0530, Kishon Vijay Abraham I wrote: >> TI's J721E SoC uses Cadence PCIe core to implement both RC mode >> and EP mode. >> >> The high level features are: >> *) Su

Re: [PATCH v4 2/2] phy: cadence-torrent: Use kernel PHY API to set PHY attributes

2020-07-22 Thread Kishon Vijay Abraham I
On 7/17/2020 12:20 PM, Swapnil Jakhade wrote: > Use generic PHY framework function phy_set_attrs() to set number > of lanes and maximum link rate supported by PHY. > > Signed-off-by: Swapnil Jakhade Acked-by: Kishon Vijay Abraham I > --- > drivers/phy/cadence/phy-cad

Re: [PATCH v4 1/2] phy: Add new PHY attribute max_link_rate and APIs to get/set PHY attributes

2020-07-22 Thread Kishon Vijay Abraham I
f-by: Yuti Amonkar > Signed-off-by: Swapnil Jakhade Acked-by: Kishon Vijay Abraham I > --- > include/linux/phy/phy.h | 26 ++ > 1 file changed, 26 insertions(+) > > diff --git a/include/linux/phy/phy.h b/include/linux/phy/phy.h > index bcee8eba62b3..5d

[PATCH v8 07/15] dt-bindings: PCI: cadence: Remove "mem" from reg binding

2020-07-22 Thread Kishon Vijay Abraham I
"mem" is not a memory resource and it overlaps with PCIe config space and memory region. Remove "mem" from reg binding. Signed-off-by: Kishon Vijay Abraham I Reviewed-by: Rob Herring --- .../devicetree/bindings/pci/cdns,cdns-pcie-host.yaml | 8 +++- 1 file changed

[PATCH v8 11/15] dt-bindings: PCI: Add host mode dt-bindings for TI's J721E SoC

2020-07-22 Thread Kishon Vijay Abraham I
Add host mode dt-bindings for TI's J721E SoC. Signed-off-by: Kishon Vijay Abraham I Reviewed-by: Rob Herring --- .../bindings/pci/ti,j721e-pci-host.yaml | 113 ++ 1 file changed, 113 insertions(+) create mode 100644 Documentation/devicetree/bindings/pci/ti,j721

[PATCH v8 04/15] PCI: cadence: Convert all r/w accessors to perform only 32-bit accesses

2020-07-22 Thread Kishon Vijay Abraham I
to disable interrupts while modifying PCI_STATUS register while raising legacy interrupt since PCI_STATUS is accessible by both remote RC and EP and time between read and write should be minimized. Signed-off-by: Kishon Vijay Abraham I --- .../pci/controller/cadence/pcie-cadence-ep.c | 4 + d

[PATCH v8 12/15] dt-bindings: PCI: Add EP mode dt-bindings for TI's J721E SoC

2020-07-22 Thread Kishon Vijay Abraham I
Add PCIe EP mode dt-bindings for TI's J721E SoC. Signed-off-by: Kishon Vijay Abraham I Reviewed-by: Rob Herring --- .../bindings/pci/ti,j721e-pci-ep.yaml | 94 +++ 1 file changed, 94 insertions(+) create mode 100644 Documentation/devicetree/bindings/pci/ti,j721

[PATCH v8 10/15] PCI: cadence: Add MSI-X support to Endpoint driver

2020-07-22 Thread Kishon Vijay Abraham I
) from "struct cdns_pcie_epf" that gets initialized in ->set_bar() call back function. Signed-off-by: Alan Douglas [kis...@ti.com: Re-implement MSIX support in accordance with the re-designed core MSI-X interfaces] Signed-off-by: Kishon Vijay Abraham I --- .../pci/controller/cadenc

[PATCH v8 08/15] PCI: cadence: Add new *ops* for CPU addr fixup

2020-07-22 Thread Kishon Vijay Abraham I
SoC require the absolute address to be programmed in the ATU and not just the offset. Add new *ops* for CPU addr fixup for the platform drivers to provide the correct address to be programmed in the ATU. Signed-off-by: Kishon Vijay Abraham I --- .../pci/controller/cadence/pcie-cadence

[PATCH v8 09/15] PCI: cadence: Fix updating Vendor ID and Subsystem Vendor ID register

2020-07-22 Thread Kishon Vijay Abraham I
management register to configure Vendor ID and Subsystem Vendor ID. Fixes: 1b79c5284439 ("PCI: cadence: Add host driver for Cadence PCIe controller") Reviewed-by: Rob Herring Signed-off-by: Kishon Vijay Abraham I --- drivers/pci/controller/cadence/pcie-cadence-host.c | 9 +++-- 1 file c

[PATCH v8 14/15] misc: pci_endpoint_test: Add J721E in pci_device_id table

2020-07-22 Thread Kishon Vijay Abraham I
Add J721E in pci_device_id table so that pci-epf-test can be used for testing PCIe EP in J721E. Reviewed-by: Rob Herring Signed-off-by: Kishon Vijay Abraham I --- drivers/misc/pci_endpoint_test.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/misc/pci_endpoint_test.c b

[PATCH v8 15/15] MAINTAINERS: Add Kishon Vijay Abraham I for TI J721E SoC PCIe

2020-07-22 Thread Kishon Vijay Abraham I
Add Kishon Vijay Abraham I as MAINTAINER for TI J721E SoC PCIe. Acked-by: Rob Herring Signed-off-by: Kishon Vijay Abraham I --- MAINTAINERS | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index 68f21d46614c..6df9b54d3003 100644 --- a/MAINTAINERS

[PATCH v8 13/15] PCI: j721e: Add TI J721E PCIe driver

2020-07-22 Thread Kishon Vijay Abraham I
support *) Supports upto GEN3 speed mode *) Supports SR-IOV capability *) Ability to route all transactions via SMMU (support will be added in a later patch). Signed-off-by: Kishon Vijay Abraham I --- drivers/pci/controller/cadence/Kconfig| 23 + drivers/pci/controller/cadence

[PATCH v8 03/15] linux/kernel.h: Add PTR_ALIGN_DOWN macro

2020-07-22 Thread Kishon Vijay Abraham I
Add a macro for aligning down a pointer. This is useful to get an aligned register address when a device allows only word access and doesn't allow half word or byte access. Acked-by: Rob Herring Signed-off-by: Kishon Vijay Abraham I --- include/linux/kernel.h | 1 + 1 file changed, 1 inse

[PATCH v8 02/15] PCI: cadence: Fix cdns_pcie_{host|ep}_setup() error path

2020-07-22 Thread Kishon Vijay Abraham I
c() in the error path. Fix it here. Fixes: bd22885aa188 ("PCI: cadence: Refactor driver to use as a core library") Reviewed-by: Rob Herring Signed-off-by: Kishon Vijay Abraham I --- drivers/pci/controller/cadence/pcie-cadence-ep.c | 9 ++--- drivers/pci/controller/cadence/pci

[PATCH v8 05/15] PCI: cadence: Add support to start link and verify link status

2020-07-22 Thread Kishon Vijay Abraham I
: Kishon Vijay Abraham I Reviewed-by: Rob Herring --- .../pci/controller/cadence/pcie-cadence-ep.c | 8 .../controller/cadence/pcie-cadence-host.c| 28 ++ drivers/pci/controller/cadence/pcie-cadence.h | 37 ++- 3 files changed, 72 insertions(+), 1 deletion

[PATCH v8 06/15] PCI: cadence: Allow pci_host_bridge to have custom pci_ops

2020-07-22 Thread Kishon Vijay Abraham I
Certain platforms like TI's J721E allows only 32-bit configuration space access. In such cases pci_generic_config_read and pci_generic_config_write cannot be used. Add support in Cadence core to let pci_host_bridge have custom pci_ops. Signed-off-by: Kishon Vijay Abraham I --- driver

[PATCH v8 00/15] Add PCIe support to TI's J721E SoC

2020-07-22 Thread Kishon Vijay Abraham I
@ti.com [8] -> http://lore.kernel.org/r/20200708093018.28474-1-kis...@ti.com [9] -> http://lore.kernel.org/r/20200713110141.13156-1-kis...@ti.com [10] -> http://lore.kernel.org/r/20200521080153.5902-1-kis...@ti.com Alan Douglas (1): PCI: cadence: Add MSI-X support to Endpoint driver

[PATCH v8 01/15] PCI: cadence: Use "dma-ranges" instead of "cdns,no-bar-match-nbits" property

2020-07-22 Thread Kishon Vijay Abraham I
<0x0200 0x0 0x0 0x0 0x0 0x1 0x0>; Since there is no BAR which can hold 2^48 size, NO_MATCH_BAR will be used here. Legacy device tree binding compatibility is maintained by retaining support for "cdns,no-bar-match-nbits". Signed-off-by: Kishon Vijay Abraham I --- Cha

Re: [PATCH v7 03/14] PCI: cadence: Convert all r/w accessors to perform only 32-bit accesses

2020-07-21 Thread Kishon Vijay Abraham I
Hi Lorenzo, On 7/21/2020 9:19 PM, Lorenzo Pieralisi wrote: > On Mon, Jul 13, 2020 at 04:31:30PM +0530, Kishon Vijay Abraham I wrote: >> Certain platforms like TI's J721E using Cadence PCIe IP can perform only >> 32-bit accesses for reading or writing to Cadence registers. Con

Re: [PATCH v7 00/14] Add PCIe support to TI's J721E SoC

2020-07-20 Thread Kishon Vijay Abraham I
Hi Rob/Lorenzo, On 7/13/2020 4:31 PM, Kishon Vijay Abraham I wrote: > TI's J721E SoC uses Cadence PCIe core to implement both RC mode > and EP mode. Any comments on this series? Thanks Kishon > > The high level features are: > *) Supports Legacy, MSI and MSI-X interrupt

Re: [PATCH v3 1/2] phy: Add new PHY attribute max_link_rate and APIs to get/set PHY attributes

2020-07-13 Thread Kishon Vijay Abraham I
On 7/13/2020 4:41 PM, Vinod Koul wrote: > On 13-07-20, 11:38, Swapnil Jakhade wrote: >> Add new PHY attribute max_link_rate to struct phy_attrs. >> Add a pair of PHY APIs to get/set all the PHY attributes. >> Use phy_set_attrs() to set attribute values in the PHY provider driver. >> Use phy_get_

[PATCH v7 10/14] dt-bindings: PCI: Add host mode dt-bindings for TI's J721E SoC

2020-07-13 Thread Kishon Vijay Abraham I
Add host mode dt-bindings for TI's J721E SoC. Signed-off-by: Kishon Vijay Abraham I Reviewed-by: Rob Herring --- .../bindings/pci/ti,j721e-pci-host.yaml | 113 ++ 1 file changed, 113 insertions(+) create mode 100644 Documentation/devicetree/bindings/pci/ti,j721

[PATCH v7 08/14] PCI: cadence: Fix updating Vendor ID and Subsystem Vendor ID register

2020-07-13 Thread Kishon Vijay Abraham I
management register to configure Vendor ID and Subsystem Vendor ID. Fixes: 1b79c5284439 ("PCI: cadence: Add host driver for Cadence PCIe controller") Reviewed-by: Rob Herring Signed-off-by: Kishon Vijay Abraham I --- drivers/pci/controller/cadence/pcie-cadence-host.c | 9 +++-- 1 file c

[PATCH v7 06/14] dt-bindings: PCI: cadence: Remove "mem" from reg binding

2020-07-13 Thread Kishon Vijay Abraham I
"mem" is not a memory resource and it overlaps with PCIe config space and memory region. Remove "mem" from reg binding. Signed-off-by: Kishon Vijay Abraham I Reviewed-by: Rob Herring --- .../devicetree/bindings/pci/cdns,cdns-pcie-host.yaml | 8 +++- 1 file changed

[PATCH v7 09/14] PCI: cadence: Add MSI-X support to Endpoint driver

2020-07-13 Thread Kishon Vijay Abraham I
) from "struct cdns_pcie_epf" that gets initialized in ->set_bar() call back function. Signed-off-by: Alan Douglas [kis...@ti.com: Re-implement MSIX support in accordance with the re-designed core MSI-X interfaces] Signed-off-by: Kishon Vijay Abraham I --- .../pci/controller/cadenc

[PATCH v7 05/14] PCI: cadence: Allow pci_host_bridge to have custom pci_ops

2020-07-13 Thread Kishon Vijay Abraham I
Certain platforms like TI's J721E allows only 32-bit configuration space access. In such cases pci_generic_config_read and pci_generic_config_write cannot be used. Add support in Cadence core to let pci_host_bridge have custom pci_ops. Signed-off-by: Kishon Vijay Abraham I --- driver

[PATCH v7 11/14] dt-bindings: PCI: Add EP mode dt-bindings for TI's J721E SoC

2020-07-13 Thread Kishon Vijay Abraham I
Add PCIe EP mode dt-bindings for TI's J721E SoC. Signed-off-by: Kishon Vijay Abraham I Reviewed-by: Rob Herring --- .../bindings/pci/ti,j721e-pci-ep.yaml | 94 +++ 1 file changed, 94 insertions(+) create mode 100644 Documentation/devicetree/bindings/pci/ti,j721

[PATCH v7 12/14] PCI: j721e: Add TI J721E PCIe driver

2020-07-13 Thread Kishon Vijay Abraham I
support *) Supports upto GEN3 speed mode *) Supports SR-IOV capability *) Ability to route all transactions via SMMU (support will be added in a later patch). Signed-off-by: Kishon Vijay Abraham I --- drivers/pci/controller/cadence/Kconfig| 23 + drivers/pci/controller/cadence

[PATCH v7 07/14] PCI: cadence: Add new *ops* for CPU addr fixup

2020-07-13 Thread Kishon Vijay Abraham I
SoC require the absolute address to be programmed in the ATU and not just the offset. Add new *ops* for CPU addr fixup for the platform drivers to provide the correct address to be programmed in the ATU. Signed-off-by: Kishon Vijay Abraham I --- .../pci/controller/cadence/pcie-cadence

[PATCH v7 14/14] MAINTAINERS: Add Kishon Vijay Abraham I for TI J721E SoC PCIe

2020-07-13 Thread Kishon Vijay Abraham I
Add Kishon Vijay Abraham I as MAINTAINER for TI J721E SoC PCIe. Acked-by: Rob Herring Signed-off-by: Kishon Vijay Abraham I --- MAINTAINERS | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index 5bbc2649566b..bdec73c3069e 100644 --- a/MAINTAINERS

[PATCH v7 13/14] misc: pci_endpoint_test: Add J721E in pci_device_id table

2020-07-13 Thread Kishon Vijay Abraham I
Add J721E in pci_device_id table so that pci-epf-test can be used for testing PCIe EP in J721E. Reviewed-by: Rob Herring Signed-off-by: Kishon Vijay Abraham I --- drivers/misc/pci_endpoint_test.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/misc/pci_endpoint_test.c b

[PATCH v7 04/14] PCI: cadence: Add support to start link and verify link status

2020-07-13 Thread Kishon Vijay Abraham I
: Kishon Vijay Abraham I Reviewed-by: Rob Herring --- .../pci/controller/cadence/pcie-cadence-ep.c | 8 .../controller/cadence/pcie-cadence-host.c| 28 ++ drivers/pci/controller/cadence/pcie-cadence.h | 37 ++- 3 files changed, 72 insertions(+), 1 deletion

[PATCH v7 03/14] PCI: cadence: Convert all r/w accessors to perform only 32-bit accesses

2020-07-13 Thread Kishon Vijay Abraham I
to disable interrupts while modifying PCI_STATUS register while raising legacy interrupt since PCI_STATUS is accessible by both remote RC and EP and time between read and write should be minimized. Signed-off-by: Kishon Vijay Abraham I --- .../pci/controller/cadence/pcie-cadence-ep.c | 4 + d

[PATCH v7 01/14] PCI: cadence: Fix cdns_pcie_{host|ep}_setup() error path

2020-07-13 Thread Kishon Vijay Abraham I
c() in the error path. Fix it here. Fixes: bd22885aa188 ("PCI: cadence: Refactor driver to use as a core library") Reviewed-by: Rob Herring Signed-off-by: Kishon Vijay Abraham I --- drivers/pci/controller/cadence/pcie-cadence-ep.c | 9 ++--- drivers/pci/controller/cadence/pci

[PATCH v7 02/14] linux/kernel.h: Add PTR_ALIGN_DOWN macro

2020-07-13 Thread Kishon Vijay Abraham I
Add a macro for aligning down a pointer. This is useful to get an aligned register address when a device allows only word access and doesn't allow half word or byte access. Acked-by: Rob Herring Signed-off-by: Kishon Vijay Abraham I --- include/linux/kernel.h | 1 + 1 file changed, 1 inse

[PATCH v7 00/14] Add PCIe support to TI's J721E SoC

2020-07-13 Thread Kishon Vijay Abraham I
; http://lore.kernel.org/r/20200506151429.12255-1-kis...@ti.com [7] -> http://lore.kernel.org/r/20200522033631.32574-1-kis...@ti.com [8] -> http://lore.kernel.org/r/20200708093018.28474-1-kis...@ti.com Alan Douglas (1): PCI: cadence: Add MSI-X support to Endpoint driver Kishon Vijay A

Re: [PATCH v6 08/14] PCI: cadence: Fix updating Vendor ID and Subsystem Vendor ID register

2020-07-12 Thread Kishon Vijay Abraham I
Hi Rob, On 7/10/2020 3:15 AM, Rob Herring wrote: > On Wed, Jul 08, 2020 at 03:00:12PM +0530, Kishon Vijay Abraham I wrote: >> Commit 1b79c5284439 ("PCI: cadence: Add host driver for Cadence PCIe >> controller") in order to update Vendor ID, directly wrote to >>

Re: [RFC PATCH 00/22] Enhance VHOST to enable SoC-to-SoC communication

2020-07-08 Thread Kishon Vijay Abraham I
Hi Jason, On 7/8/2020 4:52 PM, Jason Wang wrote: > > On 2020/7/7 下午10:45, Kishon Vijay Abraham I wrote: >> Hi Jason, >> >> On 7/7/2020 3:17 PM, Jason Wang wrote: >>> On 2020/7/6 下午5:32, Kishon Vijay Abraham I wrote: >>>> Hi Jason, >>>> >

[PATCH v6 10/14] dt-bindings: PCI: Add host mode dt-bindings for TI's J721E SoC

2020-07-08 Thread Kishon Vijay Abraham I
Add host mode dt-bindings for TI's J721E SoC. Signed-off-by: Kishon Vijay Abraham I Reviewed-by: Rob Herring --- .../bindings/pci/ti,j721e-pci-host.yaml | 113 ++ 1 file changed, 113 insertions(+) create mode 100644 Documentation/devicetree/bindings/pci/ti,j721

[PATCH v6 07/14] PCI: cadence: Add new *ops* for CPU addr fixup

2020-07-08 Thread Kishon Vijay Abraham I
SoC require the absolute address to be programmed in the ATU and not just the offset. Signed-off-by: Kishon Vijay Abraham I --- .../pci/controller/cadence/pcie-cadence-host.c| 15 --- .../pci/controller/cadence/pcie-cadence-plat.c| 13 + drivers/pci/controll

[PATCH v6 09/14] PCI: cadence: Add MSI-X support to Endpoint driver

2020-07-08 Thread Kishon Vijay Abraham I
) from "struct cdns_pcie_epf" that gets initialized in ->set_bar() call back function. Signed-off-by: Alan Douglas [kis...@ti.com: Re-implement MSIX support in accordance with the re-designed core MSI-X interfaces] Signed-off-by: Kishon Vijay Abraham I --- .../pci/controller/cadenc

[PATCH v6 11/14] dt-bindings: PCI: Add EP mode dt-bindings for TI's J721E SoC

2020-07-08 Thread Kishon Vijay Abraham I
Add PCIe EP mode dt-bindings for TI's J721E SoC. Signed-off-by: Kishon Vijay Abraham I Reviewed-by: Rob Herring --- .../bindings/pci/ti,j721e-pci-ep.yaml | 89 +++ 1 file changed, 89 insertions(+) create mode 100644 Documentation/devicetree/bindings/pci/ti,j721

[PATCH v6 03/14] PCI: cadence: Convert all r/w accessors to perform only 32-bit accesses

2020-07-08 Thread Kishon Vijay Abraham I
to disable interrupts while modifying PCI_STATUS register while raising legacy interrupt since PCI_STATUS is accessible by both remote RC and EP and time between read and write should be minimized. Signed-off-by: Kishon Vijay Abraham I --- .../pci/controller/cadence/pcie-cadence-ep.c | 4 + d

[PATCH v6 13/14] misc: pci_endpoint_test: Add J721E in pci_device_id table

2020-07-08 Thread Kishon Vijay Abraham I
Add J721E in pci_device_id table so that pci-epf-test can be used for testing PCIe EP in J721E. Reviewed-by: Rob Herring Signed-off-by: Kishon Vijay Abraham I --- drivers/misc/pci_endpoint_test.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/misc/pci_endpoint_test.c b

[PATCH v6 08/14] PCI: cadence: Fix updating Vendor ID and Subsystem Vendor ID register

2020-07-08 Thread Kishon Vijay Abraham I
management register to configure Vendor ID and Subsystem Vendor ID. Fixes: 1b79c5284439 ("PCI: cadence: Add host driver for Cadence PCIe controller") Reviewed-by: Rob Herring Signed-off-by: Kishon Vijay Abraham I --- drivers/pci/controller/cadence/pcie-cadence-host.c | 9 +++-- 1 file c

[PATCH v6 12/14] PCI: j721e: Add TI J721E PCIe driver

2020-07-08 Thread Kishon Vijay Abraham I
support *) Supports upto GEN3 speed mode *) Supports SR-IOV capability *) Ability to route all transactions via SMMU (support will be added in a later patch). Signed-off-by: Kishon Vijay Abraham I --- drivers/pci/controller/cadence/Kconfig| 23 + drivers/pci/controller/cadence

[PATCH v6 14/14] MAINTAINERS: Add Kishon Vijay Abraham I for TI J721E SoC PCIe

2020-07-08 Thread Kishon Vijay Abraham I
Add Kishon Vijay Abraham I as MAINTAINER for TI J721E SoC PCIe. Acked-by: Rob Herring Signed-off-by: Kishon Vijay Abraham I --- MAINTAINERS | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index 5bbc2649566b..bdec73c3069e 100644 --- a/MAINTAINERS

[PATCH v6 05/14] PCI: cadence: Allow pci_host_bridge to have custom pci_ops

2020-07-08 Thread Kishon Vijay Abraham I
Certain platforms like TI's J721E allows only 32-bit configuration space access. In such cases pci_generic_config_read and pci_generic_config_write cannot be used. Add support in Cadence core to let pci_host_bridge have custom pci_ops. Signed-off-by: Kishon Vijay Abraham I --- driver

[PATCH v6 06/14] dt-bindings: PCI: cadence: Remove "mem" from reg binding

2020-07-08 Thread Kishon Vijay Abraham I
"mem" is not a memory resource and it overlaps with PCIe config space and memory region. Removve "mem" from reg binding. Signed-off-by: Kishon Vijay Abraham I Reviewed-by: Rob Herring --- .../devicetree/bindings/pci/cdns,cdns-pcie-host.yaml | 8 +++- 1 file changed

[PATCH v6 04/14] PCI: cadence: Add support to start link and verify link status

2020-07-08 Thread Kishon Vijay Abraham I
: Kishon Vijay Abraham I Reviewed-by: Rob Herring --- .../pci/controller/cadence/pcie-cadence-ep.c | 8 .../controller/cadence/pcie-cadence-host.c| 28 ++ drivers/pci/controller/cadence/pcie-cadence.h | 37 ++- 3 files changed, 72 insertions(+), 1 deletion

[PATCH v6 02/14] linux/kernel.h: Add PTR_ALIGN_DOWN macro

2020-07-08 Thread Kishon Vijay Abraham I
Add a macro for aligning down a pointer. This is useful to get an aligned register address when a device allows only word access and doesn't allow half word or byte access. Acked-by: Rob Herring Signed-off-by: Kishon Vijay Abraham I --- include/linux/kernel.h | 1 + 1 file changed, 1 inse

[PATCH v6 01/14] PCI: cadence: Fix cdns_pcie_{host|ep}_setup() error path

2020-07-08 Thread Kishon Vijay Abraham I
c() in the error path. Fix it here. Fixes: bd22885aa188 ("PCI: cadence: Refactor driver to use as a core library") Reviewed-by: Rob Herring Signed-off-by: Kishon Vijay Abraham I --- drivers/pci/controller/cadence/pcie-cadence-ep.c | 9 ++--- drivers/pci/controller/cadence/pci

[PATCH v6 00/14] Add PCIe support to TI's J721E SoC

2020-07-08 Thread Kishon Vijay Abraham I
is...@ti.com Alan Douglas (1): PCI: cadence: Add MSI-X support to Endpoint driver Kishon Vijay Abraham I (13): PCI: cadence: Fix cdns_pcie_{host|ep}_setup() error path linux/kernel.h: Add PTR_ALIGN_DOWN macro PCI: cadence: Convert all r/w accessors to perform only 32-bit accesses

<    1   2   3   4   5   6   7   8   9   10   >