1 /* SPDX-License-Identifier: GPL-2.0 */
2 
3 #ifndef selftest
4 #define selftest(x, y)
5 #endif
6 
7 /*
8  * List each unit test as selftest(name, function)
9  *
10  * The name is used as both an enum and expanded as subtest__name to create
11  * a module parameter. It must be unique and legal for a C identifier.
12  *
13  * The function should be of type int function(void). It may be conditionally
14  * compiled using #if IS_ENABLED(CONFIG_DRM_I915_SELFTEST).
15  *
16  * Tests are executed in order by igt/i915_selftest
17  */
18 selftest(sanitycheck, i915_live_sanitycheck) /* keep first (igt selfcheck) */
19 selftest(uncore, intel_uncore_live_selftests)
20 selftest(workarounds, intel_workarounds_live_selftests)
21 selftest(gt_engines, intel_engine_live_selftests)
22 selftest(gt_timelines, intel_timeline_live_selftests)
23 selftest(gt_contexts, intel_context_live_selftests)
24 selftest(gt_lrc, intel_lrc_live_selftests)
25 selftest(gt_mocs, intel_mocs_live_selftests)
26 selftest(gt_pm, intel_gt_pm_live_selftests)
27 selftest(gt_heartbeat, intel_heartbeat_live_selftests)
28 selftest(requests, i915_request_live_selftests)
29 selftest(migrate, intel_migrate_live_selftests)
30 selftest(active, i915_active_live_selftests)
31 selftest(objects, i915_gem_object_live_selftests)
32 selftest(mman, i915_gem_mman_live_selftests)
33 selftest(dmabuf, i915_gem_dmabuf_live_selftests)
34 selftest(vma, i915_vma_live_selftests)
35 selftest(coherency, i915_gem_coherency_live_selftests)
36 selftest(gtt, i915_gem_gtt_live_selftests)
37 selftest(gem, i915_gem_live_selftests)
38 selftest(evict, i915_gem_evict_live_selftests)
39 selftest(hugepages, i915_gem_huge_page_live_selftests)
40 selftest(gem_contexts, i915_gem_context_live_selftests)
41 selftest(client, i915_gem_client_blt_live_selftests)
42 selftest(gem_migrate, i915_gem_migrate_live_selftests)
43 selftest(reset, intel_reset_live_selftests)
44 selftest(memory_region, intel_memory_region_live_selftests)
45 selftest(hangcheck, intel_hangcheck_live_selftests)
46 selftest(execlists, intel_execlists_live_selftests)
47 selftest(ring_submission, intel_ring_submission_live_selftests)
48 selftest(perf, i915_perf_live_selftests)
49 selftest(slpc, intel_slpc_live_selftests)
50 selftest(guc, intel_guc_live_selftests)
51 selftest(guc_multi_lrc, intel_guc_multi_lrc_live_selftests)
52 /* Here be dragons: keep last to run last! */
53 selftest(late_gt_pm, intel_gt_pm_late_selftests)
54