Chris Wilson
6f13f29f2c
drm/i915: Flush the change in debugobject before reallocation
...
When marking the debugobject as freed, be sure that write is flushed
before another CPU may see it on a reallocation path.
Only seen once in CI:
[ 159.240873] WARNING: CPU: 3 PID: 6735 at lib/debugobjects.c:263 debug_print_object+0x87/0xb0
[ 159.240897] ODEBUG: init destroyed (active state 0) object type: i915_sw_fence hint: submit_notify+0x0/0x4c [i915]
[ 159.240902] Modules linked in: snd_hda_intel i915 x86_pkg_temp_thermal intel_powerclamp coretemp crct10dif_pclmul snd_hda_codec_realtek crc32_pclmul snd_hda_codec_generic snd_hda_codec_hdmi ghash_clmulni_intel snd_hda_codec snd_hwdep snd_hda_core snd_pcm mei_me lpc_ich mei e1000e ptp pps_core [last unloaded: i915]
[ 159.240913] CPU: 3 PID: 6735 Comm: gem_exec_nop Tainted: G U 4.10.0-rc3-CI-Trybot_479+ #1
[ 159.240913] Hardware name: LENOVO 10AGS00601/SHARKBAY, BIOS FBKT34AUS 04/24/2013
[ 159.240914] Call Trace:
[ 159.240916] dump_stack+0x67/0x92
[ 159.240919] __warn+0xc6/0xe0
[ 159.240920] warn_slowpath_fmt+0x4a/0x50
[ 159.240921] debug_print_object+0x87/0xb0
[ 159.240935] ? __i915_request_wait_for_execute+0x1d0/0x1d0 [i915]
[ 159.240936] __debug_object_init+0xb2/0x410
[ 159.240950] ? __i915_request_wait_for_execute+0x1d0/0x1d0 [i915]
[ 159.240951] debug_object_init+0x16/0x20
[ 159.240962] __i915_sw_fence_init+0x29/0x60 [i915]
[ 159.240975] i915_gem_request_alloc+0x1fb/0x450 [i915]
[ 159.240987] i915_gem_do_execbuffer.isra.15+0x798/0x1b20 [i915]
[ 159.241000] i915_gem_execbuffer2+0xc0/0x250 [i915]
[ 159.241003] drm_ioctl+0x200/0x450
[ 159.241016] ? i915_gem_execbuffer+0x330/0x330 [i915]
[ 159.241018] do_vfs_ioctl+0x90/0x6e0
[ 159.241020] ? trace_hardirqs_on_caller+0x122/0x1b0
[ 159.241021] SyS_ioctl+0x3c/0x70
[ 159.241023] entry_SYSCALL_64_fastpath+0x1c/0xb1
[ 159.241024] RIP: 0033:0x7f9bc4f41357
[ 159.241025] RSP: 002b:00007ffc6cd5c568 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
[ 159.241026] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f9bc4f41357
[ 159.241026] RDX: 00007ffc6cd5c640 RSI: 0000000040406469 RDI: 0000000000000003
[ 159.241027] RBP: 00007ffc6cd5c640 R08: 0000000000047508 R09: 0000000000000001
[ 159.241027] R10: 000b58552d323c3d R11: 0000000000000246 R12: 0000000040406469
[ 159.241028] R13: 0000000000000003 R14: 0000000000000004 R15: 0000000000000001
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: http://patchwork.freedesktop.org/patch/msgid/20170113214335.5829-1-chris@chris-wilson.co.uk
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
2017-01-16 12:21:19 +00:00
..
2017-01-11 12:25:15 +00:00
2017-01-06 16:02:07 +00:00
2017-01-14 16:18:03 +00:00
2017-01-12 16:10:41 +02:00
2017-01-12 16:35:20 -08:00
2016-10-28 20:53:50 +01:00
2017-01-13 16:35:27 +00:00
2017-01-06 16:02:12 +00:00
2016-12-01 18:00:15 +00:00
2017-01-12 07:51:49 +00:00
2017-01-10 20:54:32 +00:00
2017-01-10 20:54:32 +00:00
2017-01-10 20:54:32 +00:00
2017-01-14 16:18:36 +00:00
2017-01-14 16:18:36 +00:00
2017-01-12 16:47:04 +00:00
2017-01-10 15:29:14 +00:00
2017-01-10 20:54:32 +00:00
2016-10-28 20:53:44 +01:00
2017-01-11 14:31:48 +00:00
2017-01-03 11:41:17 +02:00
2016-12-13 09:35:09 -08:00
2017-01-11 12:28:13 +00:00
2017-01-10 20:54:32 +00:00
2017-01-05 15:34:40 +00:00
2016-11-25 07:01:11 +00:00
2017-01-04 11:35:18 +01:00
2017-01-14 16:18:36 +00:00
2016-12-16 21:16:36 +00:00
2017-01-16 12:20:17 +00:00
2017-01-05 15:34:46 +00:00
2017-01-12 16:47:04 +00:00
2017-01-12 16:09:35 +02:00
2016-11-22 14:40:00 +01:00
2016-11-22 14:38:51 +01:00
2016-11-24 13:52:34 +00:00
2016-11-24 13:52:34 +00:00
2017-01-04 14:40:46 -02:00
2016-12-18 16:18:53 +00:00
2017-01-13 10:47:30 -08:00
2016-12-01 18:01:23 +00:00
2017-01-16 12:21:19 +00:00
2016-12-05 11:00:32 +02:00
2017-01-10 11:03:57 +02:00
2017-01-11 12:28:13 +00:00
2017-01-05 21:02:04 +00:00
2017-01-11 12:28:13 +00:00
2017-01-14 16:18:03 +00:00
2017-01-14 16:18:03 +00:00
2016-12-19 17:48:52 +01:00
2017-01-02 11:31:53 +02:00
2016-12-22 12:29:17 +02:00
2017-01-06 16:02:11 +00:00
2016-12-20 16:28:25 +02:00
2016-12-20 12:30:25 +00:00
2016-11-17 13:56:35 +00:00
2016-11-25 16:43:24 +02:00
2017-01-10 11:03:56 +02:00
2016-12-30 09:26:10 +02:00
2017-01-10 11:03:57 +02:00
2017-01-14 16:18:35 +00:00
2016-12-05 16:23:18 +02:00
2017-01-16 12:20:17 +00:00
2016-12-02 12:16:25 -08:00
2017-01-02 11:31:53 +02:00
2016-12-30 09:32:34 +02:00
2017-01-10 17:30:50 +01:00
2016-12-20 16:28:38 +02:00
2016-12-16 11:22:01 +02:00
2017-01-04 11:35:18 +01:00
2016-11-25 16:43:24 +02:00
2016-12-18 16:18:50 +00:00
2017-01-12 15:36:38 +01:00
2017-01-10 08:06:56 +10:00
2016-11-01 16:40:38 +02:00
2016-11-18 11:15:59 +00:00
2016-12-07 07:10:21 +00:00
2017-01-12 16:47:04 +00:00
2016-10-20 17:18:39 +08:00
2016-10-20 17:18:30 +08:00
2016-11-22 17:42:17 +00:00
2016-12-02 16:38:56 +02:00
2016-11-11 14:58:26 +00:00
2016-12-07 15:19:31 +02:00
2017-01-12 16:47:04 +00:00
2017-01-10 20:54:32 +00:00
2016-11-23 13:32:01 +02:00
2016-12-13 17:25:26 +02:00
2016-12-02 16:38:56 +02:00
2016-12-01 18:01:15 +00:00
2016-11-17 12:45:59 +02:00
2017-01-14 16:18:36 +00:00
2016-12-13 17:28:08 +02:00
2017-01-10 17:30:50 +01:00
2017-01-09 09:55:57 +10:00
2017-01-13 10:46:12 -08:00
2017-01-12 15:48:08 +02:00
2016-12-24 10:06:59 +00:00
2016-12-20 16:27:46 +02:00
2016-12-07 23:28:33 +02:00
2017-01-04 11:41:10 +01:00
2016-11-25 16:43:24 +02:00
2017-01-03 10:16:12 +00:00
2017-01-05 15:34:46 +00:00
2017-01-04 11:35:18 +01:00
2016-12-23 15:13:39 +02:00
2016-12-16 16:55:26 +08:00
2016-12-05 20:49:17 +00:00
2016-12-13 09:41:24 +01:00