Chris Wilson
f4d49692ad
drm/i915/gt: Mark up the racy read of execlists->context_tag
Since we are using bitops on context_tag to allow us to reserve and
release inflight tags concurrently, the scan for the next bit is
intentionally racy.
[ 516.446854] BUG: KCSAN: data-race in execlists_schedule_in.isra.0 [i915] / execlists_schedule_out [i915]
[ 516.446874]
[ 516.446886] write (marked) to 0xffff8881f7644048 of 8 bytes by interrupt on cpu 2:
[ 516.447076] execlists_schedule_out+0x538/0x6a0 [i915]
[ 516.447263] process_csb+0x10b/0x3d0 [i915]
[ 516.447449] execlists_submission_tasklet+0x30/0x170 [i915]
[ 516.447468] tasklet_action_common.isra.0+0x42/0x90
[ 516.447484] __do_softirq+0xc8/0x206
[ 516.447498] irq_exit+0xcd/0xe0
[ 516.447516] do_IRQ+0x44/0xc0
[ 516.447535] ret_from_intr+0x0/0x1c
[ 516.447550] cpuidle_enter_state+0x199/0x400
[ 516.447572] cpuidle_enter+0x50/0x90
[ 516.447587] do_idle+0x197/0x1e0
[ 516.447600] cpu_startup_entry+0x14/0x20
[ 516.447619] start_secondary+0xf9/0x130
[ 516.447643] secondary_startup_64+0xa4/0xb0
[ 516.447655]
[ 516.447671] read to 0xffff8881f7644048 of 8 bytes by task 460 on cpu 1:
[ 516.447863] execlists_schedule_in.isra.0+0x3cf/0x5a0 [i915]
[ 516.448064] execlists_dequeue+0xf8f/0x1690 [i915]
[ 516.448252] __execlists_submission_tasklet+0x48/0x60 [i915]
[ 516.448440] execlists_submit_request+0x2e2/0x310 [i915]
[ 516.448634] submit_notify+0x8f/0xc8 [i915]
[ 516.448820] __i915_sw_fence_complete+0x61/0x420 [i915]
[ 516.449005] i915_sw_fence_complete+0x58/0x80 [i915]
[ 516.449208] i915_sw_fence_commit+0x16/0x20 [i915]
[ 516.449399] __i915_request_queue+0x60/0x70 [i915]
[ 516.449590] i915_gem_do_execbuffer+0x33f1/0x4a00 [i915]
[ 516.449782] i915_gem_execbuffer2_ioctl+0x2a2/0x550 [i915]
[ 516.449800] drm_ioctl_kernel+0xe9/0x130
[ 516.449814] drm_ioctl+0x27d/0x45e
[ 516.449827] ksys_ioctl+0x89/0xb0
[ 516.449842] __x64_sys_ioctl+0x42/0x60
[ 516.449864] do_syscall_64+0x6e/0x2c0
[ 516.449878] entry_SYSCALL_64_after_hwframe+0x44/0xa9
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200511075722.13483-1-chris@chris-wilson.co.uk
2020-05-11 11:01:12 +01:00
..
2020-04-16 14:52:59 +03:00
2020-02-26 13:31:23 +02:00
2020-03-06 11:25:58 +08:00
2020-03-06 14:19:58 +01:00
2019-08-14 19:27:26 +02:00
2020-03-02 09:22:43 +01:00
2020-02-26 13:31:23 +02:00
2020-03-31 15:15:47 +10:00
2020-04-09 10:29:35 +02:00
2020-02-12 10:24:08 +01:00
2020-03-20 18:40:44 +01:00
2020-04-09 10:29:35 +02:00
2020-02-26 13:31:23 +02:00
2020-03-06 14:19:58 +01:00
2020-03-11 07:27:21 +10:00
2020-02-26 13:31:23 +02:00
2019-12-05 08:44:12 +01:00
2020-05-11 11:01:12 +01:00
2020-02-26 13:31:23 +02:00
2020-02-26 13:31:23 +02:00
2020-02-21 05:44:40 +10:00
2020-02-26 13:31:23 +02:00
2020-04-02 15:50:04 -07:00
2020-03-10 10:51:24 +01:00
2019-12-05 08:44:16 +01:00
2020-03-02 09:22:49 +01:00
2020-04-08 11:00:00 -07:00
2019-12-09 22:57:26 +01:00
2020-04-07 20:24:34 -07:00
2020-04-03 15:05:35 -07:00
2020-03-25 21:59:22 +01:00
2020-03-12 12:42:56 +10:00
2020-02-16 14:31:30 +01:00
2020-03-02 09:22:56 +01:00
2019-12-05 08:44:23 +01:00
2020-04-03 14:25:02 -07:00
2020-02-26 13:31:23 +02:00
2020-04-09 10:29:35 +02:00
2019-12-05 08:44:34 +01:00
2020-03-26 10:22:36 -04:00
2020-02-12 18:32:54 +01:00
2019-12-05 08:44:55 +01:00
2020-02-26 13:31:23 +02:00
2020-02-26 13:31:23 +02:00
2020-03-11 07:27:21 +10:00
2019-12-05 08:45:01 +01:00
2020-03-19 10:11:09 +10:00
2020-02-28 14:48:58 +02:00
2020-02-26 13:31:23 +02:00
2020-03-14 08:31:30 +01:00
2020-04-10 12:38:28 -07:00
2019-12-09 22:57:26 +01:00
2020-02-10 09:24:09 +01:00
2020-03-04 22:15:34 -08:00
2020-03-26 17:03:03 +01:00
2020-03-27 13:38:47 +01:00
2020-02-06 19:04:41 +01:00
2020-01-31 12:16:36 -08:00
2020-04-06 15:10:37 +02:00
2020-02-13 13:10:10 +01:00
2020-04-03 09:07:49 +10:00
2020-03-31 17:14:51 +02:00
2020-01-28 15:43:58 +01:00
2019-11-04 18:17:36 +01:00
2020-01-31 16:39:53 +01:00
2020-02-15 13:21:22 +01:00
2019-12-22 11:13:00 +01:00
2020-02-18 16:50:45 +01:00
2020-01-29 09:14:11 +01:00
2019-10-09 20:04:55 +02:00
2020-02-26 13:31:41 +02:00
2020-02-26 13:31:41 +02:00
2020-03-16 09:26:18 +01:00
2019-10-25 09:35:06 +02:00
2020-03-11 07:27:21 +10:00
2020-02-29 00:16:12 +01:00
2019-11-29 21:29:17 +02:00
2020-02-26 13:31:18 +02:00
2020-03-16 09:23:55 +01:00
2019-09-16 15:13:02 -07:00
2020-02-15 21:15:17 +01:00
2020-01-14 16:22:17 -05:00
2019-10-08 09:41:06 -04:00
2020-01-28 16:49:22 +01:00
2020-01-25 15:49:11 +02:00
2020-01-18 10:33:12 +01:00
2020-01-09 18:07:46 -05:00
2019-10-08 18:29:00 +02:00
2020-04-16 14:52:59 +03:00
2019-09-03 19:30:06 -04:00
2020-03-31 15:15:47 +10:00
2020-02-11 15:03:09 +01:00
2019-09-30 20:15:53 +03:00
2019-08-07 11:56:48 -04:00
2019-10-02 16:28:55 +03:00
2020-03-16 10:54:08 +01:00
2019-12-09 10:03:01 +01:00
2020-01-09 17:33:41 +01:00
2020-03-06 14:19:57 +01:00
2020-03-24 18:50:35 +01:00
2020-02-17 10:27:13 +01:00
2019-11-28 11:19:32 +01:00
2020-01-14 16:22:17 -05:00
2019-12-19 15:55:10 +02:00
2020-03-02 07:13:19 +01:00
2019-11-15 08:00:08 +01:00
2020-02-06 10:32:54 +01:00
2020-03-16 10:31:35 +00:00
2020-03-04 06:33:00 +05:30
2020-03-04 06:33:00 +05:30
2020-01-14 16:22:17 -05:00
2020-02-11 18:39:47 +02:00
2019-08-22 10:41:06 +03:00
2020-03-18 14:42:18 +01:00
2020-03-16 09:27:09 +01:00
2019-09-30 20:16:28 +03:00
2020-01-30 09:00:45 +01:00
2019-11-07 15:00:16 +02:00
2020-03-31 17:35:56 +02:00
2019-11-21 11:03:31 +01:00
2019-11-04 18:17:36 +01:00
2020-02-12 18:32:54 +01:00
2019-12-18 02:40:16 +02:00
2019-12-17 20:39:33 +01:00
2020-03-09 09:22:50 +00:00
2020-04-05 10:44:12 -04:00
2019-11-14 14:08:57 +02:00
2019-12-09 10:02:45 +01:00
2019-12-04 19:44:13 -08:00
2019-11-28 13:15:43 +01:00
2020-02-29 00:16:12 +01:00
2019-11-06 13:00:21 -05:00
2020-03-06 09:24:29 +01:00
2020-01-20 14:22:21 +01:00
2020-03-11 14:54:09 +01:00
2019-09-03 09:46:18 +02:00
2020-03-06 09:24:54 +01:00
2020-03-16 09:25:22 +01:00
2019-09-12 19:54:42 +02:00
2019-09-23 15:32:53 +08:00
2020-03-06 11:15:43 +00:00
2020-02-26 13:31:41 +02:00