OSDN Git Service

drm/i915/selftests: Take rpm wakeref around GGTT lowlevel tests
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 7 Nov 2017 11:40:51 +0000 (11:40 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 7 Nov 2017 17:50:33 +0000 (17:50 +0000)
commitc29ccb9f426e6e4e91c9901bb6ee8dbe6abc48eb
tree075d6d553b2a6c9d4b5146b7f1f4fd0d6407081f
parentf6d03042b9ad514077175b5cc53069e0a364d0ec
drm/i915/selftests: Take rpm wakeref around GGTT lowlevel tests

The vma routines are responsible for acquiring the device rpm wakeref
before they poke the HW. However, some of the selftests bypass the
higher level vma routines in order to poke directly at the lowlevel GGTT
functions; these are then responsible for managing rpm themselves.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20171107114051.10583-1-chris@chris-wilson.co.uk
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
drivers/gpu/drm/i915/selftests/i915_gem_gtt.c