Re: [PATCH 00/37] PCI: Support for configurable PCI endpoint

2017-02-01 Thread Kishon Vijay Abraham I
- list Hi Bjorn, How do you want to handle this series? I'll send one more version of the series including the directory restructuring in the same series. Should it be based on your -next? Cheers Kishon On Thursday 12 January 2017 03:55 PM, Kishon Vijay Abraham I wrote: > The RFC ser

Re: [PATCH 31/37] misc: Add host side pci driver for pci test function device

2017-01-24 Thread Kishon Vijay Abraham I
Hi, On Tuesday 24 January 2017 09:32 PM, Christoph Hellwig wrote: > On Thu, Jan 12, 2017 at 03:56:20PM +0530, Kishon Vijay Abraham I wrote: >> Add PCI endpoint test driver that can verify base address >> register, legacy interrupt/MSI interrupt and read/write/copy >>

Re: [PATCH 00/37] PCI: Support for configurable PCI endpoint

2017-02-15 Thread Kishon Vijay Abraham I
Hi Bjorn, On Wednesday 15 February 2017 05:25 AM, Bjorn Helgaas wrote: > On Wed, Feb 01, 2017 at 06:01:58PM +0530, Kishon Vijay Abraham I wrote: >> - list >> >> Hi Bjorn, >> >> How do you want to handle this series? I'll send one more version of the >

Re: [PATCH 37/37] ARM: dts: DRA7: Add pcie1 dt node for EP mode

2017-02-16 Thread Kishon Vijay Abraham I
Hi Tony, On Saturday 21 January 2017 12:00 AM, Tony Lindgren wrote: > * Kishon Vijay Abraham I <kis...@ti.com> [170112 02:34]: >> Add pcie1 dt node in order for the controller to operate in >> endpoint mode. However since none of the dra7 based boards have >>

[PATCH v2 08/22] PCI: dwc: designware: Add EP mode support

2017-02-17 Thread Kishon Vijay Abraham I
Add endpoint mode support to designware driver. This uses the EP Core layer introduced recently to add endpoint mode support. *Any* function driver can now use this designware device in order to achieve the EP functionality. Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> --- drive

[PATCH v2 01/22] PCI: endpoint: Add EP core layer to enable EP controller and EP functions

2017-02-17 Thread Kishon Vijay Abraham I
functions that is specific to an endpoint function. Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> --- drivers/Makefile|2 + drivers/pci/Kconfig |1 + drivers/pci/endpoint/Kconfig| 21 ++ drivers/pci/endpoint/Makefile |6 + d

[PATCH v2 16/22] misc: Add host side pci driver for pci test function device

2017-02-17 Thread Kishon Vijay Abraham I
Add PCI endpoint test driver that can verify base address register, legacy interrupt/MSI interrupt and read/write/copy buffers between host and device. The corresponding pci-epf-test function driver should be used on the EP side. Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> --- d

[PATCH v2 19/22] tools: PCI: Add sample test script to invoke pcitest

2017-02-17 Thread Kishon Vijay Abraham I
Add a simple test script that invokes the pcitest userspace tool to perform all the PCI endpoint tests (BAR tests, interrupt tests, read tests, write tests and copy tests). Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> --- tools/pci/pcitest.sh

[PATCH v2 20/22] Documentation: PCI: Add userguide for PCI endpoint test function

2017-02-17 Thread Kishon Vijay Abraham I
Add documentation to help users use pci-epf-test function driver and pci_endpoint_test host driver for testing PCI. Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> --- Documentation/PCI/endpoint/pci-test-howto.txt | 167 + 1 file changed, 167 insertions(+)

[PATCH v2 18/22] tools: PCI: Add a userspace tool to test PCI endpoint

2017-02-17 Thread Kishon Vijay Abraham I
Add a userspace tool to invoke the ioctls exposed by the PCI endpoint test driver to perform various PCI tests. Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> --- tools/pci/pcitest.c | 186 +++ 1 file changed, 186 insertions(+) creat

[PATCH v2 11/22] PCI: dwc: dra7xx: Add EP mode support

2017-02-17 Thread Kishon Vijay Abraham I
The PCIe controller integrated in dra7xx SoCs is capable of operating in endpoint mode. Add endpoint mode support to dra7xx driver. Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> --- drivers/pci/dwc/Kconfig | 31 +- drivers/pci/dwc/Makefile |4 +- drive

[PATCH v2 14/22] dt-bindings: PCI: dra7xx: Add dt bindings to enable legacy mode

2017-02-17 Thread Kishon Vijay Abraham I
Update device tree binding documentation of TI's dra7xx PCI controller to include property for enabling legacy mode. Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> --- Documentation/devicetree/bindings/pci/ti-pci.txt |4 1 file changed, 4 insertions(+) diff --git a/Documen

[PATCH v2 10/22] PCI: dwc: dra7xx: Facilitate wrapper and msi interrupts to be enabled independently

