drm/i915/execlists: Notify context-out for lost requests
authorChris Wilson <[email protected]>
Tue, 26 Sep 2017 10:17:19 +0000 (11:17 +0100)
committerChris Wilson <[email protected]>
Wed, 27 Sep 2017 09:48:59 +0000 (10:48 +0100)
commit7e44fc289d54aa3f1f37d6c9e5157f79011c6476
treefdbc976376d5272efc1ec48ab4019307536d18c9
parent4e9767bc28e93139442847f023ff2fc0c2a21d34
drm/i915/execlists: Notify context-out for lost requests

When cancelling requests, also send the notification to any listeners
(gvt) that the request is no longer scheduled on hw. They may require to
keep the in/out exactly balanced, and so the reuse after the reset may
confuse the listener.

Fixes: 221ab9719bf3 ("drm/i915/execlists: Unwind incomplete requests on resets")
Signed-off-by: Chris Wilson <[email protected]>
Cc: "Zhenyu Wang" <[email protected]>
Cc: "Wang, Zhi A" <[email protected]>
Cc: MichaƂ Winiarski <[email protected]>
Cc: Mika Kuoppala <[email protected]>
Cc: Tvrtko Ursulin <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Reviewed-by: Mika Kuoppala <[email protected]>
drivers/gpu/drm/i915/intel_lrc.c