2 bool "Force GCC to throw an error instead of a warning when compiling"
3 # As this may inadvertently break the build, only allow the user
4 # to shoot oneself in the foot iff they aim really hard
6 # We use the dependency on !COMPILE_TEST to not be enabled in
7 # allmodconfig or allyesconfig configurations
8 depends on !COMPILE_TEST
11 Add -Werror to the build flags for (and only for) i915.ko.
12 Do not enable this unless you are writing code for the i915.ko module.
14 Recommended for driver developers only.
19 bool "Enable additional driver debugging"
24 select DRM_DP_AUX_CHARDEV
25 select X86_MSR # used by igt/pm_rpm
26 select DRM_VGEM # used by igt/prime_vgem (dmabuf interop checks)
27 select DRM_DEBUG_MM if DRM=y
28 select STACKDEPOT if DRM=y # for DRM_DEBUG_MM
29 select DRM_DEBUG_SELFTEST
30 select SW_SYNC # signaling validation framework (igt/syncobj*)
31 select DRM_I915_SW_FENCE_DEBUG_OBJECTS
32 select DRM_I915_SELFTEST
35 Choose this option to turn on extra driver debugging that may affect
36 performance but will catch some internal issues.
38 Recommended for driver developers only.
42 config DRM_I915_DEBUG_GEM
43 bool "Insert extra checks into the GEM internals"
45 depends on DRM_I915_WERROR
47 Enable extra sanity checks (including BUGs) along the GEM driver
48 paths that may slow the system down and if hit hang the machine.
50 Recommended for driver developers only.
54 config DRM_I915_TRACE_GEM
55 bool "Insert extra ftrace output from the GEM internals"
56 depends on DRM_I915_DEBUG_GEM
60 Enable additional and verbose debugging output that will spam
61 ordinary tests, but may be vital for post-mortem debugging when
62 used with /proc/sys/kernel/ftrace_dump_on_oops
64 Recommended for driver developers only.
68 config DRM_I915_SW_FENCE_DEBUG_OBJECTS
69 bool "Enable additional driver debugging for fence objects"
74 Choose this option to turn on extra driver debugging that may affect
75 performance but will catch some internal issues.
77 Recommended for driver developers only.
81 config DRM_I915_SW_FENCE_CHECK_DAG
82 bool "Enable additional driver debugging for detecting dependency cycles"
86 Choose this option to turn on extra driver debugging that may affect
87 performance but will catch some internal issues.
89 Recommended for driver developers only.
93 config DRM_I915_DEBUG_GUC
94 bool "Enable additional driver debugging for GuC"
98 Choose this option to turn on extra driver debugging that may affect
99 performance but will help resolve GuC related issues.
101 Recommended for driver developers only.
103 If in doubt, say "N".
105 config DRM_I915_SELFTEST
106 bool "Enable selftests upon driver load"
109 select FAULT_INJECTION
112 Choose this option to allow the driver to perform selftests upon
113 loading; also requires the i915.selftest=1 module parameter. To
114 exit the module after running the selftests (i.e. to prevent normal
115 module initialisation afterwards) use i915.selftest=-1.
117 Recommended for driver developers only.
119 If in doubt, say "N".
121 config DRM_I915_SELFTEST_BROKEN
122 bool "Enable broken and dangerous selftests"
123 depends on DRM_I915_SELFTEST
127 This option enables the execution of selftests that are "dangerous"
128 and may trigger unintended HW side-effects as they break strict
129 rules given in the HW specification. For science.
131 Recommended for masochistic driver developers only.
133 If in doubt, say "N".
135 config DRM_I915_LOW_LEVEL_TRACEPOINTS
136 bool "Enable low level request tracing events"
140 Choose this option to turn on low level request tracing events.
141 This provides the ability to precisely monitor engine utilisation
142 and also analyze the request dependency resolving timeline.
144 If in doubt, say "N".
146 config DRM_I915_DEBUG_VBLANK_EVADE
147 bool "Enable extra debug warnings for vblank evasion"
151 Choose this option to turn on extra debug warnings for the
152 vblank evade mechanism. This gives a warning every time the
153 the deadline allotted for the vblank evade critical section
154 is exceeded, even if there isn't an actual risk of missing
157 If in doubt, say "N".