2017-02-17 Thread Kishon Vijay Abraham I
doesn't have to enable msi_interrupts. Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> --- drivers/pci/dwc/pci-dra7xx.c | 24 ++-- 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/drivers/pci/dwc/pci-dra7xx.c b/drivers/pci/dwc/pci-dra7xx.c index c

[PATCH v2 09/22] dt-bindings: PCI: Add dt bindings for pci designware EP mode

2017-02-17 Thread Kishon Vijay Abraham I
Add device tree binding documentation for pci designware EP mode. Acked-by: Rob Herring <r...@kernel.org> Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> --- .../devicetree/bindings/pci/designware-pcie.txt| 26 ++-- 1 file changed, 18 insertions(+),

[PATCH v2 03/22] PCI: endpoint: Introduce configfs entry for configuring EP functions

2017-02-17 Thread Kishon Vijay Abraham I
Introduce a new configfs entry to configure the EP function (like configuring the standard configuration header entries) and to bind the EP function with EP controller. Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> --- drivers/pci/endpoint/Kconfig | 14 +- drivers/pci/en

[PATCH v2 00/22] PCI: Support for configurable PCI endpoint

2017-02-17 Thread Kishon Vijay Abraham I
The patch series is created after applying https://lkml.org/lkml/2017/2/16/270 I've also pushed the tree to git://git.kernel.org/pub/scm/linux/kernel/git/kishon/pci-endpoint.git next Kishon Vijay Abraham I (22): PCI: endpoint: Add EP core layer to enable EP controller and EP functions Doc

[PATCH v2 02/22] Documentation: PCI: Guide to use PCI Endpoint Core Layer

2017-02-17 Thread Kishon Vijay Abraham I
Add Documentation to help users use endpoint library to enable endpoint mode in the PCI controller and add new PCI endpoint functions. Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> --- Documentation/PCI/00-INDEX |2 + Documentation/PCI/endpoint/pci-endpoi

[PATCH v2 07/22] Documentation: PCI: Add binding documentation for pci-test endpoint function

2017-02-17 Thread Kishon Vijay Abraham I
Add binding documentation for pci-test endpoint function that helps in adding and configuring pci-test endpoint function. Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> --- Documentation/PCI/00-INDEX |2 ++ .../PCI/endpoint/function/binding/pci-te

[PATCH v2 05/22] Documentation: PCI: Add specification for the *pci test* function device

2017-02-17 Thread Kishon Vijay Abraham I
Add specification for the *pci test* virtual 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 <kis...@ti.com> --- Documentation/PCI/00-INDEX |2 + Documentati

[PATCH v2 22/22] ARM: DRA7: clockdomain: Change the CLKTRCTRL of CM_PCIE_CLKSTCTRL to SW_WKUP

2017-02-17 Thread Kishon Vijay Abraham I
<t...@atomide.com> Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> --- arch/arm/mach-omap2/clockdomains7xx_data.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-omap2/clockdomains7xx_data.c b/arch/arm/mach-omap2/clockdomains7xx_data.c i

[PATCH v2 06/22] PCI: endpoint: functions: Add an EP function to test PCI

2017-02-17 Thread Kishon Vijay Abraham I
Adds a new endpoint function driver (to program the virtual test device) making use of the EP-core library. Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> --- drivers/pci/endpoint/Kconfig |2 + drivers/pci/endpoint/Makefile |2 +- drive

[PATCH v2 21/22] MAINTAINERS: add PCI EP maintainer

2017-02-17 Thread Kishon Vijay Abraham I
Add maintainer for the newly introduced PCI EP framework. Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> --- MAINTAINERS |9 + 1 file changed, 9 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 8672f18..62b86af 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -

[PATCH v2 15/22] PCI: Add device IDs for DRA74x and DRA72x

2017-02-17 Thread Kishon Vijay Abraham I
Add device IDs for DRA74x and DRA72x devices. These devices have configurable PCI endpoint. Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> --- include/linux/pci_ids.h |2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/pci_ids.h b/include/linux/pci_ids.h index 7

[PATCH v2 04/22] Documentation: PCI: Guide to use pci endpoint configfs

2017-02-17 Thread Kishon Vijay Abraham I
Add Documentation to help users use pci endpoint to configure pci endpoint function and to bind the endpoint function with endpoint controller. Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> --- Documentation/PCI/00-INDEX |2 + Documentation/PCI/endpoi

[PATCH v2 12/22] dt-bindings: PCI: dra7xx: Add dt bindings for pci dra7xx EP mode

2017-02-17 Thread Kishon Vijay Abraham I
Add device tree binding documentation for pci dra7xx EP mode. Acked-by: Rob Herring <r...@kernel.org> Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> --- Documentation/devicetree/bindings/pci/ti-pci.txt | 37 ++ 1 file changed, 30 insertions(+), 7 deleti

[PATCH v2 13/22] PCI: dwc: dra7xx: Workaround for errata id i870

2017-02-17 Thread Kishon Vijay Abraham I
. Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> --- drivers/pci/dwc/pci-dra7xx.c | 50 ++ 1 file changed, 50 insertions(+) diff --git a/drivers/pci/dwc/pci-dra7xx.c b/drivers/pci/dwc/pci-dra7xx.c index 47bb563..df11a49 100644 --- a/drivers/p

