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
13 Add -Werror to the build flags for (and only for) i915.ko.
14 Do not enable this unless you are writing code for the i915.ko module.
16 Recommended for driver developers only.
21 bool "Enable additional driver debugging"
28 select DRM_DP_AUX_CHARDEV
29 select X86_MSR # used by igt/pm_rpm
30 select DRM_VGEM # used by igt/prime_vgem (dmabuf interop checks)
31 select DRM_DEBUG_MM if DRM=y
32 select DRM_DEBUG_SELFTEST
33 select DMABUF_SELFTESTS
34 select SW_SYNC # signaling validation framework (igt/syncobj*)
35 select DRM_I915_SW_FENCE_DEBUG_OBJECTS
36 select DRM_I915_SELFTEST
37 select DRM_I915_DEBUG_RUNTIME_PM
38 select DRM_I915_DEBUG_MMIO
41 Choose this option to turn on extra driver debugging that may affect
42 performance but will catch some internal issues.
44 Recommended for driver developers only.
48 config DRM_I915_DEBUG_MMIO
49 bool "Always insert extra checks around mmio access by default"
52 By default, always enables the extra sanity checks (extra register
53 reads) around every mmio (register) access that will slow the system
54 down. This sets the default value of i915.mmio_debug to -1 and can
55 be overridden at module load.
57 Recommended for driver developers only.
61 config DRM_I915_DEBUG_GEM
62 bool "Insert extra checks into the GEM internals"
64 depends on DRM_I915_WERROR
66 Enable extra sanity checks (including BUGs) along the GEM driver
67 paths that may slow the system down and if hit hang the machine.
69 Recommended for driver developers only.
73 config DRM_I915_ERRLOG_GEM
74 bool "Insert extra logging (very verbose) for common GEM errors"
76 depends on DRM_I915_DEBUG_GEM
78 Enable additional logging that may help track down the cause of
79 principally userspace errors.
81 Recommended for driver developers only.
85 config DRM_I915_TRACE_GEM
86 bool "Insert extra ftrace output from the GEM internals"
87 depends on DRM_I915_DEBUG_GEM
91 Enable additional and verbose debugging output that will spam
92 ordinary tests, but may be vital for post-mortem debugging when
93 used with /proc/sys/kernel/ftrace_dump_on_oops
95 Recommended for driver developers only.
99 config DRM_I915_TRACE_GTT
100 bool "Insert extra ftrace output from the GTT internals"
101 depends on DRM_I915_DEBUG_GEM
105 Enable additional and verbose debugging output that will spam
106 ordinary tests, but may be vital for post-mortem debugging when
107 used with /proc/sys/kernel/ftrace_dump_on_oops
109 Recommended for driver developers only.
111 If in doubt, say "N".
113 config DRM_I915_SW_FENCE_DEBUG_OBJECTS
114 bool "Enable additional driver debugging for fence objects"
119 Choose this option to turn on extra driver debugging that may affect
120 performance but will catch some internal issues.
122 Recommended for driver developers only.
124 If in doubt, say "N".
126 config DRM_I915_SW_FENCE_CHECK_DAG
127 bool "Enable additional driver debugging for detecting dependency cycles"
131 Choose this option to turn on extra driver debugging that may affect
132 performance but will catch some internal issues.
134 Recommended for driver developers only.
136 If in doubt, say "N".
138 config DRM_I915_DEBUG_GUC
139 bool "Enable additional driver debugging for GuC"
143 Choose this option to turn on extra driver debugging that may affect
144 performance but will help resolve GuC related issues.
146 Recommended for driver developers only.
148 If in doubt, say "N".
150 config DRM_I915_SELFTEST
151 bool "Enable selftests upon driver load"
154 select FAULT_INJECTION
157 Choose this option to allow the driver to perform selftests upon
158 loading; also requires the i915.selftest=1 module parameter. To
159 exit the module after running the selftests (i.e. to prevent normal
160 module initialisation afterwards) use i915.selftest=-1.
162 Recommended for driver developers only.
164 If in doubt, say "N".
166 config DRM_I915_SELFTEST_BROKEN
167 bool "Enable broken and dangerous selftests"
168 depends on DRM_I915_SELFTEST
172 This option enables the execution of selftests that are "dangerous"
173 and may trigger unintended HW side-effects as they break strict
174 rules given in the HW specification. For science.
176 Recommended for masochistic driver developers only.
178 If in doubt, say "N".
180 config DRM_I915_LOW_LEVEL_TRACEPOINTS
181 bool "Enable low level request tracing events"
185 Choose this option to turn on low level request tracing events.
186 This provides the ability to precisely monitor engine utilisation
187 and also analyze the request dependency resolving timeline.
189 If in doubt, say "N".
191 config DRM_I915_DEBUG_VBLANK_EVADE
192 bool "Enable extra debug warnings for vblank evasion"
196 Choose this option to turn on extra debug warnings for the
197 vblank evade mechanism. This gives a warning every time the
198 the deadline allotted for the vblank evade critical section
199 is exceeded, even if there isn't an actual risk of missing
202 If in doubt, say "N".
204 config DRM_I915_DEBUG_RUNTIME_PM
205 bool "Enable extra state checking for runtime PM"
210 Choose this option to turn on extra state checking for the
211 runtime PM functionality. This may introduce overhead during
212 driver loading, suspend and resume operations.