]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/execlists: Add a paranoid flush of the CSB pointers upon reset
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 12 Sep 2019 09:29:32 +0000 (10:29 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 12 Sep 2019 11:59:45 +0000 (12:59 +0100)
commitb82424a275fec4cf46e25ba80c825cf86575d3df
treebf8a487ba528cd54d535bb9ef06e90a3043d17ed
parent89130f8bc063769fa6528b9ed9a6eb52b4d1f126
drm/i915/execlists: Add a paranoid flush of the CSB pointers upon reset

After a GPU reset, we need to drain all the CS events so that we have an
accurate picture of the execlists state at the time of the reset. Be
paranoid and force a read of the CSB write pointer from memory.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190912092933.4729-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/intel_lrc.c