[PATCH v6 11/12] irqchip: ti-sci-inta: Add msi domain support

2019-04-09 Thread Lokesh Vutla
Add a msi domain that is child to the INTA domain. Clients uses the INTA msi bus layer to allocate irqs in this msi domain. Signed-off-by: Lokesh Vutla --- Changes since v5: - New patch. Seperated out msi domain part from the intial patch. Marc, I feel this is too simple

[PATCH v6 05/12] firmware: ti_sci: Add helper apis to manage resources

2019-04-09 Thread Lokesh Vutla
Each resource with in the device can be uniquely identified as defined by TISCI. Since this is generic across the devices, resource allocation also can be made generic instead of each client driver handling the resource. So add helper apis to manage the resource. Signed-off-by: Lokesh Vutla

[PATCH v6 01/12] firmware: ti_sci: Add support to get TISCI handle using of_phandle

2019-04-09 Thread Lokesh Vutla
be used by TISCI users to get TISCI handle using of phandle property. Signed-off-by: Grygorii Strashko Signed-off-by: Lokesh Vutla --- Changes since v5: - None drivers/firmware/ti_sci.c | 83 ++ include/linux/soc/ti/ti_sci_protocol.h | 17 ++ 2 files

[PATCH v6 06/12] dt-bindings: irqchip: Introduce TISCI Interrupt router bindings

2019-04-09 Thread Lokesh Vutla
Add the DT binding documentation for Interrupt router driver. Signed-off-by: Lokesh Vutla --- Changes since v5: - Introduced a new property for specifying router trigger type. - Dropped the trigger type from interrupt cells property. Marc, Firmware change to not differentiate INTA

[PATCH v6 07/12] irqchip: ti-sci-intr: Add support for Interrupt Router driver

2019-04-09 Thread Lokesh Vutla
of the interrupt router registers can only be done by a system co-processor and the driver needs to send a message to this co processor over TISCI protocol. Add support for Interrupt Router driver over TISCI protocol. Signed-off-by: Lokesh Vutla --- Changes since v5: - Updated to latest bindings

[PATCH v6 03/12] firmware: ti_sci: Add support for IRQ management

2019-04-09 Thread Lokesh Vutla
TISCI abstracts the handling of IRQ routes where interrupt sources are not directly connected to host interrupt controller. Add support for the set of TISCI commands for requesting and releasing IRQs. Signed-off-by: Lokesh Vutla --- Changes since v5: - None drivers/firmware/ti_sci.c

[PATCH v6 04/12] firmware: ti_sci: Add RM mapping table for am654

2019-04-09 Thread Lokesh Vutla
-by: Peter Ujfalusi Signed-off-by: Lokesh Vutla --- Changes since v4: - None .../bindings/arm/keystone/ti,sci.txt | 3 ++- .../bindings/arm/keystone/ti,sci.txt | 3 ++- drivers/firmware/ti_sci.c | 23 +++ 2 files changed, 25 insertions(+),

[PATCH v6 02/12] firmware: ti_sci: Add support for RM core ops

2019-04-09 Thread Lokesh Vutla
for TISCI commands to get resource ranges. Signed-off-by: Lokesh Vutla Signed-off-by: Peter Ujfalusi --- Changes since v5: - None drivers/firmware/ti_sci.c | 170 + drivers/firmware/ti_sci.h | 42 ++ include/linux/soc/ti/ti_sci_protocol.h | 27

[PATCH v6 00/12] Add support for TISCI Interrupt controller drivers

2019-04-09 Thread Lokesh Vutla
IRQ configuration - Interrupt Router(INTR) driver. - Interrupt Aggregator(INTA) driver. - Interrupt Aggregator MSI bus layer. Changes since v5: - Each patch has respective changes mentioned. Grygorii Strashko (1): firmware: ti_sci: Add support to get TISCI handle using of_phandle Lokesh Vutla

Re: [PATCH 2/2] ARM: dts: dra7: Separate AM57 dtsi files

2019-04-06 Thread Lokesh Vutla
; USB3 x > USB4 x > ATL x > VCP x > MLB x > ISS x > PRU-ICSS1 x > PRU-ICSS2 x > > This patch only deals with disabling USB3, USB4 and ATL for > AM57 variants. > > Signed-off-by: Ro

Re: [PATCH v5 06/10] irqchip: ti-sci-intr: Add support for Interrupt Router driver

2019-03-19 Thread Lokesh Vutla
Hi Marc, [..snip..] > >> suggested to investigate the x86 two phase allocation mechanism for the >> INTA driver. > > Sorry, Ill try to explore this path. Any pointers to the doc/code will be > really > helpful :) I have been trying hard to get some information on this for past few days but I

Re: [PATCH v5 05/10] dt-bindings: irqchip: Introduce TISCI Interrupt router bindings

2019-02-20 Thread Lokesh Vutla
Hi Tony, On 2/20/2019 10:06 PM, Tony Lindgren wrote: > Hi, > > Some more info on chained irq vs mux below that might > help. > > * Tony Lindgren [190219 15:36]: >> * Lokesh Vutla [190219 08:51]: >>> With this can you tell me how can we not have a device-tr

Re: [PATCH v5 06/10] irqchip: ti-sci-intr: Add support for Interrupt Router driver

2019-02-20 Thread Lokesh Vutla
Hi Marc, On 18/02/19 9:22 PM, Marc Zyngier wrote: > On Tue, 12 Feb 2019 13:12:33 +0530 > Lokesh Vutla wrote: > >> Texas Instruments' K3 generation SoCs has an IP Interrupt Router >> that does allows for redirection of input interrupts to host >> interrupt controll

Re: [PATCH v5 05/10] dt-bindings: irqchip: Introduce TISCI Interrupt router bindings

