blob: 80815a5229a166949f1b54541622607720ae80e7 [file] [log] [blame]
Thomas Gleixnerec8f24b2019-05-19 13:07:45 +01001# SPDX-License-Identifier: GPL-2.0-only
Chris Wilson0a793ad2016-04-13 17:35:00 +01002config DRM_I915_WERROR
Krzysztof Kozlowskid30213e2019-10-07 19:33:46 +02003 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
Jani Nikula1032a2a2019-07-29 17:08:47 +030010 select HEADER_TEST
Krzysztof Kozlowskid30213e2019-10-07 19:33:46 +020011 default n
12 help
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.
Chris Wilson0a793ad2016-04-13 17:35:00 +010015
Krzysztof Kozlowskid30213e2019-10-07 19:33:46 +020016 Recommended for driver developers only.
Chris Wilson0a793ad2016-04-13 17:35:00 +010017
Krzysztof Kozlowskid30213e2019-10-07 19:33:46 +020018 If in doubt, say "N".
Chris Wilson0a793ad2016-04-13 17:35:00 +010019
Tvrtko Ursulin643a24b2016-03-03 14:36:43 +000020config DRM_I915_DEBUG
Krzysztof Kozlowskid30213e2019-10-07 19:33:46 +020021 bool "Enable additional driver debugging"
22 depends on DRM_I915
23 select DEBUG_FS
24 select PREEMPT_COUNT
25 select REFCOUNT_FULL
26 select I2C_CHARDEV
27 select STACKDEPOT
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
Maarten Lankhorst34b13e52018-05-03 13:22:16 +020032 select DRM_DEBUG_SELFTEST
Chris Wilson96158342019-08-19 18:19:00 +010033 select DMABUF_SELFTESTS
Chris Wilsond90cb7f2017-08-10 10:40:36 +010034 select SW_SYNC # signaling validation framework (igt/syncobj*)
Chris Wilsonbdb821c2016-12-05 14:29:40 +000035 select DRM_I915_SW_FENCE_DEBUG_OBJECTS
Chris Wilson953c7f82017-02-13 17:15:12 +000036 select DRM_I915_SELFTEST
Imre Deak6dfc4a82018-08-16 22:34:14 +030037 select DRM_I915_DEBUG_RUNTIME_PM
Chris Wilson1fbf9d82019-05-30 13:13:11 +010038 select DRM_I915_DEBUG_MMIO
Chris Wilsond9d54a52019-10-27 15:43:14 +000039 select BROKEN # for prototype uAPI
Krzysztof Kozlowskid30213e2019-10-07 19:33:46 +020040 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.
Tvrtko Ursulin643a24b2016-03-03 14:36:43 +000044
Krzysztof Kozlowskid30213e2019-10-07 19:33:46 +020045 Recommended for driver developers only.
Tvrtko Ursulin643a24b2016-03-03 14:36:43 +000046
Krzysztof Kozlowskid30213e2019-10-07 19:33:46 +020047 If in doubt, say "N".
Tvrtko Ursulin643a24b2016-03-03 14:36:43 +000048
Chris Wilson1fbf9d82019-05-30 13:13:11 +010049config 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
Chris Wilsond501b1d2016-04-13 17:35:02 +010062config DRM_I915_DEBUG_GEM
Krzysztof Kozlowskid30213e2019-10-07 19:33:46 +020063 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.
Chris Wilsond501b1d2016-04-13 17:35:02 +010069
Krzysztof Kozlowskid30213e2019-10-07 19:33:46 +020070 Recommended for driver developers only.
Chris Wilsond501b1d2016-04-13 17:35:02 +010071
Krzysztof Kozlowskid30213e2019-10-07 19:33:46 +020072 If in doubt, say "N".
Chris Wilsond501b1d2016-04-13 17:35:02 +010073
Chris Wilson1eca65d2018-07-06 07:53:06 +010074config 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
Chris Wilsonbccd3b82017-11-09 14:30:19 +000086config DRM_I915_TRACE_GEM
87 bool "Insert extra ftrace output from the GEM internals"
Chris Wilson16c86192017-12-19 22:09:16 +000088 depends on DRM_I915_DEBUG_GEM
Chris Wilsonbccd3b82017-11-09 14:30:19 +000089 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
Chris Wilson4c2be3c2019-07-12 12:27:23 +0100100config 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
Chris Wilsonfc158402016-11-25 13:17:18 +0000114config DRM_I915_SW_FENCE_DEBUG_OBJECTS
Krzysztof Kozlowskid30213e2019-10-07 19:33:46 +0200115 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.
Chris Wilsonfc158402016-11-25 13:17:18 +0000122
Krzysztof Kozlowskid30213e2019-10-07 19:33:46 +0200123 Recommended for driver developers only.
Chris Wilsonfc158402016-11-25 13:17:18 +0000124
Krzysztof Kozlowskid30213e2019-10-07 19:33:46 +0200125 If in doubt, say "N".
Chris Wilson953c7f82017-02-13 17:15:12 +0000126
Chris Wilson47624cc2017-05-17 13:09:57 +0100127config DRM_I915_SW_FENCE_CHECK_DAG
Krzysztof Kozlowskid30213e2019-10-07 19:33:46 +0200128 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.
Chris Wilson47624cc2017-05-17 13:09:57 +0100134
Krzysztof Kozlowskid30213e2019-10-07 19:33:46 +0200135 Recommended for driver developers only.
Chris Wilson47624cc2017-05-17 13:09:57 +0100136
Krzysztof Kozlowskid30213e2019-10-07 19:33:46 +0200137 If in doubt, say "N".
Chris Wilson47624cc2017-05-17 13:09:57 +0100138
Michal Wajdeczko0a015ff2018-03-26 19:48:28 +0000139config DRM_I915_DEBUG_GUC
Krzysztof Kozlowskid30213e2019-10-07 19:33:46 +0200140 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.
Michal Wajdeczko0a015ff2018-03-26 19:48:28 +0000146
Krzysztof Kozlowskid30213e2019-10-07 19:33:46 +0200147 Recommended for driver developers only.
Michal Wajdeczko0a015ff2018-03-26 19:48:28 +0000148
Krzysztof Kozlowskid30213e2019-10-07 19:33:46 +0200149 If in doubt, say "N".
Michal Wajdeczko0a015ff2018-03-26 19:48:28 +0000150
Chris Wilson953c7f82017-02-13 17:15:12 +0000151config DRM_I915_SELFTEST
152 bool "Enable selftests upon driver load"
153 depends on DRM_I915
154 default n
Chris Wilsonaae4a3d2017-02-13 17:15:44 +0000155 select FAULT_INJECTION
Chris Wilson953c7f82017-02-13 17:15:12 +0000156 select PRIME_NUMBERS
157 help
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.
162
163 Recommended for driver developers only.
164
165 If in doubt, say "N".
Tvrtko Ursulin354d0362017-02-21 11:01:42 +0000166
Chris Wilson69ea47a2017-10-25 16:32:07 +0100167config DRM_I915_SELFTEST_BROKEN
168 bool "Enable broken and dangerous selftests"
169 depends on DRM_I915_SELFTEST
170 depends on BROKEN
171 default n
172 help
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.
176
177 Recommended for masochistic driver developers only.
178
179 If in doubt, say "N".
180
Tvrtko Ursulin354d0362017-02-21 11:01:42 +0000181config DRM_I915_LOW_LEVEL_TRACEPOINTS
Krzysztof Kozlowskid30213e2019-10-07 19:33:46 +0200182 bool "Enable low level request tracing events"
183 depends on DRM_I915
184 default n
185 help
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.
Tvrtko Ursulin354d0362017-02-21 11:01:42 +0000189
Krzysztof Kozlowskid30213e2019-10-07 19:33:46 +0200190 If in doubt, say "N".
Ville Syrjälä7b8cd332017-05-07 20:12:52 +0300191
192config DRM_I915_DEBUG_VBLANK_EVADE
193 bool "Enable extra debug warnings for vblank evasion"
194 depends on DRM_I915
195 default n
196 help
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
201 the vblank.
202
203 If in doubt, say "N".
Imre Deak6dfc4a82018-08-16 22:34:14 +0300204
205config DRM_I915_DEBUG_RUNTIME_PM
206 bool "Enable extra state checking for runtime PM"
207 depends on DRM_I915
208 default n
Chris Wilsonbd780f32019-01-14 14:21:09 +0000209 select STACKDEPOT
Imre Deak6dfc4a82018-08-16 22:34:14 +0300210 help
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.
214
215 If in doubt, say "N"