drm/i915/gt: Pull context closure check from request submit to schedule-in
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 31 Dec 2020 09:39:46 +0000 (09:39 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 31 Dec 2020 11:30:03 +0000 (11:30 +0000)
commit9c080b0f96371dceca92d67b0c50c07b479203e2
tree2c0a0b442e806269aeb26b874cd545cd1c54bb7e
parent7904e0819d5f7e71413873ac62b79c164d619f58
drm/i915/gt: Pull context closure check from request submit to schedule-in

We only need to evaluate the current status of the context when it is
scheduled in, we will force a reschedule when the context is closed
propagating the change to inflight contexts.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20201231093946.11649-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/intel_execlists_submission.c
drivers/gpu/drm/i915/i915_request.c