]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Serialize insertion into the file->mm.request_list
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 20 Aug 2019 08:09:07 +0000 (09:09 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 20 Aug 2019 13:23:45 +0000 (14:23 +0100)
commit44c22f3f1a0a1a24b7d9b0afdd77bbb949e05ba1
tree6fabc63ec75e2d0fe1e53870c9b80bb504c806b8
parent149d6deb880c3a9002161bb6f978bc81c7c1ca8e
drm/i915: Serialize insertion into the file->mm.request_list

Currently, we remove the from per-file request list for throttling and
retirement under a dedicated spinlock, but insertion is governed by
struct_mutex. This needs to be the same lock so that the
retirement/insertion of neighbouring requests (at the tail) doesn't
break the list.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Matthew Auld <matthew.auld@intel.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190820080907.4665-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c
drivers/gpu/drm/i915/i915_request.c