]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc7bc4bcc42f6e88057ad786546a862f85fce9f7d
tree6115b8c4cb422c0bef28ef3c22fc8d86e8990cbe
parent12c02b4b831dd0048ad2dae86779af334d13ca41
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