1 # SPDX-License-Identifier: GPL-2.0-only
3 bool "Force GCC to throw an error instead of a warning when compiling"
4 # As this may inadvertently break the build, only allow the user
5 # to shoot oneself in the foot iff they aim really hard
7 # We use the dependency on !COMPILE_TEST to not be enabled in
8 # allmodconfig or allyesconfig configurations
9 depends on !COMPILE_TEST
12 Add -Werror to the build flags for (and only for) i915.ko.
13 Do not enable this unless you are writing code for the i915.ko module.
15 Recommended for driver developers only.
20 bool "Enable additional driver debugging"
26 select DRM_DP_AUX_CHARDEV
27 select X86_MSR # used by igt/pm_rpm
28 select DRM_VGEM # used by igt/prime_vgem (dmabuf interop checks)
29 select DRM_DEBUG_MM if DRM=y
30 select DRM_DEBUG_SELFTEST
31 select SW_SYNC # signaling validation framework (igt/syncobj*)
32 select DRM_I915_SW_FENCE_DEBUG_OBJECTS
33 select DRM_I915_SELFTEST
34 select DRM_I915_DEBUG_RUNTIME_PM
37 Choose this option to turn on extra driver debugging that may affect
38 performance but will catch some internal issues.
40 Recommended for driver developers only.
44 config DRM_I915_DEBUG_GEM
45 bool "Insert extra checks into the GEM internals"
47 depends on DRM_I915_WERROR
49 Enable extra sanity checks (including BUGs) along the GEM driver
50 paths that may slow the system down and if hit hang the machine.
52 Recommended for driver developers only.
56 config DRM_I915_ERRLOG_GEM
57 bool "Insert extra logging (very verbose) for common GEM errors"
59 depends on DRM_I915_DEBUG_GEM
61 Enable additional logging that may help track down the cause of
62 principally userspace errors.
64 Recommended for driver developers only.
68 config DRM_I915_TRACE_GEM
69 bool "Insert extra ftrace output from the GEM internals"
70 depends on DRM_I915_DEBUG_GEM
74 Enable additional and verbose debugging output that will spam
75 ordinary tests, but may be vital for post-mortem debugging when
76 used with /proc/sys/kernel/ftrace_dump_on_oops
78 Recommended for driver developers only.
82 config DRM_I915_SW_FENCE_DEBUG_OBJECTS
83 bool "Enable additional driver debugging for fence objects"
88 Choose this option to turn on extra driver debugging that may affect
89 performance but will catch some internal issues.
91 Recommended for driver developers only.
95 config DRM_I915_SW_FENCE_CHECK_DAG
96 bool "Enable additional driver debugging for detecting dependency cycles"
100 Choose this option to turn on extra driver debugging that may affect
101 performance but will catch some internal issues.
103 Recommended for driver developers only.
105 If in doubt, say "N".
107 config DRM_I915_DEBUG_GUC
108 bool "Enable additional driver debugging for GuC"
112 Choose this option to turn on extra driver debugging that may affect
113 performance but will help resolve GuC related issues.
115 Recommended for driver developers only.
117 If in doubt, say "N".
119 config DRM_I915_SELFTEST
120 bool "Enable selftests upon driver load"
123 select FAULT_INJECTION
126 Choose this option to allow the driver to perform selftests upon
127 loading; also requires the i915.selftest=1 module parameter. To
128 exit the module after running the selftests (i.e. to prevent normal
129 module initialisation afterwards) use i915.selftest=-1.
131 Recommended for driver developers only.
133 If in doubt, say "N".
135 config DRM_I915_SELFTEST_BROKEN
136 bool "Enable broken and dangerous selftests"
137 depends on DRM_I915_SELFTEST
141 This option enables the execution of selftests that are "dangerous"
142 and may trigger unintended HW side-effects as they break strict
143 rules given in the HW specification. For science.
145 Recommended for masochistic driver developers only.
147 If in doubt, say "N".
149 config DRM_I915_LOW_LEVEL_TRACEPOINTS
150 bool "Enable low level request tracing events"
154 Choose this option to turn on low level request tracing events.
155 This provides the ability to precisely monitor engine utilisation
156 and also analyze the request dependency resolving timeline.
158 If in doubt, say "N".
160 config DRM_I915_DEBUG_VBLANK_EVADE
161 bool "Enable extra debug warnings for vblank evasion"
165 Choose this option to turn on extra debug warnings for the
166 vblank evade mechanism. This gives a warning every time the
167 the deadline allotted for the vblank evade critical section
168 is exceeded, even if there isn't an actual risk of missing
171 If in doubt, say "N".
173 config DRM_I915_DEBUG_RUNTIME_PM
174 bool "Enable extra state checking for runtime PM"
179 Choose this option to turn on extra state checking for the
180 runtime PM functionality. This may introduce overhead during
181 driver loading, suspend and resume operations.