Re: [PATCH] m68k: irq: Fix irq numbering in m68k_setup_user_interrupt()
From: Geert Uytterhoeven
Date: Sun Dec 06 2026 - 14:44:23 EST
On Fri, 13 Nov 2026 at 15:37, Graeme Harker <graeme.harker@xxxxxxxxx> wrote:
> m68k_setup_user_interrupt() is meant to set up the user vector
> interrupts IRQ_USER to IRQ_USER + cnt - 1, as its BUG_ON() check
> assumes. Since the change to irq_set_chip_and_handler(), however, it
> sets up interrupts 0 to cnt - 1 instead, having lost the IRQ_USER
> offset on the way.
>
> The VME boards pass a count of 192, so the user vector interrupts they
> use are still covered. Sun-3 passes 128 but requests IRQ_USER + 127,
> interrupt 135, which has been left without a chip, so its vec255
> handler has failed to register ever since. All of them have also had
> user_irq_chip put on the autovector interrupts 1 to 7. A machine with
> only a few user vectors, such as one with a single vectored interrupt
> source and cnt = 1, is left with its interrupt on handle_bad_irq().
>
> Restore the offset. Only tested on a machine that calls this with
> cnt = 1; the VME, Sun-3, Atari and Apollo callers have not been
> tested.
>
> Fixes: 378f7ca6aa22 ("m68k/irq: Vector ints need a valid interrupt handler")
> Signed-off-by: Graeme Harker <graeme.harker@xxxxxxxxx>
> Assisted-by: Claude:claude-opus-5.5
Reviewed-by: Geert Uytterhoeven <geert@xxxxxxxxxxxxxx>
i.e. will queue in the m68k tree for v7.5.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds