xref: /linux/drivers/gpu/drm/xe/Kconfig.debug (revision a1ff5a7d78a036d6c2178ee5acd6ba4946243800)
1dd08ebf6SMatthew Brost# SPDX-License-Identifier: GPL-2.0-only
2dd08ebf6SMatthew Brostconfig DRM_XE_WERROR
3dd08ebf6SMatthew Brost	bool "Force GCC to throw an error instead of a warning when compiling"
4dd08ebf6SMatthew Brost	# As this may inadvertently break the build, only allow the user
5dd08ebf6SMatthew Brost	# to shoot oneself in the foot iff they aim really hard
6dd08ebf6SMatthew Brost	depends on EXPERT
7dd08ebf6SMatthew Brost	# We use the dependency on !COMPILE_TEST to not be enabled in
8dd08ebf6SMatthew Brost	# allmodconfig or allyesconfig configurations
9dd08ebf6SMatthew Brost	depends on !COMPILE_TEST
10dd08ebf6SMatthew Brost	default n
11dd08ebf6SMatthew Brost	help
12dd08ebf6SMatthew Brost	  Add -Werror to the build flags for (and only for) xe.ko.
13dd08ebf6SMatthew Brost	  Do not enable this unless you are writing code for the xe.ko module.
14dd08ebf6SMatthew Brost
15dd08ebf6SMatthew Brost	  Recommended for driver developers only.
16dd08ebf6SMatthew Brost
17dd08ebf6SMatthew Brost	  If in doubt, say "N".
18dd08ebf6SMatthew Brost
19dd08ebf6SMatthew Brostconfig DRM_XE_DEBUG
20dd08ebf6SMatthew Brost	bool "Enable additional driver debugging"
21dd08ebf6SMatthew Brost	depends on DRM_XE
22dd08ebf6SMatthew Brost	depends on EXPERT
23dd08ebf6SMatthew Brost	depends on !COMPILE_TEST
24dd08ebf6SMatthew Brost	default n
25dd08ebf6SMatthew Brost	help
26dd08ebf6SMatthew Brost	  Choose this option to turn on extra driver debugging that may affect
27dd08ebf6SMatthew Brost	  performance but will catch some internal issues.
28dd08ebf6SMatthew Brost
29dd08ebf6SMatthew Brost	  Recommended for driver developers only.
30dd08ebf6SMatthew Brost
31dd08ebf6SMatthew Brost	  If in doubt, say "N".
32dd08ebf6SMatthew Brost
33dd08ebf6SMatthew Brostconfig DRM_XE_DEBUG_VM
34dd08ebf6SMatthew Brost	bool "Enable extra VM debugging info"
35dd08ebf6SMatthew Brost	default n
36dd08ebf6SMatthew Brost	help
37dd08ebf6SMatthew Brost	  Enable extra VM debugging info
38dd08ebf6SMatthew Brost
39dd08ebf6SMatthew Brost	  Recommended for driver developers only.
40dd08ebf6SMatthew Brost
41dd08ebf6SMatthew Brost	  If in doubt, say "N".
42dd08ebf6SMatthew Brost
43*ed750833SMichal Wajdeczkoconfig DRM_XE_DEBUG_SRIOV
44*ed750833SMichal Wajdeczko	bool "Enable extra SR-IOV debugging"
45*ed750833SMichal Wajdeczko	default n
46*ed750833SMichal Wajdeczko	help
47*ed750833SMichal Wajdeczko	  Enable extra SR-IOV debugging info.
48*ed750833SMichal Wajdeczko
49*ed750833SMichal Wajdeczko	  Recommended for driver developers only.
50*ed750833SMichal Wajdeczko
51*ed750833SMichal Wajdeczko	  If in doubt, say "N".
52*ed750833SMichal Wajdeczko
53dd08ebf6SMatthew Brostconfig DRM_XE_DEBUG_MEM
542a8477f7SMatthew Auld	bool "Enable passing SYS/VRAM addresses to user space"
55dd08ebf6SMatthew Brost	default n
56dd08ebf6SMatthew Brost	help
57dd08ebf6SMatthew Brost	  Pass object location trough uapi. Intended for extended
58dd08ebf6SMatthew Brost	  testing and development only.
59dd08ebf6SMatthew Brost
60dd08ebf6SMatthew Brost	  Recommended for driver developers only.
61dd08ebf6SMatthew Brost
62dd08ebf6SMatthew Brost	  If in doubt, say "N".
63dd08ebf6SMatthew Brost
64dd08ebf6SMatthew Brostconfig DRM_XE_KUNIT_TEST
65dd08ebf6SMatthew Brost        tristate "KUnit tests for the drm xe driver" if !KUNIT_ALL_TESTS
661598955dSMauro Carvalho Chehab	depends on DRM_XE && KUNIT && DEBUG_FS
67dd08ebf6SMatthew Brost	default KUNIT_ALL_TESTS
68dd08ebf6SMatthew Brost	select DRM_EXPORT_FOR_TESTS if m
69dd08ebf6SMatthew Brost	help
70dd08ebf6SMatthew Brost	  Choose this option to allow the driver to perform selftests under
71dd08ebf6SMatthew Brost	  the kunit framework
72dd08ebf6SMatthew Brost
73dd08ebf6SMatthew Brost	  Recommended for driver developers only.
74dd08ebf6SMatthew Brost
75dd08ebf6SMatthew Brost	  If in doubt, say "N".
76dd08ebf6SMatthew Brost
77dd08ebf6SMatthew Brostconfig DRM_XE_LARGE_GUC_BUFFER
78dd08ebf6SMatthew Brost        bool "Enable larger guc log buffer"
79dd08ebf6SMatthew Brost        default n
80dd08ebf6SMatthew Brost        help
81dd08ebf6SMatthew Brost          Choose this option when debugging guc issues.
82dd08ebf6SMatthew Brost          Buffer should be large enough for complex issues.
83dd08ebf6SMatthew Brost
84dd08ebf6SMatthew Brost          Recommended for driver developers only.
85dd08ebf6SMatthew Brost
86dd08ebf6SMatthew Brost          If in doubt, say "N".
87dd08ebf6SMatthew Brost
88dd08ebf6SMatthew Brostconfig DRM_XE_USERPTR_INVAL_INJECT
89dd08ebf6SMatthew Brost       bool "Inject userptr invalidation -EINVAL errors"
90dd08ebf6SMatthew Brost       default n
91dd08ebf6SMatthew Brost       help
92dd08ebf6SMatthew Brost         Choose this option when debugging error paths that
93dd08ebf6SMatthew Brost	 are hit during checks for userptr invalidations.
94dd08ebf6SMatthew Brost
95dd08ebf6SMatthew Brost	 Recomended for driver developers only.
96dd08ebf6SMatthew Brost	 If in doubt, say "N".
97