linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v4 0/2] irqchip: Kconfig: Add module support for TI inta/intr
@ 2024-12-24 19:36 Guillaume La Roque
  2024-12-24 19:36 ` [PATCH v4 1/2] irqchip/ti-sci-intr: add module build support Guillaume La Roque
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Guillaume La Roque @ 2024-12-24 19:36 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 v4:
- Rework commit message and title
- Add depends on in Kconfig frivers
- Link to v3: https://lore.kernel.org/r/20241016-timodules-v3-0-fa71091ade98@baylibre.com

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/ti-sci-intr: add module build support
      irqchip/ti-sci-inta : Add module build support

 arch/arm64/Kconfig.platforms      | 2 --
 drivers/irqchip/Kconfig           | 6 ++++--
 drivers/irqchip/irq-ti-sci-inta.c | 1 +
 drivers/irqchip/irq-ti-sci-intr.c | 1 +
 4 files changed, 6 insertions(+), 4 deletions(-)
---
base-commit: 8faabc041a001140564f718dabe37753e88b37fa
change-id: 20241016-timodules-174770215dd8

Best regards,
-- 
Guillaume La Roque <glaroque@baylibre.com>



^ permalink raw reply	[flat|nested] 6+ messages in thread

* [PATCH v4 1/2] irqchip/ti-sci-intr: add module build support
  2024-12-24 19:36 [PATCH v4 0/2] irqchip: Kconfig: Add module support for TI inta/intr Guillaume La Roque
@ 2024-12-24 19:36 ` Guillaume La Roque
  2024-12-24 19:36 ` [PATCH v4 2/2] irqchip/ti-sci-inta : Add " Guillaume La Roque
  2025-01-02 12:44 ` [PATCH v4 0/2] irqchip: Kconfig: Add module support for TI inta/intr Nishanth Menon
  2 siblings, 0 replies; 6+ messages in thread
From: Guillaume La Roque @ 2024-12-24 19:36 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>

Add module build support in Kconfig for the TI SCI interrupt router
driver.This driver depends on TI sci firmware driver which are aready
support module build.

Add MODULE_LICENSE which is mandatory to support module build.

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 370a9d2b6919..eda592ac9c8d 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 9bee02db1643..1099691c45d5 100644
--- a/drivers/irqchip/Kconfig
+++ b/drivers/irqchip/Kconfig
@@ -534,8 +534,9 @@ 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
+	depends on ARCH_K3 || COMPILE_TEST
 	select IRQ_DOMAIN_HIERARCHY
 	help
 	  This enables the irqchip driver support for K3 Interrupt router
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] 6+ messages in thread

