]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/selftests: Add a simple exerciser for suspend/hibernate
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 30 Aug 2018 13:48:06 +0000 (14:48 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 31 Aug 2018 09:21:00 +0000 (10:21 +0100)
commit3d10d6f9484c2eef3a90bb6c61ca484033a4113f
tree4d4049e94f1b6563ea0a56911ba0f58fdbcc58a9
parentde8365dd72f82676c187619edd38edca70d96551
drm/i915/selftests: Add a simple exerciser for suspend/hibernate

Although we cannot do a full system-level test of suspend/hibernate from
deep with the kernel selftests, we can exercise the GEM subsystem in
isolation and simulate the external effects (such as losing stolen
contents and trashing the register state).

v2: Don't forget to hold rpm
v3: Suspend the GTT mappings, and more rpm!

References: https://bugs.freedesktop.org/show_bug.cgi?id=96526
References: 5f3d1043d1ef ("drm/i915: Flush logical context image out to memory upon suspend")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Jakub Bartmiński <jakub.bartminski@intel.com>
Cc: Matthew Auld <matthew.william.auld@gmail.com>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Reviewed-by: Jakub Bartmiński <jakub.bartminski@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180830134806.21939-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/i915/selftests/i915_gem.c [new file with mode: 0644]
drivers/gpu/drm/i915/selftests/i915_live_selftests.h