Kconfig.debug 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  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. Recommended for driver developers only.
  14. If in doubt, say "N".
  15. config DRM_I915_DEBUG
  16. bool "Enable additional driver debugging"
  17. depends on DRM_I915
  18. select DEBUG_FS
  19. select PREEMPT_COUNT
  20. select I2C_CHARDEV
  21. select DRM_DP_AUX_CHARDEV
  22. select X86_MSR # used by igt/pm_rpm
  23. select DRM_VGEM # used by igt/prime_vgem (dmabuf interop checks)
  24. select DRM_DEBUG_MM if DRM=y
  25. select STACKDEPOT if DRM=y # for DRM_DEBUG_MM
  26. select DRM_DEBUG_SELFTEST
  27. select SW_SYNC # signaling validation framework (igt/syncobj*)
  28. select DRM_I915_SW_FENCE_DEBUG_OBJECTS
  29. select DRM_I915_SELFTEST
  30. select DRM_I915_DEBUG_RUNTIME_PM
  31. 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. Recommended for driver developers only.
  36. If in doubt, say "N".
  37. config 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. Recommended for driver developers only.
  45. If in doubt, say "N".
  46. config DRM_I915_ERRLOG_GEM
  47. bool "Insert extra logging (very verbose) for common GEM errors"
  48. default n
  49. depends on DRM_I915_DEBUG_GEM
  50. help
  51. Enable additional logging that may help track down the cause of
  52. principally userspace errors.
  53. Recommended for driver developers only.
  54. If in doubt, say "N".
  55. config DRM_I915_TRACE_GEM
  56. bool "Insert extra ftrace output from the GEM internals"
  57. depends on DRM_I915_DEBUG_GEM
  58. select TRACING
  59. default n
  60. help
  61. Enable additional and verbose debugging output that will spam
  62. ordinary tests, but may be vital for post-mortem debugging when
  63. used with /proc/sys/kernel/ftrace_dump_on_oops
  64. Recommended for driver developers only.
  65. If in doubt, say "N".
  66. config DRM_I915_SW_FENCE_DEBUG_OBJECTS
  67. bool "Enable additional driver debugging for fence objects"
  68. depends on DRM_I915
  69. select DEBUG_OBJECTS
  70. default n
  71. help
  72. Choose this option to turn on extra driver debugging that may affect
  73. performance but will catch some internal issues.
  74. Recommended for driver developers only.
  75. If in doubt, say "N".
  76. config DRM_I915_SW_FENCE_CHECK_DAG
  77. bool "Enable additional driver debugging for detecting dependency cycles"
  78. depends on DRM_I915
  79. default n
  80. help
  81. Choose this option to turn on extra driver debugging that may affect
  82. performance but will catch some internal issues.
  83. Recommended for driver developers only.
  84. If in doubt, say "N".
  85. config DRM_I915_DEBUG_GUC
  86. bool "Enable additional driver debugging for GuC"
  87. depends on DRM_I915
  88. default n
  89. help
  90. Choose this option to turn on extra driver debugging that may affect
  91. performance but will help resolve GuC related issues.
  92. Recommended for driver developers only.
  93. If in doubt, say "N".
  94. config DRM_I915_SELFTEST
  95. bool "Enable selftests upon driver load"
  96. depends on DRM_I915
  97. default n
  98. select FAULT_INJECTION
  99. select PRIME_NUMBERS
  100. help
  101. Choose this option to allow the driver to perform selftests upon
  102. loading; also requires the i915.selftest=1 module parameter. To
  103. exit the module after running the selftests (i.e. to prevent normal
  104. module initialisation afterwards) use i915.selftest=-1.
  105. Recommended for driver developers only.
  106. If in doubt, say "N".
  107. config DRM_I915_SELFTEST_BROKEN
  108. bool "Enable broken and dangerous selftests"
  109. depends on DRM_I915_SELFTEST
  110. depends on BROKEN
  111. default n
  112. help
  113. This option enables the execution of selftests that are "dangerous"
  114. and may trigger unintended HW side-effects as they break strict
  115. rules given in the HW specification. For science.
  116. Recommended for masochistic driver developers only.
  117. If in doubt, say "N".
  118. config DRM_I915_LOW_LEVEL_TRACEPOINTS
  119. bool "Enable low level request tracing events"
  120. depends on DRM_I915
  121. default n
  122. help
  123. Choose this option to turn on low level request tracing events.
  124. This provides the ability to precisely monitor engine utilisation
  125. and also analyze the request dependency resolving timeline.
  126. If in doubt, say "N".
  127. config DRM_I915_DEBUG_VBLANK_EVADE
  128. bool "Enable extra debug warnings for vblank evasion"
  129. depends on DRM_I915
  130. default n
  131. help
  132. Choose this option to turn on extra debug warnings for the
  133. vblank evade mechanism. This gives a warning every time the
  134. the deadline allotted for the vblank evade critical section
  135. is exceeded, even if there isn't an actual risk of missing
  136. the vblank.
  137. If in doubt, say "N".
  138. config DRM_I915_DEBUG_RUNTIME_PM
  139. bool "Enable extra state checking for runtime PM"
  140. depends on DRM_I915
  141. default n
  142. help
  143. Choose this option to turn on extra state checking for the
  144. runtime PM functionality. This may introduce overhead during
  145. driver loading, suspend and resume operations.
  146. If in doubt, say "N"