]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/execlists: Check for ce->state before destroy
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 25 Jun 2018 10:06:03 +0000 (11:06 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 25 Jun 2018 15:28:23 +0000 (16:28 +0100)
commit68ee36f1b9a6c3f012d6a17e6fcdbd2f28a18b57
treee3d85b415b8b610f5272ce6c8c53c2bad5eb289d
parent18c4b6f562819b3339cf12e9cda7d6e4c8d2f030
drm/i915/execlists: Check for ce->state before destroy

As we may cancel the ce->state allocation during context pinning (but
crucially after we mark ce as operational), that means we may be asked
to destroy a nonexistent ce->state. Given the choice in handing a
complex error path on pinning, and just ignoring the lack of state in
destroy, choice the latter for simplicity.

Reported-by: Zhao Yakui <yakui.zhao@intel.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180625100604.22598-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/intel_lrc.c