* [PATCH v4 2/2] irqchip/ti-sci-inta : Add module build support
  2024-12-24 19:36 [PATCH v4 0/2] irqchip: Kconfig: Add module support for TI inta/intr Guillaume La Roque
  2024-12-24 19:36 ` [PATCH v4 1/2] irqchip/ti-sci-intr: add module build support Guillaume La Roque
@ 2024-12-24 19:36 ` Guillaume La Roque
  2025-01-02 12:44 ` [PATCH v4 0/2] irqchip: Kconfig: Add module support for TI inta/intr Nishanth Menon
  2 siblings, 0 replies; 6+ messages in thread
From: Guillaume La Roque @ 2024-12-24 19:36 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>

Add 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.

Add MODULE_LICENSE which is mandatory to support module build.

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-inta.c | 1 +
 3 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms
index eda592ac9c8d..02007256709e 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 1099691c45d5..be063bfb50c4 100644
--- a/drivers/irqchip/Kconfig
+++ b/drivers/irqchip/Kconfig
@@ -545,8 +545,9 @@ config TI_SCI_INTR_IRQCHIP
 	  TI System Controller, say Y here. Otherwise, say N.
 
 config TI_SCI_INTA_IRQCHIP
-	bool
+	tristate "TI SCI INTA Interrupt Controller"
 	depends on TI_SCI_PROTOCOL
+	depends on ARCH_K3 || (COMPILE_TEST && ARM64)
 	select IRQ_DOMAIN_HIERARCHY
 	select TI_SCI_INTA_MSI_DOMAIN
 	help
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] 6+ messages in thread

* Re: [PATCH v4 0/2] irqchip: Kconfig: Add module support for TI inta/intr
  2024-12-24 19:36 [PATCH v4 0/2] irqchip: Kconfig: Add module support for TI inta/intr Guillaume La Roque
  2024-12-24 19:36 ` [PATCH v4 1/2] irqchip/ti-sci-intr: add module build support Guillaume La Roque
  2024-12-24 19:36 ` [PATCH v4 2/2] irqchip/ti-sci-inta : Add " Guillaume La Roque
@ 2025-01-02 12:44 ` Nishanth Menon
  2025-01-02 13:09   ` Marc Zyngier
  2 siblings, 1 reply; 6+ messages in thread
From: Nishanth Menon @ 2025-01-02 12:44 UTC (permalink / raw)
  To: Guillaume La Roque, Marc Zyngier
  Cc: Catalin Marinas, Will Deacon, Thomas Gleixner, Tero Kristo,
	Santosh Shilimkar, linux-arm-kernel, linux-kernel, vishalm,
	Mattijs Korpershoek, Kevin Hilman, Nicolas Frayer

On 20:36-20241224, Guillaume La Roque wrote:
> 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 v4:
> - Rework commit message and title
> - Add depends on in Kconfig frivers
> - Link to v3: https://lore.kernel.org/r/20241016-timodules-v3-0-fa71091ade98@baylibre.com
> 
> 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/ti-sci-intr: add module build support
>       irqchip/ti-sci-inta : Add module build support
> 
>  arch/arm64/Kconfig.platforms      | 2 --
>  drivers/irqchip/Kconfig           | 6 ++++--
>  drivers/irqchip/irq-ti-sci-inta.c | 1 +
>  drivers/irqchip/irq-ti-sci-intr.c | 1 +
>  4 files changed, 6 insertions(+), 4 deletions(-)
> ---
> base-commit: 8faabc041a001140564f718dabe37753e88b37fa
> change-id: 20241016-timodules-174770215dd8
> 
> Best regards,
> -- 
> Guillaume La Roque <glaroque@baylibre.com>
> 

Reviewed-by: Nishanth Menon <nm@ti.com>

Marc, Can this go via your tree?

-- 
Regards,
Nishanth Menon
Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3  1A34 DDB5 849D 1736 249D


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH v4 0/2] irqchip: Kconfig: Add module support for TI inta/intr
  2025-01-02 12:44 ` [PATCH v4 0/2] irqchip: Kconfig: Add module support for TI inta/intr Nishanth Menon
@ 2025-01-02 13:09   ` Marc Zyngier
  2025-01-02 13:26     ` Nishanth Menon
  0 siblings, 1 reply; 6+ messages in thread
From: Marc Zyngier @ 2025-01-02 13:09 UTC (permalink / raw)
  To: Nishanth Menon
  Cc: Guillaume La Roque, Catalin Marinas, Will Deacon, Thomas Gleixner,
	Tero Kristo, Santosh Shilimkar, linux-arm-kernel, linux-kernel,
	vishalm, Mattijs Korpershoek, Kevin Hilman, Nicolas Frayer