Re: [PATCH v2 01/22] PCI: endpoint: Add EP core layer to enable EP controller and EP functions

2017-02-17 Thread Kishon Vijay Abraham I
Hi Joao, On Friday 17 February 2017 04:56 PM, Joao Pinto wrote: > > Hi Kishon, > > Às 9:50 AM de 2/17/2017, Kishon Vijay Abraham I escreveu: >> Introduce a new EP core layer in order to support endpoint functions >> in linux kernel. This comprises of EPC library >>

Re: [PATCH v2 08/22] PCI: dwc: designware: Add EP mode support

2017-02-17 Thread Kishon Vijay Abraham I
Hi, On Friday 17 February 2017 03:20 PM, Kishon Vijay Abraham I wrote: > Add endpoint mode support to designware driver. This uses the > EP Core layer introduced recently to add endpoint mode support. > *Any* function driver can now use this designware device > in order to ac

Re: [PATCH 11/37] PCI: dwc: Split pcie-designware.c into host and core files

2017-01-16 Thread Kishon Vijay Abraham I
Hi Joao, On Monday 16 January 2017 03:57 PM, Joao Pinto wrote: > > Hi, > > Às 5:21 AM de 1/16/2017, Kishon Vijay Abraham I escreveu: >> Hi Joao, >> >> On Friday 13 January 2017 10:19 PM, Joao Pinto wrote: >>> Às 10:26 AM de 1/12/2017, Kishon Vi

Re: [PATCH v2 14/22] dt-bindings: PCI: dra7xx: Add dt bindings to enable legacy mode

2017-02-27 Thread Kishon Vijay Abraham I
On Monday 27 February 2017 10:10 PM, Rob Herring wrote: > On Fri, Feb 17, 2017 at 03:20:34PM +0530, Kishon Vijay Abraham I wrote: >> Update device tree binding documentation of TI's dra7xx PCI >> controller to include property for enabling legacy mode. >> >> Signed-off

[RFC PATCH] pci: controller: split designware into *core* and *host*

2016-09-13 Thread Kishon Vijay Abraham I
platforms using designware core should also be modified accordingly. Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> --- drivers/pci/controller/Kconfig | 48 +- drivers/pci/controller/Makefile|1 + drivers/pci/controller/pci-dr

[RFC PATCH] pci: controller: designware: Add EP mode support

2016-09-13 Thread Kishon Vijay Abraham I
Add endpoint mode support to designware driver. This uses the EP Core layer introduced recently to add endpoint mode support. *Any* function driver can now use this designware device to achieve the EP functionality. Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> --- .../devi

[RFC PATCH] HACK: pci: controller: dra7xx: disable smart idle

2016-09-13 Thread Kishon Vijay Abraham I
Smart idle prevents RC to access the memory space of this controller. Set the idle mode to smart idle wakeup. This should ideally be done in hwmod. Till it's figured out how to configure it in hwmod, mark this as HACK. Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> --- drive

[RFC PATCH] pci: controller: dra7xx: Add EP mode support

2016-09-13 Thread Kishon Vijay Abraham I
The PCIe controller integrated in dra7xx SoCs is capable of operating in endpoint mode. Add support for dra7xx SoCs to operate in endpoint mode. Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> --- Documentation/devicetree/bindings/pci/ti-pci.txt | 30 ++- drivers/pci/controller/K

[RFC PATCH] Documentation: PCI: guide to use PCI Endpoint Core Layer

2016-09-13 Thread Kishon Vijay Abraham I
Add Documentation to let users enable endpoint mode in the PCI controller and add new PCI endpoint function. Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> --- Documentation/PCI/00-INDEX |2 + Documentation/PCI/pci-endpoint.txt | 199 +

[RFC PATCH] pci: support for configurable PCI endpoint

2016-09-13 Thread Kishon Vijay Abraham I
is. Once the functionality for EP to access RC buffer * is added, more tests can be added including throughput measurement tests. */ Kishon Vijay Abraham I (11): pci: endpoint: add EP core layer to enable EP controller and EP functions pci: endpoint: introduce configfs entry fo

[RFC PATCH 04/11] pci: endpoint: functions: add an EP function to test PCI

2016-09-13 Thread Kishon Vijay Abraham I
This adds a new endpoint function driver (to program the virtual test device) making use of the EP-core library. The complete usage of the test function is described in Documentation/PCI/pci-test.txt (included in this commit). Signed-off-by: Kishon Vijay Abraham I <kis...@ti.

[RFC PATCH 00/11] pci: support for configurable PCI endpoint

2016-09-13 Thread Kishon Vijay Abraham I
d so that user/user script * can control this. Once the functionality for EP to access RC buffer * is added, more tests can be added including throughput measurement tests. */ Kishon Vijay Abraham I (11): pci: endpoint: add EP core layer to enable EP controller and EP functions pci: en

