OSDN Git Service

drm/i915/execlists: Delay updating ring register state after resume
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 14 Sep 2018 12:35:02 +0000 (13:35 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
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 <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180914123504.2062-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/intel_lrc.c