On Thu, 02 Jan 2025 12:44:13 +0000,
Nishanth Menon <nm@ti.com> wrote:
> 
> On 20:36-20241224, Guillaume La Roque wrote:
> > 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 v4:
> > - Rework commit message and title
> > - Add depends on in Kconfig frivers
> > - Link to v3: https://lore.kernel.org/r/20241016-timodules-v3-0-fa71091ade98@baylibre.com
> > 
> > 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/ti-sci-intr: add module build support
> >       irqchip/ti-sci-inta : Add module build support
> > 
> >  arch/arm64/Kconfig.platforms      | 2 --
> >  drivers/irqchip/Kconfig           | 6 ++++--
> >  drivers/irqchip/irq-ti-sci-inta.c | 1 +
> >  drivers/irqchip/irq-ti-sci-intr.c | 1 +
> >  4 files changed, 6 insertions(+), 4 deletions(-)
> > ---
> > base-commit: 8faabc041a001140564f718dabe37753e88b37fa
> > change-id: 20241016-timodules-174770215dd8
> > 
> > Best regards,
> > -- 
> > Guillaume La Roque <glaroque@baylibre.com>
> > 
> 
> Reviewed-by: Nishanth Menon <nm@ti.com>
> 
> Marc, Can this go via your tree?

I'm only looking after the ARM GICs these days, and not anything else.
Hopefully Thomas will look into it.

THanks,

	M.

-- 
Without deviation from the norm, progress is not possible.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH v4 0/2] irqchip: Kconfig: Add module support for TI inta/intr
  2025-01-02 13:09   ` Marc Zyngier
@ 2025-01-02 13:26     ` Nishanth Menon
  0 siblings, 0 replies; 6+ messages in thread
From: Nishanth Menon @ 2025-01-02 13:26 UTC (permalink / raw)
  To: Marc Zyngier
  Cc: Guillaume La Roque, Catalin Marinas, Will Deacon, Thomas Gleixner,
	Tero Kristo, Santosh Shilimkar, linux-arm-kernel, linux-kernel,
	vishalm, Mattijs Korpershoek, Kevin Hilman, Nicolas Frayer

On 13:09-20250102, Marc Zyngier wrote:
> On Thu, 02 Jan 2025 12:44:13 +0000,
> Nishanth Menon <nm@ti.com> wrote:
> > 
> > On 20:36-20241224, Guillaume La Roque wrote:
> > > 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 v4:
> > > - Rework commit message and title
> > > - Add depends on in Kconfig frivers
> > > - Link to v3: https://lore.kernel.org/r/20241016-timodules-v3-0-fa71091ade98@baylibre.com
> > > 
> > > 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/ti-sci-intr: add module build support
> > >       irqchip/ti-sci-inta : Add module build support
> > > 
> > >  arch/arm64/Kconfig.platforms      | 2 --
> > >  drivers/irqchip/Kconfig           | 6 ++++--
> > >  drivers/irqchip/irq-ti-sci-inta.c | 1 +
> > >  drivers/irqchip/irq-ti-sci-intr.c | 1 +
> > >  4 files changed, 6 insertions(+), 4 deletions(-)
> > > ---
> > > base-commit: 8faabc041a001140564f718dabe37753e88b37fa
> > > change-id: 20241016-timodules-174770215dd8
> > > 
> > > Best regards,
> > > -- 
> > > Guillaume La Roque <glaroque@baylibre.com>
> > > 
> > 
> > Reviewed-by: Nishanth Menon <nm@ti.com>
> > 
> > Marc, Can this go via your tree?
> 
> I'm only looking after the ARM GICs these days, and not anything else.
> Hopefully Thomas will look into it.

Thanks Marc.

Thomas, would like to know if you'd pick this up, else, I can take
this series via my tree and send via SoC maintainers, since I am
marked as the maintainer for the files.

-- 
Regards,
Nishanth Menon
Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3  1A34 DDB5 849D 1736 249D


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2025-01-02 13:28 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-24 19:36 [PATCH v4 0/2] irqchip: Kconfig: Add module support for TI inta/intr Guillaume La Roque
2024-12-24 19:36 ` [PATCH v4 1/2] irqchip/ti-sci-intr: add module build support Guillaume La Roque
2024-12-24 19:36 ` [PATCH v4 2/2] irqchip/ti-sci-inta : Add " Guillaume La Roque
2025-01-02 12:44 ` [PATCH v4 0/2] irqchip: Kconfig: Add module support for TI inta/intr Nishanth Menon
2025-01-02 13:09   ` Marc Zyngier
2025-01-02 13:26     ` Nishanth Menon

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).