drm/i915/selftests: Hold rpm wakeref for request + ggtt usage
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 23 Nov 2017 23:37:12 +0000 (23:37 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 24 Nov 2017 09:10:58 +0000 (09:10 +0000)
commite7e5da7127d5c9c076f05d6ed71bdf6826fc536c
treee0a39f16dadaa55c21ae8557c84b90dc52bc58d8
parentb7d3aabf900728b6b13b860157026fd26099208a
drm/i915/selftests: Hold rpm wakeref for request + ggtt usage

Since the removal of the delayed rc6 enabling, we now setup and drop the
early rpm wakeref during modules initialisation before we start the live
selftests. As such, we are now detecting errors in the tests where we
were not holding the required wakeref for various actions. As rpm is not
the primary goal of the tests involved, take a coarse and convenient rpm
wakeref around the tests.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Matthew Auld <matthew.william.auld@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20171123233712.21836-1-chris@chris-wilson.co.uk
Reviewed-by: Matthew Auld <matthew.william.auld@gmail.com>
drivers/gpu/drm/i915/selftests/huge_pages.c
drivers/gpu/drm/i915/selftests/i915_gem_evict.c