]> git.ipfire.org Git - thirdparty/linux.git/blame - drivers/gpu/drm/xe/Kconfig.debug
drm/xe/kunit: fix link failure with built-in xe
[thirdparty/linux.git] / drivers / gpu / drm / xe / Kconfig.debug
CommitLineData
dd08ebf6
MB
1# SPDX-License-Identifier: GPL-2.0-only
2config DRM_XE_WERROR
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
6 depends on EXPERT
7 # We use the dependency on !COMPILE_TEST to not be enabled in
8 # allmodconfig or allyesconfig configurations
9 depends on !COMPILE_TEST
10 default n
11 help
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.
14
15 Recommended for driver developers only.
16
17 If in doubt, say "N".
18
19config DRM_XE_DEBUG
20 bool "Enable additional driver debugging"
21 depends on DRM_XE
22 depends on EXPERT
23 depends on !COMPILE_TEST
24 default n
25 help
26 Choose this option to turn on extra driver debugging that may affect
27 performance but will catch some internal issues.
28
29 Recommended for driver developers only.
30
31 If in doubt, say "N".
32
33config DRM_XE_DEBUG_VM
34 bool "Enable extra VM debugging info"
35 default n
36 help
37 Enable extra VM debugging info
38
39 Recommended for driver developers only.
40
41 If in doubt, say "N".
42
ed750833
MW
43config DRM_XE_DEBUG_SRIOV
44 bool "Enable extra SR-IOV debugging"
45 default n
46 help
47 Enable extra SR-IOV debugging info.
48
49 Recommended for driver developers only.
50
51 If in doubt, say "N".
52
dd08ebf6 53config DRM_XE_DEBUG_MEM
2a8477f7 54 bool "Enable passing SYS/VRAM addresses to user space"
dd08ebf6
MB
55 default n
56 help
57 Pass object location trough uapi. Intended for extended
58 testing and development only.
59
60 Recommended for driver developers only.
61
62 If in doubt, say "N".
63
64config DRM_XE_SIMPLE_ERROR_CAPTURE
65 bool "Enable simple error capture to dmesg on job timeout"
66 default n
67 help
68 Choose this option when debugging an unexpected job timeout
69
70 Recommended for driver developers only.
71
72 If in doubt, say "N".
73
74config DRM_XE_KUNIT_TEST
75 tristate "KUnit tests for the drm xe driver" if !KUNIT_ALL_TESTS
1598955d 76 depends on DRM_XE && KUNIT && DEBUG_FS
dd08ebf6
MB
77 default KUNIT_ALL_TESTS
78 select DRM_EXPORT_FOR_TESTS if m
79 help
80 Choose this option to allow the driver to perform selftests under
81 the kunit framework
82
83 Recommended for driver developers only.
84
85 If in doubt, say "N".
86
87config DRM_XE_LARGE_GUC_BUFFER
88 bool "Enable larger guc log buffer"
89 default n
90 help
91 Choose this option when debugging guc issues.
92 Buffer should be large enough for complex issues.
93
94 Recommended for driver developers only.
95
96 If in doubt, say "N".
97
98config DRM_XE_USERPTR_INVAL_INJECT
99 bool "Inject userptr invalidation -EINVAL errors"
100 default n
101 help
102 Choose this option when debugging error paths that
103 are hit during checks for userptr invalidations.
104
105 Recomended for driver developers only.
106 If in doubt, say "N".