279 lines · plain
1# SPDX-License-Identifier: GPL-2.0-only2config DRM_I915_WERROR3 bool "Force GCC to throw an error instead of a warning when compiling"4 # As this may inadvertently break the build, only allow the user5 # to shoot oneself in the foot iff they aim really hard6 depends on EXPERT7 # We use the dependency on !COMPILE_TEST to not be enabled in8 # allmodconfig or allyesconfig configurations9 depends on !COMPILE_TEST10 default n11 help12 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 19config DRM_I915_REPLAY_GPU_HANGS_API20 bool "Enable GPU hang replay userspace API"21 depends on DRM_I91522 depends on EXPERT23 default n24 help25 Choose this option if you want to enable special and unstable26 userspace API used for replaying GPU hangs on a running system.27 28 This API is intended to be used by userspace graphics stack developers29 and provides no stability guarantees.30 31 The API needs to be activated at boot time using the32 enable_debug_only_api module parameter.33 34 If in doubt, say "N".35 36config DRM_I915_DEBUG37 bool "Enable additional driver debugging"38 depends on DRM_I91539 depends on EXPERT # only for developers40 depends on !COMPILE_TEST # never built by robots41 select DEBUG_FS42 select PREEMPT_COUNT43 select I2C_CHARDEV44 select REF_TRACKER45 select STACKDEPOT46 select STACKTRACE47 select DRM_DISPLAY_DP_AUX_CHARDEV48 select DRM_DISPLAY_DP_TUNNEL_STATE_DEBUG if DRM_I915_DP_TUNNEL49 select X86_MSR # used by igt/pm_rpm50 select DRM_VGEM # used by igt/prime_vgem (dmabuf interop checks)51 select DRM_DEBUG_MM if DRM=y52 select DRM_EXPORT_FOR_TESTS if m53 select DRM_DEBUG_SELFTEST54 select DMABUF_SELFTESTS55 select SW_SYNC # signaling validation framework (igt/syncobj*)56 select DRM_I915_WERROR57 select DRM_I915_DEBUG_GEM58 select DRM_I915_DEBUG_GEM_ONCE59 select DRM_I915_DEBUG_MMIO60 select DRM_I915_DEBUG_RUNTIME_PM61 select DRM_I915_DEBUG_WAKEREF62 select DRM_I915_SW_FENCE_DEBUG_OBJECTS63 select DRM_I915_SELFTEST64 default n65 help66 Choose this option to turn on extra driver debugging that may affect67 performance but will catch some internal issues.68 69 Recommended for driver developers only.70 71 If in doubt, say "N".72 73config DRM_I915_DEBUG_MMIO74 bool "Always insert extra checks around mmio access by default"75 default n76 help77 By default, always enables the extra sanity checks (extra register78 reads) around every mmio (register) access that will slow the system79 down. This sets the default value of i915.mmio_debug to -1 and can80 be overridden at module load.81 82 Recommended for driver developers only.83 84 If in doubt, say "N".85 86config DRM_I915_DEBUG_GEM87 bool "Insert extra checks into the GEM internals"88 default n89 depends on DRM_I915_WERROR90 help91 Enable extra sanity checks (including BUGs) along the GEM driver92 paths that may slow the system down and if hit hang the machine.93 94 Recommended for driver developers only.95 96 If in doubt, say "N".97 98config DRM_I915_DEBUG_GEM_ONCE99 bool "Make a GEM debug failure fatal"100 default n101 depends on DRM_I915_DEBUG_GEM102 help103 During development, we often only want the very first failure104 as that would otherwise be lost in the deluge of subsequent105 failures. However, more casual testers may not want to trigger106 a hard BUG_ON and hope that the system remains sufficiently usable107 to capture a bug report in situ.108 109 Recommended for driver developers only.110 111 If in doubt, say "N".112 113config DRM_I915_ERRLOG_GEM114 bool "Insert extra logging (very verbose) for common GEM errors"115 default n116 depends on DRM_I915_DEBUG_GEM117 help118 Enable additional logging that may help track down the cause of119 principally userspace errors.120 121 Recommended for driver developers only.122 123 If in doubt, say "N".124 125config DRM_I915_TRACE_GEM126 bool "Insert extra ftrace output from the GEM internals"127 depends on DRM_I915_DEBUG_GEM128 select TRACING129 default n130 help131 Enable additional and verbose debugging output that will spam132 ordinary tests, but may be vital for post-mortem debugging when133 used with /proc/sys/kernel/ftrace_dump_on_oops134 135 Recommended for driver developers only.136 137 If in doubt, say "N".138 139config DRM_I915_TRACE_GTT140 bool "Insert extra ftrace output from the GTT internals"141 depends on DRM_I915_DEBUG_GEM142 select TRACING143 default n144 help145 Enable additional and verbose debugging output that will spam146 ordinary tests, but may be vital for post-mortem debugging when147 used with /proc/sys/kernel/ftrace_dump_on_oops148 149 Recommended for driver developers only.150 151 If in doubt, say "N".152 153config DRM_I915_SW_FENCE_DEBUG_OBJECTS154 bool "Enable additional driver debugging for fence objects"155 depends on DRM_I915156 select DEBUG_OBJECTS157 default n158 help159 Choose this option to turn on extra driver debugging that may affect160 performance but will catch some internal issues.161 162 Recommended for driver developers only.163 164 If in doubt, say "N".165 166config DRM_I915_SW_FENCE_CHECK_DAG167 bool "Enable additional driver debugging for detecting dependency cycles"168 depends on DRM_I915169 default n170 help171 Choose this option to turn on extra driver debugging that may affect172 performance but will catch some internal issues.173 174 Recommended for driver developers only.175 176 If in doubt, say "N".177 178config DRM_I915_DEBUG_GUC179 bool "Enable additional driver debugging for GuC"180 depends on DRM_I915181 select STACKDEPOT182 default n183 help184 Choose this option to turn on extra driver debugging that may affect185 performance but will help resolve GuC related issues.186 187 Recommended for driver developers only.188 189 If in doubt, say "N".190 191config DRM_I915_SELFTEST192 bool "Enable selftests upon driver load"193 depends on DRM_I915194 default n195 select DRM_EXPORT_FOR_TESTS if m196 select FAULT_INJECTION197 select PRIME_NUMBERS198 select CRC32199 help200 Choose this option to allow the driver to perform selftests upon201 loading; also requires the i915.selftest=1 module parameter. To202 exit the module after running the selftests (i.e. to prevent normal203 module initialisation afterwards) use i915.selftest=-1.204 205 Recommended for driver developers only.206 207 If in doubt, say "N".208 209config DRM_I915_SELFTEST_BROKEN210 bool "Enable broken and dangerous selftests"211 depends on DRM_I915_SELFTEST212 depends on BROKEN213 default n214 help215 This option enables the execution of selftests that are "dangerous"216 and may trigger unintended HW side-effects as they break strict217 rules given in the HW specification. For science.218 219 Recommended for masochistic driver developers only.220 221 If in doubt, say "N".222 223config DRM_I915_LOW_LEVEL_TRACEPOINTS224 bool "Enable low level request tracing events"225 depends on DRM_I915226 default n227 help228 Choose this option to turn on low level request tracing events.229 This provides the ability to precisely monitor engine utilisation230 and also analyze the request dependency resolving timeline.231 232 Recommended for driver developers only.233 234 If in doubt, say "N".235 236config DRM_I915_DEBUG_VBLANK_EVADE237 bool "Enable extra debug warnings for vblank evasion"238 depends on DRM_I915239 default n240 help241 Choose this option to turn on extra debug warnings for the242 vblank evade mechanism. This gives a warning every time the243 the deadline allotted for the vblank evade critical section244 is exceeded, even if there isn't an actual risk of missing245 the vblank.246 247 Recommended for driver developers only.248 249 If in doubt, say "N".250 251config DRM_I915_DEBUG_RUNTIME_PM252 bool "Enable extra state checking for runtime PM"253 depends on DRM_I915254 default n255 select REF_TRACKER256 select STACKDEPOT257 select STACKTRACE258 help259 Choose this option to turn on extra state checking for the260 runtime PM functionality. This may introduce overhead during261 driver loading, suspend and resume operations.262 263 Recommended for driver developers only.264 265 If in doubt, say "N"266 267config DRM_I915_DEBUG_WAKEREF268 bool "Enable extra tracking for wakerefs"269 depends on DRM_I915270 select REF_TRACKER271 select STACKDEPOT272 select STACKTRACE273 help274 Choose this option to turn on extra state checking and usage275 tracking for the wakerefPM functionality. This may introduce276 overhead during driver runtime.277 278 If in doubt, say "N"279