genirq: Post 6.19-rc1 API cleanup
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
Patches in v1 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | genirq: Remove IRQ timing tracking infrastructureinclude/ kernel/ kernel/ +5 more | +0 | 1 reply | |
| 2/6 | genirq: Remove __request_percpu_irq() helperinclude/ kernel/ | +10 | 1 reply | |
| 3/6 | mips: Move IP30 timer to request_percpu_irq()arch/ arch/ arch/ | +2 | 2 replies | |
| 4/6 | mips: Move IP27 timer to request_percpu_irq()arch/ | +2 | 0 replies | |
| 5/6 | clocksource: mips-gic-timer: Move GIC timer to request_percpu_irq()drivers/ | +2 | 0 replies | |
| 6/6 | genirq: Kill setup_percpu_irq()include/ kernel/ | +0 | 0 replies |
Reviews trailers per patch
2 of 6 patches have a Reviewed-by or Acked-by.
| Patch | Jinjie Ruan |
|---|---|
| 1/6 | R-b |
| 2/6 | R-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.
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