[RFC PATCH 10/11] ARM: dts: DRA7: Modify pcie1 dt node for EP mode

2016-09-13 Thread Kishon Vijay Abraham I
Modify pcie1 dt node in order for the controller to operate in endpoint mode. This is used only for testing EP mode. Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> --- arch/arm/boot/dts/dra7.dtsi | 43 +++ 1 file changed, 11 insertions(

[RFC PATCH 06/11] pci: controller: split designware into *core* and *host*

2016-09-13 Thread Kishon Vijay Abraham I
platforms using designware core should also be modified accordingly. Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> --- drivers/pci/controller/Kconfig | 48 +- drivers/pci/controller/Makefile|1 + drivers/pci/controller/pci-dr

[RFC PATCH 11/11] HACK: pci: controller: dra7xx: disable smart idle

2016-09-13 Thread Kishon Vijay Abraham I
Smart idle prevents RC to access the memory space of this controller. Set the idle mode to smart idle wakeup. This should ideally be done in hwmod. Till it's figured out how to configure it in hwmod, mark this as HACK. Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> --- drive

[RFC PATCH 03/11] Documentation: PCI: guide to use PCI Endpoint Core Layer

2016-09-13 Thread Kishon Vijay Abraham I
Add Documentation to let users enable endpoint mode in the PCI controller and add new PCI endpoint function. Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> --- Documentation/PCI/00-INDEX |2 + Documentation/PCI/pci-endpoint.txt | 199 +

[RFC PATCH 08/11] pci: controller: dra7xx: Add EP mode support

2016-09-13 Thread Kishon Vijay Abraham I
The PCIe controller integrated in dra7xx SoCs is capable of operating in endpoint mode. Add support for dra7xx SoCs to operate in endpoint mode. Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> --- Documentation/devicetree/bindings/pci/ti-pci.txt | 30 ++- drivers/pci/controller/K

Re: [RFC PATCH] pci: support for configurable PCI endpoint

2016-09-13 Thread Kishon Vijay Abraham I
Hi, Will resend the series with patch numbering. Thanks Kishon On Tuesday 13 September 2016 10:40 PM, Kishon Vijay Abraham I wrote: > This patch series > *) adds PCI endpoint core layer > *) modifies designware/dra7xx driver to be configured in EP mode > *) adds a

[RFC PATCH 01/11] pci: endpoint: add EP core layer to enable EP controller and EP functions

2016-09-13 Thread Kishon Vijay Abraham I
functions that is specific to an endpoint function. Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> --- drivers/Makefile|1 + drivers/pci/Kconfig |1 + drivers/pci/endpoint/Kconfig| 21 ++ drivers/pci/endpoint/Makefile |5 + d

[RFC PATCH 05/11] pci: rename *host* directory to *controller*

2016-09-13 Thread Kishon Vijay Abraham I
endpoint mode support for some of controller drivers present here. Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> --- MAINTAINERS| 50 ++-- drivers/Makefile |3 ++ drivers/pci/K

[RFC PATCH 02/11] pci: endpoint: introduce configfs entry for configuring EP functions

2016-09-13 Thread Kishon Vijay Abraham I
Introduce a new configfs entry to configure the EP function (like configuring the standard configuration header entries) and to bind the function with a controller. Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> --- drivers/pci/endpoint/Kconfig |4 +- drivers/pci/en

[RFC PATCH 09/11] misc: add a new host side PCI endpoint test driver

2016-09-13 Thread Kishon Vijay Abraham I
Add PCI endpoint test driver that can verify base address register and legacy interrupt. (TODO: buffer tests and MSI interrupt). The corresponding pci-epf-test function driver should be used on the EP side. Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> --- drivers/misc/K

Re: [RFC PATCH 00/11] pci: support for configurable PCI endpoint

2016-09-26 Thread Kishon Vijay Abraham I
Hi Arnd, On Thursday 22 September 2016 07:04 PM, Arnd Bergmann wrote: > On Thursday, September 15, 2016 2:03:05 PM CEST Kishon Vijay Abraham I wrote: >> On Wednesday 14 September 2016 06:55 PM, Arnd Bergmann wrote: >>> On Wednesday, September 14, 2016 10:41:56 AM CEST Kish

Re: [RFC PATCH 00/11] pci: support for configurable PCI endpoint

2016-09-15 Thread Kishon Vijay Abraham I
Hi Arnd, On Wednesday 14 September 2016 06:55 PM, Arnd Bergmann wrote: > On Wednesday, September 14, 2016 10:41:56 AM CEST Kishon Vijay Abraham I > wrote: >> This patch series >> *) adds PCI endpoint core layer >> *) modifies designware/dra7xx driver to

Re: [RFC PATCH 07/11] pci: controller: designware: Add EP mode support

2016-09-27 Thread Kishon Vijay Abraham I
Hi, On Friday 23 September 2016 08:11 PM, Rob Herring wrote: > On Wed, Sep 14, 2016 at 10:42:03AM +0530, Kishon Vijay Abraham I wrote: >> Add endpoint mode support to designware driver. This uses the >> EP Core layer introduced recently to add endpoint mode support. >> *Any

