public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Frederic Weisbecker <frederic@kernel.org>
To: Steven Rostedt <rostedt@goodmis.org>
Cc: LKML <linux-kernel@vger.kernel.org>,
	Linus Torvalds <torvalds@linux-foundation.org>,
	Frederic Weisbecker <fweisbec@gmail.com>,
	"Paul E. McKenney" <paulmck@kernel.org>,
	Peter Zijlstra <peterz@infradead.org>
Subject: Re: [BUG v6.0-rc2] lockdep splat on ct_kernel_enter()
Date: Wed, 1 Mar 2023 15:14:23 +0100	[thread overview]
Message-ID: <Y/9dv1FglalcIVnQ@localhost.localdomain> (raw)
In-Reply-To: <20220822164404.57952727@gandalf.local.home>

Le Mon, Aug 22, 2022 at 04:44:04PM -0400, Steven Rostedt a écrit :
> 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:
> [   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...

  parent reply	other threads:[~2023-03-01 13:22 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-22 20:44 [BUG v6.0-rc2] lockdep splat on ct_kernel_enter() Steven Rostedt
2022-08-22 22:28 ` Steven Rostedt
2022-08-22 22:38   ` Steven Rostedt
2022-08-23  0:48     ` Steven Rostedt
2022-08-23  1:40       ` Steven Rostedt
2022-08-23  2:01         ` Steven Rostedt
2022-08-23  2:36           ` Paul E. McKenney
2023-03-01 12:37 ` Cheng-Jui Wang (王正睿)
2023-03-01 12:52   ` gregkh
2023-03-02  3:42     ` Cheng-Jui Wang (王正睿)
2023-03-02  6:42       ` gregkh
2023-03-01 14:14 ` Frederic Weisbecker [this message]
2023-03-01 20:15   ` Steven Rostedt

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=Y/9dv1FglalcIVnQ@localhost.localdomain \
    --to=frederic@kernel.org \
    --cc=fweisbec@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=paulmck@kernel.org \
    --cc=peterz@infradead.org \
    --cc=rostedt@goodmis.org \
    --cc=torvalds@linux-foundation.org \
    /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