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_EXPORT_FOR_TESTS if m
31 select DRM_DEBUG_SELFTEST
32 select DMABUF_SELFTESTS
33 select SW_SYNC # signaling validation framework (igt/syncobj*)
34 select DRM_I915_SW_FENCE_DEBUG_OBJECTS
35 select DRM_I915_SELFTEST
36 select DRM_I915_DEBUG_RUNTIME_PM
37 select DRM_I915_DEBUG_MMIO
40 Choose this option to turn on extra driver debugging that may affect
41 performance but will catch some internal issues.
43 Recommended for driver developers only.
47 config DRM_I915_DEBUG_MMIO
48 bool "Always insert extra checks around mmio access by default"
51 By default, always enables the extra sanity checks (extra register
52 reads) around every mmio (register) access that will slow the system
53 down. This sets the default value of i915.mmio_debug to -1 and can
54 be overridden at module load.
56 Recommended for driver developers only.
60 config DRM_I915_DEBUG_GEM
61 bool "Insert extra checks into the GEM internals"
63 depends on DRM_I915_WERROR
65 Enable extra sanity checks (including BUGs) along the GEM driver
66 paths that may slow the system down and if hit hang the machine.
68 Recommended for driver developers only.
72 config DRM_I915_ERRLOG_GEM
73 bool "Insert extra logging (very verbose) for common GEM errors"
75 depends on DRM_I915_DEBUG_GEM
77 Enable additional logging that may help track down the cause of
78 principally userspace errors.
80 Recommended for driver developers only.
84 config DRM_I915_TRACE_GEM
85 bool "Insert extra ftrace output from the GEM internals"
86 depends on DRM_I915_DEBUG_GEM
90 Enable additional and verbose debugging output that will spam
91 ordinary tests, but may be vital for post-mortem debugging when
92 used with /proc/sys/kernel/ftrace_dump_on_oops
94 Recommended for driver developers only.
98 config DRM_I915_TRACE_GTT
99 bool "Insert extra ftrace output from the GTT internals"
100 depends on DRM_I915_DEBUG_GEM
104 Enable additional and verbose debugging output that will spam
105 ordinary tests, but may be vital for post-mortem debugging when
106 used with /proc/sys/kernel/ftrace_dump_on_oops
108 Recommended for driver developers only.
110 If in doubt, say "N".
112 config DRM_I915_SW_FENCE_DEBUG_OBJECTS
113 bool "Enable additional driver debugging for fence objects"
118 Choose this option to turn on extra driver debugging that may affect
119 performance but will catch some internal issues.
121 Recommended for driver developers only.
123 If in doubt, say "N".
125 config DRM_I915_SW_FENCE_CHECK_DAG
126 bool "Enable additional driver debugging for detecting dependency cycles"
130 Choose this option to turn on extra driver debugging that may affect
131 performance but will catch some internal issues.
133 Recommended for driver developers only.
135 If in doubt, say "N".
137 config DRM_I915_DEBUG_GUC
138 bool "Enable additional driver debugging for GuC"
142 Choose this option to turn on extra driver debugging that may affect
143 performance but will help resolve GuC related issues.
145 Recommended for driver developers only.
147 If in doubt, say "N".
149 config DRM_I915_SELFTEST
150 bool "Enable selftests upon driver load"
153 select DRM_EXPORT_FOR_TESTS if m
154 select FAULT_INJECTION
158 Choose this option to allow the driver to perform selftests upon
159 loading; also requires the i915.selftest=1 module parameter. To
160 exit the module after running the selftests (i.e. to prevent normal
161 module initialisation afterwards) use i915.selftest=-1.
163 Recommended for driver developers only.
165 If in doubt, say "N".
167 config DRM_I915_SELFTEST_BROKEN
168 bool "Enable broken and dangerous selftests"
169 depends on DRM_I915_SELFTEST
173 This option enables the execution of selftests that are "dangerous"
174 and may trigger unintended HW side-effects as they break strict
175 rules given in the HW specification. For science.
177 Recommended for masochistic driver developers only.
179 If in doubt, say "N".
181 config DRM_I915_LOW_LEVEL_TRACEPOINTS
182 bool "Enable low level request tracing events"
186 Choose this option to turn on low level request tracing events.
187 This provides the ability to precisely monitor engine utilisation
188 and also analyze the request dependency resolving timeline.
190 If in doubt, say "N".
192 config DRM_I915_DEBUG_VBLANK_EVADE
193 bool "Enable extra debug warnings for vblank evasion"
197 Choose this option to turn on extra debug warnings for the
198 vblank evade mechanism. This gives a warning every time the
199 the deadline allotted for the vblank evade critical section
200 is exceeded, even if there isn't an actual risk of missing
203 If in doubt, say "N".
205 config DRM_I915_DEBUG_RUNTIME_PM
206 bool "Enable extra state checking for runtime PM"
211 Choose this option to turn on extra state checking for the
212 runtime PM functionality. This may introduce overhead during
213 driver loading, suspend and resume operations.