OSDN Git Service

drm/i915: add schedule out notification of preempted but completed request
authorWeinan Li <weinan.z.li@intel.com>
Tue, 6 Mar 2018 02:15:57 +0000 (10:15 +0800)
committerJoonas Lahtinen <joonas.lahtinen@linux.intel.com>
Thu, 8 Mar 2018 11:50:11 +0000 (13:50 +0200)
commit702791f7f20473813e613b7899d2c5ba5dc86b04
tree03fcfd2da32235c5daec31314f9bfe94a64b1805
parentc822e059185585f79b2007b1d2cafacf4264e610
drm/i915: add schedule out notification of preempted but completed request

There is one corner case missing schedule out notification of the preempted
request. The preempted request is just completed when preemption happen,
then it will be canceled and won't be resubmitted later, GVT-g will lost
the schedule out notification.

Here add schedule out notification if found the preempted request has been
completed.

v2:
- refine description, add completed check and notification in
  execlists_cancel_port_requests. (Chris)

v3:
- use ternary confitional, remove local variable. (Tvrtko)

Cc: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Weinan Li <weinan.z.li@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Signed-off-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/1520302557-25079-1-git-send-email-weinan.z.li@intel.com
drivers/gpu/drm/i915/intel_lrc.c