[Bug 98670] [BAT] WARN_ON(dev_priv->gt.awake) during drv_module_reload_basic

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Dec 5 10:10:14 UTC 2016


https://bugs.freedesktop.org/show_bug.cgi?id=98670

--- Comment #3 from Chris Wilson <chris at chris-wilson.co.uk> ---
Note also that debugobjects (now enabled) is picking up a still active timer:

[   31.231857] WARNING: CPU: 2 PID: 6400 at
drivers/gpu/drm/i915/i915_gem.c:4239 i915_gem_suspend+0x181/0x190 [i915]
[   31.231859] WARN_ON(dev_priv->gt.awake)
[   31.231860] Modules linked in:
[   31.231862]  i915(-) snd_hda_codec_hdmi snd_hda_codec_realtek
snd_hda_codec_generic x86_pkg_temp_thermal intel_powerclamp coretemp
snd_hda_codec crct10dif_pclmul crc32_pclmul snd_hwdep ghash_clmulni_intel
snd_hda_core snd_pcm mei_me mei e1000e ptp pps_core i2c_hid [last unloaded:
snd_hda_intel]
[   31.231885] CPU: 2 PID: 6400 Comm: drv_module_relo Tainted: G     U  W      
4.9.0-rc8-CI-CI_DRM_1908+ #1
[   31.231887] Hardware name: GIGABYTE GB-BKi7A-7500/MFLP7AP-00, BIOS F1
07/27/2016
[   31.231888]  ffffc90000587d18 ffffffff8142e3d5 ffffc90000587d68
0000000000000000
[   31.231894]  ffffc90000587d58 ffffffff8107e4d6 0000108f00000000
ffff88025d9c0000
[   31.231901]  0000000000000000 ffff88025d9c0068 ffffffffa0147960
0000000000000000
[   31.231909] Call Trace:
[   31.231916]  [<ffffffff8142e3d5>] dump_stack+0x67/0x92
[   31.231922]  [<ffffffff8107e4d6>] __warn+0xc6/0xe0
[   31.231925]  [<ffffffff8107e53a>] warn_slowpath_fmt+0x4a/0x50
[   31.231956]  [<ffffffffa0059281>] i915_gem_suspend+0x181/0x190 [i915]
[   31.231977]  [<ffffffffa0016f2e>] i915_driver_unload+0x1e/0x190 [i915]
[   31.232000]  [<ffffffffa0020a44>] i915_pci_remove+0x14/0x20 [i915]
[   31.232003]  [<ffffffff8147da84>] pci_device_remove+0x34/0xb0
[   31.232008]  [<ffffffff8157c40c>] __device_release_driver+0x9c/0x150
[   31.232011]  [<ffffffff8157cf86>] driver_detach+0xb6/0xc0
[   31.232014]  [<ffffffff8157bea3>] bus_remove_driver+0x53/0xd0
[   31.232016]  [<ffffffff8157da47>] driver_unregister+0x27/0x50
[   31.232020]  [<ffffffff8147cad5>] pci_unregister_driver+0x25/0x70
[   31.232055]  [<ffffffffa01056f4>] i915_exit+0x1a/0x71 [i915]
[   31.232060]  [<ffffffff811134f3>] SyS_delete_module+0x193/0x1e0
[   31.232064]  [<ffffffff818192ae>] entry_SYSCALL_64_fastpath+0x1c/0xb1
[   31.232067] ---[ end trace 59f0c2ad2c693406 ]---
[   31.281573] ------------[ cut here ]------------
[   31.281581] WARNING: CPU: 3 PID: 6400 at lib/debugobjects.c:263
debug_print_object+0x87/0xb0
[   31.281587] ODEBUG: free active (active state 0) object type: timer_list
hint: delayed_work_timer_fn+0x0/0x20
[   31.281598] Modules linked in: i915(-) snd_hda_codec_hdmi
snd_hda_codec_realtek snd_hda_codec_generic x86_pkg_temp_thermal
intel_powerclamp coretemp snd_hda_codec crct10dif_pclmul crc32_pclmul snd_hwdep
ghash_clmulni_intel snd_hda_core snd_pcm mei_me mei e1000e ptp pps_core i2c_hid
[last unloaded: snd_hda_intel]
[   31.281622] CPU: 3 PID: 6400 Comm: drv_module_relo Tainted: G     U  W      
4.9.0-rc8-CI-CI_DRM_1908+ #1
[   31.281624] Hardware name: GIGABYTE GB-BKi7A-7500/MFLP7AP-00, BIOS F1
07/27/2016
[   31.281625]  ffffc90000587be8 ffffffff8142e3d5 ffffc90000587c38
0000000000000000
[   31.281630]  ffffc90000587c28 ffffffff8107e4d6 0000010700000086
ffff880258cf0bc8
[   31.281634]  ffffffff81e4ae40 ffffffff81c3d55a ffffc90000587d00
0000000000000004
[   31.281638] Call Trace:
[   31.281643]  [<ffffffff8142e3d5>] dump_stack+0x67/0x92
[   31.281647]  [<ffffffff8107e4d6>] __warn+0xc6/0xe0
[   31.281650]  [<ffffffff8107e53a>] warn_slowpath_fmt+0x4a/0x50
[   31.281652]  [<ffffffff8144dba7>] debug_print_object+0x87/0xb0
[   31.281656]  [<ffffffff8109b5a0>] ? queue_work_on+0x70/0x70
[   31.281658]  [<ffffffff8144eaf5>] debug_check_no_obj_freed+0x1c5/0x220
[   31.281663]  [<ffffffff811768ed>] __free_pages_ok+0x15d/0x630
[   31.281666]  [<ffffffff8144eb3a>] ? debug_check_no_obj_freed+0x20a/0x220
[   31.281669]  [<ffffffff81557841>] ? drm_dev_unref+0xc1/0xe0
[   31.281672]  [<ffffffff81178884>] __free_pages+0x14/0x20
[   31.281676]  [<ffffffff811d19b6>] kfree+0x246/0x2e0
[   31.281679]  [<ffffffff81557841>] drm_dev_unref+0xc1/0xe0
[   31.281705]  [<ffffffffa0020a4c>] i915_pci_remove+0x1c/0x20 [i915]
[   31.281709]  [<ffffffff8147da84>] pci_device_remove+0x34/0xb0
[   31.281713]  [<ffffffff8157c40c>] __device_release_driver+0x9c/0x150
[   31.281716]  [<ffffffff8157cf86>] driver_detach+0xb6/0xc0
[   31.281719]  [<ffffffff8157bea3>] bus_remove_driver+0x53/0xd0
[   31.281721]  [<ffffffff8157da47>] driver_unregister+0x27/0x50
[   31.281724]  [<ffffffff8147cad5>] pci_unregister_driver+0x25/0x70
[   31.281761]  [<ffffffffa01056f4>] i915_exit+0x1a/0x71 [i915]
[   31.281765]  [<ffffffff811134f3>] SyS_delete_module+0x193/0x1e0
[   31.281769]  [<ffffffff818192ae>] entry_SYSCALL_64_fastpath+0x1c/0xb1

The code currently does:

switch-to-kernel; wait-for-idle; retire-all; GEM_BUG_ON(!active_requests);

after which point we will have queued the idle_worker (queued when
active_requests -> 0). Then we flush the idle work, which should complete the
task, and certainly not leave the idle work pending. I don't see the hole, but
that still active delayed work is very suspicious.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/intel-gfx-bugs/attachments/20161205/6023b7e8/attachment.html>


More information about the intel-gfx-bugs mailing list