]> 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)
commit52b76db6dea65c36f736a69c28ee39eeca40cf0a
treee0a39f16dadaa55c21ae8557c84b90dc52bc58d8
parent35d9270d735ef228964bea7b656a90b3c207b7c0
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