Chris Wilson | 0a793ad | 2016-04-13 17:35:00 +0100 | [diff] [blame] | 1 | config 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 Ursulin | 643a24b | 2016-03-03 14:36:43 +0000 | [diff] [blame] | 18 | config DRM_I915_DEBUG |
| 19 | bool "Enable additional driver debugging" |
| 20 | depends on DRM_I915 |
Chris Wilson | 1b2b659 | 2017-10-12 10:21:47 +0100 | [diff] [blame] | 21 | select DEBUG_FS |
Tvrtko Ursulin | c68b0ab | 2016-06-28 12:51:49 +0100 | [diff] [blame] | 22 | select PREEMPT_COUNT |
Imre Deak | 3c30c7f | 2016-12-02 18:35:41 +0200 | [diff] [blame] | 23 | select I2C_CHARDEV |
| 24 | select DRM_DP_AUX_CHARDEV |
Chris Wilson | 5bc1e9e | 2016-07-09 09:49:07 +0100 | [diff] [blame] | 25 | select X86_MSR # used by igt/pm_rpm |
Chris Wilson | c31966a | 2016-07-09 11:22:57 +0100 | [diff] [blame] | 26 | select DRM_VGEM # used by igt/prime_vgem (dmabuf interop checks) |
Chris Wilson | 77d150b | 2016-11-08 13:19:16 +0000 | [diff] [blame] | 27 | select DRM_DEBUG_MM if DRM=y |
Daniel Vetter | 91b00df | 2018-03-20 13:50:09 +0100 | [diff] [blame] | 28 | select STACKDEPOT if DRM=y # for DRM_DEBUG_MM |
Chris Wilson | 170b03c | 2017-01-25 10:11:02 +0000 | [diff] [blame] | 29 | select DRM_DEBUG_MM_SELFTEST |
Chris Wilson | d90cb7f | 2017-08-10 10:40:36 +0100 | [diff] [blame] | 30 | select SW_SYNC # signaling validation framework (igt/syncobj*) |
Chris Wilson | bdb821c | 2016-12-05 14:29:40 +0000 | [diff] [blame] | 31 | select DRM_I915_SW_FENCE_DEBUG_OBJECTS |
Chris Wilson | 953c7f8 | 2017-02-13 17:15:12 +0000 | [diff] [blame] | 32 | select DRM_I915_SELFTEST |
Tvrtko Ursulin | 643a24b | 2016-03-03 14:36:43 +0000 | [diff] [blame] | 33 | 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 Wilson | d501b1d | 2016-04-13 17:35:02 +0100 | [diff] [blame] | 42 | config 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 Wilson | bccd3b8 | 2017-11-09 14:30:19 +0000 | [diff] [blame] | 54 | config DRM_I915_TRACE_GEM |
| 55 | bool "Insert extra ftrace output from the GEM internals" |
Chris Wilson | 16c8619 | 2017-12-19 22:09:16 +0000 | [diff] [blame] | 56 | depends on DRM_I915_DEBUG_GEM |
Chris Wilson | bccd3b8 | 2017-11-09 14:30:19 +0000 | [diff] [blame] | 57 | select TRACING |
| 58 | default n |
| 59 | help |
| 60 | Enable additional and verbose debugging output that will spam |
| 61 | ordinary tests, but may be vital for post-mortem debugging when |
| 62 | used with /proc/sys/kernel/ftrace_dump_on_oops |
| 63 | |
| 64 | Recommended for driver developers only. |
| 65 | |
| 66 | If in doubt, say "N". |
| 67 | |
Chris Wilson | fc15840 | 2016-11-25 13:17:18 +0000 | [diff] [blame] | 68 | config DRM_I915_SW_FENCE_DEBUG_OBJECTS |
| 69 | bool "Enable additional driver debugging for fence objects" |
Chris Wilson | bdb821c | 2016-12-05 14:29:40 +0000 | [diff] [blame] | 70 | depends on DRM_I915 |
Chris Wilson | fc15840 | 2016-11-25 13:17:18 +0000 | [diff] [blame] | 71 | select DEBUG_OBJECTS |
| 72 | default n |
| 73 | help |
| 74 | Choose this option to turn on extra driver debugging that may affect |
| 75 | performance but will catch some internal issues. |
| 76 | |
| 77 | Recommended for driver developers only. |
| 78 | |
| 79 | If in doubt, say "N". |
Chris Wilson | 953c7f8 | 2017-02-13 17:15:12 +0000 | [diff] [blame] | 80 | |
Chris Wilson | 47624cc | 2017-05-17 13:09:57 +0100 | [diff] [blame] | 81 | config DRM_I915_SW_FENCE_CHECK_DAG |
| 82 | bool "Enable additional driver debugging for detecting dependency cycles" |
| 83 | depends on DRM_I915 |
| 84 | default n |
| 85 | help |
| 86 | Choose this option to turn on extra driver debugging that may affect |
| 87 | performance but will catch some internal issues. |
| 88 | |
| 89 | Recommended for driver developers only. |
| 90 | |
| 91 | If in doubt, say "N". |
| 92 | |
Michal Wajdeczko | 0a015ff | 2018-03-26 19:48:28 +0000 | [diff] [blame] | 93 | config DRM_I915_DEBUG_GUC |
| 94 | bool "Enable additional driver debugging for GuC" |
| 95 | depends on DRM_I915 |
| 96 | default n |
| 97 | help |
| 98 | Choose this option to turn on extra driver debugging that may affect |
| 99 | performance but will help resolve GuC related issues. |
| 100 | |
| 101 | Recommended for driver developers only. |
| 102 | |
| 103 | If in doubt, say "N". |
| 104 | |
Chris Wilson | 953c7f8 | 2017-02-13 17:15:12 +0000 | [diff] [blame] | 105 | config DRM_I915_SELFTEST |
| 106 | bool "Enable selftests upon driver load" |
| 107 | depends on DRM_I915 |
| 108 | default n |
Chris Wilson | aae4a3d | 2017-02-13 17:15:44 +0000 | [diff] [blame] | 109 | select FAULT_INJECTION |
Chris Wilson | 953c7f8 | 2017-02-13 17:15:12 +0000 | [diff] [blame] | 110 | select PRIME_NUMBERS |
| 111 | help |
| 112 | Choose this option to allow the driver to perform selftests upon |
| 113 | loading; also requires the i915.selftest=1 module parameter. To |
| 114 | exit the module after running the selftests (i.e. to prevent normal |
| 115 | module initialisation afterwards) use i915.selftest=-1. |
| 116 | |
| 117 | Recommended for driver developers only. |
| 118 | |
| 119 | If in doubt, say "N". |
Tvrtko Ursulin | 354d036 | 2017-02-21 11:01:42 +0000 | [diff] [blame] | 120 | |
Chris Wilson | 69ea47a | 2017-10-25 16:32:07 +0100 | [diff] [blame] | 121 | config DRM_I915_SELFTEST_BROKEN |
| 122 | bool "Enable broken and dangerous selftests" |
| 123 | depends on DRM_I915_SELFTEST |
| 124 | depends on BROKEN |
| 125 | default n |
| 126 | help |
| 127 | This option enables the execution of selftests that are "dangerous" |
| 128 | and may trigger unintended HW side-effects as they break strict |
| 129 | rules given in the HW specification. For science. |
| 130 | |
| 131 | Recommended for masochistic driver developers only. |
| 132 | |
| 133 | If in doubt, say "N". |
| 134 | |
Tvrtko Ursulin | 354d036 | 2017-02-21 11:01:42 +0000 | [diff] [blame] | 135 | config DRM_I915_LOW_LEVEL_TRACEPOINTS |
| 136 | bool "Enable low level request tracing events" |
| 137 | depends on DRM_I915 |
| 138 | default n |
| 139 | help |
| 140 | Choose this option to turn on low level request tracing events. |
| 141 | This provides the ability to precisely monitor engine utilisation |
| 142 | and also analyze the request dependency resolving timeline. |
| 143 | |
| 144 | If in doubt, say "N". |
Ville Syrjälä | 7b8cd33 | 2017-05-07 20:12:52 +0300 | [diff] [blame] | 145 | |
| 146 | config DRM_I915_DEBUG_VBLANK_EVADE |
| 147 | bool "Enable extra debug warnings for vblank evasion" |
| 148 | depends on DRM_I915 |
| 149 | default n |
| 150 | help |
| 151 | Choose this option to turn on extra debug warnings for the |
| 152 | vblank evade mechanism. This gives a warning every time the |
| 153 | the deadline allotted for the vblank evade critical section |
| 154 | is exceeded, even if there isn't an actual risk of missing |
| 155 | the vblank. |
| 156 | |
| 157 | If in doubt, say "N". |