blob: cc4ad576e6e9dbab0040d781224970b62bb1aae3 [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 Wilsonfc158402016-11-25 13:17:18 +000027 select DRM_I915_SW_FENCE_DEBUG_OBJECTS if DRM_I915=y
Tvrtko Ursulin643a24b2016-03-03 14:36:43 +000028 default n
29 help
30 Choose this option to turn on extra driver debugging that may affect
31 performance but will catch some internal issues.
32
33 Recommended for driver developers only.
34
35 If in doubt, say "N".
36
Chris Wilsond501b1d2016-04-13 17:35:02 +010037config DRM_I915_DEBUG_GEM
38 bool "Insert extra checks into the GEM internals"
39 default n
40 depends on DRM_I915_WERROR
41 help
42 Enable extra sanity checks (including BUGs) along the GEM driver
43 paths that may slow the system down and if hit hang the machine.
44
45 Recommended for driver developers only.
46
47 If in doubt, say "N".
48
Chris Wilsonfc158402016-11-25 13:17:18 +000049config DRM_I915_SW_FENCE_DEBUG_OBJECTS
50 bool "Enable additional driver debugging for fence objects"
51 depends on DRM_I915=y
52 select DEBUG_OBJECTS
53 default n
54 help
55 Choose this option to turn on extra driver debugging that may affect
56 performance but will catch some internal issues.
57
58 Recommended for driver developers only.
59
60 If in doubt, say "N".