Kconfig.debug 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. config DRM_USE_DYNAMIC_DEBUG
  2. bool "use dynamic debug to implement drm.debug"
  3. default n
  4. depends on BROKEN
  5. depends on DRM
  6. depends on DYNAMIC_DEBUG || DYNAMIC_DEBUG_CORE
  7. depends on JUMP_LABEL
  8. help
  9. Use dynamic-debug to avoid drm_debug_enabled() runtime overheads.
  10. Due to callsite counts in DRM drivers (~4k in amdgpu) and 56
  11. bytes per callsite, the .data costs can be substantial, and
  12. are therefore configurable.
  13. config DRM_WERROR
  14. bool "Compile the drm subsystem with warnings as errors"
  15. depends on DRM && EXPERT
  16. depends on !WERROR
  17. default n
  18. help
  19. A kernel build should not cause any compiler warnings, and this
  20. enables the '-Werror' flag to enforce that rule in the drm subsystem.
  21. The drm subsystem enables more warnings than the kernel default, so
  22. this config option is disabled by default.
  23. If in doubt, say N.
  24. config DRM_HEADER_TEST
  25. bool "Ensure DRM headers are self-contained and pass kernel-doc"
  26. depends on DRM && EXPERT && BROKEN
  27. default n
  28. help
  29. Ensure the DRM subsystem headers both under drivers/gpu/drm and
  30. include/drm compile, are self-contained, have header guards, and have
  31. no kernel-doc warnings.
  32. If in doubt, say N.
  33. config DRM_DEBUG_MM
  34. bool "Insert extra checks and debug info into the DRM range managers"
  35. default n
  36. depends on DRM
  37. depends on STACKTRACE_SUPPORT
  38. select STACKDEPOT
  39. help
  40. Enable allocation tracking of memory manager and leak detection on
  41. shutdown.
  42. Recommended for driver developers only.
  43. If in doubt, say "N".
  44. config DRM_KUNIT_TEST_HELPERS
  45. tristate
  46. depends on DRM && KUNIT
  47. select DRM_KMS_HELPER
  48. help
  49. KUnit Helpers for KMS drivers.
  50. config DRM_KUNIT_TEST
  51. tristate "KUnit tests for DRM" if !KUNIT_ALL_TESTS
  52. depends on DRM && KUNIT && MMU
  53. select DRM_BRIDGE_CONNECTOR
  54. select DRM_BUDDY
  55. select DRM_DISPLAY_DP_HELPER
  56. select DRM_DISPLAY_HDMI_STATE_HELPER
  57. select DRM_DISPLAY_HELPER
  58. select DRM_EXEC
  59. select DRM_EXPORT_FOR_TESTS if m
  60. select DRM_GEM_SHMEM_HELPER
  61. select DRM_KUNIT_TEST_HELPERS
  62. select DRM_LIB_RANDOM
  63. select DRM_SYSFB_HELPER
  64. select PRIME_NUMBERS
  65. default KUNIT_ALL_TESTS
  66. help
  67. This builds unit tests for DRM. This option is not useful for
  68. distributions or general kernels, but only for kernel
  69. developers working on DRM and associated drivers.
  70. For more information on KUnit and unit tests in general,
  71. please refer to the KUnit documentation in
  72. Documentation/dev-tools/kunit/.
  73. If in doubt, say "N".
  74. config DRM_TTM_KUNIT_TEST
  75. tristate "KUnit tests for TTM" if !KUNIT_ALL_TESTS
  76. default n
  77. depends on DRM && KUNIT && MMU && (UML || COMPILE_TEST)
  78. select DRM_TTM
  79. select DRM_BUDDY
  80. select DRM_EXPORT_FOR_TESTS if m
  81. select DRM_KUNIT_TEST_HELPERS
  82. default KUNIT_ALL_TESTS
  83. help
  84. Enables unit tests for TTM, a GPU memory manager subsystem used
  85. to manage memory buffers. This option is mostly useful for kernel
  86. developers. It depends on (UML || COMPILE_TEST) since no other driver
  87. which uses TTM can be loaded while running the tests.
  88. If in doubt, say "N".
  89. config DRM_SCHED_KUNIT_TEST
  90. tristate "KUnit tests for the DRM scheduler" if !KUNIT_ALL_TESTS
  91. select DRM_SCHED
  92. depends on DRM && KUNIT
  93. default KUNIT_ALL_TESTS
  94. help
  95. Choose this option to build unit tests for the DRM scheduler.
  96. Recommended for driver developers only.
  97. If in doubt, say "N".
  98. config DRM_EXPORT_FOR_TESTS
  99. bool