<6>[ 88.066216] Console: switching to colour dummy device 80x25 <7>[ 88.066495] [IGT] perf_pmu: executing <7>[ 88.085399] i915 0000:00:02.0: [drm:i915_gem_open [i915]] <7>[ 88.086549] i915 0000:00:02.0: [drm:i915_gem_open [i915]] <7>[ 88.105016] [IGT] perf_pmu: starting subtest init-busy <7>[ 88.105214] [IGT] perf_pmu: starting dynamic subtest rcs0 <4>[ 88.106437] ============================= <4>[ 88.106442] [ BUG: Invalid wait context ] <4>[ 88.106448] 6.13.0-rc2-CI_DRM_15815-g6fc9ce9b9be4+ #1 Not tainted <4>[ 88.106456] ----------------------------- <4>[ 88.106460] dmesg/2167 is trying to lock: <4>[ 88.106466] ffff888133da3910 (&pmu->lock){....}-{3:3}, at: i915_pmu_enable+0x48/0x3a0 [i915] <4>[ 88.106899] other info that might help us debug this: <4>[ 88.106905] context-{2:2} <4>[ 88.106909] 3 locks held by dmesg/2167: <4>[ 88.106915] #0: ffff888118149f38 (&f->f_pos_lock){+.+.}-{4:4}, at: fdget_pos+0x92/0xe0 <4>[ 88.106934] #1: ffff888106941420 (sb_writers#3){.+.+}-{0:0}, at: ksys_write+0x7c/0x100 <4>[ 88.106953] #2: ffff888277c32038 (&cpuctx_lock){-...}-{2:2}, at: __perf_install_in_context+0x3f/0x360 <4>[ 88.106970] stack backtrace: <4>[ 88.106976] CPU: 0 UID: 1000 PID: 2167 Comm: dmesg Not tainted 6.13.0-rc2-CI_DRM_15815-g6fc9ce9b9be4+ #1 <4>[ 88.106987] Hardware name: Intel Corporation NUC7CJYH/NUC7JYB, BIOS JYGLKCPX.86A.0027.2018.0125.1347 01/25/2018 <4>[ 88.106998] Call Trace: <4>[ 88.107002] <IRQ> <4>[ 88.107008] dump_stack_lvl+0x91/0xf0 <4>[ 88.107018] dump_stack+0x10/0x20 <4>[ 88.107024] __lock_acquire+0x990/0x2820 <4>[ 88.107035] ? unwind_get_return_address+0x25/0x50 <4>[ 88.107047] lock_acquire+0xc9/0x300 <4>[ 88.107055] ? i915_pmu_enable+0x48/0x3a0 [i915] <4>[ 88.107400] _raw_spin_lock_irqsave+0x49/0x80 <4>[ 88.107410] ? i915_pmu_enable+0x48/0x3a0 [i915] <4>[ 88.107753] i915_pmu_enable+0x48/0x3a0 [i915] <4>[ 88.108095] i915_pmu_event_add+0x71/0x90 [i915] <4>[ 88.108437] event_sched_in+0xe8/0x200 <4>[ 88.108445] merge_sched_in+0x183/0x410 <4>[ 88.108453] visit_groups_merge.constprop.0.isra.0+0x30a/0x490 <4>[ 88.108463] ctx_sched_in+0x216/0x290 <4>[ 88.108472] perf_event_sched_in+0x7a/0x90 <4>[ 88.108479] ctx_resched+0x1a2/0x2e0 <4>[ 88.108487] __perf_install_in_context+0x232/0x360 <4>[ 88.108496] ? __pfx_remote_function+0x10/0x10 <4>[ 88.108504] remote_function+0x4c/0x70 <4>[ 88.108511] __flush_smp_call_function_queue+0xc7/0x680 <4>[ 88.108522] generic_smp_call_function_single_interrupt+0x13/0x20 <4>[ 88.108531] __sysvec_call_function_single+0x37/0x180 <4>[ 88.108540] sysvec_call_function_single+0x9b/0xc0 <4>[ 88.108549] </IRQ> <4>[ 88.108553] <TASK> <4>[ 88.108558] asm_sysvec_call_function_single+0x1b/0x20 <4>[ 88.108568] RIP: 0010:down_write+0xf/0xf0 <4>[ 88.108577] Code: 28 e9 30 f9 ff ff 0f 1f 44 00 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 0f 1f 44 00 00 55 be 28 06 00 00 48 89 e5 53 <48> 89 fb 48 c7 c7 1f 39 f6 82 e8 e2 7d c4 fe e8 bd 9a ff ff ff 75 <4>[ 88.108593] RSP: 0018:ffffc900016c3a00 EFLAGS: 00000296 <4>[ 88.108601] RAX: ffff888118149e40 RBX: ffff888124f28040 RCX: 0000000000000000 <4>[ 88.108609] RDX: 0000000000000000 RSI: 0000000000000628 RDI: ffff88812ba0f890 <4>[ 88.108617] RBP: ffffc900016c3a08 R08: ffffc900016c3b18 R09: 0000000000000000 <4>[ 88.108625] R10: 0000000000000000 R11: 0000000000000000 R12: ffffc900016c3b18 <4>[ 88.108632] R13: ffff88812ba0f890 R14: ffffc900016c3af0 R15: ffff88812ba0f7b8 <4>[ 88.108645] ext4_buffered_write_iter+0x36/0x120 <4>[ 88.108655] ext4_file_write_iter+0xa9/0x890 <4>[ 88.108662] ? ksys_write+0x7c/0x100 <4>[ 88.108670] ? lock_is_held_type+0xa3/0x130 <4>[ 88.108677] ? lock_is_held_type+0xa3/0x130 <4>[ 88.108685] vfs_write+0x2b9/0x570 <4>[ 88.108695] ksys_write+0x7c/0x100 <4>[ 88.108703] __x64_sys_write+0x19/0x30 <4>[ 88.108711] x64_sys_call+0x2c4/0x2650 <4>[ 88.108720] do_syscall_64+0x91/0x180 <4>[ 88.108729] ? lock_acquire+0xc9/0x300 <4>[ 88.108737] ? find_held_lock+0x31/0x90 <4>[ 88.108744] ? __might_fault+0x53/0xb0 <4>[ 88.108754] ? lock_release+0xd4/0x2b0 <4>[ 88.108762] ? __might_fault+0x53/0xb0 <4>[ 88.108770] ? __might_fault+0x89/0xb0 <4>[ 88.108777] ? __might_fault+0x53/0xb0 <4>[ 88.108784] ? __rseq_handle_notify_resume+0x1d6/0x640 <4>[ 88.108794] ? mutex_unlock+0x12/0x20 <4>[ 88.108803] ? syscall_exit_to_user_mode+0x95/0x260 <4>[ 88.108810] ? do_syscall_64+0x9d/0x180 <4>[ 88.108818] ? __mutex_unlock_slowpath+0x41/0x2e0 <4>[ 88.108827] ? mutex_unlock+0x12/0x20 <4>[ 88.108834] ? __f_unlock_pos+0x15/0x20 <4>[ 88.108841] ? trace_hardirqs_off+0x5d/0xe0 <4>[ 88.108851] ? syscall_exit_to_user_mode+0x95/0x260 <4>[ 88.108859] ? do_syscall_64+0x9d/0x180 <4>[ 88.108867] ? syscall_exit_to_user_mode+0x95/0x260 <4>[ 88.108874] ? do_syscall_64+0x9d/0x180 <4>[ 88.108882] ? do_syscall_64+0x9d/0x180 <4>[ 88.108888] ? clear_bhb_loop+0x15/0x70 <4>[ 88.108895] ? clear_bhb_loop+0x15/0x70 <4>[ 88.108901] ? clear_bhb_loop+0x15/0x70 <4>[ 88.108907] entry_SYSCALL_64_after_hwframe+0x76/0x7e <4>[ 88.108916] RIP: 0033:0x72ebba51c574 <4>[ 88.108923] Code: c7 00 16 00 00 00 b8 ff ff ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 f3 0f 1e fa 80 3d d5 ea 0e 00 00 74 13 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 54 c3 0f 1f 00 55 48 89 e5 48 83 ec 20 48 89 <4>[ 88.108938] RSP: 002b:00007fff5dc59928 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 <4>[ 88.108948] RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 000072ebba51c574 <4>[ 88.108955] RDX: 0000000000000001 RSI: 000072ebba604643 RDI: 0000000000000001 <4>[ 88.108963] RBP: 00007fff5dc59950 R08: 0000628fb575f0d0 R09: 00007fff5dc599a8 <4>[ 88.108970] R10: 00007fff5dc59a6c R11: 0000000000000202 R12: 0000000000000001 <4>[ 88.108978] R13: 000072ebba604643 R14: 000072ebba6045c0 R15: 000072ebba601ee0 <4>[ 88.108989] </TASK> <7>[ 88.110577] [IGT] perf_pmu: finished subtest rcs0, SUCCESS <7>[ 88.110713] [IGT] perf_pmu: starting dynamic subtest bcs0 <7>[ 88.111806] [IGT] perf_pmu: finished subtest bcs0, SUCCESS <7>[ 88.111902] [IGT] perf_pmu: starting dynamic subtest vcs0 <7>[ 88.112783] [IGT] perf_pmu: finished subtest vcs0, SUCCESS <7>[ 88.112879] [IGT] perf_pmu: starting dynamic subtest vecs0 <7>[ 88.114017] [IGT] perf_pmu: finished subtest vecs0, SUCCESS <7>[ 88.114143] [IGT] perf_pmu: finished subtest init-busy, SUCCESS <7>[ 88.114300] i915 0000:00:02.0: [drm:i915_gem_open [i915]] <7>[ 88.115251] i915 0000:00:02.0: [drm:i915_gem_open [i915]] <7>[ 88.117772] i915 0000:00:02.0: [drm:i915_drop_caches_set [i915]] Dropping caches: 0x0000005c [0x0000005c] <7>[ 88.135404] i915 0000:00:02.0: [drm:drm_client_dev_restore] intel-fbdev: ret=0 <7>[ 88.135568] [IGT] perf_pmu: exiting, ret=0 <6>[ 88.152122] Console: switching to colour frame buffer device 240x67