drm/i915/execlists: Delay updating ring register state after resume
authorChris Wilson <[email protected]>
Fri, 14 Sep 2018 12:35:02 +0000 (13:35 +0100)
committerChris Wilson <[email protected]>
Fri, 14 Sep 2018 13:23:32 +0000 (14:23 +0100)
commitdee60ca1f35234d890977c095410ed6ac1dcfc33
tree6115b8c4cb422c0bef28ef3c22fc8d86e8990cbe
parent22495b68f954c9018fd52bc620292cc80df2e418
drm/i915/execlists: Delay updating ring register state after resume

Now that we reload both RING_HEAD and RING_TAIL when rebinding the
context, we do not need to scrub those registers immediately on resume.

v2: Handle the perma-pinned contexts.
v3: Set RING_TAIL on context-pin so that we always have known state in
the context image for the ring registers and all parties have similar
code (ripe for refactoring).

Signed-off-by: Chris Wilson <[email protected]>
Cc: Tvrtko Ursulin <[email protected]>
Cc: Mika Kuoppala <[email protected]>
Reviewed-by: Tvrtko Ursulin <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
drivers/gpu/drm/i915/intel_lrc.c