2019-02-19 Thread Lokesh Vutla
Hi Tony, On 19/02/19 11:26 PM, Tony Lindgren wrote: > * Tony Lindgren [190219 17:11]: >> * Lokesh Vutla [190219 16:19]: >>> yes. How different is this from any of the above mentioned drivers using >>> firmware specific ids. Like sci pm domain[1] driver util

Re: [PATCH v5 05/10] dt-bindings: irqchip: Introduce TISCI Interrupt router bindings

2019-02-19 Thread Lokesh Vutla
On 2/19/2019 9:05 PM, Tony Lindgren wrote: > * Lokesh Vutla [190219 08:51]: >> Hi Tony, >> >> On 18/02/19 8:02 PM, Tony Lindgren wrote: >>> * Lokesh Vutla [190216 03:30]: >>>> On 2/15/2019 9:46 PM, Tony Lindgren wrote: >>>>>

Re: [PATCH v5 05/10] dt-bindings: irqchip: Introduce TISCI Interrupt router bindings

2019-02-19 Thread Lokesh Vutla
Hi Tony, On 18/02/19 8:02 PM, Tony Lindgren wrote: > * Lokesh Vutla [190216 03:30]: >> On 2/15/2019 9:46 PM, Tony Lindgren wrote: >>> The dts node for the interrupt controller should describe a >>> proper Linux device, that is with reg entries and so on. >&g

Re: [PATCH v5 05/10] dt-bindings: irqchip: Introduce TISCI Interrupt router bindings

2019-02-18 Thread Lokesh Vutla
Hi Marc, On 18/02/19 8:42 PM, Marc Zyngier wrote: > On Tue, 12 Feb 2019 13:12:32 +0530 > Lokesh Vutla wrote: > >> Add the DT binding documentation for Interrupt router driver. >> >> Signed-off-by: Lokesh Vutla >> --- >> Changes since v4: >>

Re: [PATCH v5 00/10] Add support for TISCI irqchip drivers

2019-02-15 Thread Lokesh Vutla
Hi Marc, On 2/12/2019 1:12 PM, Lokesh Vutla wrote: > TI AM65x SoC based on K3 architecture introduced support for Events > which are message based interrupts with minimal latency. These events > are not compatible with regular interrupts and are valid only through > an event tr

Re: [PATCH v5 05/10] dt-bindings: irqchip: Introduce TISCI Interrupt router bindings

2019-02-15 Thread Lokesh Vutla
Hi Rob, On 2/12/2019 1:12 PM, Lokesh Vutla wrote: > Add the DT binding documentation for Interrupt router driver. > > Signed-off-by: Lokesh Vutla > --- > Changes since v4: > - None > > .../interrupt-controller/ti,sci-intr.txt | 85 ++

Re: [PATCH v5 05/10] dt-bindings: irqchip: Introduce TISCI Interrupt router bindings

2019-02-15 Thread Lokesh Vutla
Hi Tony, On 2/15/2019 9:46 PM, Tony Lindgren wrote: > Hi, > > * Lokesh Vutla [190214 18:03]: >> On 2/14/2019 11:16 PM, Tony Lindgren wrote: >>> But I'd rather have a proper hardware based phandle + index >>> type mapping in the dts if possible though

Re: [PATCH v5 05/10] dt-bindings: irqchip: Introduce TISCI Interrupt router bindings

2019-02-14 Thread Lokesh Vutla
Hi Tony, On 2/14/2019 11:16 PM, Tony Lindgren wrote: > * Lokesh Vutla [190214 17:32]: >> Hi Tony, >> Please do not snip the on going discussion. >> >> On 2/14/2019 9:11 PM, Tony Lindgren wrote: >>> * Lokesh Vutla [190214 08:39]: >>>> IMHO,

Re: [PATCH v5 05/10] dt-bindings: irqchip: Introduce TISCI Interrupt router bindings

2019-02-14 Thread Lokesh Vutla
Hi Tony, Please do not snip the on going discussion. On 2/14/2019 9:11 PM, Tony Lindgren wrote: > * Lokesh Vutla [190214 08:39]: >> IMHO, device ids are something which can be used in DT. There are many other >> things like the interrupt ranges etc.. which are discover

Re: [PATCH v5 05/10] dt-bindings: irqchip: Introduce TISCI Interrupt router bindings

2019-02-14 Thread Lokesh Vutla
On 13/02/19 9:02 PM, Tony Lindgren wrote: > * Lokesh Vutla [190213 04:23]: >> Hi Tony, >> >> On 12/02/19 10:00 PM, Tony Lindgren wrote: >>> Hi, >>> >>> * Lokesh Vutla [190212 07:43]: >>>> +The Interrupt Router (INTR) module provides

Re: [PATCH v5 05/10] dt-bindings: irqchip: Introduce TISCI Interrupt router bindings

2019-02-14 Thread Lokesh Vutla
Hi Tony, On 13/02/19 8:56 PM, Tony Lindgren wrote: > * Lokesh Vutla [190213 04:26]: >> Hi Tony, >> >> On 12/02/19 9:52 PM, Tony Lindgren wrote: >>> Hi, >>> >>> * Lokesh Vutla [190212 07:43]: >>>> +Example: + +The fol

Re: [PATCH v5 05/10] dt-bindings: irqchip: Introduce TISCI Interrupt router bindings

2019-02-12 Thread Lokesh Vutla
Hi Tony, On 12/02/19 9:52 PM, Tony Lindgren wrote: > Hi, > > * Lokesh Vutla [190212 07:43]: >> +Example: >> + >> +The following example demonstrates both interrupt router node and the >> consumer >> +node(main gpio) on the AM654 SoC: &g

Re: [PATCH v5 05/10] dt-bindings: irqchip: Introduce TISCI Interrupt router bindings

