1 # SPDX-License-Identifier: GPL-2.0-only
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
7 # We use the dependency on !COMPILE_TEST to not be enabled in
8 # allmodconfig or allyesconfig configurations
9 depends on !COMPILE_TEST
12 Add -Werror to the build flags for (and only for) xe.ko.
13 Do not enable this unless you are writing code for the xe.ko module.
15 Recommended for driver developers only.
20 bool "Enable additional driver debugging"
23 depends on !COMPILE_TEST
26 Choose this option to turn on extra driver debugging that may affect
27 performance but will catch some internal issues.
29 Recommended for driver developers only.
33 config DRM_XE_DEBUG_VM
34 bool "Enable extra VM debugging info"
37 Enable extra VM debugging info
39 Recommended for driver developers only.
43 config DRM_XE_DEBUG_MEM
44 bool "Enable passing SYS/LMEM addresses to user space"
47 Pass object location trough uapi. Intended for extended
48 testing and development only.
50 Recommended for driver developers only.
54 config DRM_XE_SIMPLE_ERROR_CAPTURE
55 bool "Enable simple error capture to dmesg on job timeout"
58 Choose this option when debugging an unexpected job timeout
60 Recommended for driver developers only.
64 config DRM_XE_KUNIT_TEST
65 tristate "KUnit tests for the drm xe driver" if !KUNIT_ALL_TESTS
66 depends on DRM_XE && KUNIT && DEBUG_FS
67 default KUNIT_ALL_TESTS
68 select DRM_EXPORT_FOR_TESTS if m
70 Choose this option to allow the driver to perform selftests under
73 Recommended for driver developers only.
77 config DRM_XE_LARGE_GUC_BUFFER
78 bool "Enable larger guc log buffer"
81 Choose this option when debugging guc issues.
82 Buffer should be large enough for complex issues.
84 Recommended for driver developers only.
88 config DRM_XE_USERPTR_INVAL_INJECT
89 bool "Inject userptr invalidation -EINVAL errors"
92 Choose this option when debugging error paths that
93 are hit during checks for userptr invalidations.
95 Recomended for driver developers only.