blob: 04b686d2c2d014d31ba1223db8e41a357d05a6c1 [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
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
Tvrtko Ursulin643a24b2016-03-03 14:36:43 +000019config DRM_I915_DEBUG
20 bool "Enable additional driver debugging"
21 depends on DRM_I915
Chris Wilson1b2b6592017-10-12 10:21:47 +010022 select DEBUG_FS
Tvrtko Ursulinc68b0ab2016-06-28 12:51:49 +010023 select PREEMPT_COUNT
Imre Deak3c30c7f2016-12-02 18:35:41 +020024 select I2C_CHARDEV
Chris Wilsonbd780f32019-01-14 14:21:09 +000025 select STACKDEPOT
Imre Deak3c30c7f2016-12-02 18:35:41 +020026 select DRM_DP_AUX_CHARDEV
Chris Wilson5bc1e9e2016-07-09 09:49:07 +010027 select X86_MSR # used by igt/pm_rpm
Chris Wilsonc31966a2016-07-09 11:22:57 +010028 select DRM_VGEM # used by igt/prime_vgem (dmabuf interop checks)
Chris Wilson77d150b2016-11-08 13:19:16 +000029 select DRM_DEBUG_MM if DRM=y
Maarten Lankhorst34b13e52018-05-03 13:22:16 +020030 select DRM_DEBUG_SELFTEST
Chris Wilsond90cb7f2017-08-10 10:40:36 +010031 select SW_SYNC # signaling validation framework (igt/syncobj*)
Chris Wilsonbdb821c2016-12-05 14:29:40 +000032 select DRM_I915_SW_FENCE_DEBUG_OBJECTS
Chris Wilson953c7f82017-02-13 17:15:12 +000033 select DRM_I915_SELFTEST
Imre Deak6dfc4a82018-08-16 22:34:14 +030034 select DRM_I915_DEBUG_RUNTIME_PM
Tvrtko Ursulin643a24b2016-03-03 14:36:43 +000035 default n
36 help
37 Choose this option to turn on extra driver debugging that may affect
38 performance but will catch some internal issues.
39
40 Recommended for driver developers only.
41
42 If in doubt, say "N".
43
Chris Wilsond501b1d2016-04-13 17:35:02 +010044config DRM_I915_DEBUG_GEM
45 bool "Insert extra checks into the GEM internals"
46 default n
47 depends on DRM_I915_WERROR
48 help
49 Enable extra sanity checks (including BUGs) along the GEM driver
50 paths that may slow the system down and if hit hang the machine.
51
52 Recommended for driver developers only.
53
54 If in doubt, say "N".
55
Chris Wilson1eca65d2018-07-06 07:53:06 +010056config DRM_I915_ERRLOG_GEM
57 bool "Insert extra logging (very verbose) for common GEM errors"
58 default n
59 depends on DRM_I915_DEBUG_GEM
60 help
61 Enable additional logging that may help track down the cause of
62 principally userspace errors.
63
64 Recommended for driver developers only.
65
66 If in doubt, say "N".
67
Chris Wilsonbccd3b82017-11-09 14:30:19 +000068config DRM_I915_TRACE_GEM
69 bool "Insert extra ftrace output from the GEM internals"
Chris Wilson16c86192017-12-19 22:09:16 +000070 depends on DRM_I915_DEBUG_GEM
Chris Wilsonbccd3b82017-11-09 14:30:19 +000071 select TRACING
72 default n
73 help
74 Enable additional and verbose debugging output that will spam
75 ordinary tests, but may be vital for post-mortem debugging when
76 used with /proc/sys/kernel/ftrace_dump_on_oops
77
78 Recommended for driver developers only.
79
80 If in doubt, say "N".
81
Chris Wilsonfc158402016-11-25 13:17:18 +000082config DRM_I915_SW_FENCE_DEBUG_OBJECTS
83 bool "Enable additional driver debugging for fence objects"
Chris Wilsonbdb821c2016-12-05 14:29:40 +000084 depends on DRM_I915
Chris Wilsonfc158402016-11-25 13:17:18 +000085 select DEBUG_OBJECTS
86 default n
87 help
88 Choose this option to turn on extra driver debugging that may affect
89 performance but will catch some internal issues.
90
91 Recommended for driver developers only.
92
93 If in doubt, say "N".
Chris Wilson953c7f82017-02-13 17:15:12 +000094
Chris Wilson47624cc2017-05-17 13:09:57 +010095config DRM_I915_SW_FENCE_CHECK_DAG
96 bool "Enable additional driver debugging for detecting dependency cycles"
97 depends on DRM_I915
98 default n
99 help
100 Choose this option to turn on extra driver debugging that may affect
101 performance but will catch some internal issues.
102
103 Recommended for driver developers only.
104
105 If in doubt, say "N".
106
Michal Wajdeczko0a015ff2018-03-26 19:48:28 +0000107config DRM_I915_DEBUG_GUC
108 bool "Enable additional driver debugging for GuC"
109 depends on DRM_I915
110 default n
111 help
112 Choose this option to turn on extra driver debugging that may affect
113 performance but will help resolve GuC related issues.
114
115 Recommended for driver developers only.
116
117 If in doubt, say "N".
118
Chris Wilson953c7f82017-02-13 17:15:12 +0000119config DRM_I915_SELFTEST
120 bool "Enable selftests upon driver load"
121 depends on DRM_I915
122 default n
Chris Wilsonaae4a3d2017-02-13 17:15:44 +0000123 select FAULT_INJECTION
Chris Wilson953c7f82017-02-13 17:15:12 +0000124 select PRIME_NUMBERS
125 help
126 Choose this option to allow the driver to perform selftests upon
127 loading; also requires the i915.selftest=1 module parameter. To
128 exit the module after running the selftests (i.e. to prevent normal
129 module initialisation afterwards) use i915.selftest=-1.
130
131 Recommended for driver developers only.
132
133 If in doubt, say "N".
Tvrtko Ursulin354d0362017-02-21 11:01:42 +0000134
Chris Wilson69ea47a2017-10-25 16:32:07 +0100135config DRM_I915_SELFTEST_BROKEN
136 bool "Enable broken and dangerous selftests"
137 depends on DRM_I915_SELFTEST
138 depends on BROKEN
139 default n
140 help
141 This option enables the execution of selftests that are "dangerous"
142 and may trigger unintended HW side-effects as they break strict
143 rules given in the HW specification. For science.
144
145 Recommended for masochistic driver developers only.
146
147 If in doubt, say "N".
148
Tvrtko Ursulin354d0362017-02-21 11:01:42 +0000149config DRM_I915_LOW_LEVEL_TRACEPOINTS
150 bool "Enable low level request tracing events"
151 depends on DRM_I915
152 default n
153 help
154 Choose this option to turn on low level request tracing events.
155 This provides the ability to precisely monitor engine utilisation
156 and also analyze the request dependency resolving timeline.
157
158 If in doubt, say "N".
Ville Syrjälä7b8cd332017-05-07 20:12:52 +0300159
160config DRM_I915_DEBUG_VBLANK_EVADE
161 bool "Enable extra debug warnings for vblank evasion"
162 depends on DRM_I915
163 default n
164 help
165 Choose this option to turn on extra debug warnings for the
166 vblank evade mechanism. This gives a warning every time the
167 the deadline allotted for the vblank evade critical section
168 is exceeded, even if there isn't an actual risk of missing
169 the vblank.
170
171 If in doubt, say "N".
Imre Deak6dfc4a82018-08-16 22:34:14 +0300172
173config DRM_I915_DEBUG_RUNTIME_PM
174 bool "Enable extra state checking for runtime PM"
175 depends on DRM_I915
176 default n
Chris Wilsonbd780f32019-01-14 14:21:09 +0000177 select STACKDEPOT
Imre Deak6dfc4a82018-08-16 22:34:14 +0300178 help
179 Choose this option to turn on extra state checking for the
180 runtime PM functionality. This may introduce overhead during
181 driver loading, suspend and resume operations.
182
183 If in doubt, say "N"