Re: [RFC PATCH 08/11] pci: controller: dra7xx: Add EP mode support

2016-09-27 Thread Kishon Vijay Abraham I
Hi, On Friday 23 September 2016 08:22 PM, Rob Herring wrote: > On Wed, Sep 14, 2016 at 10:42:04AM +0530, Kishon Vijay Abraham I wrote: >> The PCIe controller integrated in dra7xx SoCs is capable of operating >> in endpoint mode. Add support for dra7xx SoCs to operate in e

Re: [RFC PATCH 00/11] pci: support for configurable PCI endpoint

2016-09-29 Thread Kishon Vijay Abraham I
Hi Arnd, On Monday 26 September 2016 11:38 AM, Kishon Vijay Abraham I wrote: > Hi Arnd, > > On Thursday 22 September 2016 07:04 PM, Arnd Bergmann wrote: >> On Thursday, September 15, 2016 2:03:05 PM CEST Kishon Vijay Abraham I wrote: >>> On Wednesday 14 September 2016

[PATCH 31/37] misc: Add host side pci driver for pci test function device

2017-01-12 Thread Kishon Vijay Abraham I
Add PCI endpoint test driver that can verify base address register, legacy interrupt/MSI interrupt and read/write/copy buffers between host and device. The corresponding pci-epf-test function driver should be used on the EP side. Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> --- d

[PATCH 29/37] PCI: dwc: dra7xx: Workaround for errata id i870

2017-01-12 Thread Kishon Vijay Abraham I
. Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> --- drivers/pci/dwc/pci-dra7xx.c | 50 ++ 1 file changed, 50 insertions(+) diff --git a/drivers/pci/dwc/pci-dra7xx.c b/drivers/pci/dwc/pci-dra7xx.c index 333aa56..7666e3e 100644 --- a/drivers/p

[PATCH 34/37] tools: PCI: Add sample test script to invoke pcitest

2017-01-12 Thread Kishon Vijay Abraham I
Add a simple test script that invokes the pcitest userspace tool to perform all the PCI endpoint tests (BAR tests, interrupt tests, read tests, write tests and copy tests). Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> --- tools/pci/pcitest.sh

[PATCH 36/37] ARM: DRA7: clockdomain: Change the CLKTRCTRL of CM_PCIE_CLKSTCTRL to SW_WKUP

2017-01-12 Thread Kishon Vijay Abraham I
Vijay Abraham I <kis...@ti.com> --- arch/arm/mach-omap2/clockdomains7xx_data.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-omap2/clockdomains7xx_data.c b/arch/arm/mach-omap2/clockdomains7xx_data.c index 6c67965..67ebff8 100644 --- a/arch/arm/mach

[PATCH 32/37] Documentation: misc-devices: Add Documentation for pci-endpoint-test driver

2017-01-12 Thread Kishon Vijay Abraham I
Add Documentation for pci-endpoint-test driver. Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> --- Documentation/misc-devices/pci-endpoint-test.txt | 35 ++ 1 file changed, 35 insertions(+) create mode 100644 Documentation/misc-devices/pci-endpoint-test.txt

[PATCH 35/37] MAINTAINERS: add PCI EP maintainer

2017-01-12 Thread Kishon Vijay Abraham I
Add maintainer for the newly introduced PCI EP framework. Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> --- MAINTAINERS |9 + 1 file changed, 9 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 8672f18..021f676 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -

[PATCH 14/37] PCI: endpoint: Add EP core layer to enable EP controller and EP functions

2017-01-12 Thread Kishon Vijay Abraham I
functions that is specific to an endpoint function. Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> --- drivers/Makefile|2 + drivers/pci/Kconfig |1 + drivers/pci/endpoint/Kconfig| 21 ++ drivers/pci/endpoint/Makefile |6 + d

[PATCH 11/37] PCI: dwc: Split pcie-designware.c into host and core files

2017-01-12 Thread Kishon Vijay Abraham I
Split pcie-designware.c into pcie-designware-host.c that contains the host specific parts of the driver and pcie-designware.c that contains the parts used by both host driver and endpoint driver. Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> --- drivers/pci/dwc/Ma

[PATCH 13/37] PCI: dwc: Remove dependency of designware to CONFIG_PCI

2017-01-12 Thread Kishon Vijay Abraham I
CONFIG_PCI is used to enable the host mode PCI. In preparation for adding endpoint mode support to designware driver, remove the dependency of designware to CONFIG_PCI and make only the host specific part depend on CONFIG_PCI. Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> --- d

[PATCH 10/37] PCI: dwc: designware: Fix style errors in pcie-designware.c

2017-01-12 Thread Kishon Vijay Abraham I
No functional change. Fix all checkpatch warnings and check errors in pcie-designware.c Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> --- drivers/pci/dwc/pcie-designware.c | 42 ++--- 1 file changed, 21 insertions(+), 21 deletions(-) diff

