linux-clk.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Guenter Roeck <linux@roeck-us.net>
To: Stephen Boyd <sboyd@kernel.org>
Cc: Michael Turquette <mturquette@baylibre.com>, linux-clk@vger.kernel.org
Subject: Backtraces with CONFIG_CLK_KUNIT_TEST=y+CONFIG_LOCKDEP=y
Date: Wed, 19 Jul 2023 16:11:36 -0700	[thread overview]
Message-ID: <2b594e50-2bbf-4a2d-88e6-49fc39f3957a@roeck-us.net> (raw)

Hi,

when booting a kernel with both CONFIG_CLK_KUNIT_TEST and CONFIG_LOCKDEP
enabled, I get a lot of warning backtraces such as the following.

[   11.119313] ------------[ cut here ]------------
[   11.119797] WARNING: CPU: 0 PID: 155 at drivers/clk/clk.c:708 clk_core_get_boundaries+0xdc/0xec
[   11.121064] CPU: 0 PID: 155 Comm: kunit_try_catch Tainted: G                 N 6.5.0-rc2-00046-gccff6d117d8d #1
[   11.121580] Hardware name: Generic DT based system
[   11.122046]  unwind_backtrace from show_stack+0x18/0x1c
[   11.122429]  show_stack from dump_stack_lvl+0x38/0x5c
[   11.122712]  dump_stack_lvl from __warn+0x7c/0x134
[   11.122978]  __warn from warn_slowpath_fmt+0x7c/0xbc
[   11.123247]  warn_slowpath_fmt from clk_core_get_boundaries+0xdc/0xec
[   11.123569]  clk_core_get_boundaries from clk_core_init_rate_req+0x50/0x90
[   11.123899]  clk_core_init_rate_req from clk_leaf_mux_set_rate_parent_determine_rate+0x60/0x264
[   11.124287]  clk_leaf_mux_set_rate_parent_determine_rate from kunit_generic_run_threadfn_adapter+0x1c/0x28
[   11.124702]  kunit_generic_run_threadfn_adapter from kthread+0xf8/0x120
[   11.125017]  kthread from ret_from_fork+0x14/0x3c
[   11.125345] Exception stack(0x881a5fb0 to 0x881a5ff8)
[   11.125710] 5fa0:                                     00000000 00000000 00000000 00000000
[   11.126084] 5fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   11.126531] 5fe0: 00000000 00000000 00000000 00000000 00000013 00000000
[   11.127384] irq event stamp: 1047
[   11.127717] hardirqs last  enabled at (1057): [<80166cb4>] __up_console_sem+0x68/0x88
[   11.128177] hardirqs last disabled at (1066): [<80166ca0>] __up_console_sem+0x54/0x88
[   11.128553] softirqs last  enabled at (0): [<80110cc4>] copy_process+0x810/0x216c
[   11.128941] softirqs last disabled at (0): [<00000000>] 0x0
[   11.129327] ---[ end trace 0000000000000000 ]---
[   11.129704] ------------[ cut here ]------------
[   11.129991] WARNING: CPU: 0 PID: 155 at drivers/clk/clk.c:1595 clk_core_round_rate_nolock+0xec/0x214
[   11.130455] CPU: 0 PID: 155 Comm: kunit_try_catch Tainted: G        W        N 6.5.0-rc2-00046-gccff6d117d8d #1
[   11.130891] Hardware name: Generic DT based system
[   11.131160]  unwind_backtrace from show_stack+0x18/0x1c
[   11.131446]  show_stack from dump_stack_lvl+0x38/0x5c
[   11.131721]  dump_stack_lvl from __warn+0x7c/0x134
[   11.131987]  __warn from warn_slowpath_fmt+0x7c/0xbc
[   11.132266]  warn_slowpath_fmt from clk_core_round_rate_nolock+0xec/0x214
[   11.132594]  clk_core_round_rate_nolock from clk_leaf_mux_set_rate_parent_determine_rate+0x6c/0x264
[   11.133001]  clk_leaf_mux_set_rate_parent_determine_rate from kunit_generic_run_threadfn_adapter+0x1c/0x28
[   11.133397]  kunit_generic_run_threadfn_adapter from kthread+0xf8/0x120
[   11.133699]  kthread from ret_from_fork+0x14/0x3c
[   11.133962] Exception stack(0x881a5fb0 to 0x881a5ff8)
[   11.134238] 5fa0:                                     00000000 00000000 00000000 00000000
[   11.134592] 5fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   11.134943] 5fe0: 00000000 00000000 00000000 00000000 00000013 00000000
[   11.135244] irq event stamp: 1131
[   11.135473] hardirqs last  enabled at (1141): [<80166cb4>] __up_console_sem+0x68/0x88
[   11.135828] hardirqs last disabled at (1150): [<80166ca0>] __up_console_sem+0x54/0x88
[   11.136203] softirqs last  enabled at (0): [<80110cc4>] copy_process+0x810/0x216c
[   11.137215] softirqs last disabled at (1169): [<80118fb0>] __irq_exit_rcu+0x12c/0x164
[   11.137649] ---[ end trace 0000000000000000 ]---
[   11.137993] ------------[ cut here ]------------
[   11.138279] WARNING: CPU: 0 PID: 155 at drivers/clk/clk.c:1467 clk_core_determine_round_nolock+0xc0/0x134
[   11.138732] CPU: 0 PID: 155 Comm: kunit_try_catch Tainted: G        W        N 6.5.0-rc2-00046-gccff6d117d8d #1
[   11.139164] Hardware name: Generic DT based system
[   11.139423]  unwind_backtrace from show_stack+0x18/0x1c
[   11.139703]  show_stack from dump_stack_lvl+0x38/0x5c
[   11.139996]  dump_stack_lvl from __warn+0x7c/0x134
[   11.140273]  __warn from warn_slowpath_fmt+0x7c/0xbc
[   11.140563]  warn_slowpath_fmt from clk_core_determine_round_nolock+0xc0/0x134
[   11.140909]  clk_core_determine_round_nolock from clk_leaf_mux_set_rate_parent_determine_rate+0x6c/0x264
[   11.141323]  clk_leaf_mux_set_rate_parent_determine_rate from kunit_generic_run_threadfn_adapter+0x1c/0x28
[   11.141758]  kunit_generic_run_threadfn_adapter from kthread+0xf8/0x120
[   11.142112]  kthread from ret_from_fork+0x14/0x3c
[   11.142422] Exception stack(0x881a5fb0 to 0x881a5ff8)
[   11.142696] 5fa0:                                     00000000 00000000 00000000 00000000
[   11.143061] 5fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   11.143386] 5fe0: 00000000 00000000 00000000 00000000 00000013 00000000
[   11.143674] irq event stamp: 1223
[   11.143910] hardirqs last  enabled at (1233): [<80166cb4>] __up_console_sem+0x68/0x88
[   11.144277] hardirqs last disabled at (1242): [<80166ca0>] __up_console_sem+0x54/0x88
[   11.144645] softirqs last  enabled at (1174): [<80101494>] __do_softirq+0x224/0x3b0
[   11.145053] softirqs last disabled at (1169): [<80118fb0>] __irq_exit_rcu+0x12c/0x164
[   11.145398] ---[ end trace 0000000000000000 ]---

It would be great if the problem can get fixed so I can enable
both options in my boot tests. I'd be happy to submit a patch
(or patch series) to fix it, but I have no idea what is actually
wrong. 

Guenter

             reply	other threads:[~2023-07-19 23:11 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-19 23:11 Guenter Roeck [this message]
2023-07-20  0:01 ` Backtraces with CONFIG_CLK_KUNIT_TEST=y+CONFIG_LOCKDEP=y Stephen Boyd
2023-07-20  0:52   ` Guenter Roeck
2023-07-20 14:53   ` Maxime Ripard

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=2b594e50-2bbf-4a2d-88e6-49fc39f3957a@roeck-us.net \
    --to=linux@roeck-us.net \
    --cc=linux-clk@vger.kernel.org \
    --cc=mturquette@baylibre.com \
    --cc=sboyd@kernel.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;
as well as URLs for NNTP newsgroup(s).