Bug 112248 - [CI][BAT]igt@i915_selftest@live_gem_contexts - dmesg-warn - ODEBUG: free active (active state 0) object type: work_struct hint: contexts_free_worker+0x0/0x40 [i915]
Summary: [CI][BAT]igt@i915_selftest@live_gem_contexts - dmesg-warn - ODEBUG: free acti...
Status: RESOLVED FIXED
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: DRI git
Hardware: Other All
: not set not set
Assignee: Intel GFX Bugs mailing list
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-11-12 06:49 UTC by Lakshmi
Modified: 2019-11-12 16:13 UTC (History)
1 user (show)

See Also:
i915 platform: BYT
i915 features: GEM/Other


Attachments

Description Lakshmi 2019-11-12 06:49:46 UTC
https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7302/fi-byt-clapper/igt@i915_selftest@live_gem_contexts.html
<3> [504.654611] ODEBUG: free active (active state 0) object type: work_struct hint: contexts_free_worker+0x0/0x40 [i915]
<4> [504.654646] WARNING: CPU: 1 PID: 3633 at lib/debugobjects.c:484 debug_print_object+0x67/0x90
<4> [504.654650] Modules linked in: i915 amdgpu gpu_sched ttm snd_intel_nhlt snd_hda_codec snd_hwdep snd_hda_core snd_pcm vgem coretemp crct10dif_pclmul crc32_pclmul ghash_clmulni_intel cdc_ether usbnet r8152 mii lpc_ich i2c_designware_pci prime_numbers btusb btrtl btbcm btintel bluetooth ecdh_generic ecc [last unloaded: i915]
<4> [504.654687] CPU: 1 PID: 3633 Comm: i915_selftest Tainted: G     U            5.4.0-rc6-CI-CI_DRM_7302+ #1
<4> [504.654692] Hardware name: GOOGLE Clapper/Clapper, BIOS MrChromebox 02/04/2018
<4> [504.654698] RIP: 0010:debug_print_object+0x67/0x90
<4> [504.654704] Code: 83 c2 01 8b 4b 14 4c 8b 45 00 89 15 f7 70 4c 02 8b 53 10 4c 89 e6 48 c7 c7 18 6d 0e 82 48 8b 14 d5 60 10 e7 81 e8 79 54 bb ff <0f> 0b 5b 83 05 73 97 e4 00 01 5d 41 5c c3 83 05 68 97 e4 00 01 c3
<4> [504.654708] RSP: 0018:ffffc90000303d50 EFLAGS: 00010286
<4> [504.654714] RAX: 0000000000000000 RBX: ffff88806cccf900 RCX: 0000000000000001
<4> [504.654719] RDX: 0000000080000001 RSI: 0000000000000006 RDI: 00000000ffffffff
<4> [504.654723] RBP: ffffffff8223f960 R08: 0000000000000000 R09: 0000000000000000
<4> [504.654727] R10: 0000000000000000 R11: 0000000000000000 R12: ffffffff820d0425
<4> [504.654731] R13: dead000000000100 R14: ffff888049cf6d40 R15: ffffffff8223f960
<4> [504.654736] FS:  00007f2540c32e40(0000) GS:ffff888077b00000(0000) knlGS:0000000000000000
<4> [504.654741] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
<4> [504.654745] CR2: 0000562f095c36b0 CR3: 000000006d7a4000 CR4: 00000000001006e0
<4> [504.654749] Call Trace:
<4> [504.654760]  debug_check_no_obj_freed+0x1dc/0x210
<4> [504.654777]  __free_pages_ok+0x1a9/0x7c0
<4> [504.654887]  ? i915_driver_release+0x66/0x80 [i915]
<4> [504.654897]  ? rcu_read_lock_sched_held+0x4d/0x80
<4> [504.654997]  i915_driver_release+0x66/0x80 [i915]
<4> [504.655008]  drm_release+0xcd/0xe0
<4> [504.655017]  __fput+0xbf/0x250
<4> [504.655030]  task_work_run+0x82/0xb0
<4> [504.655041]  exit_to_usermode_loop+0x98/0xa0
<4> [504.655048]  do_syscall_64+0x1b9/0x210
<4> [504.655056]  entry_SYSCALL_64_after_hwframe+0x49/0xbe
<4> [504.655062] RIP: 0033:0x7f25402e8839
<4> [504.655067] Code: 00 f3 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 1f f6 2c 00 f7 d8 64 89 01 48
<4> [504.655072] RSP: 002b:00007fff8c4fdd28 EFLAGS: 00000246 ORIG_RAX: 0000000000000139
<4> [504.655077] RAX: 0000000000000000 RBX: 0000561f9562c770 RCX: 00007f25402e8839
<4> [504.655082] RDX: 0000000000000000 RSI: 0000561f956258d0 RDI: 0000000000000006
<4> [504.655086] RBP: 0000561f956258d0 R08: 0000000000000004 R09: 0000561f9562dea0
<4> [504.655090] R10: 00007fff8c4fde70 R11: 0000000000000246 R12: 0000000000000000
<4> [504.655094] R13: 0000561f9561f600 R14: 0000000000000020 R15: 000000000000004b
<4> [504.655114] irq event stamp: 2135780
<4> [504.655120] hardirqs last  enabled at (2135779): [<ffffffff81129579>] console_unlock+0x4c9/0x5b0
<4> [504.655126] hardirqs last disabled at (2135780): [<ffffffff81001c0a>] trace_hardirqs_off_thunk+0x1a/0x20
<4> [504.655132] softirqs last  enabled at (2135614): [<ffffffff81c00385>] __do_softirq+0x385/0x47f
<4> [504.655138] softirqs last disabled at (2135607): [<ffffffff810b7faa>] irq_exit+0xba/0xc0
Comment 1 CI Bug Log 2019-11-12 06:50:48 UTC
The CI Bug Log issue associated to this bug has been updated.

### New filters associated

* BYT: igt@i915_selftest@live_gem_contexts - dmesg-warn - ODEBUG: free active (active state 0) object type: work_struct hint: contexts_free_worker+0x0/0x40 [i915]
  - https://intel-gfx-ci.01.org/tree/drm-tip/Trybot_5299/fi-byt-n2820/igt@i915_selftest@live_gem_contexts.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7302/fi-byt-clapper/igt@i915_selftest@live_gem_contexts.html
Comment 2 Chris Wilson 2019-11-12 16:13:02 UTC
commit 5f00cac921b1219bc9daf00d169385b4cb3916ce (HEAD -> drm-intel-next-queued, drm-intel/drm-intel-next-queued)
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date:   Tue Nov 12 15:00:51 2019 +0000

    drm/i915: Flush context free work on cleanup
    
    Throw in a flush_work() to specifically flush the context cleanup work
    before the module is unloaded.
    
    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=112248
    Fixes: a4e7ccdac38e ("drm/i915: Move context management under GEM")
    Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
    Cc: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
    Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
    Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
    Link: https://patchwork.freedesktop.org/patch/msgid/20191112150051.1603-1-chris@chris-wilson.co.uk


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.