]> git.ipfire.org Git - thirdparty/linux.git/blob
1545344
[thirdparty/linux.git] /
1 # SPDX-License-Identifier: GPL-2.0-only
2 config DRM_I915_WERROR
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
6 depends on EXPERT
7 # We use the dependency on !COMPILE_TEST to not be enabled in
8 # allmodconfig or allyesconfig configurations
9 depends on !COMPILE_TEST
10 default n
11 help
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.
14
15 Recommended for driver developers only.
16
17 If in doubt, say "N".
18
19 config DRM_I915_DEBUG
20 bool "Enable additional driver debugging"
21 depends on DRM_I915
22 select DEBUG_FS
23 select PREEMPT_COUNT
24 select I2C_CHARDEV
25 select STACKDEPOT
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_WERROR
35 select DRM_I915_DEBUG_GEM
36 select DRM_I915_DEBUG_MMIO
37 select DRM_I915_DEBUG_RUNTIME_PM
38 select DRM_I915_SW_FENCE_DEBUG_OBJECTS
39 select DRM_I915_SELFTEST
40 default n
41 help
42 Choose this option to turn on extra driver debugging that may affect
43 performance but will catch some internal issues.
44
45 Recommended for driver developers only.
46
47 If in doubt, say "N".
48
49 config DRM_I915_DEBUG_MMIO
50 bool "Always insert extra checks around mmio access by default"
51 default n
52 help
53 By default, always enables the extra sanity checks (extra register
54 reads) around every mmio (register) access that will slow the system
55 down. This sets the default value of i915.mmio_debug to -1 and can
56 be overridden at module load.
57
58 Recommended for driver developers only.
59
60 If in doubt, say "N".
61
62 config DRM_I915_DEBUG_GEM
63 bool "Insert extra checks into the GEM internals"
64 default n
65 depends on DRM_I915_WERROR
66 help
67 Enable extra sanity checks (including BUGs) along the GEM driver
68 paths that may slow the system down and if hit hang the machine.
69
70 Recommended for driver developers only.
71
72 If in doubt, say "N".
73
74 config DRM_I915_ERRLOG_GEM
75 bool "Insert extra logging (very verbose) for common GEM errors"
76 default n
77 depends on DRM_I915_DEBUG_GEM
78 help
79 Enable additional logging that may help track down the cause of
80 principally userspace errors.
81
82 Recommended for driver developers only.
83
84 If in doubt, say "N".
85
86 config DRM_I915_TRACE_GEM
87 bool "Insert extra ftrace output from the GEM internals"
88 depends on DRM_I915_DEBUG_GEM
89 select TRACING
90 default n
91 help
92 Enable additional and verbose debugging output that will spam
93 ordinary tests, but may be vital for post-mortem debugging when
94 used with /proc/sys/kernel/ftrace_dump_on_oops
95
96 Recommended for driver developers only.
97
98 If in doubt, say "N".
99
100 config DRM_I915_TRACE_GTT
101 bool "Insert extra ftrace output from the GTT internals"
102 depends on DRM_I915_DEBUG_GEM
103 select TRACING
104 default n
105 help
106 Enable additional and verbose debugging output that will spam
107 ordinary tests, but may be vital for post-mortem debugging when
108 used with /proc/sys/kernel/ftrace_dump_on_oops
109
110 Recommended for driver developers only.
111
112 If in doubt, say "N".
113
114 config DRM_I915_SW_FENCE_DEBUG_OBJECTS
115 bool "Enable additional driver debugging for fence objects"
116 depends on DRM_I915
117 select DEBUG_OBJECTS
118 default n
119 help
120 Choose this option to turn on extra driver debugging that may affect
121 performance but will catch some internal issues.
122
123 Recommended for driver developers only.
124
125 If in doubt, say "N".
126
127 config DRM_I915_SW_FENCE_CHECK_DAG
128 bool "Enable additional driver debugging for detecting dependency cycles"
129 depends on DRM_I915
130 default n
131 help
132 Choose this option to turn on extra driver debugging that may affect
133 performance but will catch some internal issues.
134
135 Recommended for driver developers only.
136
137 If in doubt, say "N".
138
139 config DRM_I915_DEBUG_GUC
140 bool "Enable additional driver debugging for GuC"
141 depends on DRM_I915
142 default n
143 help
144 Choose this option to turn on extra driver debugging that may affect
145 performance but will help resolve GuC related issues.
146
147 Recommended for driver developers only.
148
149 If in doubt, say "N".
150
151 config DRM_I915_SELFTEST
152 bool "Enable selftests upon driver load"
153 depends on DRM_I915
154 default n
155 select DRM_EXPORT_FOR_TESTS if m
156 select FAULT_INJECTION
157 select PRIME_NUMBERS
158 select CRC32
159 help
160 Choose this option to allow the driver to perform selftests upon
161 loading; also requires the i915.selftest=1 module parameter. To
162 exit the module after running the selftests (i.e. to prevent normal
163 module initialisation afterwards) use i915.selftest=-1.
164
165 Recommended for driver developers only.
166
167 If in doubt, say "N".
168
169 config DRM_I915_SELFTEST_BROKEN
170 bool "Enable broken and dangerous selftests"
171 depends on DRM_I915_SELFTEST
172 depends on BROKEN
173 default n
174 help
175 This option enables the execution of selftests that are "dangerous"
176 and may trigger unintended HW side-effects as they break strict
177 rules given in the HW specification. For science.
178
179 Recommended for masochistic driver developers only.
180
181 If in doubt, say "N".
182
183 config DRM_I915_LOW_LEVEL_TRACEPOINTS
184 bool "Enable low level request tracing events"
185 depends on DRM_I915
186 default n
187 help
188 Choose this option to turn on low level request tracing events.
189 This provides the ability to precisely monitor engine utilisation
190 and also analyze the request dependency resolving timeline.
191
192 If in doubt, say "N".
193
194 config DRM_I915_DEBUG_VBLANK_EVADE
195 bool "Enable extra debug warnings for vblank evasion"
196 depends on DRM_I915
197 default n
198 help
199 Choose this option to turn on extra debug warnings for the
200 vblank evade mechanism. This gives a warning every time the
201 the deadline allotted for the vblank evade critical section
202 is exceeded, even if there isn't an actual risk of missing
203 the vblank.
204
205 If in doubt, say "N".
206
207 config DRM_I915_DEBUG_RUNTIME_PM
208 bool "Enable extra state checking for runtime PM"
209 depends on DRM_I915
210 default n
211 select STACKDEPOT
212 help
213 Choose this option to turn on extra state checking for the
214 runtime PM functionality. This may introduce overhead during
215 driver loading, suspend and resume operations.
216
217 If in doubt, say "N"