igt@perf_pmu@cpu-hotplug - incomplete - BUG: sleeping function called from invalid context at ./include/linux/percpu-rwsem.h
https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8294/shard-hsw1/igt@perf_pmu@cpu-hotplug.html
<6> [22.405226] Console: switching to colour dummy device 80x25
<6> [22.405273] [IGT] perf_pmu: executing
<7> [22.473882] i915 0000:00:02.0: [drm:i915_gem_context_create_ioctl [i915]] HW context 1 created
<6> [22.473981] [IGT] perf_pmu: starting subtest cpu-hotplug
<4> [22.601328] IRQ 24: no longer affine to CPU0
<4> [22.601337] IRQ 25: no longer affine to CPU0
<6> [22.602869] smpboot: CPU 0 is now offline
<6> [23.615602] smpboot: Booting Node 0 Processor 0 APIC 0x0
<3> [23.616356] BUG: sleeping function called from invalid context at ./include/linux/percpu-rwsem.h:49
<3> [23.616363] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 0, name: swapper/0
<4> [23.616367] no locks held by swapper/0/0.
<4> [23.616370] irq event stamp: 222812
<4> [23.616381] hardirqs last enabled at (222811): [<ffffffff811689af>] tick_nohz_idle_enter+0x5f/0x90
<4> [23.616389] hardirqs last disabled at (222812): [<ffffffff810f3e42>] do_idle+0x82/0x260
<4> [23.616397] softirqs last enabled at (222778): [<ffffffff81e00395>] __do_softirq+0x395/0x49e
<4> [23.616405] softirqs last disabled at (222759): [<ffffffff810bbc9a>] irq_exit+0xba/0xc0
<3> [23.616408] Preemption disabled at:
<4> [23.616414] [<ffffffff8104439b>] start_secondary+0x4b/0x1b0
<4> [23.616421] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 5.7.0-rc1-CI-CI_DRM_8294+ #1
<4> [23.616425] Hardware name: MSI MS-7924/Z97M-G43(MS-7924), BIOS V1.12 02/15/2016
<4> [23.616429] Call Trace:
<4> [23.616439] dump_stack+0x71/0x9b
<4> [23.616449] ___might_sleep+0x178/0x260
<4> [23.616461] cpus_read_lock+0x13/0xd0
<4> [23.616467] static_key_enable+0x9/0x20
<4> [23.616474] init_freq_invariance+0x1f0/0x3a0
<4> [23.616487] start_secondary+0x71/0x1b0
<4> [23.616496] secondary_startup_64+0xa4/0xb0
<3> [23.616542] BUG: scheduling while atomic: swapper/0/0/0x00000002
<4> [23.616554] 1 lock held by swapper/0/0:
<4> [23.616559] #0: ffffffff8263e6d0 (cpu_hotplug_lock){++++}-{0:0}, at: static_key_enable+0x9/0x20
<4> [23.616574] Modules linked in: snd_hda_codec_hdmi mei_hdcp x86_pkg_temp_thermal coretemp crct10dif_pclmul crc32_pclmul i915 ghash_clmulni_intel r8169 realtek snd_hda_codec_realtek snd_hda_codec_generic snd_hda_intel snd_intel_dspcfg snd_hda_codec snd_hwdep snd_hda_core snd_pcm mei_me prime_numbers lpc_ich mei
<3> [23.616614] Preemption disabled at:
<4> [23.616618] [<ffffffff8104439b>] start_secondary+0x4b/0x1b0
<4> [23.616626] CPU: 0 PID: 0 Comm: swapper/0 Tainted: G W 5.7.0-rc1-CI-CI_DRM_8294+ #1
<4> [23.616630] Hardware name: MSI MS-7924/Z97M-G43(MS-7924), BIOS V1.12 02/15/2016
<4> [23.616634] Call Trace:
<4> [23.616643] dump_stack+0x71/0x9b
<4> [23.616648] ? start_secondary+0x4b/0x1b0
<4> [23.616652] __schedule_bug+0x7b/0xd0
<4> [23.616660] __schedule+0x7b7/0x8d0
<4> [23.616669] ? mark_held_locks+0x49/0x70
<4> [23.616676] schedule+0x37/0xe0
<4> [23.616680] ? percpu_rwsem_wait+0x117/0x180
<4> [23.616683] percpu_rwsem_wait+0x117/0x180
<4> [23.616689] ? percpu_down_write+0x140/0x140
<4> [23.616698] __percpu_down_read+0x43/0x60
<4> [23.616703] cpus_read_lock+0xc6/0xd0
<4> [23.616706] static_key_enable+0x9/0x20
<4> [23.616711] init_freq_invariance+0x1f0/0x3a0
<4> [23.616719] start_secondary+0x71/0x1b0
<4> [23.616724] secondary_startup_64+0xa4/0xb0
<4> [23.616742] ------------[ cut here ]------------
<4> [23.616743] releasing a pinned lock
<4> [23.616751] WARNING: CPU: 0 PID: 0 at kernel/locking/lockdep.c:4651 lock_release+0x29f/0x2b0
<4> [23.616987] RDX: 0000000080000003 RSI: ffffffff811328b9 RDI: 00000000ffffffff
<4> [23.617072] RSP: 0018:ffffffff82603d88 EFLAGS: 00010086
<4> [23.617112] static_key_enable+0x9/0x20
<4> [23.617133] softirqs last enabled at (222778): [<ffffffff81e00395>] __do_softirq+0x395/0x49e
<4> [23.617269] RDX: 0000000080000003 RSI: ffffffff811328b9 RDI: 00000000ffffffff
<4> [23.617351] RSP: 0018:ffffffff82603d88 EFLAGS: 00010086
<4> [23.617390] static_key_enable+0x9/0x20
<4> [23.617412] softirqs last enabled at (222778): [<ffffffff81e00395>] __do_softirq+0x395/0x49e
<4> [23.617663] __percpu_down_read+0x43/0x60
<4> [23.617686] hardirqs last disabled at (222942): [<ffffffff81a4ac74>] __schedule+0xc4/0x8d0
<4> [23.617818] RIP: 0010:lock_unpin_lock+0x114/0x120
<4> [23.617904] Code: be 3f 00 00 00 48 c7 c7 b1 0d 2e 82 c6 05 a9 a5 61 01 01 e8 d3 a7 ff ff eb ae 48 c7 c7 c4 0e 2e 82 48 89 04 24 e8 91 06 f9 ff <0f> 0b 48 8b 04 24 e9 26 fe ff ff e8 21 09 f9 ff 90 8b 0d 1e a4 64
<4> [23.617944] static_key_enable+0x9/0x20
<4> [23.617965] softirqs last enabled at (222778): [<ffffffff81e00395>] __do_softirq+0x395/0x49e
<4> [23.618094] RIP: 0010:lock_unpin_lock+0x114/0x120
<4> [23.618118] ? percpu_rwsem_wait+0x117/0x180
<4> [23.618215] __percpu_down_read+0x43/0x60
<4> [23.618238] hardirqs last disabled at (222966): [<ffffffff81a4ac74>] __schedule+0xc4/0x8d0
<4> [23.618365] CPU: 0 PID: 0 Comm: swapper/0 Tainted: G W 5.7.0-rc1-CI-CI_DRM_8294+ #1
<4> [23.618393] ? percpu_rwsem_wait+0x117/0x180
<4> [23.618458] RDX: 0000000080000003 RSI: ffffffff811328b9 RDI: 00000000ffffffff
<4> [23.618494] static_key_enable+0x9/0x20
<4> [23.618516] softirqs last enabled at (222778): [<ffffffff81e00395>] __do_softirq+0x395/0x49e
<4> [23.618731] Code: be 3f 00 00 00 48 c7 c7 b1 0d 2e 82 c6 05 a9 a5 61 01 01 e8 d3 a7 ff ff eb ae 48 c7 c7 c4 0e 2e 82 48 89 04 24 e8 91 06 f9 ff <0f> 0b 48 8b 04 24 e9 26 fe ff ff e8 21 09 f9 ff 90 8b 0d 1e a4 64
<4> [23.618782] secondary_startup_64+0xa4/0xb0
<4> [23.618809] ---[ end trace c70b2649692685be ]---
````
FYI @adrinael
Edited by LAKSHMINARAYANA VUDUM