Chris Wilson
2214ddc2fd
drm/mm: Allow drm_mm_initialized() to be used outside of the locks
Mark up the potential racy read in drm_mm_initialized(), as we want a
cheap and cheerful check:
[ 121.098731] BUG: KCSAN: data-race in _i915_gem_object_create_stolen [i915] / rm_hole
[ 121.098766]
[ 121.098789] write (marked) to 0xffff8881f01ed330 of 8 bytes by task 3568 on cpu 3:
[ 121.098831] rm_hole+0x64/0x140
[ 121.098860] drm_mm_insert_node_in_range+0x3d3/0x6c0
[ 121.099254] i915_gem_stolen_insert_node_in_range+0x91/0xe0 [i915]
[ 121.099646] _i915_gem_object_create_stolen+0x9d/0x100 [i915]
[ 121.100047] i915_gem_object_create_region+0x7a/0xa0 [i915]
[ 121.100451] i915_gem_object_create_stolen+0x33/0x50 [i915]
[ 121.100849] intel_engine_create_ring+0x1af/0x280 [i915]
[ 121.101242] __execlists_context_alloc+0xce/0x3d0 [i915]
[ 121.101635] execlists_context_alloc+0x25/0x40 [i915]
[ 121.102030] intel_context_alloc_state+0xb6/0xf0 [i915]
[ 121.102420] __intel_context_do_pin+0x1ff/0x220 [i915]
[ 121.102815] i915_gem_do_execbuffer+0x46b4/0x4c20 [i915]
[ 121.103211] i915_gem_execbuffer2_ioctl+0x2c3/0x580 [i915]
[ 121.103244] drm_ioctl_kernel+0xe4/0x120
[ 121.103269] drm_ioctl+0x297/0x4c7
[ 121.103296] ksys_ioctl+0x89/0xb0
[ 121.103321] __x64_sys_ioctl+0x42/0x60
[ 121.103349] do_syscall_64+0x6e/0x2c0
[ 121.103377] entry_SYSCALL_64_after_hwframe+0x44/0xa9
[ 121.103403]
[ 121.103426] read to 0xffff8881f01ed330 of 8 bytes by task 3109 on cpu 1:
[ 121.103819] _i915_gem_object_create_stolen+0x30/0x100 [i915]
[ 121.104228] i915_gem_object_create_region+0x7a/0xa0 [i915]
[ 121.104631] i915_gem_object_create_stolen+0x33/0x50 [i915]
[ 121.105025] intel_engine_create_ring+0x1af/0x280 [i915]
[ 121.105420] __execlists_context_alloc+0xce/0x3d0 [i915]
[ 121.105818] execlists_context_alloc+0x25/0x40 [i915]
[ 121.106202] intel_context_alloc_state+0xb6/0xf0 [i915]
[ 121.106595] __intel_context_do_pin+0x1ff/0x220 [i915]
[ 121.106985] i915_gem_do_execbuffer+0x46b4/0x4c20 [i915]
[ 121.107375] i915_gem_execbuffer2_ioctl+0x2c3/0x580 [i915]
[ 121.107409] drm_ioctl_kernel+0xe4/0x120
[ 121.107437] drm_ioctl+0x297/0x4c7
[ 121.107464] ksys_ioctl+0x89/0xb0
[ 121.107489] __x64_sys_ioctl+0x42/0x60
[ 121.107511] do_syscall_64+0x6e/0x2c0
[ 121.107535] entry_SYSCALL_64_after_hwframe+0x44/0xa9
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20200309121529.16497-1-chris@chris-wilson.co.uk
2020-03-16 10:31:21 +00:00
..
2020-03-10 10:51:24 +01:00
2017-11-02 11:10:55 +01:00
2020-02-12 13:03:27 +01:00
2019-09-16 09:54:25 -05:00
2019-07-15 18:11:30 +02:00
2020-01-31 16:39:53 +01:00
2020-01-31 16:00:21 +01:00
2018-09-09 14:19:18 +02:00
2020-02-18 16:50:45 +01:00
2019-02-20 11:53:48 +02:00
2019-05-27 18:05:44 +02:00
2018-08-24 17:31:37 +01:00
2020-02-26 13:31:41 +02:00
2020-02-26 13:31:23 +02:00
2019-10-31 15:03:10 -07:00
2020-02-11 15:03:08 +01:00
2019-11-29 21:29:17 +02:00
2020-03-11 13:13:00 -07:00
2019-01-24 13:20:42 +01:00
2020-02-13 13:08:13 +01:00
2019-01-17 10:56:54 +01:00
2018-07-06 14:57:03 +02:00
2019-06-10 22:30:24 +02:00
2020-01-24 17:41:34 +00:00
2019-06-25 14:32:26 +10:00
2016-10-19 18:20:40 +03:00
2020-02-17 10:34:34 +01:00
2020-03-13 14:52:35 -04:00
2020-02-13 13:10:10 +01:00
2019-03-05 13:24:34 -05:00
2020-03-11 13:12:38 -07:00
2019-01-09 22:35:35 +01:00
2020-02-26 13:31:20 +02:00
2020-01-09 17:33:41 +01:00
2020-03-06 14:19:58 +01:00
2020-01-24 17:41:34 +00:00
2016-02-05 15:23:48 +10:00
2017-01-25 16:18:57 +01:00
2019-05-30 11:26:32 -07:00
2020-01-07 13:16:08 +02:00
2019-06-11 18:02:48 +02:00
2019-01-09 22:54:08 +01:00
2019-07-21 19:32:38 +02:00
2019-11-14 05:53:10 +10:00
2019-10-17 13:59:16 +02:00
2020-02-06 10:32:54 +01:00
2019-12-06 11:18:11 +01:00
2017-03-24 09:36:06 +01:00
2020-03-04 06:35:07 +05:30
2019-06-21 19:13:10 +02:00
2017-06-01 08:02:14 +02:00
2019-05-30 11:26:37 -07:00
2020-02-04 23:57:26 +00:00
2020-01-19 18:07:08 +01:00
2019-11-07 15:00:16 +02:00
2020-03-16 10:31:21 +00:00
2019-08-06 13:14:07 +05:30
2018-03-19 09:09:46 -04:00
2020-02-15 21:15:46 +01:00
2020-02-15 21:15:17 +01:00
2019-02-07 21:48:34 +01:00
2019-09-19 21:37:59 +03:00
2020-01-09 10:40:58 +10:00
2020-01-12 21:16:30 +01:00
2020-03-06 16:08:24 +01:00
2018-10-15 16:16:12 -05:00
2018-10-05 22:45:19 +02:00
2019-10-10 15:49:34 +02:00
2019-09-16 17:32:51 +02:00
2020-02-15 14:39:35 +01:00
2019-01-24 13:20:42 +01:00
2018-10-03 13:05:12 -07:00
2019-11-28 13:33:43 +02:00
2019-11-04 17:58:46 +01:00
2019-11-06 13:00:21 -05:00
2020-03-02 09:22:35 +01:00
2019-04-01 12:05:53 +02:00
2019-08-06 13:16:54 +05:30
2019-11-07 21:22:15 +00:00
2019-03-07 12:00:30 -06:00
2020-02-13 13:10:10 +01:00
2019-04-24 16:20:23 -05:00
2019-03-18 17:24:38 +02:00
2019-06-05 17:37:06 +02:00
2020-01-27 16:46:44 -05:00
2019-07-11 16:31:14 -07:00
2019-08-30 14:08:26 +05:30
2019-08-30 14:08:28 +05:30
2019-12-12 22:15:16 +02:00
2017-05-03 16:24:00 +03:00
2019-01-02 11:37:47 +02:00
2017-12-07 11:51:56 -05:00
2019-12-18 16:09:12 -05:00