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: 5ab57c702069 ("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
27 lines
1.2 KiB
C
27 lines
1.2 KiB
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/* List each unit test as selftest(name, function)
|
|
*
|
|
* The name is used as both an enum and expanded as subtest__name to create
|
|
* a module parameter. It must be unique and legal for a C identifier.
|
|
*
|
|
* The function should be of type int function(void). It may be conditionally
|
|
* compiled using #if IS_ENABLED(DRM_I915_SELFTEST).
|
|
*
|
|
* Tests are executed in order by igt/drv_selftest
|
|
*/
|
|
selftest(sanitycheck, i915_live_sanitycheck) /* keep first (igt selfcheck) */
|
|
selftest(uncore, intel_uncore_live_selftests)
|
|
selftest(workarounds, intel_workarounds_live_selftests)
|
|
selftest(requests, i915_request_live_selftests)
|
|
selftest(objects, i915_gem_object_live_selftests)
|
|
selftest(dmabuf, i915_gem_dmabuf_live_selftests)
|
|
selftest(coherency, i915_gem_coherency_live_selftests)
|
|
selftest(gtt, i915_gem_gtt_live_selftests)
|
|
selftest(gem, i915_gem_live_selftests)
|
|
selftest(evict, i915_gem_evict_live_selftests)
|
|
selftest(hugepages, i915_gem_huge_page_live_selftests)
|
|
selftest(contexts, i915_gem_context_live_selftests)
|
|
selftest(hangcheck, intel_hangcheck_live_selftests)
|
|
selftest(execlists, intel_execlists_live_selftests)
|
|
selftest(guc, intel_guc_live_selftest)
|