blob: fa36491495b1141a87b6b5ce27931e8c12cb94fd [file] [log] [blame]
Chris Wilson0a793ad2016-04-13 17:35:00 +01001config DRM_I915_WERROR
2 bool "Force GCC to throw an error instead of a warning when compiling"
3 # As this may inadvertently break the build, only allow the user
4 # to shoot oneself in the foot iff they aim really hard
5 depends on EXPERT
6 # We use the dependency on !COMPILE_TEST to not be enabled in
7 # allmodconfig or allyesconfig configurations
8 depends on !COMPILE_TEST
9 default n
10 help
11 Add -Werror to the build flags for (and only for) i915.ko.
12 Do not enable this unless you are writing code for the i915.ko module.
13
14 Recommended for driver developers only.
15
16 If in doubt, say "N".
17
Tvrtko Ursulin643a24b2016-03-03 14:36:43 +000018config DRM_I915_DEBUG
19 bool "Enable additional driver debugging"
20 depends on DRM_I915
Chris Wilson1b2b6592017-10-12 10:21:47 +010021 select DEBUG_FS
Tvrtko Ursulinc68b0ab2016-06-28 12:51:49 +010022 select PREEMPT_COUNT
Imre Deak3c30c7f2016-12-02 18:35:41 +020023 select I2C_CHARDEV
24 select DRM_DP_AUX_CHARDEV
Chris Wilson5bc1e9e2016-07-09 09:49:07 +010025 select X86_MSR # used by igt/pm_rpm
Chris Wilsonc31966a2016-07-09 11:22:57 +010026 select DRM_VGEM # used by igt/prime_vgem (dmabuf interop checks)
Chris Wilson77d150b2016-11-08 13:19:16 +000027 select DRM_DEBUG_MM if DRM=y
Chris Wilson170b03c2017-01-25 10:11:02 +000028 select DRM_DEBUG_MM_SELFTEST
Chris Wilsond90cb7f2017-08-10 10:40:36 +010029 select SW_SYNC # signaling validation framework (igt/syncobj*)
Chris Wilsonbdb821c2016-12-05 14:29:40 +000030 select DRM_I915_SW_FENCE_DEBUG_OBJECTS
Chris Wilson953c7f82017-02-13 17:15:12 +000031 select DRM_I915_SELFTEST
Chris Wilsonbccd3b82017-11-09 14:30:19 +000032 select DRM_I915_TRACE_GEM
Tvrtko Ursulin643a24b2016-03-03 14:36:43 +000033 default n
34 help
35 Choose this option to turn on extra driver debugging that may affect
36 performance but will catch some internal issues.
37
38 Recommended for driver developers only.
39
40 If in doubt, say "N".
41
Chris Wilsond501b1d2016-04-13 17:35:02 +010042config DRM_I915_DEBUG_GEM
43 bool "Insert extra checks into the GEM internals"
44 default n
45 depends on DRM_I915_WERROR
46 help
47 Enable extra sanity checks (including BUGs) along the GEM driver
48 paths that may slow the system down and if hit hang the machine.
49
50 Recommended for driver developers only.
51
52 If in doubt, say "N".
53
Chris Wilsonbccd3b82017-11-09 14:30:19 +000054config DRM_I915_TRACE_GEM
55 bool "Insert extra ftrace output from the GEM internals"
56 select TRACING
57 default n
58 help
59 Enable additional and verbose debugging output that will spam
60 ordinary tests, but may be vital for post-mortem debugging when
61 used with /proc/sys/kernel/ftrace_dump_on_oops
62
63 Recommended for driver developers only.
64
65 If in doubt, say "N".
66
Chris Wilsonfc158402016-11-25 13:17:18 +000067config DRM_I915_SW_FENCE_DEBUG_OBJECTS
68 bool "Enable additional driver debugging for fence objects"
Chris Wilsonbdb821c2016-12-05 14:29:40 +000069 depends on DRM_I915
Chris Wilsonfc158402016-11-25 13:17:18 +000070 select DEBUG_OBJECTS
71 default n
72 help
73 Choose this option to turn on extra driver debugging that may affect
74 performance but will catch some internal issues.
75
76 Recommended for driver developers only.
77
78 If in doubt, say "N".
Chris Wilson953c7f82017-02-13 17:15:12 +000079
Chris Wilson47624cc2017-05-17 13:09:57 +010080config DRM_I915_SW_FENCE_CHECK_DAG
81 bool "Enable additional driver debugging for detecting dependency cycles"
82 depends on DRM_I915
83 default n
84 help
85 Choose this option to turn on extra driver debugging that may affect
86 performance but will catch some internal issues.
87
88 Recommended for driver developers only.
89
90 If in doubt, say "N".
91
Chris Wilson953c7f82017-02-13 17:15:12 +000092config DRM_I915_SELFTEST
93 bool "Enable selftests upon driver load"
94 depends on DRM_I915
95 default n
Chris Wilsonaae4a3d2017-02-13 17:15:44 +000096 select FAULT_INJECTION
Chris Wilson953c7f82017-02-13 17:15:12 +000097 select PRIME_NUMBERS
98 help
99 Choose this option to allow the driver to perform selftests upon
100 loading; also requires the i915.selftest=1 module parameter. To
101 exit the module after running the selftests (i.e. to prevent normal
102 module initialisation afterwards) use i915.selftest=-1.
103
104 Recommended for driver developers only.
105
106 If in doubt, say "N".
Tvrtko Ursulin354d0362017-02-21 11:01:42 +0000107
Chris Wilson69ea47a2017-10-25 16:32:07 +0100108config DRM_I915_SELFTEST_BROKEN
109 bool "Enable broken and dangerous selftests"
110 depends on DRM_I915_SELFTEST
111 depends on BROKEN
112 default n
113 help
114 This option enables the execution of selftests that are "dangerous"
115 and may trigger unintended HW side-effects as they break strict
116 rules given in the HW specification. For science.
117
118 Recommended for masochistic driver developers only.
119
120 If in doubt, say "N".
121
Tvrtko Ursulin354d0362017-02-21 11:01:42 +0000122config DRM_I915_LOW_LEVEL_TRACEPOINTS
123 bool "Enable low level request tracing events"
124 depends on DRM_I915
125 default n
126 help
127 Choose this option to turn on low level request tracing events.
128 This provides the ability to precisely monitor engine utilisation
129 and also analyze the request dependency resolving timeline.
130
131 If in doubt, say "N".
Ville Syrjälä7b8cd332017-05-07 20:12:52 +0300132
133config DRM_I915_DEBUG_VBLANK_EVADE
134 bool "Enable extra debug warnings for vblank evasion"
135 depends on DRM_I915
136 default n
137 help
138 Choose this option to turn on extra debug warnings for the
139 vblank evade mechanism. This gives a warning every time the
140 the deadline allotted for the vblank evade critical section
141 is exceeded, even if there isn't an actual risk of missing
142 the vblank.
143
144 If in doubt, say "N".