[PATCH 09/37] PCI: dwc: designware: Parse *num-lanes* property in dw_pcie_setup_rc

2017-01-12 Thread Kishon Vijay Abraham I
and pcie-designware-host.c Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> --- drivers/pci/dwc/pcie-designware.c | 18 +++--- drivers/pci/dwc/pcie-designware.h |1 - 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/drivers/pci/dwc/pcie-designware.c b/d

[PATCH 22/37] PCI: dwc: Modify dbi accessors to access data of 4/2/1 bytes

2017-01-12 Thread Kishon Vijay Abraham I
endpoint mode support to designware driver. Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> --- drivers/pci/dwc/pci-dra7xx.c |8 ++-- drivers/pci/dwc/pci-exynos.c | 16 +++ drivers/pci/dwc/pci-imx6.c | 58 +++ drivers/p

[PATCH 25/37] dt-bindings: PCI: Add dt bindings for pci designware EP mode

2017-01-12 Thread Kishon Vijay Abraham I
Add device tree binding documentation for pci designware EP mode. Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> --- .../devicetree/bindings/pci/designware-pcie.txt| 26 ++-- 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/Documentation/devi

[PATCH 24/37] PCI: dwc: designware: Add EP mode support

2017-01-12 Thread Kishon Vijay Abraham I
Add endpoint mode support to designware driver. This uses the EP Core layer introduced recently to add endpoint mode support. *Any* function driver can now use this designware device in order to achieve the EP functionality. Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> --- drive

[PATCH 02/37] PCI: dwc: designware: Add new *ops* for cpu addr fixup

2017-01-12 Thread Kishon Vijay Abraham I
the address range is fixed, device mode requires different addresses to be programmed based on the host buffer address. Add a new ops to get the least 28 bits of the corresponding 32 bit CPU address and invoke it before programming the address translation unit. Signed-off-by: Kishon Vijay Abraham I <

[PATCH 19/37] PCI: endpoint: functions: Add an EP function to test PCI

2017-01-12 Thread Kishon Vijay Abraham I
This adds a new endpoint function driver (to program the virtual test device) making use of the EP-core library. Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> --- drivers/pci/endpoint/Kconfig |2 + drivers/pci/endpoint/Makefile |3 +- drive

[PATCH 15/37] Documentation: PCI: Guide to use PCI Endpoint Core Layer

2017-01-12 Thread Kishon Vijay Abraham I
Add Documentation to help users use endpoint library to enable endpoint mode in the PCI controller and add new PCI endpoint functions. Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> --- Documentation/PCI/00-INDEX |2 + Documentation/PCI/endpoint/pci-endpoi

[PATCH 28/37] dt-bindings: PCI: dra7xx: Add dt bindings for pci dra7xx EP mode

2017-01-12 Thread Kishon Vijay Abraham I
Add device tree binding documentation for pci dra7xx EP mode. Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> --- Documentation/devicetree/bindings/pci/ti-pci.txt | 37 ++ 1 file changed, 30 insertions(+), 7 deletions(-) diff --git a/Documentation/devicetree/bi

[PATCH 33/37] tools: PCI: Add a userspace tool to test PCI endpoint

2017-01-12 Thread Kishon Vijay Abraham I
Add a userspace tool to invoke the ioctls exposed by the PCI endpoint test driver to perform various PCI tests. Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> --- tools/pci/pcitest.c | 186 +++ 1 file changed, 186 insertions(+) creat

[PATCH 30/37] dt-bindings: PCI: dra7xx: Add dt bindings to enable legacy mode

2017-01-12 Thread Kishon Vijay Abraham I
Update device tree binding documentation of TI's dra7xx PCI controller to include property for enabling legacy mode. Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> --- Documentation/devicetree/bindings/pci/ti-pci.txt |4 1 file changed, 4 insertions(+) diff --git a/Documen

[PATCH 17/37] Documentation: PCI: Guide to use pci endpoint configfs

2017-01-12 Thread Kishon Vijay Abraham I
Add Documentation to help users use pci endpoint to configure pci endpoint function and to bind the endpoint function with endpoint controller. Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> --- Documentation/PCI/00-INDEX |2 + Documentation/PCI/endpoi

[PATCH 03/37] PCI: dwc: dra7xx: Populate cpu_addr_fixup ops

2017-01-12 Thread Kishon Vijay Abraham I
Populate cpu_addr_fixup ops to extract the least 28 bits of the corresponding cpu address. Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> --- drivers/pci/dwc/pci-dra7xx.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/drivers/pci/dwc/pci-dra7

[PATCH 16/37] PCI: endpoint: Introduce configfs entry for configuring EP functions

2017-01-12 Thread Kishon Vijay Abraham I
Introduce a new configfs entry to configure the EP function (like configuring the standard configuration header entries) and to bind the EP function with EP controller. Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> --- drivers/pci/endpoint/Kconfig |4 +- drivers/pci/en

[PATCH 21/37] PCI: dwc: Modify dbi accessors to take dbi_base as argument

