]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gem: Check that the context wasn't closed during setup
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 3 Mar 2020 08:05:46 +0000 (08:05 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 3 Mar 2020 17:30:20 +0000 (17:30 +0000)
commit12c8734d33c4f16f3c8a0062a5b53ecac1f95efc
treeba8bbb911f6d5e44e14c05137a9bd82b36679064
parentd1f697fe8f8b89144b7c92040cab5743b4f7040a
drm/i915/gem: Check that the context wasn't closed during setup

As setup takes a long time, the user may close the context during the
construction of the execbuf. In order to make sure we correctly track
all outstanding work with non-persistent contexts, we need to serialise
the submission with the context closure and mop up any leaks.

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