]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gt: Prevent allocation on a banned context
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 3 Mar 2020 08:05:45 +0000 (08:05 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 3 Mar 2020 17:30:20 +0000 (17:30 +0000)
commit373f27f24c19ad2629e636b699bc76965ca31e4d
tree9eacf9d304c9e5d95966d7d27859bc3eb087734d
parent130a95e9098e91117164b1ba52c3f8f43bb6f28a
drm/i915/gt: Prevent allocation on a banned context

If a context is banned even before we submit our first request to it,
report the failure before we attempt to allocate any resources for the
context.

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-2-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/intel_context.c