]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0670d4920d5aff7e135671ab52fe01f151918b1a
tree03fcfd2da32235c5daec31314f9bfe94a64b1805
parent5d8f321fac157057102d3cba5074e24b4886b93b
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