]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc18234cc1c735eb289fe33a7351c666231750556
treee0a39f16dadaa55c21ae8557c84b90dc52bc58d8
parent7cc2659b6b9500c565d26a5b1239e23035c34329
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