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"
27 select DRM_DP_AUX_CHARDEV
28 select X86_MSR # used by igt/pm_rpm
29 select DRM_VGEM # used by igt/prime_vgem (dmabuf interop checks)
30 select DRM_DEBUG_MM if DRM=y
31 select DRM_DEBUG_SELFTEST
32 select SW_SYNC # signaling validation framework (igt/syncobj*)
33 select DRM_I915_SW_FENCE_DEBUG_OBJECTS
34 select DRM_I915_SELFTEST
35 select DRM_I915_DEBUG_RUNTIME_PM
36 select DRM_I915_DEBUG_MMIO
39 Choose this option to turn on extra driver debugging that may affect
40 performance but will catch some internal issues.
42 Recommended for driver developers only.
46 config DRM_I915_DEBUG_MMIO
47 bool "Always insert extra checks around mmio access by default"
50 By default, always enables the extra sanity checks (extra register
51 reads) around every mmio (register) access that will slow the system
52 down. This sets the default value of i915.mmio_debug to -1 and can
53 be overridden at module load.
55 Recommended for driver developers only.
59 config DRM_I915_DEBUG_GEM
60 bool "Insert extra checks into the GEM internals"
62 depends on DRM_I915_WERROR
64 Enable extra sanity checks (including BUGs) along the GEM driver
65 paths that may slow the system down and if hit hang the machine.
67 Recommended for driver developers only.
71 config DRM_I915_ERRLOG_GEM
72 bool "Insert extra logging (very verbose) for common GEM errors"
74 depends on DRM_I915_DEBUG_GEM
76 Enable additional logging that may help track down the cause of
77 principally userspace errors.
79 Recommended for driver developers only.
83 config DRM_I915_TRACE_GEM
84 bool "Insert extra ftrace output from the GEM internals"
85 depends on DRM_I915_DEBUG_GEM
89 Enable additional and verbose debugging output that will spam
90 ordinary tests, but may be vital for post-mortem debugging when
91 used with /proc/sys/kernel/ftrace_dump_on_oops
93 Recommended for driver developers only.
97 config DRM_I915_SW_FENCE_DEBUG_OBJECTS
98 bool "Enable additional driver debugging for fence objects"
103 Choose this option to turn on extra driver debugging that may affect
104 performance but will catch some internal issues.
106 Recommended for driver developers only.
108 If in doubt, say "N".
110 config DRM_I915_SW_FENCE_CHECK_DAG
111 bool "Enable additional driver debugging for detecting dependency cycles"
115 Choose this option to turn on extra driver debugging that may affect
116 performance but will catch some internal issues.
118 Recommended for driver developers only.
120 If in doubt, say "N".
122 config DRM_I915_DEBUG_GUC
123 bool "Enable additional driver debugging for GuC"
127 Choose this option to turn on extra driver debugging that may affect
128 performance but will help resolve GuC related issues.
130 Recommended for driver developers only.
132 If in doubt, say "N".
134 config DRM_I915_SELFTEST
135 bool "Enable selftests upon driver load"
138 select FAULT_INJECTION
141 Choose this option to allow the driver to perform selftests upon
142 loading; also requires the i915.selftest=1 module parameter. To
143 exit the module after running the selftests (i.e. to prevent normal
144 module initialisation afterwards) use i915.selftest=-1.
146 Recommended for driver developers only.
148 If in doubt, say "N".
150 config DRM_I915_SELFTEST_BROKEN
151 bool "Enable broken and dangerous selftests"
152 depends on DRM_I915_SELFTEST
156 This option enables the execution of selftests that are "dangerous"
157 and may trigger unintended HW side-effects as they break strict
158 rules given in the HW specification. For science.
160 Recommended for masochistic driver developers only.
162 If in doubt, say "N".
164 config DRM_I915_LOW_LEVEL_TRACEPOINTS
165 bool "Enable low level request tracing events"
169 Choose this option to turn on low level request tracing events.
170 This provides the ability to precisely monitor engine utilisation
171 and also analyze the request dependency resolving timeline.
173 If in doubt, say "N".
175 config DRM_I915_DEBUG_VBLANK_EVADE
176 bool "Enable extra debug warnings for vblank evasion"
180 Choose this option to turn on extra debug warnings for the
181 vblank evade mechanism. This gives a warning every time the
182 the deadline allotted for the vblank evade critical section
183 is exceeded, even if there isn't an actual risk of missing
186 If in doubt, say "N".
188 config DRM_I915_DEBUG_RUNTIME_PM
189 bool "Enable extra state checking for runtime PM"
194 Choose this option to turn on extra state checking for the
195 runtime PM functionality. This may introduce overhead during
196 driver loading, suspend and resume operations.