drm/i915/selftests: Pass intel_context to igt_spinner
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 31 Jul 2019 08:11:26 +0000 (09:11 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 31 Jul 2019 08:45:27 +0000 (09:45 +0100)
commitf277bc0c98a407732d933ac5c53d9cd1224653cb
treeda7cf6e95aabc250a6d99e0c8f23d9cf15624d5e
parentcb0c43f30ca6a34cf9e796d6ca165668cbc2ec89
drm/i915/selftests: Pass intel_context to igt_spinner

Teach igt_spinner to only use our internal structs, decoupling the
interface from the GEM contexts. This makes it easier to avoid
requiring ce->gem_context back references for kernel_context that may
have them in future.

v2: Lift engine lock to verify_wa() caller.
v3: Less than v2, but more so

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190731081126.9139-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gem/selftests/i915_gem_context.c
drivers/gpu/drm/i915/gt/selftest_lrc.c
drivers/gpu/drm/i915/gt/selftest_workarounds.c
drivers/gpu/drm/i915/selftests/igt_spinner.c
drivers/gpu/drm/i915/selftests/igt_spinner.h