* [PATCH] MIPS: Alchemy: Register interrupt chips with the IRQ core
@ 2026-10-16 18:15 Florian Fainelli
2026-10-20 12:10 ` Dmitry Ilvokhin
0 siblings, 1 reply; 2+ messages in thread
From: Florian Fainelli @ 2026-10-16 18:15 UTC (permalink / raw)
To: linux-mips
Cc: manuel.lauss, Florian Fainelli, Thomas Bogendoerfer,
Thierry Reding, Rafael J. Wysocki (Intel),
Thomas Gleixner, Dmitry Ilvokhin, open list
Alchemy initializes its interrupt chips through the set-type callbacks,
which use irq_set_chip_handler_name_locked() to assign the chip and flow
handler. This bypasses irq_set_chip() and its descriptor registration.
Since /proc/interrupts switched to iterating the IRQ descriptor maple tree,
the statically allocated Alchemy descriptors are no longer found. On an
MTX-1, the file contains only the CPU header and ERR counter even though
the timer, serial, Ethernet and PCI wireless interrupts work.
Register each IC0/IC1 interrupt chip through irq_set_chip() before setting
the initial trigger type. Do the same for the Au1300 GPIC. Keep the locked
set-type callbacks for later trigger changes.
Fixes: 171cc0d9eed1 ("genirq/proc: Speed up /proc/interrupts iteration")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
---
arch/mips/alchemy/common/irq.c | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/arch/mips/alchemy/common/irq.c b/arch/mips/alchemy/common/irq.c
index 2403afcd2fb9..d2fa8731fb3c 100644
--- a/arch/mips/alchemy/common/irq.c
+++ b/arch/mips/alchemy/common/irq.c
@@ -892,15 +892,21 @@ static void __init au1000_init_irq(struct alchemy_irqmap *map)
mips_cpu_irq_init();
/* register all 64 possible IC0+IC1 irq sources as type "none".
+ * Register each chip with the IRQ core before setting its type so
+ * the descriptors are included in interrupt enumeration.
* Use set_irq_type() to set edge/level behaviour at runtime.
*/
for (irq_nr = AU1000_INTC0_INT_BASE;
- (irq_nr < AU1000_INTC0_INT_BASE + 32); irq_nr++)
+ (irq_nr < AU1000_INTC0_INT_BASE + 32); irq_nr++) {
+ irq_set_chip(irq_nr, &au1x_ic0_chip);
au1x_ic_settype(irq_get_irq_data(irq_nr), IRQ_TYPE_NONE);
+ }
for (irq_nr = AU1000_INTC1_INT_BASE;
- (irq_nr < AU1000_INTC1_INT_BASE + 32); irq_nr++)
+ (irq_nr < AU1000_INTC1_INT_BASE + 32); irq_nr++) {
+ irq_set_chip(irq_nr, &au1x_ic1_chip);
au1x_ic_settype(irq_get_irq_data(irq_nr), IRQ_TYPE_NONE);
+ }
/*
* Initialize IC0, which is fixed per processor.
@@ -947,6 +953,7 @@ static void __init alchemy_gpic_init_irq(const struct alchemy_irqmap *dints)
/* register an irq_chip for them, with 2nd highest priority */
for (i = ALCHEMY_GPIC_INT_BASE; i <= ALCHEMY_GPIC_INT_LAST; i++) {
+ irq_set_chip(i, &au1300_gpic);
au1300_set_irq_priority(i, 1);
au1300_gpic_settype(irq_get_irq_data(i), IRQ_TYPE_NONE);
}
--
2.53.0
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [PATCH] MIPS: Alchemy: Register interrupt chips with the IRQ core
2026-10-16 18:15 [PATCH] MIPS: Alchemy: Register interrupt chips with the IRQ core Florian Fainelli
@ 2026-10-20 12:10 ` Dmitry Ilvokhin
0 siblings, 0 replies; 2+ messages in thread
From: Dmitry Ilvokhin @ 2026-10-20 12:10 UTC (permalink / raw)
To: Florian Fainelli
Cc: linux-mips, manuel.lauss, Thomas Bogendoerfer, Thierry Reding,
Rafael J. Wysocki (Intel),
Thomas Gleixner, open list
On Fri, Oct 16, 2026 at 11:15:59AM -0700, Florian Fainelli wrote:
> Alchemy initializes its interrupt chips through the set-type callbacks,
> which use irq_set_chip_handler_name_locked() to assign the chip and flow
> handler. This bypasses irq_set_chip() and its descriptor registration.
>
> Since /proc/interrupts switched to iterating the IRQ descriptor maple tree,
> the statically allocated Alchemy descriptors are no longer found. On an
> MTX-1, the file contains only the CPU header and ERR counter even though
> the timer, serial, Ethernet and PCI wireless interrupts work.
>
> Register each IC0/IC1 interrupt chip through irq_set_chip() before setting
> the initial trigger type. Do the same for the Au1300 GPIC. Keep the locked
> set-type callbacks for later trigger changes.
>
> Fixes: 171cc0d9eed1 ("genirq/proc: Speed up /proc/interrupts iteration")
> Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Dmitry Ilvokhin <d@ilvokhin.com>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-10-20 12:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-16 18:15 [PATCH] MIPS: Alchemy: Register interrupt chips with the IRQ core Florian Fainelli
2026-10-20 12:10 ` Dmitry Ilvokhin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®