* [PATCH v3 0/2] irqchip: Kconfig: Add module support for TI inta/intr
@ 2024-10-16 9:41 Guillaume La Roque
2024-10-16 9:41 ` [PATCH v3 1/2] irqchip: Kconfig: module build support for the TI interrupt router driver Guillaume La Roque
2024-10-16 9:41 ` [PATCH v3 2/2] irqchip: Kconfig: Added module build support for the TI interrupt aggregator Guillaume La Roque
0 siblings, 2 replies; 10+ messages in thread
From: Guillaume La Roque @ 2024-10-16 9:41 UTC (permalink / raw)
To: Catalin Marinas, Will Deacon, Thomas Gleixner, Nishanth Menon,
Tero Kristo, Santosh Shilimkar
Cc: linux-arm-kernel, linux-kernel, vishalm, Mattijs Korpershoek,
Kevin Hilman, Guillaume La Roque, Nicolas Frayer
Added module support for TI interrupt aggregator and interrupt router
drivers. Default value for both drivers is ARCH_K3 and the interrupt
aggregator depends on ARCH_K3 as it contains 64 bit only ops.
Tested allmodconfig builds with ARCH=arm and ARCH=arm64.
Changes in v3:
- Add MODULE_LICENSE in drivers
Changes in v2:
- Added depends on ARCH_K3 for the interrupt aggregator driver as it
uses
64 bit ops
Signed-off-by: Guillaume La Roque <glaroque@baylibre.com>
---
Nicolas Frayer (2):
irqchip: Kconfig: module build support for the TI interrupt router driver
irqchip: Kconfig: Added module build support for the TI interrupt aggregator
arch/arm64/Kconfig.platforms | 2 --
drivers/irqchip/Kconfig | 8 +++++---
drivers/irqchip/irq-ti-sci-inta.c | 1 +
drivers/irqchip/irq-ti-sci-intr.c | 1 +
4 files changed, 7 insertions(+), 5 deletions(-)
---
base-commit: 2f87d0916ce0d2925cedbc9e8f5d6291ba2ac7b2
change-id: 20241016-timodules-174770215dd8
Best regards,
--
Guillaume La Roque <glaroque@baylibre.com>
^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH v3 1/2] irqchip: Kconfig: module build support for the TI interrupt router driver
2024-10-16 9:41 [PATCH v3 0/2] irqchip: Kconfig: Add module support for TI inta/intr Guillaume La Roque
@ 2024-10-16 9:41 ` Guillaume La Roque
2024-10-16 13:37 ` Andrew Davis
2024-10-16 16:38 ` Thomas Gleixner
2024-10-16 9:41 ` [PATCH v3 2/2] irqchip: Kconfig: Added module build support for the TI interrupt aggregator Guillaume La Roque
1 sibling, 2 replies; 10+ messages in thread
From: Guillaume La Roque @ 2024-10-16 9:41 UTC (permalink / raw)
To: Catalin Marinas, Will Deacon, Thomas Gleixner, Nishanth Menon,
Tero Kristo, Santosh Shilimkar
Cc: linux-arm-kernel, linux-kernel, vishalm, Mattijs Korpershoek,
Kevin Hilman, Guillaume La Roque, Nicolas Frayer
From: Nicolas Frayer <nfrayer@baylibre.com>
Added module build support in Kconfig for the TI SCI interrupt router
driver
Signed-off-by: Nicolas Frayer <nfrayer@baylibre.com>
Signed-off-by: Guillaume La Roque <glaroque@baylibre.com>
---
arch/arm64/Kconfig.platforms | 1 -
drivers/irqchip/Kconfig | 3 ++-
drivers/irqchip/irq-ti-sci-intr.c | 1 +
3 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms
index 6c6d11536b42..393845a3ae5c 100644
--- a/arch/arm64/Kconfig.platforms
+++ b/arch/arm64/Kconfig.platforms
@@ -135,7 +135,6 @@ config ARCH_K3
select SOC_TI
select TI_MESSAGE_MANAGER
select TI_SCI_PROTOCOL
- select TI_SCI_INTR_IRQCHIP
select TI_SCI_INTA_IRQCHIP
select TI_K3_SOCINFO
help
diff --git a/drivers/irqchip/Kconfig b/drivers/irqchip/Kconfig
index 341cd9ca5a05..a958731404e9 100644
--- a/drivers/irqchip/Kconfig
+++ b/drivers/irqchip/Kconfig
@@ -533,9 +533,10 @@ config LS1X_IRQ
Support for the Loongson-1 platform Interrupt Controller.
config TI_SCI_INTR_IRQCHIP
- bool
+ tristate "TI SCI INTR Interrupt Controller"
depends on TI_SCI_PROTOCOL
select IRQ_DOMAIN_HIERARCHY
+ default ARCH_K3
help
This enables the irqchip driver support for K3 Interrupt router
over TI System Control Interface available on some new TI's SoCs.
diff --git a/drivers/irqchip/irq-ti-sci-intr.c b/drivers/irqchip/irq-ti-sci-intr.c
index c027cd9e4a69..b49a73106c69 100644
--- a/drivers/irqchip/irq-ti-sci-intr.c
+++ b/drivers/irqchip/irq-ti-sci-intr.c
@@ -303,3 +303,4 @@ module_platform_driver(ti_sci_intr_irq_domain_driver);
MODULE_AUTHOR("Lokesh Vutla <lokeshvutla@ticom>");
MODULE_DESCRIPTION("K3 Interrupt Router driver over TI SCI protocol");
+MODULE_LICENSE("GPL");
--
2.34.1
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH v3 2/2] irqchip: Kconfig: Added module build support for the TI interrupt aggregator
2024-10-16 9:41 [PATCH v3 0/2] irqchip: Kconfig: Add module support for TI inta/intr Guillaume La Roque
2024-10-16 9:41 ` [PATCH v3 1/2] irqchip: Kconfig: module build support for the TI interrupt router driver Guillaume La Roque
@ 2024-10-16 9:41 ` Guillaume La Roque
2024-10-16 13:48 ` Andrew Davis
1 sibling, 1 reply; 10+ messages in thread
From: Guillaume La Roque @ 2024-10-16 9:41 UTC (permalink / raw)
To: Catalin Marinas, Will Deacon, Thomas Gleixner, Nishanth Menon,
Tero Kristo, Santosh Shilimkar
Cc: linux-arm-kernel, linux-kernel, vishalm, Mattijs Korpershoek,
Kevin Hilman, Guillaume La Roque, Nicolas Frayer
From: Nicolas Frayer <nfrayer@baylibre.com>
Added module build support in Kconfig for the TI SCI interrupt aggregator
driver. The driver's default build is built-in and it also depends on
ARCH_K3 as the driver uses some 64 bit ops and should only be built
for 64 bit platforms.
Signed-off-by: Nicolas Frayer <nfrayer@baylibre.com>
Signed-off-by: Guillaume La Roque <glaroque@baylibre.com>
---
arch/arm64/Kconfig.platforms | 1 -
drivers/irqchip/Kconfig | 5 +++--
drivers/irqchip/irq-ti-sci-inta.c | 1 +
3 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms
index 393845a3ae5c..9dea47decfbd 100644
--- a/arch/arm64/Kconfig.platforms
+++ b/arch/arm64/Kconfig.platforms
@@ -135,7 +135,6 @@ config ARCH_K3
select SOC_TI
select TI_MESSAGE_MANAGER
select TI_SCI_PROTOCOL
- select TI_SCI_INTA_IRQCHIP
select TI_K3_SOCINFO
help
This enables support for Texas Instruments' K3 multicore SoC
diff --git a/drivers/irqchip/Kconfig b/drivers/irqchip/Kconfig
index a958731404e9..9646322345e4 100644
--- a/drivers/irqchip/Kconfig
+++ b/drivers/irqchip/Kconfig
@@ -544,10 +544,11 @@ config TI_SCI_INTR_IRQCHIP
TI System Controller, say Y here. Otherwise, say N.
config TI_SCI_INTA_IRQCHIP
- bool
- depends on TI_SCI_PROTOCOL
+ tristate "TI SCI INTA Interrupt Controller"
+ depends on ARCH_K3 && TI_SCI_PROTOCOL
select IRQ_DOMAIN_HIERARCHY
select TI_SCI_INTA_MSI_DOMAIN
+ default ARCH_K3
help
This enables the irqchip driver support for K3 Interrupt aggregator
over TI System Control Interface available on some new TI's SoCs.
diff --git a/drivers/irqchip/irq-ti-sci-inta.c b/drivers/irqchip/irq-ti-sci-inta.c
index b83f5cbab123..a887efba262c 100644
--- a/drivers/irqchip/irq-ti-sci-inta.c
+++ b/drivers/irqchip/irq-ti-sci-inta.c
@@ -743,3 +743,4 @@ module_platform_driver(ti_sci_inta_irq_domain_driver);
MODULE_AUTHOR("Lokesh Vutla <lokeshvutla@ti.com>");
MODULE_DESCRIPTION("K3 Interrupt Aggregator driver over TI SCI protocol");
+MODULE_LICENSE("GPL");
--
2.34.1
^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: [PATCH v3 1/2] irqchip: Kconfig: module build support for the TI interrupt router driver
2024-10-16 9:41 ` [PATCH v3 1/2] irqchip: Kconfig: module build support for the TI interrupt router driver Guillaume La Roque
@ 2024-10-16 13:37 ` Andrew Davis
2024-10-16 14:18 ` Guillaume LA ROQUE
2024-10-16 16:38 ` Thomas Gleixner
1 sibling, 1 reply; 10+ messages in thread
From: Andrew Davis @ 2024-10-16 13:37 UTC (permalink / raw)
To: Guillaume La Roque, Catalin Marinas, Will Deacon, Thomas Gleixner,
Nishanth Menon, Tero Kristo, Santosh Shilimkar
Cc: linux-arm-kernel, linux-kernel, vishalm, Mattijs Korpershoek,
Kevin Hilman, Nicolas Frayer
On 10/16/24 4:41 AM, Guillaume La Roque wrote:
> From: Nicolas Frayer <nfrayer@baylibre.com>
>
> Added module build support in Kconfig for the TI SCI interrupt router
> driver
>
> Signed-off-by: Nicolas Frayer <nfrayer@baylibre.com>
> Signed-off-by: Guillaume La Roque <glaroque@baylibre.com>
> ---
> arch/arm64/Kconfig.platforms | 1 -
> drivers/irqchip/Kconfig | 3 ++-
> drivers/irqchip/irq-ti-sci-intr.c | 1 +
> 3 files changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms
> index 6c6d11536b42..393845a3ae5c 100644
> --- a/arch/arm64/Kconfig.platforms
> +++ b/arch/arm64/Kconfig.platforms
> @@ -135,7 +135,6 @@ config ARCH_K3
> select SOC_TI
> select TI_MESSAGE_MANAGER
> select TI_SCI_PROTOCOL
> - select TI_SCI_INTR_IRQCHIP
> select TI_SCI_INTA_IRQCHIP
> select TI_K3_SOCINFO
> help
> diff --git a/drivers/irqchip/Kconfig b/drivers/irqchip/Kconfig
> index 341cd9ca5a05..a958731404e9 100644
> --- a/drivers/irqchip/Kconfig
> +++ b/drivers/irqchip/Kconfig
> @@ -533,9 +533,10 @@ config LS1X_IRQ
> Support for the Loongson-1 platform Interrupt Controller.
>
> config TI_SCI_INTR_IRQCHIP
> - bool
> + tristate "TI SCI INTR Interrupt Controller"
Although not needed, might be good to gate this on ARCH_K3
as it only makes sense to add when K3 is an enabled platform.
Then add on compile test support:
depends on ARCH_K3 || COMPILE_TEST
Andrew
> depends on TI_SCI_PROTOCOL
> select IRQ_DOMAIN_HIERARCHY
> + default ARCH_K3
> help
> This enables the irqchip driver support for K3 Interrupt router
> over TI System Control Interface available on some new TI's SoCs.
> diff --git a/drivers/irqchip/irq-ti-sci-intr.c b/drivers/irqchip/irq-ti-sci-intr.c
> index c027cd9e4a69..b49a73106c69 100644
> --- a/drivers/irqchip/irq-ti-sci-intr.c
> +++ b/drivers/irqchip/irq-ti-sci-intr.c
> @@ -303,3 +303,4 @@ module_platform_driver(ti_sci_intr_irq_domain_driver);
>
> MODULE_AUTHOR("Lokesh Vutla <lokeshvutla@ticom>");
> MODULE_DESCRIPTION("K3 Interrupt Router driver over TI SCI protocol");
> +MODULE_LICENSE("GPL");
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH v3 2/2] irqchip: Kconfig: Added module build support for the TI interrupt aggregator
2024-10-16 9:41 ` [PATCH v3 2/2] irqchip: Kconfig: Added module build support for the TI interrupt aggregator Guillaume La Roque
@ 2024-10-16 13:48 ` Andrew Davis
2024-10-18 8:01 ` Guillaume LA ROQUE
0 siblings, 1 reply; 10+ messages in thread
From: Andrew Davis @ 2024-10-16 13:48 UTC (permalink / raw)
To: Guillaume La Roque, Catalin Marinas, Will Deacon, Thomas Gleixner,
Nishanth Menon, Tero Kristo, Santosh Shilimkar
Cc: linux-arm-kernel, linux-kernel, vishalm, Mattijs Korpershoek,
Kevin Hilman, Nicolas Frayer
On 10/16/24 4:41 AM, Guillaume La Roque wrote:
> From: Nicolas Frayer <nfrayer@baylibre.com>
>
> Added module build support in Kconfig for the TI SCI interrupt aggregator
> driver. The driver's default build is built-in and it also depends on
> ARCH_K3 as the driver uses some 64 bit ops and should only be built
> for 64 bit platforms.
>
> Signed-off-by: Nicolas Frayer <nfrayer@baylibre.com>
> Signed-off-by: Guillaume La Roque <glaroque@baylibre.com>
> ---
> arch/arm64/Kconfig.platforms | 1 -
> drivers/irqchip/Kconfig | 5 +++--
> drivers/irqchip/irq-ti-sci-inta.c | 1 +
> 3 files changed, 4 insertions(+), 3 deletions(-)
>
> diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms
> index 393845a3ae5c..9dea47decfbd 100644
> --- a/arch/arm64/Kconfig.platforms
> +++ b/arch/arm64/Kconfig.platforms
> @@ -135,7 +135,6 @@ config ARCH_K3
> select SOC_TI
> select TI_MESSAGE_MANAGER
> select TI_SCI_PROTOCOL
> - select TI_SCI_INTA_IRQCHIP
> select TI_K3_SOCINFO
> help
> This enables support for Texas Instruments' K3 multicore SoC
> diff --git a/drivers/irqchip/Kconfig b/drivers/irqchip/Kconfig
> index a958731404e9..9646322345e4 100644
> --- a/drivers/irqchip/Kconfig
> +++ b/drivers/irqchip/Kconfig
> @@ -544,10 +544,11 @@ config TI_SCI_INTR_IRQCHIP
> TI System Controller, say Y here. Otherwise, say N.
>
> config TI_SCI_INTA_IRQCHIP
> - bool
> - depends on TI_SCI_PROTOCOL
> + tristate "TI SCI INTA Interrupt Controller"
> + depends on ARCH_K3 && TI_SCI_PROTOCOL
You can still compile test, just gate it on 64BIT (or ARM64 if those
64bit ops are only available on ARM64).
depends on ARCH_K3 || (COMPILE_TEST && ARM64)
BTW, the last time this was posted the feedback was that if this
was compiled as a module we might have issues with dependent drivers
not having this IRQ ready as it may be loaded later. I think this
would only cause probe defers if the drivers are well behaving, but
something to double check.
Andrew
> select IRQ_DOMAIN_HIERARCHY
> select TI_SCI_INTA_MSI_DOMAIN
> + default ARCH_K3
> help
> This enables the irqchip driver support for K3 Interrupt aggregator
> over TI System Control Interface available on some new TI's SoCs.
> diff --git a/drivers/irqchip/irq-ti-sci-inta.c b/drivers/irqchip/irq-ti-sci-inta.c
> index b83f5cbab123..a887efba262c 100644
> --- a/drivers/irqchip/irq-ti-sci-inta.c
> +++ b/drivers/irqchip/irq-ti-sci-inta.c
> @@ -743,3 +743,4 @@ module_platform_driver(ti_sci_inta_irq_domain_driver);
>
> MODULE_AUTHOR("Lokesh Vutla <lokeshvutla@ti.com>");
> MODULE_DESCRIPTION("K3 Interrupt Aggregator driver over TI SCI protocol");
> +MODULE_LICENSE("GPL");
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH v3 1/2] irqchip: Kconfig: module build support for the TI interrupt router driver
2024-10-16 13:37 ` Andrew Davis
@ 2024-10-16 14:18 ` Guillaume LA ROQUE
2024-10-16 14:26 ` Andrew Davis
0 siblings, 1 reply; 10+ messages in thread
From: Guillaume LA ROQUE @ 2024-10-16 14:18 UTC (permalink / raw)
To: Andrew Davis, Catalin Marinas, Will Deacon, Thomas Gleixner,
Nishanth Menon, Tero Kristo, Santosh Shilimkar
Cc: linux-arm-kernel, linux-kernel, vishalm, Mattijs Korpershoek,
Kevin Hilman, Nicolas Frayer
Hi Andrew,
Le 16/10/2024 à 15:37, Andrew Davis a écrit :
> On 10/16/24 4:41 AM, Guillaume La Roque wrote:
>> From: Nicolas Frayer <nfrayer@baylibre.com>
>>
>> Added module build support in Kconfig for the TI SCI interrupt router
>> driver
>>
>> Signed-off-by: Nicolas Frayer <nfrayer@baylibre.com>
>> Signed-off-by: Guillaume La Roque <glaroque@baylibre.com>
>> ---
>> arch/arm64/Kconfig.platforms | 1 -
>> drivers/irqchip/Kconfig | 3 ++-
>> drivers/irqchip/irq-ti-sci-intr.c | 1 +
>> 3 files changed, 3 insertions(+), 2 deletions(-)
>>
>> diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms
>> index 6c6d11536b42..393845a3ae5c 100644
>> --- a/arch/arm64/Kconfig.platforms
>> +++ b/arch/arm64/Kconfig.platforms
>> @@ -135,7 +135,6 @@ config ARCH_K3
>> select SOC_TI
>> select TI_MESSAGE_MANAGER
>> select TI_SCI_PROTOCOL
>> - select TI_SCI_INTR_IRQCHIP
>> select TI_SCI_INTA_IRQCHIP
>> select TI_K3_SOCINFO
>> help
>> diff --git a/drivers/irqchip/Kconfig b/drivers/irqchip/Kconfig
>> index 341cd9ca5a05..a958731404e9 100644
>> --- a/drivers/irqchip/Kconfig
>> +++ b/drivers/irqchip/Kconfig
>> @@ -533,9 +533,10 @@ config LS1X_IRQ
>> Support for the Loongson-1 platform Interrupt Controller.
>> config TI_SCI_INTR_IRQCHIP
>> - bool
>> + tristate "TI SCI INTR Interrupt Controller"
>
> Although not needed, might be good to gate this on ARCH_K3
> as it only makes sense to add when K3 is an enabled platform.
Actually if ARCH_K3 is not selected it's not possible to enable TI
IRQCHIP driver from menuconfig so depends look good or do you want to
have when i select irqchip driver ARCH_K3 is enabled ?
> Then add on compile test support:
>
> depends on ARCH_K3 || COMPILE_TEST
>
i will add in v4.
thanks for review
Guillaume
> Andrew
>
>> depends on TI_SCI_PROTOCOL
>> select IRQ_DOMAIN_HIERARCHY
>> + default ARCH_K3
>> help
>> This enables the irqchip driver support for K3 Interrupt router
>> over TI System Control Interface available on some new TI's
>> SoCs.
>> diff --git a/drivers/irqchip/irq-ti-sci-intr.c
>> b/drivers/irqchip/irq-ti-sci-intr.c
>> index c027cd9e4a69..b49a73106c69 100644
>> --- a/drivers/irqchip/irq-ti-sci-intr.c
>> +++ b/drivers/irqchip/irq-ti-sci-intr.c
>> @@ -303,3 +303,4 @@
>> module_platform_driver(ti_sci_intr_irq_domain_driver);
>> MODULE_AUTHOR("Lokesh Vutla <lokeshvutla@ticom>");
>> MODULE_DESCRIPTION("K3 Interrupt Router driver over TI SCI protocol");
>> +MODULE_LICENSE("GPL");
>>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH v3 1/2] irqchip: Kconfig: module build support for the TI interrupt router driver
2024-10-16 14:18 ` Guillaume LA ROQUE
@ 2024-10-16 14:26 ` Andrew Davis
0 siblings, 0 replies; 10+ messages in thread
From: Andrew Davis @ 2024-10-16 14:26 UTC (permalink / raw)
To: Guillaume LA ROQUE, Catalin Marinas, Will Deacon, Thomas Gleixner,
Nishanth Menon, Tero Kristo, Santosh Shilimkar
Cc: linux-arm-kernel, linux-kernel, vishalm, Mattijs Korpershoek,
Kevin Hilman, Nicolas Frayer
On 10/16/24 9:18 AM, Guillaume LA ROQUE wrote:
> Hi Andrew,
>
> Le 16/10/2024 à 15:37, Andrew Davis a écrit :
>> On 10/16/24 4:41 AM, Guillaume La Roque wrote:
>>> From: Nicolas Frayer <nfrayer@baylibre.com>
>>>
>>> Added module build support in Kconfig for the TI SCI interrupt router
>>> driver
>>>
>>> Signed-off-by: Nicolas Frayer <nfrayer@baylibre.com>
>>> Signed-off-by: Guillaume La Roque <glaroque@baylibre.com>
>>> ---
>>> arch/arm64/Kconfig.platforms | 1 -
>>> drivers/irqchip/Kconfig | 3 ++-
>>> drivers/irqchip/irq-ti-sci-intr.c | 1 +
>>> 3 files changed, 3 insertions(+), 2 deletions(-)
>>>
>>> diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms
>>> index 6c6d11536b42..393845a3ae5c 100644
>>> --- a/arch/arm64/Kconfig.platforms
>>> +++ b/arch/arm64/Kconfig.platforms
>>> @@ -135,7 +135,6 @@ config ARCH_K3
>>> select SOC_TI
>>> select TI_MESSAGE_MANAGER
>>> select TI_SCI_PROTOCOL
>>> - select TI_SCI_INTR_IRQCHIP
>>> select TI_SCI_INTA_IRQCHIP
>>> select TI_K3_SOCINFO
>>> help
>>> diff --git a/drivers/irqchip/Kconfig b/drivers/irqchip/Kconfig
>>> index 341cd9ca5a05..a958731404e9 100644
>>> --- a/drivers/irqchip/Kconfig
>>> +++ b/drivers/irqchip/Kconfig
>>> @@ -533,9 +533,10 @@ config LS1X_IRQ
>>> Support for the Loongson-1 platform Interrupt Controller.
>>> config TI_SCI_INTR_IRQCHIP
>>> - bool
>>> + tristate "TI SCI INTR Interrupt Controller"
>>
>> Although not needed, might be good to gate this on ARCH_K3
>> as it only makes sense to add when K3 is an enabled platform.
>
> Actually if ARCH_K3 is not selected it's not possible to enable TI IRQCHIP driver from menuconfig so depends look good or do you want to have when i select irqchip driver ARCH_K3 is enabled ?
>
Just adding the below "depends on" is fine, no need to select
or change anything else.
Andrew
>> Then add on compile test support:
>>
>> depends on ARCH_K3 || COMPILE_TEST
>>
> i will add in v4.
>
> thanks for review
>
> Guillaume
>> Andrew
>>
>>> depends on TI_SCI_PROTOCOL
>>> select IRQ_DOMAIN_HIERARCHY
>>> + default ARCH_K3
>>> help
>>> This enables the irqchip driver support for K3 Interrupt router
>>> over TI System Control Interface available on some new TI's SoCs.
>>> diff --git a/drivers/irqchip/irq-ti-sci-intr.c b/drivers/irqchip/irq-ti-sci-intr.c
>>> index c027cd9e4a69..b49a73106c69 100644
>>> --- a/drivers/irqchip/irq-ti-sci-intr.c
>>> +++ b/drivers/irqchip/irq-ti-sci-intr.c
>>> @@ -303,3 +303,4 @@ module_platform_driver(ti_sci_intr_irq_domain_driver);
>>> MODULE_AUTHOR("Lokesh Vutla <lokeshvutla@ticom>");
>>> MODULE_DESCRIPTION("K3 Interrupt Router driver over TI SCI protocol");
>>> +MODULE_LICENSE("GPL");
>>>
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH v3 1/2] irqchip: Kconfig: module build support for the TI interrupt router driver
2024-10-16 9:41 ` [PATCH v3 1/2] irqchip: Kconfig: module build support for the TI interrupt router driver Guillaume La Roque
2024-10-16 13:37 ` Andrew Davis
@ 2024-10-16 16:38 ` Thomas Gleixner
2024-10-16 18:32 ` Guillaume LA ROQUE
1 sibling, 1 reply; 10+ messages in thread
From: Thomas Gleixner @ 2024-10-16 16:38 UTC (permalink / raw)
To: Guillaume La Roque, Catalin Marinas, Will Deacon, Nishanth Menon,
Tero Kristo, Santosh Shilimkar
Cc: linux-arm-kernel, linux-kernel, vishalm, Mattijs Korpershoek,
Kevin Hilman, Guillaume La Roque, Nicolas Frayer
On Wed, Oct 16 2024 at 11:41, Guillaume La Roque wrote:
> From: Nicolas Frayer <nfrayer@baylibre.com>
irqchip: Kconfig: is not a valid prefix.
This is about the TI SCI router, so this wants to use the
irqchip/ti-whatever prefix.
>
> Added module build support in Kconfig for the TI SCI interrupt router
> driver
Added?
This wants to be 'Add ...'
You fail to explain why it is valid to build this as a module, i.e. you
did the analysis that there is no dependency on this before modules can
be loaded.
> MODULE_AUTHOR("Lokesh Vutla <lokeshvutla@ticom>");
> MODULE_DESCRIPTION("K3 Interrupt Router driver over TI SCI protocol");
> +MODULE_LICENSE("GPL");
This change is not mentioned in the change log.
Thanks,
tglx
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH v3 1/2] irqchip: Kconfig: module build support for the TI interrupt router driver
2024-10-16 16:38 ` Thomas Gleixner
@ 2024-10-16 18:32 ` Guillaume LA ROQUE
0 siblings, 0 replies; 10+ messages in thread
From: Guillaume LA ROQUE @ 2024-10-16 18:32 UTC (permalink / raw)
To: Thomas Gleixner, Catalin Marinas, Will Deacon, Nishanth Menon,
Tero Kristo, Santosh Shilimkar
Cc: linux-arm-kernel, linux-kernel, vishalm, Mattijs Korpershoek,
Kevin Hilman, Nicolas Frayer
Hi ,
Le 16/10/2024 à 18:38, Thomas Gleixner a écrit :
> On Wed, Oct 16 2024 at 11:41, Guillaume La Roque wrote:
>> From: Nicolas Frayer <nfrayer@baylibre.com>
> irqchip: Kconfig: is not a valid prefix.
>
> This is about the TI SCI router, so this wants to use the
> irqchip/ti-whatever prefix.
>
>> Added module build support in Kconfig for the TI SCI interrupt router
>> driver
> Added?
>
> This wants to be 'Add ...'
>
> You fail to explain why it is valid to build this as a module, i.e. you
> did the analysis that there is no dependency on this before modules can
> be loaded.
i will rewrite commit message and title .
>
>> MODULE_AUTHOR("Lokesh Vutla <lokeshvutla@ticom>");
>> MODULE_DESCRIPTION("K3 Interrupt Router driver over TI SCI protocol");
>> +MODULE_LICENSE("GPL");
> This change is not mentioned in the change log.
it's mandatory for have possiblity to build in module so for me no
really needed to explain this but i will add why in commit message.
thanks for review.
Guillaume
>
> Thanks,
>
> tglx
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH v3 2/2] irqchip: Kconfig: Added module build support for the TI interrupt aggregator
2024-10-16 13:48 ` Andrew Davis
@ 2024-10-18 8:01 ` Guillaume LA ROQUE
0 siblings, 0 replies; 10+ messages in thread
From: Guillaume LA ROQUE @ 2024-10-18 8:01 UTC (permalink / raw)
To: Andrew Davis, Catalin Marinas, Will Deacon, Thomas Gleixner,
Nishanth Menon, Tero Kristo, Santosh Shilimkar
Cc: linux-arm-kernel, linux-kernel, vishalm, Mattijs Korpershoek,
Kevin Hilman, Nicolas Frayer
Le 16/10/2024 à 15:48, Andrew Davis a écrit :
> On 10/16/24 4:41 AM, Guillaume La Roque wrote:
>> From: Nicolas Frayer <nfrayer@baylibre.com>
>>
>> Added module build support in Kconfig for the TI SCI interrupt
>> aggregator
>> driver. The driver's default build is built-in and it also depends on
>> ARCH_K3 as the driver uses some 64 bit ops and should only be built
>> for 64 bit platforms.
>>
>> Signed-off-by: Nicolas Frayer <nfrayer@baylibre.com>
>> Signed-off-by: Guillaume La Roque <glaroque@baylibre.com>
>> ---
>> arch/arm64/Kconfig.platforms | 1 -
>> drivers/irqchip/Kconfig | 5 +++--
>> drivers/irqchip/irq-ti-sci-inta.c | 1 +
>> 3 files changed, 4 insertions(+), 3 deletions(-)
>>
>> diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms
>> index 393845a3ae5c..9dea47decfbd 100644
>> --- a/arch/arm64/Kconfig.platforms
>> +++ b/arch/arm64/Kconfig.platforms
>> @@ -135,7 +135,6 @@ config ARCH_K3
>> select SOC_TI
>> select TI_MESSAGE_MANAGER
>> select TI_SCI_PROTOCOL
>> - select TI_SCI_INTA_IRQCHIP
>> select TI_K3_SOCINFO
>> help
>> This enables support for Texas Instruments' K3 multicore SoC
>> diff --git a/drivers/irqchip/Kconfig b/drivers/irqchip/Kconfig
>> index a958731404e9..9646322345e4 100644
>> --- a/drivers/irqchip/Kconfig
>> +++ b/drivers/irqchip/Kconfig
>> @@ -544,10 +544,11 @@ config TI_SCI_INTR_IRQCHIP
>> TI System Controller, say Y here. Otherwise, say N.
>> config TI_SCI_INTA_IRQCHIP
>> - bool
>> - depends on TI_SCI_PROTOCOL
>> + tristate "TI SCI INTA Interrupt Controller"
>> + depends on ARCH_K3 && TI_SCI_PROTOCOL
>
> You can still compile test, just gate it on 64BIT (or ARM64 if those
> 64bit ops are only available on ARM64).
>
> depends on ARCH_K3 || (COMPILE_TEST && ARM64)
>
> BTW, the last time this was posted the feedback was that if this
> was compiled as a module we might have issues with dependent drivers
> not having this IRQ ready as it may be loaded later. I think this
> would only cause probe defers if the drivers are well behaving, but
> something to double check.
we already use this patch in android kernel mainline and 6.6 without
issue to load all drivers.
i will try with your yocto sdk before post v4 to confirm it's still OK.
Guillaume
>
> Andrew
>
>> select IRQ_DOMAIN_HIERARCHY
>> select TI_SCI_INTA_MSI_DOMAIN
>> + default ARCH_K3
>> help
>> This enables the irqchip driver support for K3 Interrupt
>> aggregator
>> over TI System Control Interface available on some new TI's
>> SoCs.
>> diff --git a/drivers/irqchip/irq-ti-sci-inta.c
>> b/drivers/irqchip/irq-ti-sci-inta.c
>> index b83f5cbab123..a887efba262c 100644
>> --- a/drivers/irqchip/irq-ti-sci-inta.c
>> +++ b/drivers/irqchip/irq-ti-sci-inta.c
>> @@ -743,3 +743,4 @@
>> module_platform_driver(ti_sci_inta_irq_domain_driver);
>> MODULE_AUTHOR("Lokesh Vutla <lokeshvutla@ti.com>");
>> MODULE_DESCRIPTION("K3 Interrupt Aggregator driver over TI SCI
>> protocol");
>> +MODULE_LICENSE("GPL");
>>
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2024-10-18 8:06 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-16 9:41 [PATCH v3 0/2] irqchip: Kconfig: Add module support for TI inta/intr Guillaume La Roque
2024-10-16 9:41 ` [PATCH v3 1/2] irqchip: Kconfig: module build support for the TI interrupt router driver Guillaume La Roque
2024-10-16 13:37 ` Andrew Davis
2024-10-16 14:18 ` Guillaume LA ROQUE
2024-10-16 14:26 ` Andrew Davis
2024-10-16 16:38 ` Thomas Gleixner
2024-10-16 18:32 ` Guillaume LA ROQUE
2024-10-16 9:41 ` [PATCH v3 2/2] irqchip: Kconfig: Added module build support for the TI interrupt aggregator Guillaume La Roque
2024-10-16 13:48 ` Andrew Davis
2024-10-18 8:01 ` Guillaume LA ROQUE
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).