2019-02-12 Thread Lokesh Vutla
Hi Tony, On 12/02/19 10:00 PM, Tony Lindgren wrote: > Hi, > > * Lokesh Vutla [190212 07:43]: >> +The Interrupt Router (INTR) module provides a mechanism to route M >> +interrupt inputs to N interrupt outputs, where all M inputs are selectable >> +to be driven per N ou

[PATCH v5 08/10] irqchip: ti-sci-inta: Add support for Interrupt Aggregator driver

2019-02-11 Thread Lokesh Vutla
dynamically. - INTA domain that is parent to the MSI domain that manages the interrupt resources. Signed-off-by: Lokesh Vutla Signed-off-by: Peter Ujfalusi --- Changes since v4: - Allocate the INTA output interrupts during probe. MAINTAINERS | 1 + drivers/irqchip/Kconfig

[PATCH v5 07/10] dt-bindings: irqchip: Introduce TISCI Interrupt Aggregator bindings

2019-02-11 Thread Lokesh Vutla
Add the DT binding documentation for Interrupt Aggregator driver. Signed-off-by: Lokesh Vutla --- Changes sine v4: - None .../interrupt-controller/ti,sci-inta.txt | 74 +++ MAINTAINERS | 1 + 2 files changed, 75 insertions(+) create mode

[PATCH v5 06/10] irqchip: ti-sci-intr: Add support for Interrupt Router driver

2019-02-11 Thread Lokesh Vutla
of the interrupt router registers can only be done by a system co-processor and the driver needs to send a message to this co processor over TISCI protocol. Add support for Interrupt Router driver over TISCI protocol. Signed-off-by: Lokesh Vutla --- Changes since v4: - Moved the ti_sci irq resource handling

[PATCH v5 10/10] soc: ti: am6: Enable interrupt controller drivers

2019-02-11 Thread Lokesh Vutla
Select all the TISCI dependent interrupt controller drivers for AM6 SoC. Suggested-by: Marc Zyngier Signed-off-by: Lokesh Vutla --- Changes since v4: - None drivers/soc/ti/Kconfig | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/soc/ti/Kconfig b/drivers/soc/ti/Kconfig index

[PATCH v5 05/10] dt-bindings: irqchip: Introduce TISCI Interrupt router bindings

2019-02-11 Thread Lokesh Vutla
Add the DT binding documentation for Interrupt router driver. Signed-off-by: Lokesh Vutla --- Changes since v4: - None .../interrupt-controller/ti,sci-intr.txt | 85 +++ MAINTAINERS | 1 + 2 files changed, 86 insertions(+) create mode

[PATCH v5 09/10] soc: ti: Add MSI domain support for K3 Interrupt Aggregator

2019-02-11 Thread Lokesh Vutla
Interrupt Aggregator MSI bus + * + * Copyright (C) 2018-2019 Texas Instruments Incorporated - http://www.ti.com/ + * Lokesh Vutla + */ + +#include +#include +#include +#include +#include +#include +#include + +static void inta_msi_write_msg(struct irq_data *data, struct msi_msg *msg

[PATCH v5 03/10] firmware: ti_sci: Add support for IRQ management

2019-02-11 Thread Lokesh Vutla
TISCI abstracts the handling of IRQ routes where interrupt sources are not directly connected to host interrupt controller. Add support for the set of TISCI commands for requesting and releasing IRQs. Signed-off-by: Lokesh Vutla --- Changes since v4: - Updated to the latest sysfw APIs where

[PATCH v5 00/10] Add support for TISCI irqchip drivers

2019-02-11 Thread Lokesh Vutla
ror with allmodconfig Grygorii Strashko (1): firmware: ti_sci: Add support to get TISCI handle using of_phandle Lokesh Vutla (8): firmware: ti_sci: Add support for RM core ops firmware: ti_sci: Add support for IRQ management dt-bindings: irqchip: Introduce TISCI Interrupt router bindi

[PATCH v5 02/10] firmware: ti_sci: Add support for RM core ops

2019-02-11 Thread Lokesh Vutla
for TISCI commands to get resource ranges. Signed-off-by: Lokesh Vutla Signed-off-by: Peter Ujfalusi --- Changes since v4: - None drivers/firmware/ti_sci.c | 170 + drivers/firmware/ti_sci.h | 42 ++ include/linux/soc/ti/ti_sci_protocol.h | 27

[PATCH v5 04/10] firmware: ti_sci: Add RM mapping table for am654

2019-02-11 Thread Lokesh Vutla
-by: Peter Ujfalusi Signed-off-by: Lokesh Vutla --- Changes since v4: - None .../bindings/arm/keystone/ti,sci.txt | 3 ++- drivers/firmware/ti_sci.c | 23 +++ 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/ar

[PATCH v5 01/10] firmware: ti_sci: Add support to get TISCI handle using of_phandle

2019-02-11 Thread Lokesh Vutla
be used by TISCI users to get TISCI handle using of phandle property. Signed-off-by: Grygorii Strashko Signed-off-by: Lokesh Vutla --- Changes since v4: - None drivers/firmware/ti_sci.c | 83 ++ include/linux/soc/ti/ti_sci_protocol.h | 17 ++ 2 files

Re: [RFC PATCH v4 08/13] genirq/msi: Add support for allocating single MSI for a device

2019-02-05 Thread Lokesh Vutla
Hi Marc, On 04/02/19 4:03 PM, Marc Zyngier wrote: > On 24/01/2019 10:19, Lokesh Vutla wrote: >> Hi Marc, >> Sorry for the delayed response. Just back from vacation. >> >> On 17/01/19 12:00 AM, Marc Zyngier wrote: >>> On 27/12/2018 06:13, Lokesh

