Few tests - dmesg-warn/dmesg-fail - RPM wakelock ref not held during HW access
https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10006/fi-bsw-nick/igt@gem_ctx_exec@basic.html
Dmesg
<6> [73.780256] [IGT] gem_ctx_exec: executing
<7> [73.814334] i915 0000:00:02.0: [drm:i915_gem_context_create_ioctl [i915]] HW context 1 created
<6> [73.815368] [IGT] gem_ctx_exec: starting subtest basic
<7> [73.816433] i915 0000:00:02.0: [drm:i915_gem_context_create_ioctl [i915]] HW context 1 created
<7> [73.817063] i915 0000:00:02.0: [drm:intel_power_well_enable [i915]] enabling always-on
<4> [73.823225] ------------[ cut here ]------------
<4> [73.823278] RPM wakelock ref not held during HW access
<4> [73.823342] WARNING: CPU: 0 PID: 148 at drivers/gpu/drm/i915/intel_runtime_pm.h:115 __assert_rpm_wakelock_held+0x85/0x90 [i915]
<4> [73.823658] Modules linked in: amdgpu drm_ttm_helper ttm gpu_sched fuse snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_codec_generic ledtrig_audio btusb i915 btrtl btbcm btintel bluetooth snd_hda_intel snd_intel_dspcfg snd_hda_codec coretemp crct10dif_pclmul snd_hwdep ecdh_generic crc32_pclmul ecc snd_hda_core ghash_clmulni_intel r8169 realtek snd_pcm i2c_i801 lpc_ich i2c_smbus i2c_designware_pci prime_numbers pinctrl_cherryview
<4> [73.823895] CPU: 0 PID: 148 Comm: kworker/0:2 Not tainted 5.12.0-rc8-CI-CI_DRM_10006+ #1
<4> [73.823906] Hardware name: /NUC5CPYB, BIOS PYBSWCEL.86A.0079.2020.0420.1316 04/20/2020
<4> [73.823915] Workqueue: events rps_work [i915]
<4> [73.824202] RIP: 0010:__assert_rpm_wakelock_held+0x85/0x90 [i915]
<4> [73.824462] Code: 01 e8 7c f2 85 e1 0f 0b 8b 74 24 04 eb a6 80 3d a0 ae 31 00 00 75 a2 48 c7 c7 78 e2 40 a0 c6 05 90 ae 31 00 01 e8 58 f2 85 e1 <0f> 0b eb 8b 0f 1f 80 00 00 00 00 41 57 49 89 ff 41 56 41 be 00 00
<4> [73.824472] RSP: 0018:ffffc90000cf7db8 EFLAGS: 00010086
<4> [73.824486] RAX: 0000000000000000 RBX: ffff88802d350ef8 RCX: 0000000000000002
<4> [73.824494] RDX: 0000000080000002 RSI: ffffffff8235e8c3 RDI: 00000000ffffffff
<4> [73.824502] RBP: 0000000000044324 R08: ffff888003e9b200 R09: 00000000fffffffe
<4> [73.824510] R10: 00000000ddbc5072 R11: 00000000a48193f3 R12: ffff88802d350f10
<4> [73.824518] R13: 00000000ffffff8f R14: ffff88802d35b738 R15: 0000000000000000
<4> [73.824526] FS: 0000000000000000(0000) GS:ffff888074400000(0000) knlGS:0000000000000000
<4> [73.824534] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
<4> [73.824542] CR2: 00007fff8370f880 CR3: 000000000a774000 CR4: 00000000001006f0
<4> [73.824550] Call Trace:
<4> [73.824564] fwtable_write32+0x34/0x1c0 [i915]
<4> [73.824836] rps_work+0x72/0x3a0 [i915]
<4> [73.825139] process_one_work+0x270/0x5c0
<4> [73.825179] worker_thread+0x37/0x380
<4> [73.825199] ? process_one_work+0x5c0/0x5c0
<4> [73.825211] kthread+0x146/0x170
<4> [73.825222] ? kthread_park+0x80/0x80
<4> [73.825241] ret_from_fork+0x22/0x30
<4> [73.825290] irq event stamp: 119148
<4> [73.825297] hardirqs last enabled at (119147): [<ffffffff81ab553f>] _raw_spin_unlock_irq+0x1f/0x40
<4> [73.825309] hardirqs last disabled at (119148): [<ffffffff81ab5321>] _raw_spin_lock_irq+0x41/0x50
<4> [73.825319] softirqs last enabled at (118550): [<ffffffff81e00342>] __do_softirq+0x342/0x48e
<4> [73.825329] softirqs last disabled at (118517): [<ffffffff810b470d>] irq_exit_rcu+0xad/0xd0
<4> [73.825341] ---[ end trace f796666ed1addf07 ]---
Edited by Tejasree Illipilli