2017-01-12 Thread Kishon Vijay Abraham I
-by: Kishon Vijay Abraham I <kis...@ti.com> --- drivers/pci/dwc/pci-dra7xx.c | 10 +++-- drivers/pci/dwc/pci-exynos.c | 10 +++-- drivers/pci/dwc/pci-imx6.c | 67 drivers/pci/dwc/pci-keystone-dw.c | 15 --- drivers/p

[PATCH 04/37] PCI: dwc: designware: Move the register defines to designware header file

2017-01-12 Thread Kishon Vijay Abraham I
No functional change. Move the register defines and other macros from pcie-designware.c to pcie-designware.h. This is in preparation to split the pcie-designware.c file into designware core file and host specific file. While at that also fix a checkpatch warning. Signed-off-by: Kishon Vijay

[PATCH 06/37] PCI: dwc: Rename cfg_read/cfg_write to read/write

2017-01-12 Thread Kishon Vijay Abraham I
<jingooh...@gmail.com> Cc: Murali Karicheri <m-kariche...@ti.com> Cc: Joao Pinto <joao.pi...@synopsys.com> Cc: Stanimir Varbanov <svarba...@mm-sol.com> Cc: Pratyush Anand <pratyush.an...@gmail.com> Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> --- driv

[PATCH 01/37] PCI: dwc: dra7xx: Group all host related setup in add_pcie_port

2017-01-12 Thread Kishon Vijay Abraham I
nt support is added, all the endpoint related setup can be added in a separate function. Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> --- drivers/pci/dwc/pci-dra7xx.c | 13 ++--- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/drivers/pci/dwc/pci-dra7xx.c b/dri

[PATCH 26/37] PCI: dwc: dra7xx: Facilitate wrapper and msi interrupts to be enabled independently

2017-01-12 Thread Kishon Vijay Abraham I
doesn't have to enable msi_interrupts. Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> --- drivers/pci/dwc/pci-dra7xx.c | 24 ++-- 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/drivers/pci/dwc/pci-dra7xx.c b/drivers/pci/dwc/pci-dra7xx.c index 8

[PATCH 27/37] PCI: dwc: dra7xx: Add EP mode support

2017-01-12 Thread Kishon Vijay Abraham I
The PCIe controller integrated in dra7xx SoCs is capable of operating in endpoint mode. Add endpoint mode support to dra7xx driver. Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> --- drivers/pci/dwc/Kconfig | 31 +- drivers/pci/dwc/Makefile |4 +- drive

[PATCH 07/37] PCI: dwc: designware: Get device pointer at the start of dw_pcie_host_init

2017-01-12 Thread Kishon Vijay Abraham I
No functional change. Get device pointer at the beginning of dw_pcie_host_init instead of getting it all over dw_pcie_host_init. This is in preparation for splitting struct pcie_port into host and core structures (Once split pcie_port will not have device pointer). Signed-off-by: Kishon Vijay

[PATCH 23/37] PCI: dwc: Add *ops* to start and stop pcie link

2017-01-12 Thread Kishon Vijay Abraham I
Add start_link and stop_link ops in dw_pcie_ops to start or stop the link. This will be used by endpoint functions to start the link once the setup has been done. Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> --- drivers/pci/dwc/pcie-designware.h |2 ++ 1 file changed, 2 inse

Re: [PATCH 36/37] ARM: DRA7: clockdomain: Change the CLKTRCTRL of CM_PCIE_CLKSTCTRL to SW_WKUP

2017-01-15 Thread Kishon Vijay Abraham I
Hi Tony, On Friday 13 January 2017 10:45 PM, Tony Lindgren wrote: > * Kishon Vijay Abraham I <kis...@ti.com> [170112 02:35]: >> The PCIe programming sequence in TRM suggests CLKSTCTRL of PCIe should >> be set to SW_WKUP. There are no issues when CLKSTCTRL is set to HW_AUTO &

Re: [PATCH 11/37] PCI: dwc: Split pcie-designware.c into host and core files

2017-01-15 Thread Kishon Vijay Abraham I
Hi Joao, On Friday 13 January 2017 10:19 PM, Joao Pinto wrote: > Às 10:26 AM de 1/12/2017, Kishon Vijay Abraham I escreveu: >> Split pcie-designware.c into pcie-designware-host.c that contains >> the host specific parts of the driver and pcie-designware.c that >> contains t

Re: [PATCH 12/37] PCI: dwc: Create a new config symbol to enable pci dwc host

2017-01-15 Thread Kishon Vijay Abraham I
Hi Joao, On Friday 13 January 2017 11:20 PM, Joao Pinto wrote: > Hi Kishon, > > Às 10:26 AM de 1/12/2017, Kishon Vijay Abraham I escreveu: >> Now that pci designware host has a separate file, create a new >> config symbol to select the host only driver. This is in pre

Re: [PATCH 09/37] PCI: dwc: designware: Parse *num-lanes* property in dw_pcie_setup_rc

