]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/execlists: Reset the CSB head tracking on reset/sanitization
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 15 Jun 2018 09:31:37 +0000 (10:31 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 15 Jun 2018 18:50:37 +0000 (19:50 +0100)
commit5a07e5c1a6acaacad34cf03c95555b5efbe6a546
treeffcce16b9d59946b29fc416da81237ccc783b217
parent4b51407e1811a23c65133a5168a055e796a28e59
drm/i915/execlists: Reset the CSB head tracking on reset/sanitization

We can avoid the mmio read of the CSB pointers after reset based on the
knowledge that the HW always start writing at entry 0 in the CSB buffer.
We need to reset our CSB head tracking after GPU reset (and on
sanitization after resume) so that we are expecting to read from entry
0, hence we reset our head tracking back to the entry before (the last
entry in the ring).

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180615093137.14270-2-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/intel_lrc.c