Re: [PATCH v4 07/13] irqchip: ti-sci-intr: Add support for Interrupt Router driver

2019-01-24 Thread Lokesh Vutla
Hi Marc, On 16/01/19 10:46 PM, Marc Zyngier wrote: > [Still in the process of sorting out my email - don't ask] > > On 27/12/2018 06:13, Lokesh Vutla wrote: >> Texas Instruments' K3 generation SoCs has an IP Interrupt Router >> that does allows for redirection of inp

Re: [RFC PATCH v4 08/13] genirq/msi: Add support for allocating single MSI for a device

2019-01-24 Thread Lokesh Vutla
Hi Marc, Sorry for the delayed response. Just back from vacation. On 17/01/19 12:00 AM, Marc Zyngier wrote: > On 27/12/2018 06:13, Lokesh Vutla wrote: >> Previously all msi for a device are allocated in one go >> by calling msi_domain_alloc_irq() from a bus la

Re: [PATCH v4 00/13] Add support for TISCI irqchip drivers

2019-01-11 Thread Lokesh Vutla
Hi Marc, On 27/12/18 11:38 AM, Lokesh Vutla wrote: > TI AM65x SoC based on K3 architecture, introduced support for Events > which are message based interrupts with minimal latency. These events > are not compatible with regular interrupts and are valid only through > an event tr

Re: [RFC PATCH v4 12/13] irqchip: ti-sci-inta: Add support for Interrupt Aggregator driver

2019-01-02 Thread Lokesh Vutla
Hi Peter, On 02/01/19 5:19 PM, Peter Ujfalusi wrote: On 27/12/2018 8.13, Lokesh Vutla wrote: Texas Instruments' K3 generation SoCs has an IP Interrupt Aggregator which is an interrupt controller that does the following: - Converts events to interrupts that can be understood

[PATCH v4 06/13] dt-bindings: irqchip: Introduce TISCI Interrupt router bindings

2018-12-26 Thread Lokesh Vutla
Add the DT binding documentation for Interrupt router driver. Signed-off-by: Lokesh Vutla --- .../interrupt-controller/ti,sci-intr.txt | 85 +++ MAINTAINERS | 1 + 2 files changed, 86 insertions(+) create mode 100644 Documentation

[RFC PATCH v4 09/13] genirq/msi: Add support for .msi_unprepare callback

2018-12-26 Thread Lokesh Vutla
Add an optional callback .msi_unprepare to struct msi_domain_ops. This is used to clear any effect that is done by .msi_prepare callback. Signed-off-by: Lokesh Vutla --- include/linux/msi.h | 3 +++ kernel/irq/msi.c| 10 ++ 2 files changed, 13 insertions(+) diff --git a/include

[RFC PATCH v4 10/13] soc: ti: Add MSI domain support for K3 Interrupt Aggregator

2018-12-26 Thread Lokesh Vutla
controller to MSI domain. - inta_msi_domain_free_group_irqs() frees the grouped irqs. Signed-off-by: Lokesh Vutla --- - May be the same functionaly can be included in platform msi. But I would like to get a feedback on the approach. drivers/soc/ti/Kconfig | 6 + drivers/soc/ti/Makefile

[RFC PATCH v4 12/13] irqchip: ti-sci-inta: Add support for Interrupt Aggregator driver

2018-12-26 Thread Lokesh Vutla
aggregator registers can only be done by a system co-processor and the driver needs to send a message to this co processor over TISCI protocol. Add support for Interrupt Aggregator driver over TISCI protocol. Signed-off-by: Lokesh Vutla Signed-off-by: Peter Ujfalusi --- MAINTAINERS

[PATCH v4 07/13] irqchip: ti-sci-intr: Add support for Interrupt Router driver

2018-12-26 Thread Lokesh Vutla
of the interrupt router registers can only be done by a system co-processor and the driver needs to send a message to this co processor over TISCI protocol. Add support for Interrupt Router driver over TISCI protocol. Signed-off-by: Lokesh Vutla --- MAINTAINERS | 1 + drivers

[RFC PATCH v4 11/13] dt-bindings: irqchip: Introduce TISCI Interrupt Aggregator bindings

2018-12-26 Thread Lokesh Vutla
Add the DT binding documentation for Interrupt Aggregator driver. Signed-off-by: Lokesh Vutla --- .../interrupt-controller/ti,sci-inta.txt | 74 +++ MAINTAINERS | 1 + 2 files changed, 75 insertions(+) create mode 100644 Documentation

[RFC PATCH v4 13/13] soc: ti: am6: Enable interrupt controller drivers

2018-12-26 Thread Lokesh Vutla
Select all the TISCI dependent interrupt controller drivers for AM6 SoC. Suggested-by: Marc Zyngier Signed-off-by: Lokesh Vutla --- drivers/soc/ti/Kconfig | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/soc/ti/Kconfig b/drivers/soc/ti/Kconfig index 7640490c2a6a..145b701a3d96

[RFC PATCH v4 08/13] genirq/msi: Add support for allocating single MSI for a device

2018-12-26 Thread Lokesh Vutla
. prepare and activate operations to be handled by bus layer calling msi_domain_alloc/free_irq() apis. Signed-off-by: Lokesh Vutla --- include/linux/msi.h | 3 +++ kernel/irq/msi.c| 62 + 2 files changed, 43 insertions(+), 22 deletions(-) diff --git

[PATCH v4 04/13] firmware: ti_sci: Add RM mapping table for am654

2018-12-26 Thread Lokesh Vutla
-by: Peter Ujfalusi Signed-off-by: Lokesh Vutla --- .../bindings/arm/keystone/ti,sci.txt | 3 ++- drivers/firmware/ti_sci.c | 23 +++ 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/arm/keystone/ti,

[PATCH v4 05/13] firmware: ti_sci: Add helper apis to manage resources

2018-12-26 Thread Lokesh Vutla
-by: Lokesh Vutla --- drivers/firmware/ti_sci.c | 126 + include/linux/soc/ti/ti_sci_protocol.h | 48 ++ 2 files changed, 174 insertions(+) diff --git a/drivers/firmware/ti_sci.c b/drivers/firmware/ti_sci.c index c2f0815edab6..b6804c214be9 100644

[PATCH v4 02/13] firmware: ti_sci: Add support for RM core ops

2018-12-26 Thread Lokesh Vutla
for TISCI commands to get resource ranges. Signed-off-by: Lokesh Vutla Signed-off-by: Peter Ujfalusi --- drivers/firmware/ti_sci.c | 170 + drivers/firmware/ti_sci.h | 42 ++ include/linux/soc/ti/ti_sci_protocol.h | 27 3 files changed, 239

[PATCH v4 01/13] firmware: ti_sci: Add support to get TISCI handle using of_phandle

2018-12-26 Thread Lokesh Vutla
be used by TISCI users to get TISCI handle using of phandle property. Signed-off-by: Grygorii Strashko Signed-off-by: Lokesh Vutla --- drivers/firmware/ti_sci.c | 83 ++ include/linux/soc/ti/ti_sci_protocol.h | 17 ++ 2 files changed, 100 insertions

[PATCH v4 03/13] firmware: ti_sci: Add support for IRQ management

2018-12-26 Thread Lokesh Vutla
TISCI abstracts the handling of IRQ routes where interrupt sources are not directly connected to interrupt controller. Add support for the set of TISCI commands for requesting and releasing IRQs. Signed-off-by: Lokesh Vutla --- drivers/firmware/ti_sci.c | 446

[PATCH v4 00/13] Add support for TISCI irqchip drivers

2018-12-26 Thread Lokesh Vutla
are: ti_sci: Add support to get TISCI handle using of_phandle Lokesh Vutla (11): firmware: ti_sci: Add support for RM core ops firmware: ti_sci: Add support for IRQ management firmware: ti_sci: Add helper apis to manage resources dt-bindings: irqchip: Introduce TISCI Interrupt router bindi

Re: [PATCH v3 06/13] dt-bindings: irqchip: Introduce TISCI Interrupt router bindings

2018-11-15 Thread Lokesh Vutla
Hi Rob, On 11/13/2018 11:43 AM, Lokesh Vutla wrote: > Hi Rob, > > On 12/11/18 11:30 PM, Rob Herring wrote: >> On Tue, Nov 06, 2018 at 02:10:58PM +0530, Lokesh Vutla wrote: >>> Add the DT binding documentation for Interrupt router driver. >>> >>> Signed

Re: [PATCH v3 06/13] dt-bindings: irqchip: Introduce TISCI Interrupt router bindings

2018-11-15 Thread Lokesh Vutla
Hi Rob, On 11/13/2018 11:43 AM, Lokesh Vutla wrote: > Hi Rob, > > On 12/11/18 11:30 PM, Rob Herring wrote: >> On Tue, Nov 06, 2018 at 02:10:58PM +0530, Lokesh Vutla wrote: >>> Add the DT binding documentation for Interrupt router driver. >>> >>> Signed

Re: [RFC PATCH v3 10/13] soc: ti: Add MSI domain support for K3 Interrupt Aggregator

2018-11-12 Thread Lokesh Vutla
Hi Marc, On 06/11/18 2:11 PM, Lokesh Vutla wrote: With the system coprocessor managing the range allocation of the inputs to Interrupt Aggregator, it is difficult to represent the device IRQs from DT. The suggestion is to use MSI in such cases where devices wants to allocate and group

Re: [RFC PATCH v3 10/13] soc: ti: Add MSI domain support for K3 Interrupt Aggregator

2018-11-12 Thread Lokesh Vutla
Hi Marc, On 06/11/18 2:11 PM, Lokesh Vutla wrote: With the system coprocessor managing the range allocation of the inputs to Interrupt Aggregator, it is difficult to represent the device IRQs from DT. The suggestion is to use MSI in such cases where devices wants to allocate and group

Re: [PATCH v3 06/13] dt-bindings: irqchip: Introduce TISCI Interrupt router bindings

2018-11-12 Thread Lokesh Vutla
Hi Rob, On 12/11/18 11:30 PM, Rob Herring wrote: On Tue, Nov 06, 2018 at 02:10:58PM +0530, Lokesh Vutla wrote: Add the DT binding documentation for Interrupt router driver. Signed-off-by: Lokesh Vutla --- Changes since v2: - Dropped interrupt-parent from reqired properties description

Re: [PATCH v3 06/13] dt-bindings: irqchip: Introduce TISCI Interrupt router bindings

2018-11-12 Thread Lokesh Vutla
Hi Rob, On 12/11/18 11:30 PM, Rob Herring wrote: On Tue, Nov 06, 2018 at 02:10:58PM +0530, Lokesh Vutla wrote: Add the DT binding documentation for Interrupt router driver. Signed-off-by: Lokesh Vutla --- Changes since v2: - Dropped interrupt-parent from reqired properties description

[RFC PATCH v3 09/13] genirq/msi: Add support for .msi_unprepare callback

2018-11-06 Thread Lokesh Vutla
Add an optional callback .msi_unprepare to struct msi_domain_ops. This is used to clear any effect that is done by .msi_prepare callback. Signed-off-by: Lokesh Vutla --- Changes since v2: - New patch include/linux/msi.h | 3 +++ kernel/irq/msi.c| 10 ++ 2 files changed, 13

[RFC PATCH v3 09/13] genirq/msi: Add support for .msi_unprepare callback

2018-11-06 Thread Lokesh Vutla
Add an optional callback .msi_unprepare to struct msi_domain_ops. This is used to clear any effect that is done by .msi_prepare callback. Signed-off-by: Lokesh Vutla --- Changes since v2: - New patch include/linux/msi.h | 3 +++ kernel/irq/msi.c| 10 ++ 2 files changed, 13

[RFC PATCH v3 11/13] dt-bindings: irqchip: Introduce TISCI Interrupt Aggregator bindings

2018-11-06 Thread Lokesh Vutla
Add the DT binding documentation for Interrupt Aggregator driver. Signed-off-by: Lokesh Vutla --- Changes since v2: - None .../interrupt-controller/ti,sci-inta.txt | 74 +++ MAINTAINERS | 1 + 2 files changed, 75 insertions(+) create

[RFC PATCH v3 11/13] dt-bindings: irqchip: Introduce TISCI Interrupt Aggregator bindings

2018-11-06 Thread Lokesh Vutla
Add the DT binding documentation for Interrupt Aggregator driver. Signed-off-by: Lokesh Vutla --- Changes since v2: - None .../interrupt-controller/ti,sci-inta.txt | 74 +++ MAINTAINERS | 1 + 2 files changed, 75 insertions(+) create

[PATCH v3 05/13] firmware: ti_sci: Add helper apis to manage resources

2018-11-06 Thread Lokesh Vutla
-by: Lokesh Vutla --- Changes since v2: - None drivers/firmware/ti_sci.c | 128 + include/linux/soc/ti/ti_sci_protocol.h | 48 ++ 2 files changed, 176 insertions(+) diff --git a/drivers/firmware/ti_sci.c b/drivers/firmware/ti_sci.c index c2f0815edab6

[PATCH v3 05/13] firmware: ti_sci: Add helper apis to manage resources

2018-11-06 Thread Lokesh Vutla
-by: Lokesh Vutla --- Changes since v2: - None drivers/firmware/ti_sci.c | 128 + include/linux/soc/ti/ti_sci_protocol.h | 48 ++ 2 files changed, 176 insertions(+) diff --git a/drivers/firmware/ti_sci.c b/drivers/firmware/ti_sci.c index c2f0815edab6

[PATCH v3 07/13] irqchip: ti-sci-intr: Add support for Interrupt Router driver

2018-11-06 Thread Lokesh Vutla
of the interrupt router registers can only be done by a system co-processor and the driver needs to send a message to this co processor over TISCI protocol. Add support for Interrupt Router driver over TISCI protocol. Signed-off-by: Lokesh Vutla --- Changes since v2: - Updated interrupt cells to 4 in order

[PATCH v3 07/13] irqchip: ti-sci-intr: Add support for Interrupt Router driver

2018-11-06 Thread Lokesh Vutla
of the interrupt router registers can only be done by a system co-processor and the driver needs to send a message to this co processor over TISCI protocol. Add support for Interrupt Router driver over TISCI protocol. Signed-off-by: Lokesh Vutla --- Changes since v2: - Updated interrupt cells to 4 in order

[RFC PATCH v3 12/13] irqchip: ti-sci-inta: Add support for Interrupt Aggregator driver

2018-11-06 Thread Lokesh Vutla
aggregator registers can only be done by a system co-processor and the driver needs to send a message to this co processor over TISCI protocol. Add support for Interrupt Aggregator driver over TISCI protocol. Signed-off-by: Lokesh Vutla Signed-off-by: Peter Ujfalusi --- Changes since v2: - Added

[RFC PATCH v3 12/13] irqchip: ti-sci-inta: Add support for Interrupt Aggregator driver

2018-11-06 Thread Lokesh Vutla
aggregator registers can only be done by a system co-processor and the driver needs to send a message to this co processor over TISCI protocol. Add support for Interrupt Aggregator driver over TISCI protocol. Signed-off-by: Lokesh Vutla Signed-off-by: Peter Ujfalusi --- Changes since v2: - Added

[PATCH v3 04/13] firmware: ti_sci: Add RM mapping table for am654

2018-11-06 Thread Lokesh Vutla
-by: Peter Ujfalusi Signed-off-by: Lokesh Vutla --- Changes since v2: - Added Reviewed-by tag .../bindings/arm/keystone/ti,sci.txt | 3 ++- drivers/firmware/ti_sci.c | 23 +++ 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/Documentation/

[RFC PATCH v3 13/13] soc: ti: am6: Enable interrupt controller drivers

2018-11-06 Thread Lokesh Vutla
Select all the TISCI dependent interrupt controller drivers for AM6 SoC. Suggested-by: Marc Zyngier Signed-off-by: Lokesh Vutla --- Changes since v2: - None drivers/soc/ti/Kconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/soc/ti/Kconfig b/drivers/soc/ti/Kconfig index

[PATCH v3 01/13] firmware: ti_sci: Add support to get TISCI handle using of_phandle

2018-11-06 Thread Lokesh Vutla
be used by TISCI users to get TISCI handle using of phandle property. Signed-off-by: Grygorii Strashko Signed-off-by: Lokesh Vutla --- Changes since v2: - None drivers/firmware/ti_sci.c | 83 ++ include/linux/soc/ti/ti_sci_protocol.h | 17 ++ 2 files

[PATCH v3 02/13] firmware: ti_sci: Add support for RM core ops

2018-11-06 Thread Lokesh Vutla
for TISCI commands to get resource ranges. Signed-off-by: Lokesh Vutla Signed-off-by: Peter Ujfalusi --- Changes since v2: - None drivers/firmware/ti_sci.c | 170 + drivers/firmware/ti_sci.h | 42 ++ include/linux/soc/ti/ti_sci_protocol.h | 27

[PATCH v3 03/13] firmware: ti_sci: Add support for IRQ management

2018-11-06 Thread Lokesh Vutla
TISCI abstracts the handling of IRQ routes where interrupt sources are not directly connected to interrupt controller. Add support for the set of TISCI commands for requesting and releasing IRQs. Signed-off-by: Lokesh Vutla --- Changes since v3: - None drivers/firmware/ti_sci.c

[PATCH v3 06/13] dt-bindings: irqchip: Introduce TISCI Interrupt router bindings

2018-11-06 Thread Lokesh Vutla
Add the DT binding documentation for Interrupt router driver. Signed-off-by: Lokesh Vutla --- Changes since v2: - Dropped interrupt-parent from reqired properties description - Updated the interrupt cells to 4. .../interrupt-controller/ti,sci-intr.txt | 84 +++ MAINTAINERS

[PATCH v3 04/13] firmware: ti_sci: Add RM mapping table for am654

2018-11-06 Thread Lokesh Vutla
-by: Peter Ujfalusi Signed-off-by: Lokesh Vutla --- Changes since v2: - Added Reviewed-by tag .../bindings/arm/keystone/ti,sci.txt | 3 ++- drivers/firmware/ti_sci.c | 23 +++ 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/Documentation/

[RFC PATCH v3 13/13] soc: ti: am6: Enable interrupt controller drivers

2018-11-06 Thread Lokesh Vutla
Select all the TISCI dependent interrupt controller drivers for AM6 SoC. Suggested-by: Marc Zyngier Signed-off-by: Lokesh Vutla --- Changes since v2: - None drivers/soc/ti/Kconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/soc/ti/Kconfig b/drivers/soc/ti/Kconfig index

[PATCH v3 01/13] firmware: ti_sci: Add support to get TISCI handle using of_phandle

2018-11-06 Thread Lokesh Vutla
be used by TISCI users to get TISCI handle using of phandle property. Signed-off-by: Grygorii Strashko Signed-off-by: Lokesh Vutla --- Changes since v2: - None drivers/firmware/ti_sci.c | 83 ++ include/linux/soc/ti/ti_sci_protocol.h | 17 ++ 2 files

[PATCH v3 02/13] firmware: ti_sci: Add support for RM core ops

2018-11-06 Thread Lokesh Vutla
for TISCI commands to get resource ranges. Signed-off-by: Lokesh Vutla Signed-off-by: Peter Ujfalusi --- Changes since v2: - None drivers/firmware/ti_sci.c | 170 + drivers/firmware/ti_sci.h | 42 ++ include/linux/soc/ti/ti_sci_protocol.h | 27

[PATCH v3 03/13] firmware: ti_sci: Add support for IRQ management

2018-11-06 Thread Lokesh Vutla
TISCI abstracts the handling of IRQ routes where interrupt sources are not directly connected to interrupt controller. Add support for the set of TISCI commands for requesting and releasing IRQs. Signed-off-by: Lokesh Vutla --- Changes since v3: - None drivers/firmware/ti_sci.c

[PATCH v3 06/13] dt-bindings: irqchip: Introduce TISCI Interrupt router bindings

2018-11-06 Thread Lokesh Vutla
Add the DT binding documentation for Interrupt router driver. Signed-off-by: Lokesh Vutla --- Changes since v2: - Dropped interrupt-parent from reqired properties description - Updated the interrupt cells to 4. .../interrupt-controller/ti,sci-intr.txt | 84 +++ MAINTAINERS

[RFC PATCH v3 08/13] genirq/msi: Add support for allocating single MSI for a device

2018-11-06 Thread Lokesh Vutla
. prepare and activate operations to be handled by bus layer calling msi_domain_alloc/free_irq() apis. Signed-off-by: Lokesh Vutla --- Changes since v2: - New patch include/linux/msi.h | 3 +++ kernel/irq/msi.c| 62 + 2 files changed, 43 insertions

[RFC PATCH v3 10/13] soc: ti: Add MSI domain support for K3 Interrupt Aggregator

2018-11-06 Thread Lokesh Vutla
interrupt controller to MSI domain. - inta_msi_domain_free_group_irqs() frees the grouped irqs. Signed-off-by: Lokesh Vutla --- - May be the same functionaly can be included in platform msi. But I would like to get a feedback on the approach. Changes since v1: - New patch drivers/soc/ti/Kconfig

[PATCH v3 00/13] Add support for TISCI irqchip drivers

2018-11-06 Thread Lokesh Vutla
respective changes. Changes since v1: - Consolidated both TISCI and irqchip drivers as suggested by Marc. - Each patch contains respective changes. Grygorii Strashko (1): firmware: ti_sci: Add support to get TISCI handle using of_phandle Lokesh Vutla (11): firmware: ti_sci: Add support for RM core

[RFC PATCH v3 08/13] genirq/msi: Add support for allocating single MSI for a device

2018-11-06 Thread Lokesh Vutla
. prepare and activate operations to be handled by bus layer calling msi_domain_alloc/free_irq() apis. Signed-off-by: Lokesh Vutla --- Changes since v2: - New patch include/linux/msi.h | 3 +++ kernel/irq/msi.c| 62 + 2 files changed, 43 insertions

[RFC PATCH v3 10/13] soc: ti: Add MSI domain support for K3 Interrupt Aggregator

2018-11-06 Thread Lokesh Vutla
interrupt controller to MSI domain. - inta_msi_domain_free_group_irqs() frees the grouped irqs. Signed-off-by: Lokesh Vutla --- - May be the same functionaly can be included in platform msi. But I would like to get a feedback on the approach. Changes since v1: - New patch drivers/soc/ti/Kconfig

[PATCH v3 00/13] Add support for TISCI irqchip drivers

2018-11-06 Thread Lokesh Vutla
respective changes. Changes since v1: - Consolidated both TISCI and irqchip drivers as suggested by Marc. - Each patch contains respective changes. Grygorii Strashko (1): firmware: ti_sci: Add support to get TISCI handle using of_phandle Lokesh Vutla (11): firmware: ti_sci: Add support for RM core

Re: [PATCH v2 09/10] irqchip: ti-sci-inta: Add support for Interrupt Aggregator driver

2018-11-05 Thread Lokesh Vutla
Hi Marc, On 11/5/2018 10:14 PM, Marc Zyngier wrote: > On 05/11/18 16:20, Lokesh Vutla wrote: >> Hi Marc, >> >> On Monday 05 November 2018 09:06 PM, Marc Zyngier wrote: >>> On 05/11/18 08:08, Lokesh Vutla wrote: >>>> Hi Marc, >>>> >&

Re: [PATCH v2 09/10] irqchip: ti-sci-inta: Add support for Interrupt Aggregator driver

2018-11-05 Thread Lokesh Vutla
Hi Marc, On 11/5/2018 10:14 PM, Marc Zyngier wrote: > On 05/11/18 16:20, Lokesh Vutla wrote: >> Hi Marc, >> >> On Monday 05 November 2018 09:06 PM, Marc Zyngier wrote: >>> On 05/11/18 08:08, Lokesh Vutla wrote: >>>> Hi Marc, >>>> >&

Re: [PATCH v2 09/10] irqchip: ti-sci-inta: Add support for Interrupt Aggregator driver

2018-11-05 Thread Lokesh Vutla
Hi Marc, On Monday 05 November 2018 09:06 PM, Marc Zyngier wrote: On 05/11/18 08:08, Lokesh Vutla wrote: Hi Marc, On Monday 29 October 2018 06:34 PM, Lokesh Vutla wrote: Hi Marc, On Sunday 28 October 2018 07:01 PM, Marc Zyngier wrote: Hi Lokesh, On Fri, 26 Oct 2018 21:19:41 +0100, Lokesh

Re: [PATCH v2 09/10] irqchip: ti-sci-inta: Add support for Interrupt Aggregator driver

2018-11-05 Thread Lokesh Vutla
Hi Marc, On Monday 05 November 2018 09:06 PM, Marc Zyngier wrote: On 05/11/18 08:08, Lokesh Vutla wrote: Hi Marc, On Monday 29 October 2018 06:34 PM, Lokesh Vutla wrote: Hi Marc, On Sunday 28 October 2018 07:01 PM, Marc Zyngier wrote: Hi Lokesh, On Fri, 26 Oct 2018 21:19:41 +0100, Lokesh

Re: [PATCH v2 09/10] irqchip: ti-sci-inta: Add support for Interrupt Aggregator driver

2018-11-05 Thread Lokesh Vutla
Hi Marc, On Monday 29 October 2018 06:34 PM, Lokesh Vutla wrote: Hi Marc, On Sunday 28 October 2018 07:01 PM, Marc Zyngier wrote: Hi Lokesh, On Fri, 26 Oct 2018 21:19:41 +0100, Lokesh Vutla wrote: Hi Marc, [..snip..] [...] +/** + * ti_sci_inta_register_event() - Register a event

Re: [PATCH v2 09/10] irqchip: ti-sci-inta: Add support for Interrupt Aggregator driver

2018-11-05 Thread Lokesh Vutla
Hi Marc, On Monday 29 October 2018 06:34 PM, Lokesh Vutla wrote: Hi Marc, On Sunday 28 October 2018 07:01 PM, Marc Zyngier wrote: Hi Lokesh, On Fri, 26 Oct 2018 21:19:41 +0100, Lokesh Vutla wrote: Hi Marc, [..snip..] [...] +/** + * ti_sci_inta_register_event() - Register a event

Re: [PATCH v2 09/10] irqchip: ti-sci-inta: Add support for Interrupt Aggregator driver

2018-10-29 Thread Lokesh Vutla
Hi Marc, On Sunday 28 October 2018 07:01 PM, Marc Zyngier wrote: Hi Lokesh, On Fri, 26 Oct 2018 21:19:41 +0100, Lokesh Vutla wrote: Hi Marc, [..snip..] [...] +/** + * ti_sci_inta_register_event() - Register a event to an interrupt aggregator + * @dev: Device pointer to source

Re: [PATCH v2 09/10] irqchip: ti-sci-inta: Add support for Interrupt Aggregator driver

2018-10-29 Thread Lokesh Vutla
Hi Marc, On Sunday 28 October 2018 07:01 PM, Marc Zyngier wrote: Hi Lokesh, On Fri, 26 Oct 2018 21:19:41 +0100, Lokesh Vutla wrote: Hi Marc, [..snip..] [...] +/** + * ti_sci_inta_register_event() - Register a event to an interrupt aggregator + * @dev: Device pointer to source

Re: [PATCH v2 09/10] irqchip: ti-sci-inta: Add support for Interrupt Aggregator driver

2018-10-26 Thread Lokesh Vutla
Hi Marc, [..snip..] [...] +/** + * ti_sci_inta_register_event() - Register a event to an interrupt aggregator + * @dev: Device pointer to source generating the event + * @src_id:TISCI device ID of the event source + * @src_index: Event source index within the device. + * @virq:

Re: [PATCH v2 09/10] irqchip: ti-sci-inta: Add support for Interrupt Aggregator driver

2018-10-26 Thread Lokesh Vutla
Hi Marc, [..snip..] [...] +/** + * ti_sci_inta_register_event() - Register a event to an interrupt aggregator + * @dev: Device pointer to source generating the event + * @src_id:TISCI device ID of the event source + * @src_index: Event source index within the device. + * @virq:

<    1   2   3   4   5   6   >