2017-01-15 Thread Kishon Vijay Abraham I
Hi, On Friday 13 January 2017 10:43 PM, Joao Pinto wrote: > Hi, > > Às 10:25 AM de 1/12/2017, Kishon Vijay Abraham I escreveu: >> *num-lanes* dt property is parsed in dw_pcie_host_init. However >> *num-lanes* property is applicable to both root complex mode and >> end

Re: [PATCH 16/37] PCI: endpoint: Introduce configfs entry for configuring EP functions

2017-01-15 Thread Kishon Vijay Abraham I
Hi Christoph, On Friday 13 January 2017 11:36 PM, Christoph Hellwig wrote: > Hi Kishon, > > a couple comments on the configfs layout based on my experiments with > your previous drop to implement a NVMe device using it. Thanks for trying it out! > > I don't think most of these configfs files

Re: [PATCH v4 15/23] dt-bindings: PCI: dra7xx: Add dt bindings to enable unaligned access

2017-03-22 Thread Kishon Vijay Abraham I
Hi Rob, On Tuesday 21 March 2017 03:13 AM, Rob Herring wrote: > On Mon, Mar 13, 2017 at 07:52:51PM +0530, Kishon Vijay Abraham I wrote: >> Update device tree binding documentation of TI's dra7xx PCI >> controller to include property for enabling unaligned mem access. >> >

Re: [PATCH v4 14/23] PCI: dwc: dra7xx: Workaround for errata id i870

2017-03-22 Thread Kishon Vijay Abraham I
On Tuesday 21 March 2017 03:18 AM, Rob Herring wrote: > On Mon, Mar 13, 2017 at 07:52:50PM +0530, Kishon Vijay Abraham I wrote: >> According to errata i870, access to the PCIe slave port >> that are not 32-bit aligned will result in incorrect mapping >> to TLP Address a

[PATCH v5 04/24] Documentation: PCI: Guide to use pci endpoint configfs

2017-03-27 Thread Kishon Vijay Abraham I
Add Documentation to help users use pci endpoint to configure pci endpoint function and to bind the endpoint function with endpoint controller. Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> --- Documentation/PCI/00-INDEX | 2 + Documentation/PCI/endpoi

[PATCH v5 05/24] PCI: endpoint: Create configfs entry for EPC device and EPF driver

2017-03-27 Thread Kishon Vijay Abraham I
Invoke API's provided by pci-ep-cfs to create configfs entry for every EPC device and EPF driver to help users in creating EPF device and binding the EPF device to the EPC device. Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> --- drivers/pci/endpoint/pci-epc-core.c | 4 drive

[GIT PULL] PCI: Support for configurable PCI endpoint

2017-03-27 Thread Kishon Vijay Abraham I
ed in EP mode *) Add a PCI endpoint *test* function driver and corresponding host driver Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> -------- Kishon Vijay Abraham I (24): PCI: endpoint: Add EP core layer to enable E

[PATCH v5 18/24] misc: Add host side pci driver for pci test function device

2017-03-27 Thread Kishon Vijay Abraham I
Add PCI endpoint test driver that can verify base address register, legacy interrupt/MSI interrupt and read/write/copy buffers between host and device. The corresponding pci-epf-test function driver should be used on the EP side. Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> --- d

[PATCH v5 16/24] dt-bindings: PCI: dra7xx: Add dt bindings to enable unaligned access

2017-03-27 Thread Kishon Vijay Abraham I
Update device tree binding documentation of TI's dra7xx PCI controller to include property for enabling unaligned mem access. Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> --- Documentation/devicetree/bindings/pci/ti-pci.txt | 5 + 1 file changed, 5 insertions(+) diff

[PATCH v5 21/24] tools: PCI: Add sample test script to invoke pcitest

2017-03-27 Thread Kishon Vijay Abraham I
Add a simple test script that invokes the pcitest userspace tool to perform all the PCI endpoint tests (BAR tests, interrupt tests, read tests, write tests and copy tests). Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> --- tools/pci/pcitest.s

[PATCH v5 19/24] Documentation: misc-devices: Add Documentation for pci-endpoint-test driver

2017-03-27 Thread Kishon Vijay Abraham I
Add Documentation for pci-endpoint-test driver. Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> --- Documentation/misc-devices/pci-endpoint-test.txt | 35 1 file changed, 35 insertions(+) create mode 100644 Documentation/misc-devices/pci-endpoint-test.txt

[PATCH v5 17/24] PCI: Add device IDs for DRA74x and DRA72x

2017-03-27 Thread Kishon Vijay Abraham I
Add device IDs for DRA74x and DRA72x devices. These devices have configurable PCI endpoint. Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> --- include/linux/pci_ids.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/pci_ids.h b/include/linux/pci_ids.h index a4f77f

[PATCH v5 22/24] Documentation: PCI: Add userguide for PCI endpoint test function

2017-03-27 Thread Kishon Vijay Abraham I
Add documentation to help users use pci-epf-test function driver and pci_endpoint_test host driver for testing PCI. Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> --- Documentation/PCI/00-INDEX| 2 + Documentation/PCI/endpoint/pci-test-howto.txt

  1   2   3   >