xref: /openbmc/linux/drivers/gpu/drm/i915/Kconfig.debug (revision fb960bd2)
1config 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
18config DRM_I915_DEBUG
19        bool "Enable additional driver debugging"
20        depends on DRM_I915
21        select PREEMPT_COUNT
22        select I2C_CHARDEV
23        select DRM_DP_AUX_CHARDEV
24        select X86_MSR # used by igt/pm_rpm
25        select DRM_VGEM # used by igt/prime_vgem (dmabuf interop checks)
26        select DRM_DEBUG_MM if DRM=y
27	select DRM_DEBUG_MM_SELFTEST
28	select SW_SYNC # signaling validation framework (igt/syncobj*)
29	select DRM_I915_SW_FENCE_DEBUG_OBJECTS
30	select DRM_I915_SELFTEST
31	select DRM_I915_TRACE_GEM
32        default n
33        help
34          Choose this option to turn on extra driver debugging that may affect
35          performance but will catch some internal issues.
36
37          Recommended for driver developers only.
38
39          If in doubt, say "N".
40
41config DRM_I915_DEBUG_GEM
42        bool "Insert extra checks into the GEM internals"
43        default n
44        depends on DRM_I915_WERROR
45        help
46          Enable extra sanity checks (including BUGs) along the GEM driver
47          paths that may slow the system down and if hit hang the machine.
48
49          Recommended for driver developers only.
50
51          If in doubt, say "N".
52
53config DRM_I915_TRACE_GEM
54	bool "Insert extra ftrace output from the GEM internals"
55	select TRACING
56	default n
57	help
58	  Enable additional and verbose debugging output that will spam
59	  ordinary tests, but may be vital for post-mortem debugging when
60	  used with /proc/sys/kernel/ftrace_dump_on_oops
61
62	  Recommended for driver developers only.
63
64	  If in doubt, say "N".
65
66config DRM_I915_SW_FENCE_DEBUG_OBJECTS
67        bool "Enable additional driver debugging for fence objects"
68        depends on DRM_I915
69        select DEBUG_OBJECTS
70        default n
71        help
72          Choose this option to turn on extra driver debugging that may affect
73          performance but will catch some internal issues.
74
75          Recommended for driver developers only.
76
77          If in doubt, say "N".
78
79config DRM_I915_SW_FENCE_CHECK_DAG
80        bool "Enable additional driver debugging for detecting dependency cycles"
81        depends on DRM_I915
82        default n
83        help
84          Choose this option to turn on extra driver debugging that may affect
85          performance but will catch some internal issues.
86
87          Recommended for driver developers only.
88
89          If in doubt, say "N".
90
91config DRM_I915_SELFTEST
92	bool "Enable selftests upon driver load"
93	depends on DRM_I915
94	default n
95	select FAULT_INJECTION
96	select PRIME_NUMBERS
97	help
98	  Choose this option to allow the driver to perform selftests upon
99	  loading; also requires the i915.selftest=1 module parameter. To
100	  exit the module after running the selftests (i.e. to prevent normal
101	  module initialisation afterwards) use i915.selftest=-1.
102
103	  Recommended for driver developers only.
104
105	  If in doubt, say "N".
106
107config DRM_I915_SELFTEST_BROKEN
108	bool "Enable broken and dangerous selftests"
109	depends on DRM_I915_SELFTEST
110	depends on BROKEN
111	default n
112	help
113	  This option enables the execution of selftests that are "dangerous"
114	  and may trigger unintended HW side-effects as they break strict
115	  rules given in the HW specification. For science.
116
117	  Recommended for masochistic driver developers only.
118
119	  If in doubt, say "N".
120
121config DRM_I915_LOW_LEVEL_TRACEPOINTS
122        bool "Enable low level request tracing events"
123        depends on DRM_I915
124        default n
125        help
126          Choose this option to turn on low level request tracing events.
127          This provides the ability to precisely monitor engine utilisation
128          and also analyze the request dependency resolving timeline.
129
130          If in doubt, say "N".
131
132config DRM_I915_DEBUG_VBLANK_EVADE
133	bool "Enable extra debug warnings for vblank evasion"
134	depends on DRM_I915
135	default n
136	help
137	  Choose this option to turn on extra debug warnings for the
138	  vblank evade mechanism. This gives a warning every time the
139	  the deadline allotted for the vblank evade critical section
140	  is exceeded, even if there isn't an actual risk of missing
141	  the vblank.
142
143	  If in doubt, say "N".
144