CONFIG_DRM_USE_DYNAMIC_DEBUG use dynamic debug to implement drm.debug
Use dynamic-debug to avoid drm_debug_enabled() runtime overheads. Due to callsite counts in DRM drivers (~4k in amdgpu) and 56 bytes per callsite, the .data costs can be substantial, and are therefore configurable.
- Depends on
HAS_IOMEM && BROKEN && DRM && (DYNAMIC_DEBUG || DYNAMIC_DEBUG_CORE) && JUMP_LABEL
CONFIG_DRM_WERROR Compile the drm subsystem with warnings as errors
A kernel build should not cause any compiler warnings, and this enables the '-Werror' flag to enforce that rule in the drm subsystem.
The drm subsystem enables more warnings than the kernel default, so this config option is disabled by default.
If in doubt, say N.
CONFIG_DRM_HEADER_TEST Ensure DRM headers are self-contained and pass kernel-doc
Ensure the DRM subsystem headers both under drivers/gpu/drm and include/drm compile, are self-contained, have header guards, and have no kernel-doc warnings.
If in doubt, say N.
CONFIG_DRM_DEBUG_MM Insert extra checks and debug info into the DRM range managers
Enable allocation tracking of memory manager and leak detection on shutdown.
Recommended for driver developers only.
If in doubt, say "N".
- Depends on
HAS_IOMEM && DRM && - Selects
STACKDEPOT if HAS_IOMEM && DRM &&
CONFIG_DRM_KUNIT_TEST_HELPERS
- Off
- Module
- Built in
KUnit Helpers for KMS drivers.
CONFIG_DRM_KUNIT_TEST KUnit tests for DRM
- Off
- Module
- Built in
This builds unit tests for DRM. This option is not useful for distributions or general kernels, but only for kernel developers working on DRM and associated drivers.
For more information on KUnit and unit tests in general, please refer to the KUnit documentation in Documentation/dev-tools/kunit/.
If in doubt, say "N".
- Depends on
HAS_IOMEM && DRM && KUNIT && - Selects
DRM_BRIDGE_CONNECTOR if HAS_IOMEM && DRM && KUNIT && - Selects
DRM_BUDDY if HAS_IOMEM && DRM && KUNIT && - Selects
DRM_DISPLAY_DP_HELPER if HAS_IOMEM && DRM && KUNIT && - Selects
DRM_DISPLAY_HDMI_STATE_HELPER if HAS_IOMEM && DRM && KUNIT && - Selects
DRM_DISPLAY_HELPER if HAS_IOMEM && DRM && KUNIT && - Selects
DRM_EXEC if HAS_IOMEM && DRM && KUNIT && - Selects
DRM_EXPORT_FOR_TESTS if HAS_IOMEM && DRM && KUNIT && && m && - Selects
DRM_GEM_SHMEM_HELPER if HAS_IOMEM && DRM && KUNIT && - Selects
DRM_KUNIT_TEST_HELPERS if HAS_IOMEM && DRM && KUNIT && - Selects
DRM_PANIC_HELPER if HAS_IOMEM && DRM && KUNIT && - Selects
DRM_SYSFB_HELPER if HAS_IOMEM && DRM && KUNIT && - Selects
PRIME_NUMBERS if HAS_IOMEM && DRM && KUNIT &&
CONFIG_DRM_TTM_KUNIT_TEST KUnit tests for TTM
- Off
- Module
- Built in
Enables unit tests for TTM, a GPU memory manager subsystem used to manage memory buffers. This option is mostly useful for kernel developers. It depends on (UML || COMPILE_TEST) since no other driver which uses TTM can be loaded while running the tests.
If in doubt, say "N".
- Depends on
HAS_IOMEM && DRM && KUNIT && && (UML || COMPILE_TEST) - Selects
DRM_TTM if HAS_IOMEM && DRM && KUNIT && && (UML || COMPILE_TEST) - Selects
DRM_BUDDY if HAS_IOMEM && DRM && KUNIT && && (UML || COMPILE_TEST) - Selects
DRM_EXPORT_FOR_TESTS if HAS_IOMEM && DRM && KUNIT && && (UML || COMPILE_TEST) && m && - Selects
DRM_KUNIT_TEST_HELPERS if HAS_IOMEM && DRM && KUNIT && && (UML || COMPILE_TEST)
CONFIG_DRM_SCHED_KUNIT_TEST KUnit tests for the DRM scheduler
- Off
- Module
- Built in
Choose this option to build unit tests for the DRM scheduler.
Recommended for driver developers only.
If in doubt, say "N".
CONFIG_DRM_EXPORT_FOR_TESTS
- arch/alpha/Kconfig:116
- arch/arc/Kconfig:82
- arch/arm/Kconfig:222
- arch/arm64/Kconfig:331
- arch/csky/Kconfig:163
- arch/hexagon/Kconfig:69
- arch/loongarch/Kconfig:282
- arch/microblaze/Kconfig:81
- arch/mips/Kconfig:3001
- arch/openrisc/Kconfig:68
- arch/parisc/Kconfig:167
- arch/powerpc/Kconfig:101
- arch/riscv/Kconfig:320
- arch/s390/Kconfig:11
- arch/sh/Kconfig:111
- arch/sparc/Kconfig:125
- arch/um/Kconfig:81
- arch/x86/Kconfig:353
- arch/xtensa/Kconfig:91
- arch/alpha/Kconfig:89
- arch/arc/Kconfig:70
- arch/arm/Kconfig:319
- arch/arm64/Kconfig:278
- arch/csky/Kconfig:160
- arch/hexagon/Kconfig:57
- arch/loongarch/Kconfig:787
- arch/m68k/Kconfig:84
- arch/microblaze/Kconfig:93
- arch/mips/Kconfig:3046
- arch/nios2/Kconfig:69
- arch/openrisc/Kconfig:54
- arch/parisc/Kconfig:106
- arch/powerpc/Kconfig:30
- arch/riscv/Kconfig:292
- arch/s390/Kconfig:2
- arch/sh/mm/Kconfig:4
- arch/sparc/Kconfig:140
- arch/um/Kconfig:52
- arch/x86/Kconfig:356
- arch/xtensa/Kconfig:94