commit | 62e6300768f6550ba24fa3ba2d4c66d725e3c890 | [log] [tgz] |
---|---|---|
author | Chris Wilson <chris@chris-wilson.co.uk> | Fri Jun 24 14:55:52 2016 +0100 |
committer | Chris Wilson <chris@chris-wilson.co.uk> | Fri Jun 24 15:02:16 2016 +0100 |
tree | 4028727b7d2aa62d6161918df31294bbc5966693 | |
parent | a09d0ba1745b607070a937083ecf9ec616178768 [diff] |
drm/i915: Skip idling an idle engine During suspend (or module unload), if we have never accessed the engine (i.e. userspace never submitted a batch to it), the engine is idle. Then we attempt to idle the engine by forcing it to the default context, which actually means we submit a render batch to setup the golden context state and then wait for it to complete. We can skip this entirely as we know the engine is idle. v2: Drop incorrect comment. References: https://bugs.freedesktop.org/show_bug.cgi?id=95634 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com> Link: http://patchwork.freedesktop.org/patch/msgid/1466776558-21516-1-git-send-email-chris@chris-wilson.co.uk