xref: /openbmc/linux/drivers/gpu/drm/nouveau/Kconfig (revision 94afe983)
1# SPDX-License-Identifier: GPL-2.0-only
2config DRM_NOUVEAU
3	tristate "Nouveau (NVIDIA) cards"
4	depends on DRM && PCI && MMU
5	select IOMMU_API
6	select FW_LOADER
7	select DRM_DP_HELPER
8	select DRM_KMS_HELPER
9	select DRM_TTM
10	select DRM_TTM_HELPER
11	select BACKLIGHT_CLASS_DEVICE if DRM_NOUVEAU_BACKLIGHT
12	select ACPI_VIDEO if ACPI && X86 && BACKLIGHT_CLASS_DEVICE && INPUT
13	select X86_PLATFORM_DEVICES if ACPI && X86
14	select ACPI_WMI if ACPI && X86
15	select MXM_WMI if ACPI && X86
16	select POWER_SUPPLY
17	# Similar to i915, we need to select ACPI_VIDEO and it's dependencies
18	select BACKLIGHT_CLASS_DEVICE if ACPI && X86
19	select INPUT if ACPI && X86
20	select THERMAL if ACPI && X86
21	select ACPI_VIDEO if ACPI && X86
22	select SND_HDA_COMPONENT if SND_HDA_CORE
23	help
24	  Choose this option for open-source NVIDIA support.
25
26config NOUVEAU_LEGACY_CTX_SUPPORT
27	bool "Nouveau legacy context support"
28	depends on DRM_NOUVEAU
29	select DRM_LEGACY
30	default y
31	help
32	  There was a version of the nouveau DDX that relied on legacy
33	  ctx ioctls not erroring out. But that was back in time a long
34	  ways, so offer a way to disable it now. For uapi compat with
35	  old nouveau ddx this should be on by default, but modern distros
36	  should consider turning it off.
37
38config NOUVEAU_PLATFORM_DRIVER
39	bool "Nouveau (NVIDIA) SoC GPUs"
40	depends on DRM_NOUVEAU && ARCH_TEGRA
41	default y
42	help
43	  Support for Nouveau platform driver, used for SoC GPUs as found
44	  on NVIDIA Tegra K1.
45
46config NOUVEAU_DEBUG
47	int "Maximum debug level"
48	depends on DRM_NOUVEAU
49	range 0 7
50	default 5
51	help
52	  Selects the maximum debug level to compile support for.
53
54	  0 - fatal
55	  1 - error
56	  2 - warning
57	  3 - info
58	  4 - debug
59	  5 - trace (recommended)
60	  6 - paranoia
61	  7 - spam
62
63	  The paranoia and spam levels will add a lot of extra checks which
64	  may potentially slow down driver operation.
65
66config NOUVEAU_DEBUG_DEFAULT
67	int "Default debug level"
68	depends on DRM_NOUVEAU
69	range 0 7
70	default 3
71	help
72	  Selects the default debug level
73
74config NOUVEAU_DEBUG_MMU
75	bool "Enable additional MMU debugging"
76	depends on DRM_NOUVEAU
77	default n
78	help
79	  Say Y here if you want to enable verbose MMU debug output.
80
81config NOUVEAU_DEBUG_PUSH
82	bool "Enable additional push buffer debugging"
83	depends on DRM_NOUVEAU
84	default n
85	help
86	  Say Y here if you want to enable verbose push buffer debug output
87	  and sanity checks.
88
89config DRM_NOUVEAU_BACKLIGHT
90	bool "Support for backlight control"
91	depends on DRM_NOUVEAU
92	default y
93	help
94	  Say Y here if you want to control the backlight of your display
95	  (e.g. a laptop panel).
96
97config DRM_NOUVEAU_SVM
98	bool "(EXPERIMENTAL) Enable SVM (Shared Virtual Memory) support"
99	depends on DEVICE_PRIVATE
100	depends on DRM_NOUVEAU
101	depends on MMU
102	depends on STAGING
103	select HMM_MIRROR
104	select MMU_NOTIFIER
105	default n
106	help
107	  Say Y here if you want to enable experimental support for
108	  Shared Virtual Memory (SVM).
109