drm/i915/selftests: Verify context workarounds
authorTvrtko Ursulin <tvrtko.ursulin@intel.com>
Mon, 20 May 2019 14:25:46 +0000 (15:25 +0100)
committerTvrtko Ursulin <tvrtko.ursulin@intel.com>
Wed, 22 May 2019 09:11:09 +0000 (10:11 +0100)
commitfde938867b92607d1108fa42cf7fbfcbab8457c8
tree9a3b03e20c42326d50753731304db913e49c119d
parenta88b6e4cbafd6f23b3450c087acdbe23d90e7606
drm/i915/selftests: Verify context workarounds

Test context workarounds have been correctly applied in newly created
contexts.

To accomplish this the existing engine_wa_list_verify helper is extended
to take in a context from which reading of the workaround list will be
done.

Context workaround verification is done from the existing subtests, which
have been renamed to reflect they are no longer only about GT and engine
workarounds.

v2:
 * Test after resets and refactor to use intel_context more. (Chris)

v3:
 * Use ce->engine->i915 instead of ce->gem_context->i915. (Chris)
 * gem_engine_iter.idx is engine->id + 1. (Chris)

v4:
 * Make local function static.

Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20190520142546.12493-1-tvrtko.ursulin@linux.intel.com
drivers/gpu/drm/i915/gt/intel_workarounds.c
drivers/gpu/drm/i915/gt/selftest_workarounds.c