From: Miguel Ojeda <ojeda@kernel.org>
To: nathan@kernel.org
Cc: jirislaby@kernel.org, linux-kernel@vger.kernel.org,
peterz@infradead.org, tglx@linutronix.de
Subject: Re: [patch V2 26/45] genirq/chip: Rework irq_set_handler() variants
Date: Sun, 11 May 2025 19:29:11 +0200 [thread overview]
Message-ID: <20250511172911.1008109-1-ojeda@kernel.org> (raw)
In-Reply-To: <20250509132211.GA3618294@ax162>
On Fri, 09 May 2025 14:22:11 +0100 Nathan Chancellor <nathan@kernel.org> wrote:
>
> I am investigating some cases where
>
> WARN(!irqs_disabled(), "Interrupts were enabled early\n");
>
> in start_kernel() in init/main.c is triggered in certain builds with
> clang after patch 23 of this series (very bizarre since the conversion
> seems to be correct) and I happened to notice that this conversion seems
> to be incorrect? Should this be scoped_irqdesc_get_and_buslock() like
> below?
Yeah, I am also seeing this in next-20250509 in a LLVM=1 arm64 defconfig + Rust
build under QEMU.
Cheers,
Miguel
[ 0.007387] ------------[ cut here ]------------
[ 0.007414] Interrupts were enabled early
[ 0.007833] WARNING: CPU: 0 PID: 0 at init/main.c:1023 start_kernel+0x31c/0x394
[ 0.008001] Modules linked in:
[ 0.008340] CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Not tainted 6.15.0-rc5-next-20250509 #1 PREEMPT
[ 0.008458] Hardware name: linux,dummy-virt (DT)
[ 0.008610] pstate: 60000005 (nZCv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
[ 0.008641] pc : start_kernel+0x31c/0x394
[ 0.008657] lr : start_kernel+0x31c/0x394
[ 0.008670] sp : ffffdcd810333e80
[ 0.008688] x29: ffffdcd810333e90 x28: 0000000000000000 x27: 0000000000000000
[ 0.008748] x26: 0000000000000000 x25: 0000000000000000 x24: 0000000000000000
[ 0.008762] x23: 0000000000000000 x22: 0000000000000000 x21: 0000000044200000
[ 0.008775] x20: ffffdcd81033a000 x19: ffffdcd810345940 x18: 00000000000000b0
[ 0.008789] x17: 0000000000000000 x16: 0000000000000008 x15: 0000000000000004
[ 0.008802] x14: ffffdcd81036e830 x13: 0000000000000003 x12: 0000000000000003
[ 0.008815] x11: 00000000ffffefff x10: 0000000000000000 x9 : 77ed5dd15956fc00
[ 0.008849] x8 : 77ed5dd15956fc00 x7 : 2065726577207374 x6 : 7075727265746e49
[ 0.008862] x5 : ffffdcd810886ef6 x4 : ffffdcd80fe025f2 x3 : 0000000000000000
[ 0.008875] x2 : 0000000000000000 x1 : ffffdcd810333b80 x0 : 000000000000001d
[ 0.008985] Call trace:
[ 0.009142] start_kernel+0x31c/0x394 (P)
[ 0.009320] __primary_switched+0x88/0x90
[ 0.009501] ---[ end trace 0000000000000000 ]---
[ 0.007587] ------------[ cut here ]------------
[ 0.007623] Interrupts were enabled early
[ 0.008277] WARNING: CPU: 0 PID: 0 at init/main.c:1023 start_kernel+0x31c/0x394
[ 0.008526] Modules linked in:
[ 0.009030] CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Not tainted 6.15.0-rc5-next-20250509 #1 PREEMPT
[ 0.009228] Hardware name: linux,dummy-virt (DT)
[ 0.009459] pstate: 60000005 (nZCv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
[ 0.009507] pc : start_kernel+0x31c/0x394
[ 0.009531] lr : start_kernel+0x31c/0x394
[ 0.009554] sp : ffffd5bfd7933e80
[ 0.009585] x29: ffffd5bfd7933e90 x28: 0000000000000000 x27: 0000000000000000
[ 0.009672] x26: 0000000000000000 x25: 0000000000000000 x24: 0000000000000000
[ 0.009687] x23: 0000000000000000 x22: 0000000000000000 x21: 0000000044200000
[ 0.009701] x20: ffffd5bfd793a000 x19: ffffd5bfd7945940 x18: 00000000000000b0
[ 0.009715] x17: 0000000000000000 x16: 0000000000000008 x15: 0000000000000004
[ 0.009729] x14: ffffd5bfd796e830 x13: 0000000000000003 x12: 0000000000000003
[ 0.009743] x11: 00000000ffffefff x10: 0000000000000000 x9 : 2d9976f44ddcd000
[ 0.009778] x8 : 2d9976f44ddcd000 x7 : 2065726577207374 x6 : 7075727265746e49
[ 0.009792] x5 : ffffd5bfd7e86ef6 x4 : ffffd5bfd74025f2 x3 : 0000000000000000
[ 0.009806] x2 : 0000000000000000 x1 : ffffd5bfd7933b80 x0 : 000000000000001d
[ 0.009914] Call trace:
[ 0.010060] start_kernel+0x31c/0x394 (P)
[ 0.010250] __primary_switched+0x88/0x90
[ 0.010458] ---[ end trace 0000000000000000 ]---
next prev parent reply other threads:[~2025-05-11 17:29 UTC|newest]
Thread overview: 119+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250511172911.1008109-1-ojeda@kernel.org \
--to=ojeda@kernel.org \
--cc=jirislaby@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=nathan@kernel.org \
--cc=peterz@infradead.org \
--cc=tglx@linutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome