]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gt: Report context-is-closed prior to pinning
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 20 Mar 2020 13:01:56 +0000 (13:01 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 20 Mar 2020 13:27:28 +0000 (13:27 +0000)
commitb412c63f1cba70b0e21927ae840aa45e024be97f
tree902d4146fafd4b0c82c494def3cec2bdb44ec126
parentcb1824bb1ec6b466c610bb2bc8a11fef892fd569
drm/i915/gt: Report context-is-closed prior to pinning

Our assertion caught that we do try to pin a closed context if userspace
is viciously racing context-closure with execbuf, so make it fail
gracefully.

Closes: https://gitlab.freedesktop.org/drm/intel/issues/1492
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/20200320130159.3922-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/intel_context.c