]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/selftests: Live tests emit requests and so require rpm
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 20 Sep 2018 14:49:34 +0000 (15:49 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 20 Sep 2018 16:01:26 +0000 (17:01 +0100)
commit98884f456d5cc27cdc8e9094a1bc4e7eb8ae9c74
treee193e30bdff6820ac2d5db7574380761e80bbdd6
parent152ae8c3c63f5032568ba6b6d1686437e9fdeba4
drm/i915/selftests: Live tests emit requests and so require rpm

As we emit requests or touch HW directly for some of the live tests, the
requirement is that we hold the rpm wakeref before doing so. We want a
mix of granularity since we will want to test runtime suspend, so try to
mark up only the critical sections where we need rpm for the live test.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=108002
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/20180920144934.16611-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/selftests/i915_gem_coherency.c
drivers/gpu/drm/i915/selftests/i915_gem_context.c
drivers/gpu/drm/i915/selftests/i915_request.c
drivers/gpu/drm/i915/selftests/intel_guc.c
drivers/gpu/drm/i915/selftests/intel_lrc.c
drivers/gpu/drm/i915/selftests/intel_workarounds.c