OSDN Git Service

drm/i915/selftests: Check known register values within the context
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 14 Oct 2019 09:07:48 +0000 (10:07 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 14 Oct 2019 10:10:18 +0000 (11:10 +0100)
commit9c27462c896d4852ece6086338e52777a3cb110e
treeede788324ec201794a79da4d12326db56fa2c65a
parent1fd37669bc873cee180f1505a20b16e557b7b472
drm/i915/selftests: Check known register values within the context

Check the logical ring context by asserting that the registers hold
expected start during execution. (It's a bit chicken-and-egg for how
could we manage to execute our request if the registers were not being
updated. Still, it's nice to verify that the HW is working as expected.)

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/20191014090757.32111-6-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/selftest_lrc.c