]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gem: Check for a closed context when looking up an engine
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 16 Mar 2020 16:14:47 +0000 (16:14 +0000)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Fri, 20 Mar 2020 14:04:41 +0000 (07:04 -0700)
commitbde00363560355d1d55f31c7e5ed6aeac9202982
tree996cbd54dba199538bd805ed956c9fff3a86cafd
parent603f3a562887551397262d5cad6819ded8c320c9
drm/i915/gem: Check for a closed context when looking up an engine

Beware that the context may already be closed as we try to lookup an
engine.

Closes: https://gitlab.freedesktop.org/drm/intel/issues/1389
Fixes: 4f15002c8cb0 ("drm/i915/gem: Consolidate ctx->engines[] release")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200316161447.18410-1-chris@chris-wilson.co.uk
(cherry picked from commit a22f34783476a39d157b60485285aaa43554cb2d)
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/i915/gem/i915_gem_context.h