blob: aed7d207ea8468824a4627640daa0dee0077b826 [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
Tvrtko Ursulinc68b0ab2016-06-28 12:51:49 +010021 select PREEMPT_COUNT
Imre Deak3c30c7f2016-12-02 18:35:41 +020022 select I2C_CHARDEV
23 select DRM_DP_AUX_CHARDEV
Chris Wilson5bc1e9e2016-07-09 09:49:07 +010024 select X86_MSR # used by igt/pm_rpm
Chris Wilsonc31966a2016-07-09 11:22:57 +010025 select DRM_VGEM # used by igt/prime_vgem (dmabuf interop checks)
Chris Wilson77d150b2016-11-08 13:19:16 +000026 select DRM_DEBUG_MM if DRM=y
Chris Wilson170b03c2017-01-25 10:11:02 +000027 select DRM_DEBUG_MM_SELFTEST
Chris Wilsond90cb7f2017-08-10 10:40:36 +010028 select SW_SYNC # signaling validation framework (igt/syncobj*)
Chris Wilsonbdb821c2016-12-05 14:29:40 +000029 select DRM_I915_SW_FENCE_DEBUG_OBJECTS
Chris Wilson953c7f82017-02-13 17:15:12 +000030 select DRM_I915_SELFTEST
Tvrtko Ursulin643a24b2016-03-03 14:36:43 +000031 default n
32 help
33 Choose this option to turn on extra driver debugging that may affect
34 performance but will catch some internal issues.
35
36 Recommended for driver developers only.
37
38 If in doubt, say "N".
39
Chris Wilsond501b1d2016-04-13 17:35:02 +010040config DRM_I915_DEBUG_GEM
41 bool "Insert extra checks into the GEM internals"
42 default n
43 depends on DRM_I915_WERROR
44 help
45 Enable extra sanity checks (including BUGs) along the GEM driver
46 paths that may slow the system down and if hit hang the machine.
47
48 Recommended for driver developers only.
49
50 If in doubt, say "N".
51
Chris Wilsonfc158402016-11-25 13:17:18 +000052config DRM_I915_SW_FENCE_DEBUG_OBJECTS
53 bool "Enable additional driver debugging for fence objects"
Chris Wilsonbdb821c2016-12-05 14:29:40 +000054 depends on DRM_I915
Chris Wilsonfc158402016-11-25 13:17:18 +000055 select DEBUG_OBJECTS
56 default n
57 help
58 Choose this option to turn on extra driver debugging that may affect
59 performance but will catch some internal issues.
60
61 Recommended for driver developers only.
62
63 If in doubt, say "N".
Chris Wilson953c7f82017-02-13 17:15:12 +000064
Chris Wilson47624cc2017-05-17 13:09:57 +010065config DRM_I915_SW_FENCE_CHECK_DAG
66 bool "Enable additional driver debugging for detecting dependency cycles"
67 depends on DRM_I915
68 default n
69 help
70 Choose this option to turn on extra driver debugging that may affect
71 performance but will catch some internal issues.
72
73 Recommended for driver developers only.
74
75 If in doubt, say "N".
76
Chris Wilson953c7f82017-02-13 17:15:12 +000077config DRM_I915_SELFTEST
78 bool "Enable selftests upon driver load"
79 depends on DRM_I915
80 default n
Chris Wilsonaae4a3d2017-02-13 17:15:44 +000081 select FAULT_INJECTION
Chris Wilson953c7f82017-02-13 17:15:12 +000082 select PRIME_NUMBERS
83 help
84 Choose this option to allow the driver to perform selftests upon
85 loading; also requires the i915.selftest=1 module parameter. To
86 exit the module after running the selftests (i.e. to prevent normal
87 module initialisation afterwards) use i915.selftest=-1.
88
89 Recommended for driver developers only.
90
91 If in doubt, say "N".
Tvrtko Ursulin354d0362017-02-21 11:01:42 +000092
93config DRM_I915_LOW_LEVEL_TRACEPOINTS
94 bool "Enable low level request tracing events"
95 depends on DRM_I915
96 default n
97 help
98 Choose this option to turn on low level request tracing events.
99 This provides the ability to precisely monitor engine utilisation
100 and also analyze the request dependency resolving timeline.
101
102 If in doubt, say "N".
Ville Syrjälä7b8cd332017-05-07 20:12:52 +0300103
104config DRM_I915_DEBUG_VBLANK_EVADE
105 bool "Enable extra debug warnings for vblank evasion"
106 depends on DRM_I915
107 default n
108 help
109 Choose this option to turn on extra debug warnings for the
110 vblank evade mechanism. This gives a warning every time the
111 the deadline allotted for the vblank evade critical section
112 is exceeded, even if there isn't an actual risk of missing
113 the vblank.
114
115 If in doubt, say "N".