Thomas Gleixner | ec8f24b | 2019-05-19 13:07:45 +0100 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0-only |
Chris Wilson | 0a793ad | 2016-04-13 17:35:00 +0100 | [diff] [blame] | 2 | config DRM_I915_WERROR |
| 3 | bool "Force GCC to throw an error instead of a warning when compiling" |
| 4 | # As this may inadvertently break the build, only allow the user |
| 5 | # to shoot oneself in the foot iff they aim really hard |
| 6 | depends on EXPERT |
| 7 | # We use the dependency on !COMPILE_TEST to not be enabled in |
| 8 | # allmodconfig or allyesconfig configurations |
| 9 | depends on !COMPILE_TEST |
| 10 | default n |
| 11 | help |
| 12 | Add -Werror to the build flags for (and only for) i915.ko. |
| 13 | Do not enable this unless you are writing code for the i915.ko module. |
| 14 | |
| 15 | Recommended for driver developers only. |
| 16 | |
| 17 | If in doubt, say "N". |
| 18 | |
Tvrtko Ursulin | 643a24b | 2016-03-03 14:36:43 +0000 | [diff] [blame] | 19 | config DRM_I915_DEBUG |
| 20 | bool "Enable additional driver debugging" |
| 21 | depends on DRM_I915 |
Chris Wilson | 1b2b659 | 2017-10-12 10:21:47 +0100 | [diff] [blame] | 22 | select DEBUG_FS |
Tvrtko Ursulin | c68b0ab | 2016-06-28 12:51:49 +0100 | [diff] [blame] | 23 | select PREEMPT_COUNT |
Imre Deak | 3c30c7f | 2016-12-02 18:35:41 +0200 | [diff] [blame] | 24 | select I2C_CHARDEV |
Chris Wilson | bd780f3 | 2019-01-14 14:21:09 +0000 | [diff] [blame] | 25 | select STACKDEPOT |
Imre Deak | 3c30c7f | 2016-12-02 18:35:41 +0200 | [diff] [blame] | 26 | select DRM_DP_AUX_CHARDEV |
Chris Wilson | 5bc1e9e | 2016-07-09 09:49:07 +0100 | [diff] [blame] | 27 | select X86_MSR # used by igt/pm_rpm |
Chris Wilson | c31966a | 2016-07-09 11:22:57 +0100 | [diff] [blame] | 28 | select DRM_VGEM # used by igt/prime_vgem (dmabuf interop checks) |
Chris Wilson | 77d150b | 2016-11-08 13:19:16 +0000 | [diff] [blame] | 29 | select DRM_DEBUG_MM if DRM=y |
Maarten Lankhorst | 34b13e5 | 2018-05-03 13:22:16 +0200 | [diff] [blame] | 30 | select DRM_DEBUG_SELFTEST |
Chris Wilson | d90cb7f | 2017-08-10 10:40:36 +0100 | [diff] [blame] | 31 | select SW_SYNC # signaling validation framework (igt/syncobj*) |
Chris Wilson | bdb821c | 2016-12-05 14:29:40 +0000 | [diff] [blame] | 32 | select DRM_I915_SW_FENCE_DEBUG_OBJECTS |
Chris Wilson | 953c7f8 | 2017-02-13 17:15:12 +0000 | [diff] [blame] | 33 | select DRM_I915_SELFTEST |
Imre Deak | 6dfc4a8 | 2018-08-16 22:34:14 +0300 | [diff] [blame] | 34 | select DRM_I915_DEBUG_RUNTIME_PM |
Tvrtko Ursulin | 643a24b | 2016-03-03 14:36:43 +0000 | [diff] [blame] | 35 | default n |
| 36 | help |
| 37 | Choose this option to turn on extra driver debugging that may affect |
| 38 | performance but will catch some internal issues. |
| 39 | |
| 40 | Recommended for driver developers only. |
| 41 | |
| 42 | If in doubt, say "N". |
| 43 | |
Chris Wilson | d501b1d | 2016-04-13 17:35:02 +0100 | [diff] [blame] | 44 | config DRM_I915_DEBUG_GEM |
| 45 | bool "Insert extra checks into the GEM internals" |
| 46 | default n |
| 47 | depends on DRM_I915_WERROR |
| 48 | help |
| 49 | Enable extra sanity checks (including BUGs) along the GEM driver |
| 50 | paths that may slow the system down and if hit hang the machine. |
| 51 | |
| 52 | Recommended for driver developers only. |
| 53 | |
| 54 | If in doubt, say "N". |
| 55 | |
Chris Wilson | 1eca65d | 2018-07-06 07:53:06 +0100 | [diff] [blame] | 56 | config DRM_I915_ERRLOG_GEM |
| 57 | bool "Insert extra logging (very verbose) for common GEM errors" |
| 58 | default n |
| 59 | depends on DRM_I915_DEBUG_GEM |
| 60 | help |
| 61 | Enable additional logging that may help track down the cause of |
| 62 | principally userspace errors. |
| 63 | |
| 64 | Recommended for driver developers only. |
| 65 | |
| 66 | If in doubt, say "N". |
| 67 | |
Chris Wilson | bccd3b8 | 2017-11-09 14:30:19 +0000 | [diff] [blame] | 68 | config DRM_I915_TRACE_GEM |
| 69 | bool "Insert extra ftrace output from the GEM internals" |
Chris Wilson | 16c8619 | 2017-12-19 22:09:16 +0000 | [diff] [blame] | 70 | depends on DRM_I915_DEBUG_GEM |
Chris Wilson | bccd3b8 | 2017-11-09 14:30:19 +0000 | [diff] [blame] | 71 | select TRACING |
| 72 | default n |
| 73 | help |
| 74 | Enable additional and verbose debugging output that will spam |
| 75 | ordinary tests, but may be vital for post-mortem debugging when |
| 76 | used with /proc/sys/kernel/ftrace_dump_on_oops |
| 77 | |
| 78 | Recommended for driver developers only. |
| 79 | |
| 80 | If in doubt, say "N". |
| 81 | |
Chris Wilson | fc15840 | 2016-11-25 13:17:18 +0000 | [diff] [blame] | 82 | config DRM_I915_SW_FENCE_DEBUG_OBJECTS |
| 83 | bool "Enable additional driver debugging for fence objects" |
Chris Wilson | bdb821c | 2016-12-05 14:29:40 +0000 | [diff] [blame] | 84 | depends on DRM_I915 |
Chris Wilson | fc15840 | 2016-11-25 13:17:18 +0000 | [diff] [blame] | 85 | select DEBUG_OBJECTS |
| 86 | default n |
| 87 | help |
| 88 | Choose this option to turn on extra driver debugging that may affect |
| 89 | performance but will catch some internal issues. |
| 90 | |
| 91 | Recommended for driver developers only. |
| 92 | |
| 93 | If in doubt, say "N". |
Chris Wilson | 953c7f8 | 2017-02-13 17:15:12 +0000 | [diff] [blame] | 94 | |
Chris Wilson | 47624cc | 2017-05-17 13:09:57 +0100 | [diff] [blame] | 95 | config DRM_I915_SW_FENCE_CHECK_DAG |
| 96 | bool "Enable additional driver debugging for detecting dependency cycles" |
| 97 | depends on DRM_I915 |
| 98 | default n |
| 99 | help |
| 100 | Choose this option to turn on extra driver debugging that may affect |
| 101 | performance but will catch some internal issues. |
| 102 | |
| 103 | Recommended for driver developers only. |
| 104 | |
| 105 | If in doubt, say "N". |
| 106 | |
Michal Wajdeczko | 0a015ff | 2018-03-26 19:48:28 +0000 | [diff] [blame] | 107 | config DRM_I915_DEBUG_GUC |
| 108 | bool "Enable additional driver debugging for GuC" |
| 109 | depends on DRM_I915 |
| 110 | default n |
| 111 | help |
| 112 | Choose this option to turn on extra driver debugging that may affect |
| 113 | performance but will help resolve GuC related issues. |
| 114 | |
| 115 | Recommended for driver developers only. |
| 116 | |
| 117 | If in doubt, say "N". |
| 118 | |
Chris Wilson | 953c7f8 | 2017-02-13 17:15:12 +0000 | [diff] [blame] | 119 | config DRM_I915_SELFTEST |
| 120 | bool "Enable selftests upon driver load" |
| 121 | depends on DRM_I915 |
| 122 | default n |
Chris Wilson | aae4a3d | 2017-02-13 17:15:44 +0000 | [diff] [blame] | 123 | select FAULT_INJECTION |
Chris Wilson | 953c7f8 | 2017-02-13 17:15:12 +0000 | [diff] [blame] | 124 | select PRIME_NUMBERS |
| 125 | help |
| 126 | Choose this option to allow the driver to perform selftests upon |
| 127 | loading; also requires the i915.selftest=1 module parameter. To |
| 128 | exit the module after running the selftests (i.e. to prevent normal |
| 129 | module initialisation afterwards) use i915.selftest=-1. |
| 130 | |
| 131 | Recommended for driver developers only. |
| 132 | |
| 133 | If in doubt, say "N". |
Tvrtko Ursulin | 354d036 | 2017-02-21 11:01:42 +0000 | [diff] [blame] | 134 | |
Chris Wilson | 69ea47a | 2017-10-25 16:32:07 +0100 | [diff] [blame] | 135 | config DRM_I915_SELFTEST_BROKEN |
| 136 | bool "Enable broken and dangerous selftests" |
| 137 | depends on DRM_I915_SELFTEST |
| 138 | depends on BROKEN |
| 139 | default n |
| 140 | help |
| 141 | This option enables the execution of selftests that are "dangerous" |
| 142 | and may trigger unintended HW side-effects as they break strict |
| 143 | rules given in the HW specification. For science. |
| 144 | |
| 145 | Recommended for masochistic driver developers only. |
| 146 | |
| 147 | If in doubt, say "N". |
| 148 | |
Tvrtko Ursulin | 354d036 | 2017-02-21 11:01:42 +0000 | [diff] [blame] | 149 | config DRM_I915_LOW_LEVEL_TRACEPOINTS |
| 150 | bool "Enable low level request tracing events" |
| 151 | depends on DRM_I915 |
| 152 | default n |
| 153 | help |
| 154 | Choose this option to turn on low level request tracing events. |
| 155 | This provides the ability to precisely monitor engine utilisation |
| 156 | and also analyze the request dependency resolving timeline. |
| 157 | |
| 158 | If in doubt, say "N". |
Ville Syrjälä | 7b8cd33 | 2017-05-07 20:12:52 +0300 | [diff] [blame] | 159 | |
| 160 | config DRM_I915_DEBUG_VBLANK_EVADE |
| 161 | bool "Enable extra debug warnings for vblank evasion" |
| 162 | depends on DRM_I915 |
| 163 | default n |
| 164 | help |
| 165 | Choose this option to turn on extra debug warnings for the |
| 166 | vblank evade mechanism. This gives a warning every time the |
| 167 | the deadline allotted for the vblank evade critical section |
| 168 | is exceeded, even if there isn't an actual risk of missing |
| 169 | the vblank. |
| 170 | |
| 171 | If in doubt, say "N". |
Imre Deak | 6dfc4a8 | 2018-08-16 22:34:14 +0300 | [diff] [blame] | 172 | |
| 173 | config DRM_I915_DEBUG_RUNTIME_PM |
| 174 | bool "Enable extra state checking for runtime PM" |
| 175 | depends on DRM_I915 |
| 176 | default n |
Chris Wilson | bd780f3 | 2019-01-14 14:21:09 +0000 | [diff] [blame] | 177 | select STACKDEPOT |
Imre Deak | 6dfc4a8 | 2018-08-16 22:34:14 +0300 | [diff] [blame] | 178 | help |
| 179 | Choose this option to turn on extra state checking for the |
| 180 | runtime PM functionality. This may introduce overhead during |
| 181 | driver loading, suspend and resume operations. |
| 182 | |
| 183 | If in doubt, say "N" |