Bug 103994 - [CI] igt@drv_selftest@live_contexts - dmesg-warn - RPM wakelock ref not held during HW access
Summary: [CI] igt@drv_selftest@live_contexts - dmesg-warn - RPM wakelock ref not held ...
Status: CLOSED FIXED
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: DRI git
Hardware: Other All
: medium normal
Assignee: Marta Löfstedt
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard: ReadyForDev
Keywords:
Depends on:
Blocks:
 
Reported: 2017-11-30 09:25 UTC by Marta Löfstedt
Modified: 2017-12-04 09:00 UTC (History)
1 user (show)

See Also:
i915 platform: BXT
i915 features:


Attachments

Description Marta Löfstedt 2017-11-30 09:25:46 UTC
https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_3413/shard-apl8/igt@drv_selftest@live_contexts.html

[ 1839.118741] RPM wakelock ref not held during HW access
[ 1839.118856] WARNING: CPU: 2 PID: 12106 at drivers/gpu/drm/i915/intel_drv.h:1814 i915_vma_pin_iomap+0x15b/0x1f0 [i915]
[ 1839.118859] Modules linked in: i915(+) i2c_dev vgem snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_codec_generic x86_pkg_temp_thermal coretemp crct10dif_pclmul crc32_pclmul ghash_clmulni_intel snd_hda_codec snd_hwdep snd_hda_core lpc_ich snd_pcm r8169 mii mei_me mei prime_numbers pinctrl_broxton pinctrl_intel [last unloaded: i915]
[ 1839.118902] CPU: 2 PID: 12106 Comm: drv_selftest Tainted: G     U           4.15.0-rc1-CI-CI_DRM_3413+ #1
[ 1839.118904] Hardware name:                  /NUC6CAYB, BIOS AYAPLCEL.86A.0040.2017.0619.1722 06/19/2017
[ 1839.118907] task: ffff880154c2a900 task.stack: ffffc90000124000
[ 1839.118974] RIP: 0010:i915_vma_pin_iomap+0x15b/0x1f0 [i915]
[ 1839.118976] RSP: 0018:ffffc900001279d8 EFLAGS: 00010292
[ 1839.118979] RAX: 000000000000002a RBX: ffff88026993f740 RCX: 0000000000000006
[ 1839.118981] RDX: 0000000000001356 RSI: ffffffff81d05d01 RDI: ffffffff81cb7126
[ 1839.118983] RBP: ffff880247690000 R08: 0000000000000000 R09: 0000000000000001
[ 1839.118985] R10: 0000000000000000 R11: 0000000000000000 R12: ffff88026993f740
[ 1839.118987] R13: ffff88026a8cc198 R14: ffff88026462a158 R15: ffff88026a8cc198
[ 1839.118990] FS:  00007f124d4708c0(0000) GS:ffff88027fd00000(0000) knlGS:0000000000000000
[ 1839.118992] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 1839.118994] CR2: 0000560e50c5e030 CR3: 000000025c3df000 CR4: 00000000003406e0
[ 1839.118996] Call Trace:
[ 1839.119061]  intel_ring_pin+0x112/0x1d0 [i915]
[ 1839.119125]  execlists_context_pin+0x131/0x6e0 [i915]
[ 1839.119191]  i915_gem_request_alloc+0x4e/0x570 [i915]
[ 1839.119253]  igt_ctx_exec+0x377/0xeb0 [i915]
[ 1839.119332]  __i915_subtests+0x2f/0xc0 [i915]
[ 1839.119393]  i915_gem_context_live_selftests+0xdb/0x120 [i915]
[ 1839.119458]  __run_selftests+0x117/0x1b0 [i915]
[ 1839.119523]  i915_live_selftests+0x2c/0x60 [i915]
[ 1839.119577]  i915_pci_probe+0x40/0x90 [i915]
[ 1839.119586]  pci_device_probe+0x9c/0x120
[ 1839.119593]  driver_probe_device+0x2a3/0x480
[ 1839.119599]  __driver_attach+0xd9/0xe0
[ 1839.119604]  ? driver_probe_device+0x480/0x480
[ 1839.119608]  bus_for_each_dev+0x57/0x90
[ 1839.119615]  bus_add_driver+0x168/0x260
[ 1839.119620]  driver_register+0x52/0xc0
[ 1839.119623]  ? 0xffffffffa05be000
[ 1839.119627]  do_one_initcall+0x39/0x150
[ 1839.119633]  ? rcu_read_lock_sched_held+0x6f/0x80
[ 1839.119636]  ? kmem_cache_alloc_trace+0x248/0x2b0
[ 1839.119644]  do_init_module+0x56/0x1ef
[ 1839.119650]  load_module+0x231c/0x2d70
[ 1839.119657]  ? show_coresize+0x20/0x20
[ 1839.119662]  ? vfs_read+0x12c/0x150
[ 1839.119680]  ? SyS_finit_module+0xa5/0xe0
[ 1839.119683]  SyS_finit_module+0xa5/0xe0
[ 1839.119700]  entry_SYSCALL_64_fastpath+0x1c/0x89
[ 1839.119703] RIP: 0033:0x7f124b9819f9
[ 1839.119705] RSP: 002b:00007fffb81b59d8 EFLAGS: 00000206 ORIG_RAX: 0000000000000139
[ 1839.119709] RAX: ffffffffffffffda RBX: 0000000000000005 RCX: 00007f124b9819f9
[ 1839.119710] RDX: 0000000000000000 RSI: 000055f8beb9a4b0 RDI: 0000000000000005
[ 1839.119712] RBP: 00007fffb81b49e0 R08: 0000000000000000 R09: 0000000000000000
[ 1839.119714] R10: 0000000000000005 R11: 0000000000000206 R12: 000055f8beb9a930
[ 1839.119716] R13: 00007fffb81b49c0 R14: 0000000000000005 R15: 0000000000000000
[ 1839.119732] Code: 89 ab c8 00 00 00 e9 2f ff ff ff 80 3d 59 91 17 00 00 0f 85 e6 fe ff ff 48 c7 c7 b8 80 4e a0 c6 05 45 91 17 00 01 e8 35 a0 c7 e0 <0f> ff e9 cc fe ff ff 80 3d 33 91 17 00 00 0f 85 b1 fe ff ff 48 
[ 1839.119825] ---[ end trace 34c66a928cdde356 ]---
[ 1839.119870] ------------[ cut here ]------------
Comment 1 Chris Wilson 2017-11-30 09:42:16 UTC
What's most odd is that this is a one-off/sporadic!
Comment 2 Chris Wilson 2017-12-01 12:47:57 UTC
commit b37aef5f1b5a4788eca662de6cb33e1521a7e404
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date:   Thu Nov 30 09:42:31 2017 +0000

    drm/i915/selftests: Wake the device before executing requests on the GPU
    
    To execute a requests requires us to have first woken the device, using
    the rpm wakeref (as the request needs to write to hardware to setup the
    context/ppGTT and execute on the GPU). So call intel_runtime_pm_get()
    around queuing the request; the request itself will then carry a wakeref
    until completion.
    
    References: https://bugs.freedesktop.org/show_bug.cgi?id=103994
    Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
    Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
    Cc: Matthew Auld <matthew.auld@intel.com>
    Link: https://patchwork.freedesktop.org/patch/msgid/20171130094231.10405-1-chris@chris-wilson.co.uk
    Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Comment 3 Marta Löfstedt 2017-12-01 12:53:51 UTC
the fix was integrated to CI_DRM_3428, since the I will need to wait over the weekend to close this.
Comment 4 Marta Löfstedt 2017-12-04 09:00:46 UTC
This is gree I will close.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.