Skip to content

genirq: Post 6.19-rc1 API cleanup

Marc Zyngier linux-mips lkml 1 version Applied

Status from this message: The following commit has been merged into the irq/core branch of tip:

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 4 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/6genirq: Remove IRQ timing tracking infrastructureinclude/linux/interrupt.h kernel/irq/Kconfig kernel/irq/Makefile +5 more+0 -10951 reply
2/6genirq: Remove __request_percpu_irq() helperinclude/linux/interrupt.h kernel/irq/manage.c+10 -241 reply
3/6mips: Move IP30 timer to request_percpu_irq()arch/mips/include/asm/cevt-r4k.h arch/mips/kernel/cevt-r4k.c arch/mips/sgi-ip30/ip30-timer.c+2 -152 replies
4/6mips: Move IP27 timer to request_percpu_irq()arch/mips/sgi-ip27/ip27-timer.c+2 -80 replies
5/6clocksource: mips-gic-timer: Move GIC timer to request_percpu_irq()drivers/clocksource/mips-gic-timer.c+2 -80 replies
6/6genirq: Kill setup_percpu_irq()include/linux/irq.h kernel/irq/manage.c+0 -330 replies

Reviews trailers per patch

2 of 6 patches have a Reviewed-by or Acked-by.

PatchJinjie Ruan
1/6R-b
2/6R-b
3/6
4/6
5/6
6/6

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/6] genirq: Post 6.19-rc1 API cleanup

Fixing the issue reported at [1] pushed me to look into some of the ugly corners of the percpu IRQ configuration, and to notice that:

- we only have 3 users left of setup_percpu_irq(), all MIPS timers

- none of the timer drivers using request_percpu_irq() are passing the IRQF_TIMER flag (this function doesn't take a flag argument)

- the IRQ_TIMINGS subsystem therefore cannot identify that it should consider these interrupts as timer interrupts, and would mistakenly take them into account

- but as it turns out, nobody can enable IRQ_TIMINGS the first place

- so passing flags at percpu IRQ request time is not required

The cumulative effects of the above is that we can:

- drop the IRQ_TIMINGS stuff -- it was never used, and Daniel indicates[2] that there is no immediate path to finishing it

- replace __request_percpu_irq() with request_percpu_irq_affinity()

- convert all three MIPS timers to request_percpu_irq()

- finally kill setup_percpu_irq() for good

Note that when it comes to MIPS, I have only tested the GIC timer change, as I don't have any SGI HW anymore. And even that was on QEMU. I'd appreciate someone with the necessary zoo to give it a go on actual metal.

Patches on top of [3].

[1] https://lore.kernel.org/r/[email protected]
[2] https://lore.kernel.org/r/[email protected]
[3] https://patch.msgid.link/[email protected]

Marc Zyngier (6):
genirq: Remove IRQ timing tracking infrastructure
genirq: Remove __request_percpu_irq() helper
mips: Move IP30 timer to request_percpu_irq()
mips: Move IP27 timer to request_percpu_irq()
clocksource: mips-gic-timer: Move GIC timer to request_percpu_irq()
genirq: Kill setup_percpu_irq()

 arch/mips/include/asm/cevt-r4k.h     |   1 -
 arch/mips/kernel/cevt-r4k.c          |  11 -
 arch/mips/sgi-ip27/ip27-timer.c      |  10 +-
 arch/mips/sgi-ip30/ip30-timer.c      |   5 +-
 drivers/clocksource/mips-gic-timer.c |  10 +-
 include/linux/interrupt.h            |  24 +-
 include/linux/irq.h                  |   3 -
 kernel/irq/Kconfig                   |   3 -
 kernel/irq/Makefile                  |   4 -
 kernel/irq/handle.c                  |   2 -
 kernel/irq/internals.h               | 110 ---
 kernel/irq/manage.c                  |  49 +-
 kernel/irq/timings.c                 | 959 ---------------------------
 lib/Kconfig.debug                    |   8 -
 14 files changed, 16 insertions(+), 1183 deletions(-)
 delete mode 100644 kernel/irq/timings.c
Signature · 1 line
2.47.3