Skip to content

genirq: Distangle irq_request/release_resources() from irq_desc->lock

Thomas Gleixner linux-arm-kernel linux-gpio linux-rockchip linux-samsung-soc lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5pinctrl: samsung: Remove bogus irq_[un]mask from resource managementdrivers/pinctrl/samsung/pinctrl-exynos.c+0 -47 replies
2/5genirq: Move bus locking into __setup_irq()kernel/irq/manage.c+5 -80 replies
3/5genirq: Add mutex to irq desc to serialize request/free_irq()include/linux/irqdesc.h kernel/irq/irqdesc.c kernel/irq/manage.c+12 -00 replies
4/5genirq: Move irq resource handling out of spinlocked regionkernel/irq/manage.c+15 -80 replies
5/5genirq/timings: Move free timings out of spinlocked regionkernel/irq/manage.c+3 -20 replies

Reviews trailers per patch

1 of 5 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchTomasz FigaLinus WalleijMarc Zyngier
SeriesR-b
1/5A-b R-b
2/5
3/5
4/5
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [patch 0/5] genirq: Distangle irq_request/release_resources() from irq_desc->lock

The irq_request/release_resources() callbacks are a problem on RT as they are called under irq_desc->lock with interrupts disabled.

Aside of that calling them under irq_desc->lock is conceptually wrong and has a (hard to trigger and probably theoretical) issue in free_irq(). See patch 4/5 for a detailed explanation.

The series contains also a fix for the exynos gpio driver, which fiddles with the irq masking in the resource callbacks, which is bogus and potentially harmful.

Finally it moves the irq timings deallocation out of the spin locked region.

Thanks,

tglx

---
 drivers/pinctrl/samsung/pinctrl-exynos.c |    4 --
 include/linux/irqdesc.h                  |    3 +
 kernel/irq/irqdesc.c                     |    1 
 kernel/irq/manage.c                      |   47 +++++++++++++++++++------------
 4 files changed, 34 insertions(+), 21 deletions(-)