lockdep splat on ct_kernel_enter()
Subsystems (2)
Steven Rostedt
reviewerMy tests are failing because of this splat:
[ 16.073659] ------------[ cut here ]------------ [ 16.074407] bus: 'platform': add driver acpi-ged [ 16.074424] DEBUG_LOCKS_WARN_ON(lockdep_hardirqs_enabled()) [ 16.074424] WARNING: CPU: 0 PID: 0 at kernel/locking/lockdep.c:5506 check_flags+0x114/0x1d0 [ 16.083020] bus: 'acpi': add driver ac [ 16.074424] Modules linked in: [ 16.074424] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 6.0.0-rc2-test+ #18 [ 16.096856] bus: 'acpi': add driver button [ 16.074424] Hardware name: MSI MS-7823/CSM-H87M-G43 (MS-7823), BIOS V1.6 02/22/2014 [ 16.074424] RIP: 0010:check_flags+0x114/0x1d0 [ 16.103642] bus: 'acpi': __driver_probe_device: matched device PNP0C0C:00 with driver button [ 16.074424] Code: ff ff e8 ef 0a aa ff 85 c0 74 21 44 8b 0d bc 56 c6 00 45 85 c9 75 15 48 c7 c6 c7 e8 37 b9 48 c7 c7 a0 96 36 b9 e8 54 c9 f9 ff <0f> 0b 48 c7 c7 b0 fc 37 b9 e8 2e 20 fa ff eb 99 85 c0 0f 85 38 ff [ 16.074424] RSP: 0000:ffffffffb9603d28 EFLAGS: 00010082 [ 16.114488] bus: 'acpi': really_probe: probing driver button with device PNP0C0C:00 [ 16.074424] [ 16.074424] RAX: 0000000000000000 RBX: ffffffffb96d6c20 RCX: 0000000000000000 [ 16.074424] RDX: 0000000000000000 RSI: ffffffffb81171da RDI: 0000000000000001 [ 16.126499] device: 'input0': device_add [ 16.074424] RBP: ffffffffb9603d28 R08: 0000000000000000 R09: 0000000000000001 [ 16.074424] R10: 0000000000000000 R11: 0000000000000030 R12: ffffffffb961aa80 [ 16.074424] R13: ffffffffb961b3f0 R14: 0000000000000000 R15: ffffffffb9758878 [ 16.153763] PM: Adding info for No Bus:input0 [ 16.074424] FS: 0000000000000000(0000) GS:ffff961b55c00000(0000) knlGS:0000000000000000 [ 16.074424] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 16.166543] input: Power Button as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/input/input0 [ 16.074424] CR2: ffff961b5edff000 CR3: 00000000b1612001 CR4: 00000000001706f0 [ 16.074424] Call Trace: [ 16.074424] <TASK> [ 16.175153] device: 'wakeup15': device_add [ 16.074424] lock_is_held_type+0x6f/0x130 [ 16.186284] rcu_read_lock_sched_held+0x4a/0x90 [ 16.186284] trace_rcu_dyntick+0x3a/0xe0 [ 16.186284] ct_kernel_enter.constprop.0+0x66/0xa0 [ 16.186284] ct_idle_exit+0xd/0x30 [ 16.186284] cpuidle_enter_state+0x28a/0x310 [ 16.186284] cpuidle_enter+0x2e/0x50 [ 16.186284] do_idle+0x1ec/0x280 [ 16.186284] cpu_startup_entry+0x20/0x30 [ 16.186284] rest_init+0xf3/0x170 [ 16.186284] arch_call_rest_init+0xe/0x1d [ 16.186284] start_kernel+0x69f/0x6c9 [ 16.186284] x86_64_start_reservations+0x24/0x2a [ 16.186284] x86_64_start_kernel+0x8d/0x97 [ 16.186284] secondary_startup_64_no_verify+0xe0/0xeb [ 16.186284] </TASK> [ 16.186284] irq event stamp: 129196 [ 16.186284] hardirqs last enabled at (129196): [<ffffffffb8ba6bf2>] poll_idle+0x32/0xbc [ 16.186284] hardirqs last disabled at (129195): [<ffffffffb80ec080>] do_idle+0xb0/0x280 [ 16.186284] softirqs last enabled at (129097): [<ffffffffb8e00273>] __do_softirq+0x273/0x441 [ 16.186284] softirqs last disabled at (129086): [<ffffffffb809c4be>] __irq_exit_rcu+0x9e/0xd0 [ 16.186284] ---[ end trace 0000000000000000 ]---
Looks like lockdep and the trace_rcu_dyntick() code is getting out of sync with respect to whether or not interrupts are enabled.
Config attached.
-- Steve
Steven Rostedt
reviewerQuoted 2 lines · On Mon, 22 Aug 2022 16:44:04 -0400 Steven Rostedt <[email protected]> wrote:
Looks like lockdep and the
trace_rcu_dyntick()code is getting out of sync with respect to whether or not interrupts are enabled.
This is caused by this commit:
172114552701 ("rcu/context-tracking: Move RCU-dynticks internal functions to context_tracking")
The warning happens with the commit, and does not for the commit just before it is applied.
-- Steve
Steven Rostedt
reviewerQuoted 6 lines · On Mon, 22 Aug 2022 18:28:50 -0400 Steven Rostedt <[email protected]> wrote:
Quoted 2 lines · On Mon, 22 Aug 2022 16:44:04 -0400 Steven Rostedt <[email protected]> wrote:
Looks like lockdep and the
trace_rcu_dyntick()code is getting out of sync with respect to whether or not interrupts are enabled.
Quoted 8 lines
This is caused by this commit:
172114552701 ("rcu/context-tracking: Move RCU-dynticks internal functions to
context_tracking")The warning happens with the commit, and does not for the commit just before it is applied.
Nevermind, I tested the wrong kernel (the grub reboot failed to boot to the new kernel). But it did give me a different lockdep splat when I tested the right kernel :-/
I'll investigate some more.
-- Steve
Steven Rostedt
reviewerQuoted 9 lines · On Mon, 22 Aug 2022 18:38:36 -0400 Steven Rostedt <[email protected]> wrote:
Quoted 3 lines
The warning happens with the commit, and does not for the commit just before it is applied.
Nevermind, I tested the wrong kernel (the grub reboot failed to boot to the new kernel). But it did give me a different lockdep splat when I tested the right kernel :-/
I'll investigate some more.
I was close. It was this commit:
ed4ae5eff4b3 ("rcu: Apply noinstr to rcu_idle_enter() and rcu_idle_exit()")
that causes the new error message.
-- Steve
Steven Rostedt
reviewerQuoted 11 lines · On Mon, 22 Aug 2022 20:48:25 -0400 Steven Rostedt <[email protected]> wrote:
Quoted 8 lines · On Mon, 22 Aug 2022 18:38:36 -0400 Steven Rostedt <[email protected]> wrote:
Quoted 3 lines
The warning happens with the commit, and does not for the commit just before it is applied.
Nevermind, I tested the wrong kernel (the grub reboot failed to boot to the new kernel). But it did give me a different lockdep splat when I tested the right kernel :-/
Quoted 8 lines
Quoted 1 line
I'll investigate some more.
I was close. It was this commit:
ed4ae5eff4b3("rcu: Apply noinstr torcu_idle_enter()andrcu_idle_exit()")that causes the new error message.
And this patch (which is wrong, but will at least let my tests finish testing my code) makes the warning go away.
-- Steve
kernel/rcu/tree.c +3 -3
@@ -896,13 +896,13 @@ static void noinstr rcu_eqs_exit(bool user)* If you add or remove a call to rcu_idle_exit(), be sure to test with * CONFIG_RCU_EQS_DEBUG=y. */ -void noinstr rcu_idle_exit(void) +void rcu_idle_exit (void ) {unsigned long flags; -raw_local_irq_save (flags); +local_irq_save (flags);rcu_eqs_exit (false); -raw_local_irq_restore (flags); +local_irq_restore (flags); }EXPORT_SYMBOL_GPL (rcu_idle_exit);
Steven Rostedt
reviewerQuoted 2 lines · On Mon, 22 Aug 2022 21:40:24 -0400 Steven Rostedt <[email protected]> wrote:
And this patch (which is wrong, but will at least let my tests finish testing my code) makes the warning go away.
Well that patch was against the broken commit, but this patch against 6.0-rc2 works for me, albeit, it's still wrong ;-)
-- Steve
kernel/context_tracking.c +3 -3
@@ -330,13 +330,13 @@ EXPORT_SYMBOL_GPL(ct_idle_enter);* If you add or remove a call to ct_idle_exit(), be sure to test with * CONFIG_RCU_EQS_DEBUG=y. */ -void noinstr ct_idle_exit(void) +void ct_idle_exit (void ) {unsigned long flags; -raw_local_irq_save (flags); +local_irq_save (flags);ct_kernel_enter (false,RCU_DYNTICKS_IDX -CONTEXT_IDLE ); -raw_local_irq_restore (flags); +local_irq_restore (flags); }EXPORT_SYMBOL_GPL (ct_idle_exit);
Paul E. McKenney
maintainerQuoted 8 lines · Steven Rostedt
Quoted 2 lines · On Mon, 22 Aug 2022 21:40:24 -0400 Steven Rostedt <[email protected]> wrote:
And this patch (which is wrong, but will at least let my tests finish testing my code) makes the warning go away.
Well that patch was against the broken commit, but this patch against 6.0-rc2 works for me, albeit, it's still wrong ;-)
It does sort of defeat the original purpose. But maybe it is what is needed in the near term?
Frederic, thoughts?
Thanx, Paul
Quoted 23 lines
-- Steve
kernel/context_tracking.c +3
-3@@ -330,13 +330,13 @@ EXPORT_SYMBOL_GPL(ct_idle_enter);* If you add or remove a call to ct_idle_exit(), be sure to test with * CONFIG_RCU_EQS_DEBUG=y. */ -void noinstr ct_idle_exit(void) +void ct_idle_exit (void ) {unsigned long flags; -raw_local_irq_save (flags); +local_irq_save (flags);ct_kernel_enter (false,RCU_DYNTICKS_IDX -CONTEXT_IDLE ); -raw_local_irq_restore (flags); +local_irq_restore (flags); }EXPORT_SYMBOL_GPL (ct_idle_exit);
Quoted 8 lines · Steven Rostedt
My tests are failing because of this splat:
[ 16.073659] ------------[ cut here ]------------ [ 16.074407] bus: 'platform': add driver acpi-ged [ 16.074424] DEBUG_LOCKS_WARN_ON(lockdep_hardirqs_enabled()) [ 16.074424] WARNING: CPU: 0 PID: 0 at
kernel/locking/lockdep.c:5506check_flags+0x114/0x1d0
Quoted 8 lines
[ 16.074424] lock_is_held_type+0x6f/0x130 [ 16.186284] rcu_read_lock_sched_held+0x4a/0x90 [ 16.186284] trace_rcu_dyntick+0x3a/0xe0 [ 16.186284] ct_kernel_enter.constprop.0+0x66/0xa0 [ 16.186284] ct_idle_exit+0xd/0x30 [ 16.186284] cpuidle_enter_state+0x28a/0x310 [ 16.186284] cpuidle_enter+0x2e/0x50 [ 16.186284] do_idle+0x1ec/0x280
Our test in v6.1 stable is failing due to this splat too. The v6.1 stable kernel still has this splat.
This splat can be fixed by Peter's patch
https://lore.kernel.org/all/[email protected]/
, but the fix is part of a big patchset
https://lore.kernel.org/all/[email protected]/
introduced in 6.2.
Could the fixes be backported to v6.1 stable?
Quoted 21 lines · Cheng-Jui Wang (王正睿)
Quoted 8 lines · Steven Rostedt
My tests are failing because of this splat:
[ 16.073659] ------------[ cut here ]------------ [ 16.074407] bus: 'platform': add driver acpi-ged [ 16.074424] DEBUG_LOCKS_WARN_ON(lockdep_hardirqs_enabled()) [ 16.074424] WARNING: CPU: 0 PID: 0 at
kernel/locking/lockdep.c:5506check_flags+0x114/0x1d0Quoted 8 lines
[ 16.074424] lock_is_held_type+0x6f/0x130 [ 16.186284] rcu_read_lock_sched_held+0x4a/0x90 [ 16.186284] trace_rcu_dyntick+0x3a/0xe0 [ 16.186284] ct_kernel_enter.constprop.0+0x66/0xa0 [ 16.186284] ct_idle_exit+0xd/0x30 [ 16.186284] cpuidle_enter_state+0x28a/0x310 [ 16.186284] cpuidle_enter+0x2e/0x50 [ 16.186284] do_idle+0x1ec/0x280Our test in v6.1 stable is failing due to this splat too. The v6.1 stable kernel still has this splat.
Quoted 7 lines
This splat can be fixed by Peter's patch
https://lore.kernel.org/all/[email protected]/
, but the fix is part of a big patchset
https://lore.kernel.org/all/[email protected]/
introduced in 6.2.Could the fixes be backported to v6.1 stable?
What "fixes" exactly are you referring to? Can you provide a series of git commit ids that cleanly apply or better yet, and series of patches that you have backported and tested to ensure that they work properly?
thanks,
greg k-h
Quoted 27 lines · On Wed, 2023-03-01 at 13:52 +0100, [email protected] wrote:
Quoted 26 lines · Cheng-Jui Wang (王正睿)
Quoted 15 lines · Steven Rostedt
My tests are failing because of this splat:
[ 16.073659] ------------[ cut here ]------------ [ 16.074407] bus: 'platform': add driver acpi-ged [ 16.074424] DEBUG_LOCKS_WARN_ON(lockdep_hardirqs_enabled()) [ 16.074424] WARNING: CPU: 0 PID: 0 at kernel/locking/lockdep.c:5506 check_flags+0x114/0x1d0 [ 16.074424] lock_is_held_type+0x6f/0x130 [ 16.186284] rcu_read_lock_sched_held+0x4a/0x90 [ 16.186284] trace_rcu_dyntick+0x3a/0xe0 [ 16.186284] ct_kernel_enter.constprop.0+0x66/0xa0 [ 16.186284] ct_idle_exit+0xd/0x30 [ 16.186284] cpuidle_enter_state+0x28a/0x310 [ 16.186284] cpuidle_enter+0x2e/0x50 [ 16.186284] do_idle+0x1ec/0x280Our test in v6.1 stable is failing due to this splat too. The v6.1 stable kernel still has this splat.
This splat can be fixed by Peter's patch
https://lore.kernel.org/all/[email protected]/
, but the fix is part of a big patchset
https://lore.kernel.org/all/[email protected]/
introduced in 6.2.
Quoted 3 lines
Quoted 1 line
Could the fixes be backported to v6.1 stable?
What "fixes" exactly are you referring to?
a01353cf1896 ("cpuidle: Fix ct_idle_*() usage") and other patches it needs.
Quoted 5 lines
Can you provide a series of
git commit ids that cleanly apply or better yet, and series of patches
that you have backported and tested to ensure that they work properly?
Suren has backported part of the patchset to fix this particular issue in android14-6.1:
https://android-review.googlesource.com/c/kernel/common/+/2449203 to
https://android-review.googlesource.com/c/kernel/common/+/2449212. I have tested these patches and confirmed these can fix this splat.
Following are the commit ids of the above series of patches in Linus' tree:5e26aa93391195a64871db5d96d7163f0062ca4f 8e9ab9e8da1eae61fdff35690d998eaf8cd527dc 5fca0d9f5d76664786ca6c09076341def165a677 e038f7b8028a1d1bc8ac82351c71ea538f19a879 b3f46658ce40a3467cda82f920dd9d5325ab0eaf 4d1be9e745382b41492b0cb9000829863db7133a 4ce40e9dbe83153f60d7e4ccd24a1eb4f8264f6a c3d42418dca53d6c498a48c408f7a45289593650 0c5ffc3d7b15978c6b184938cd6b8af06e436424 a01353cf1896ea5b8a7bbc5e2b2d38feed8b7aaa
thanks,
cheng-jui
Quoted 45 lines · Cheng-Jui Wang (王正睿)
Quoted 27 lines · On Wed, 2023-03-01 at 13:52 +0100, [email protected] wrote:
Quoted 26 lines · Cheng-Jui Wang (王正睿)
Quoted 15 lines · Steven Rostedt
My tests are failing because of this splat:
[ 16.073659] ------------[ cut here ]------------ [ 16.074407] bus: 'platform': add driver acpi-ged [ 16.074424] DEBUG_LOCKS_WARN_ON(lockdep_hardirqs_enabled()) [ 16.074424] WARNING: CPU: 0 PID: 0 at kernel/locking/lockdep.c:5506 check_flags+0x114/0x1d0 [ 16.074424] lock_is_held_type+0x6f/0x130 [ 16.186284] rcu_read_lock_sched_held+0x4a/0x90 [ 16.186284] trace_rcu_dyntick+0x3a/0xe0 [ 16.186284] ct_kernel_enter.constprop.0+0x66/0xa0 [ 16.186284] ct_idle_exit+0xd/0x30 [ 16.186284] cpuidle_enter_state+0x28a/0x310 [ 16.186284] cpuidle_enter+0x2e/0x50 [ 16.186284] do_idle+0x1ec/0x280Our test in v6.1 stable is failing due to this splat too. The v6.1 stable kernel still has this splat.
This splat can be fixed by Peter's patch
https://lore.kernel.org/all/[email protected]/
, but the fix is part of a big patchset
https://lore.kernel.org/all/[email protected]/
introduced in 6.2.Quoted 3 lines
Quoted 1 line
Could the fixes be backported to v6.1 stable?
What "fixes" exactly are you referring to?
a01353cf1896("cpuidle: Fix ct_idle_*() usage") and other patches it needs.Quoted 5 lines
Can you provide a series of
git commit ids that cleanly apply or better yet, and series of patches
that you have backported and tested to ensure that they work properly?Suren has backported part of the patchset to fix this particular issue in android14-6.1:
https://android-review.googlesource.com/c/kernel/common/+/2449203 to
https://android-review.googlesource.com/c/kernel/common/+/2449212. I have tested these patches and confirmed these can fix this splat.
Quoted 12 lines
Following are the commit ids of the above series of patches in Linus' tree:
5e26aa93391195a64871db5d96d7163f0062ca4f8e9ab9e8da1eae61fdff35690d998eaf8cd527dc5fca0d9f5d76664786ca6c09076341def165a677e038f7b8028a1d1bc8ac82351c71ea538f19a879b3f46658ce40a3467cda82f920dd9d5325ab0eaf4d1be9e745382b41492b0cb9000829863db7133a4ce40e9dbe83153f60d7e4ccd24a1eb4f8264f6ac3d42418dca53d6c498a48c408f7a452895936500c5ffc3d7b15978c6b184938cd6b8af06e436424a01353cf1896ea5b8a7bbc5e2b2d38feed8b7aaa
Please submit the full set of backported patches, with your signed-off-by, to the [email protected] mailing list, and we will be glad to review them there.
thanks,
greg k-h
Frederic Weisbecker
maintainerQuoted 29 lines · Steven Rostedt
My tests are failing because of this splat:
[ 16.073659] ------------[ cut here ]------------ [ 16.074407] bus: 'platform': add driver acpi-ged [ 16.074424] DEBUG_LOCKS_WARN_ON(lockdep_hardirqs_enabled()) [ 16.074424] WARNING: CPU: 0 PID: 0 at kernel/locking/lockdep.c:5506 check_flags+0x114/0x1d0 [ 16.083020] bus: 'acpi': add driver ac [ 16.074424] Modules linked in: [ 16.074424] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 6.0.0-rc2-test+ #18 [ 16.096856] bus: 'acpi': add driver button [ 16.074424] Hardware name: MSI MS-7823/CSM-H87M-G43 (MS-7823), BIOS V1.6 02/22/2014 [ 16.074424] RIP: 0010:check_flags+0x114/0x1d0 [ 16.103642] bus: 'acpi': __driver_probe_device: matched device PNP0C0C:00 with driver button [ 16.074424] Code: ff ff e8 ef 0a aa ff 85 c0 74 21 44 8b 0d bc 56 c6 00 45 85 c9 75 15 48 c7 c6 c7 e8 37 b9 48 c7 c7 a0 96 36 b9 e8 54 c9 f9 ff <0f> 0b 48 c7 c7 b0 fc 37 b9 e8 2e 20 fa ff eb 99 85 c0 0f 85 38 ff [ 16.074424] RSP: 0000:ffffffffb9603d28 EFLAGS: 00010082 [ 16.114488] bus: 'acpi': really_probe: probing driver button with device PNP0C0C:00 [ 16.074424] [ 16.074424] RAX: 0000000000000000 RBX: ffffffffb96d6c20 RCX: 0000000000000000 [ 16.074424] RDX: 0000000000000000 RSI: ffffffffb81171da RDI: 0000000000000001 [ 16.126499] device: 'input0': device_add [ 16.074424] RBP: ffffffffb9603d28 R08: 0000000000000000 R09: 0000000000000001 [ 16.074424] R10: 0000000000000000 R11: 0000000000000030 R12: ffffffffb961aa80 [ 16.074424] R13: ffffffffb961b3f0 R14: 0000000000000000 R15: ffffffffb9758878 [ 16.153763] PM: Adding info for No Bus:input0 [ 16.074424] FS: 0000000000000000(0000) GS:ffff961b55c00000(0000) knlGS:0000000000000000 [ 16.074424] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 16.166543] input: Power Button as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/input/input0 [ 16.074424] CR2: ffff961b5edff000 CR3: 00000000b1612001 CR4: 00000000001706f0 [ 16.074424] Call Trace:
Quoted 8 lines
[ 16.074424] <TASK> [ 16.175153] device: 'wakeup15': device_add [ 16.074424] lock_is_held_type+0x6f/0x130 [ 16.186284] rcu_read_lock_sched_held+0x4a/0x90 [ 16.186284] trace_rcu_dyntick+0x3a/0xe0 [ 16.186284] ct_kernel_enter.constprop.0+0x66/0xa0 [ 16.186284] ct_idle_exit+0xd/0x30 [ 16.186284] cpuidle_enter_state+0x28a/0x310
I'm surprised because ct_cpuidle_exit() calls lockdep_hardirqs_off(). And in fact we shouldn't even need to disable IRQS from ct_idle_exit() anymore because cpuidle_enter_state() already does it.
So I must be missing something...
Steven Rostedt
reviewerQuoted 39 lines · On Wed, 1 Mar 2023 15:14:23 +0100 Frederic Weisbecker <[email protected]>…
Quoted 29 lines · Steven Rostedt
My tests are failing because of this splat:
[ 16.073659] ------------[ cut here ]------------ [ 16.074407] bus: 'platform': add driver acpi-ged [ 16.074424] DEBUG_LOCKS_WARN_ON(lockdep_hardirqs_enabled()) [ 16.074424] WARNING: CPU: 0 PID: 0 at kernel/locking/lockdep.c:5506 check_flags+0x114/0x1d0 [ 16.083020] bus: 'acpi': add driver ac [ 16.074424] Modules linked in: [ 16.074424] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 6.0.0-rc2-test+ #18 [ 16.096856] bus: 'acpi': add driver button [ 16.074424] Hardware name: MSI MS-7823/CSM-H87M-G43 (MS-7823), BIOS V1.6 02/22/2014 [ 16.074424] RIP: 0010:check_flags+0x114/0x1d0 [ 16.103642] bus: 'acpi': __driver_probe_device: matched device PNP0C0C:00 with driver button [ 16.074424] Code: ff ff e8 ef 0a aa ff 85 c0 74 21 44 8b 0d bc 56 c6 00 45 85 c9 75 15 48 c7 c6 c7 e8 37 b9 48 c7 c7 a0 96 36 b9 e8 54 c9 f9 ff <0f> 0b 48 c7 c7 b0 fc 37 b9 e8 2e 20 fa ff eb 99 85 c0 0f 85 38 ff [ 16.074424] RSP: 0000:ffffffffb9603d28 EFLAGS: 00010082 [ 16.114488] bus: 'acpi': really_probe: probing driver button with device PNP0C0C:00 [ 16.074424] [ 16.074424] RAX: 0000000000000000 RBX: ffffffffb96d6c20 RCX: 0000000000000000 [ 16.074424] RDX: 0000000000000000 RSI: ffffffffb81171da RDI: 0000000000000001 [ 16.126499] device: 'input0': device_add [ 16.074424] RBP: ffffffffb9603d28 R08: 0000000000000000 R09: 0000000000000001 [ 16.074424] R10: 0000000000000000 R11: 0000000000000030 R12: ffffffffb961aa80 [ 16.074424] R13: ffffffffb961b3f0 R14: 0000000000000000 R15: ffffffffb9758878 [ 16.153763] PM: Adding info for No Bus:input0 [ 16.074424] FS: 0000000000000000(0000) GS:ffff961b55c00000(0000) knlGS:0000000000000000 [ 16.074424] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 16.166543] input: Power Button as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/input/input0 [ 16.074424] CR2: ffff961b5edff000 CR3: 00000000b1612001 CR4: 00000000001706f0 [ 16.074424] Call Trace:Quoted 8 lines
[ 16.074424] <TASK> [ 16.175153] device: 'wakeup15': device_add [ 16.074424] lock_is_held_type+0x6f/0x130 [ 16.186284] rcu_read_lock_sched_held+0x4a/0x90 [ 16.186284] trace_rcu_dyntick+0x3a/0xe0 [ 16.186284] ct_kernel_enter.constprop.0+0x66/0xa0 [ 16.186284] ct_idle_exit+0xd/0x30 [ 16.186284] cpuidle_enter_state+0x28a/0x310
Quoted 5 lines
I'm surprised because
ct_cpuidle_exit()callslockdep_hardirqs_off(). And in fact we shouldn't even need to disable IRQS fromct_idle_exit()anymore becausecpuidle_enter_state()already does it.So I must be missing something...
Perhaps because ct_cpuidle_exit() does not exist in 6.2?
I'm guessing that needs to be backported?
a01353cf1896e ("cpuidle: Fix ct_idle_*() usage")
-- Steve
-- Steve