linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [patch V2 00/45] genirq: Cleanups and conversion to lock guards
@ 2025-04-29  6:54 Thomas Gleixner
  2025-04-29  6:54 ` [patch V2 01/45] genirq: Provide conditional " Thomas Gleixner
                   ` (45 more replies)
  0 siblings, 46 replies; 119+ messages in thread
From: Thomas Gleixner @ 2025-04-29  6:54 UTC (permalink / raw)
  To: LKML; +Cc: Jiri Slaby, Peter Zijlstra

This is V2 of the generic interrupt locking overhaul. V1 can be found here:

   https://lore.kernel.org/all/20250313154615.860723120@linutronix.de

The generic interrupt core code has accumulated quite some inconsistencies
over time and a common pattern in various API functions is:

    unsigned long flags;
    struct irq_desc *desc = irq_get_desc_[bus]lock(irq, &flags, mode);

    if (!desc)
       return -EINVAL;
    ....
    irq_put_desc_[bus]unlock(desc, flags);

That's awkward and requires gotos in failure paths.

This series provides conditional lock guards and converts the core code
over to use those guards. Along with that it converts the other open coded
lock/unlock pairs and fixes up coding and kernel doc formatting.  The
conversions were partially done with Coccinelle where possible.

Changes vs. V1:

  - Rebase on latest tip irq/core

  - Make coding style consistent (Jiri, Shrikanth)

The series applies on

    git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git irq/core

and is also available from git:

    git://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git irq/core

Thanks,

	tglx

---
 include/linux/irq.h     |    2 
 kernel/irq/autoprobe.c  |   26 -
 kernel/irq/chip.c       |  609 ++++++++++---------------
 kernel/irq/cpuhotplug.c |   10 
 kernel/irq/debugfs.c    |    3 
 kernel/irq/internals.h  |   47 -
 kernel/irq/irqdesc.c    |  127 +----
 kernel/irq/manage.c     | 1154 ++++++++++++++++++++----------------------------
 kernel/irq/pm.c         |   38 -
 kernel/irq/proc.c       |   65 --
 kernel/irq/resend.c     |   50 --
 kernel/irq/spurious.c   |  104 +---
 12 files changed, 913 insertions(+), 1322 deletions(-)



^ permalink raw reply	[flat|nested] 119+ messages in thread

end of thread, other threads:[~2025-06-09 10:00 UTC | newest]

Thread overview: 119+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-29  6:54 [patch V2 00/45] genirq: Cleanups and conversion to lock guards Thomas Gleixner
2025-04-29  6:54 ` [patch V2 01/45] genirq: Provide conditional " Thomas Gleixner
2025-05-07  9:07   ` [tip: irq/core] " tip-bot2 for Thomas Gleixner
2025-04-29  6:54 ` [patch V2 02/45] genirq/irqdesc: Switch to " Thomas Gleixner
2025-04-30  5:54   ` Jiri Slaby
2025-04-30  6:36     ` [patch V2a " Thomas Gleixner
2025-04-30  6:51       ` Jiri Slaby
2025-05-07  9:07       ` [tip: irq/core] " tip-bot2 for Thomas Gleixner
2025-04-29  6:54 ` [patch V2 03/45] genirq/autoprobe: " Thomas Gleixner
2025-05-07  9:07   ` [tip: irq/core] " tip-bot2 for Thomas Gleixner
2025-04-29  6:54 ` [patch V2 04/45] genirq/pm: " Thomas Gleixner
2025-05-07  9:07   ` [tip: irq/core] " tip-bot2 for Thomas Gleixner
2025-04-29  6:54 ` [patch V2 05/45] genirq/resend: " Thomas Gleixner
2025-05-07  9:07   ` [tip: irq/core] " tip-bot2 for Thomas Gleixner
2025-04-29  6:54 ` [patch V2 06/45] genirq/proc: " Thomas Gleixner
2025-05-07  9:07   ` [tip: irq/core] " tip-bot2 for Thomas Gleixner
2025-06-08 12:45   ` [patch V2 06/45] " Zenghui Yu
2025-06-09  7:15     ` Zenghui Yu
2025-06-09  7:28       ` Jiri Slaby
2025-06-09 10:00       ` Thomas Gleixner
2025-06-09  9:50     ` Thomas Gleixner
2025-04-29  6:54 ` [patch V2 07/45] genirq/spurious: Cleanup code Thomas Gleixner
2025-05-07  9:07   ` [tip: irq/core] " tip-bot2 for Thomas Gleixner
2025-04-29  6:54 ` [patch V2 08/45] genirq/spurious: Switch to lock guards Thomas Gleixner
2025-05-07  9:07   ` [tip: irq/core] " tip-bot2 for Thomas Gleixner
2025-04-29  6:55 ` [patch V2 09/45] genirq/cpuhotplug: Convert " Thomas Gleixner
2025-05-07  9:07   ` [tip: irq/core] " tip-bot2 for Thomas Gleixner
     [not found]   ` <CGME20250508145631eucas1p2f5369234fee8eb86761d70d028d6c82d@eucas1p2.samsung.com>
2025-05-08 14:56     ` [patch V2 09/45] " Marek Szyprowski
2025-05-08 17:53       ` Thomas Gleixner
2025-04-29  6:55 ` [patch V2 10/45] genirq/debugfs: " Thomas Gleixner
2025-05-07  9:07   ` [tip: irq/core] " tip-bot2 for Thomas Gleixner
2025-04-29  6:55 ` [patch V2 11/45] genirq/chip: Prepare for code reduction Thomas Gleixner
2025-05-07  9:07   ` [tip: irq/core] " tip-bot2 for Thomas Gleixner
2025-04-29  6:55 ` [patch V2 12/45] genirq/chip: Rework handle_nested_irq() Thomas Gleixner
2025-05-07  9:07   ` [tip: irq/core] " tip-bot2 for Thomas Gleixner
     [not found]   ` <CGME20250508205629eucas1p2f8f2032c2d651be176acdf6ac4aa79cd@eucas1p2.samsung.com>
