]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit90ed7b5dbfa406d668a26c3ad09431c413ad790e
treeda7cf6e95aabc250a6d99e0c8f23d9cf15624d5e
parentccd35fd0f0a464bb083d1c341a811e40968bfa11
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