]> 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)
commit694b78cec781a3e2beeb227ee583764c21a1a336
tree9eacf9d304c9e5d95966d7d27859bc3eb087734d
parent4f15002c8cb0f67a7c53183bbf93171b25f3d9ff
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