drm/i915: Discard the request queue if we fail to sleep before suspend
authorChris Wilson <[email protected]>
Sat, 26 Aug 2017 11:09:35 +0000 (12:09 +0100)
committerChris Wilson <[email protected]>
Tue, 29 Aug 2017 15:56:39 +0000 (16:56 +0100)
commitfc692bd31bc9dd17c7cc59abdb514a58964fc2a7
treeaf034e277e252af435b7b556473ead7f1b205ce9
parentf36325f3789c1cf7f0d795ff180cade25ec3a586
drm/i915: Discard the request queue if we fail to sleep before suspend

If we fail to clear the outstanding request queue before suspending,
mark those requests as lost.

References: https://bugs.freedesktop.org/show_bug.cgi?id=102037
Signed-off-by: Chris Wilson <[email protected]>
Cc: Mika Kuoppala <[email protected]>
Cc: Joonas Lahtinen <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Reviewed-by: Mika Kuoppala <[email protected]>
drivers/gpu/drm/i915/i915_gem.c