2025-05-08 20:56     ` [patch V2 12/45] " Marek Szyprowski
2025-05-09 18:37       ` Thomas Gleixner
2025-04-29  6:55 ` [patch V2 13/45] genirq/chip: Rework handle_simple_irq() Thomas Gleixner
2025-05-07  9:07   ` [tip: irq/core] " tip-bot2 for Thomas Gleixner
2025-04-29  6:55 ` [patch V2 14/45] genirq/chip: Rework handle_untracked_irq() Thomas Gleixner
2025-05-07  9:07   ` [tip: irq/core] " tip-bot2 for Thomas Gleixner
2025-04-29  6:55 ` [patch V2 15/45] genirq/chip: Rework handle_level_irq() Thomas Gleixner
2025-05-07  9:07   ` [tip: irq/core] " tip-bot2 for Thomas Gleixner
2025-04-29  6:55 ` [patch V2 16/45] genirq/chip: Rework handle_eoi_irq() Thomas Gleixner
2025-05-07  9:07   ` [tip: irq/core] " tip-bot2 for Thomas Gleixner
2025-04-29  6:55 ` [patch V2 17/45] genirq/chip: Rework handle_edge_irq() Thomas Gleixner
2025-05-07  9:07   ` [tip: irq/core] " tip-bot2 for Thomas Gleixner
2025-04-29  6:55 ` [patch V2 18/45] genirq/chip: Rework handle_fasteoi_ack_irq() Thomas Gleixner
2025-05-07  9:07   ` [tip: irq/core] " tip-bot2 for Thomas Gleixner
2025-04-29  6:55 ` [patch V2 19/45] genirq/chip: Rework handle_fasteoi_mask_irq() Thomas Gleixner
2025-05-07  9:07   ` [tip: irq/core] " tip-bot2 for Thomas Gleixner
2025-04-29  6:55 ` [patch V2 20/45] genirq/chip: Use lock guards where applicable Thomas Gleixner
2025-05-07  9:07   ` [tip: irq/core] " tip-bot2 for Thomas Gleixner
2025-04-29  6:55 ` [patch V2 21/45] genirq/chip: Rework irq_set_chip() Thomas Gleixner
2025-05-07  9:07   ` [tip: irq/core] " tip-bot2 for Thomas Gleixner
2025-04-29  6:55 ` [patch V2 22/45] genirq/chip: Rework irq_set_irq_type() Thomas Gleixner
2025-05-07  9:07   ` [tip: irq/core] " tip-bot2 for Thomas Gleixner
2025-04-29  6:55 ` [patch V2 23/45] genirq/chip: Rework irq_set_handler_data() Thomas Gleixner
2025-05-07  9:07   ` [tip: irq/core] " tip-bot2 for Thomas Gleixner
2025-04-29  6:55 ` [patch V2 24/45] genirq/chip: Rework irq_set_msi_desc_off() Thomas Gleixner
2025-05-07  9:07   ` [tip: irq/core] " tip-bot2 for Thomas Gleixner
2025-04-29  6:55 ` [patch V2 25/45] genirq/chip: Rework irq_set_chip_data() Thomas Gleixner
2025-05-07  9:07   ` [tip: irq/core] " tip-bot2 for Thomas Gleixner
2025-04-29  6:55 ` [patch V2 26/45] genirq/chip: Rework irq_set_handler() variants Thomas Gleixner
2025-05-07  9:07   ` [tip: irq/core] " tip-bot2 for Thomas Gleixner
2025-05-09 13:22   ` [patch V2 26/45] " Nathan Chancellor
2025-05-11 17:29     ` Miguel Ojeda
2025-05-11 17:49       ` Nathan Chancellor
2025-05-12  7:25         ` Jiri Slaby
2025-05-12  7:32           ` Jiri Slaby
2025-05-12  8:06             ` Jiri Slaby
2025-05-12 18:39           ` Thomas Gleixner
2025-04-29  6:55 ` [patch V2 27/45] genirq/chip: Rework irq_modify_status() Thomas Gleixner
2025-05-07  9:07   ` [tip: irq/core] " tip-bot2 for Thomas Gleixner
2025-04-29  6:55 ` [patch V2 28/45] genirq/manage: Cleanup kernel doc comments Thomas Gleixner
2025-05-07  9:07   ` [tip: irq/core] " tip-bot2 for Thomas Gleixner
2025-04-29  6:55 ` [patch V2 29/45] genirq/manage: Convert to lock guards Thomas Gleixner
2025-05-07  9:07   ` [tip: irq/core] " tip-bot2 for Thomas Gleixner
2025-04-29  6:55 ` [patch V2 30/45] genirq/manage: Rework irq_update_affinity_desc() Thomas Gleixner
2025-05-07  9:07   ` [tip: irq/core] " tip-bot2 for Thomas Gleixner
2025-04-29  6:55 ` [patch V2 31/45] genirq/manage: Rework __irq_apply_affinity_hint() Thomas Gleixner
2025-05-07  9:07   ` [tip: irq/core] " tip-bot2 for Thomas Gleixner
2025-04-29  6:55 ` [patch V2 32/45] genirq/manage: Rework irq_set_vcpu_affinity() Thomas Gleixner
2025-04-30  6:31   ` Jiri Slaby
2025-04-30 12:49     ` [patch V2a " Thomas Gleixner
2025-05-07  9:07       ` [tip: irq/core] " tip-bot2 for Thomas Gleixner
2025-04-29  6:55 ` [patch V2 33/45] genirq/manage: Rework __disable_irq_nosync() Thomas Gleixner
2025-05-07  9:07   ` [tip: irq/core] " tip-bot2 for Thomas Gleixner
2025-04-29  6:55 ` [patch V2 34/45] genirq/manage: Rework enable_irq() Thomas Gleixner
2025-05-07  9:07   ` [tip: irq/core] " tip-bot2 for Thomas Gleixner
2025-04-29  6:55 ` [patch V2 35/45] genirq/manage: Rework irq_set_irq_wake() Thomas Gleixner
2025-04-30  6:37   ` Jiri Slaby
2025-04-30 12:42     ` Thomas Gleixner
2025-04-30 12:48       ` [patch V2a " Thomas Gleixner
2025-05-07  9:07         ` [tip: irq/core] " tip-bot2 for Thomas Gleixner
2025-05-13 17:32         ` [patch V2a 35/45] " Jon Hunter
2025-05-13 22:55           ` Thomas Gleixner
2025-05-14  7:14             ` Jon Hunter
2025-04-29  6:55 ` [patch V2 36/45] genirq/manage: Rework can_request_irq() Thomas Gleixner
2025-05-07  9:07   ` [tip: irq/core] " tip-bot2 for Thomas Gleixner
2025-04-29  6:55 ` [patch V2 37/45] genirq/manage: Rework irq_set_parent() Thomas Gleixner
2025-05-07  9:07   ` [tip: irq/core] " tip-bot2 for Thomas Gleixner
2025-04-29  6:55 ` [patch V2 38/45] genirq/manage: Rework enable_percpu_irq() Thomas Gleixner
2025-05-07  9:07   ` [tip: irq/core] " tip-bot2 for Thomas Gleixner
2025-04-29  6:55 ` [patch V2 39/45] genirq/manage: Rework irq_percpu_is_enabled() Thomas Gleixner
2025-05-07  9:07   ` [tip: irq/core] " tip-bot2 for Thomas Gleixner
2025-04-29  6:55 ` [patch V2 40/45] genirq/manage: Rework disable_percpu_irq() Thomas Gleixner
2025-05-07  9:07   ` [tip: irq/core] " tip-bot2 for Thomas Gleixner
2025-04-29  6:55 ` [patch V2 41/45] genirq/manage: Rework prepare_percpu_nmi() Thomas Gleixner
2025-05-07  9:07   ` [tip: irq/core] " tip-bot2 for Thomas Gleixner
2025-04-29  6:55 ` [patch V2 42/45] genirq/manage: Rework teardown_percpu_nmi() Thomas Gleixner
2025-05-07  9:07   ` [tip: irq/core] " tip-bot2 for Thomas Gleixner
2025-04-29  6:55 ` [patch V2 43/45] genirq/manage: Rework irq_get_irqchip_state() Thomas Gleixner
2025-05-07  9:07   ` [tip: irq/core] " tip-bot2 for Thomas Gleixner
2025-04-29  6:55 ` [patch V2 44/45] genirq/manage: Rework irq_set_irqchip_state() Thomas Gleixner
2025-05-07  9:07   ` [tip: irq/core] " tip-bot2 for Thomas Gleixner
2025-04-29  6:55 ` [patch V2 45/45] genirq: Remove irq_[get|put]_desc*() Thomas Gleixner
2025-05-07  9:07   ` [tip: irq/core] " tip-bot2 for Thomas Gleixner
2025-05-06 14:24 ` [patch V2 00/45] genirq: Cleanups and conversion to lock guards Peter Zijlstra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).