xref: /linux/drivers/gpu/drm/nouveau/Kconfig (revision 7f71507851fc7764b36a3221839607d3a45c2025)
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_CLIENT_SELECTION
8	select DRM_DISPLAY_DP_HELPER
9	select DRM_DISPLAY_HDMI_HELPER
10	select DRM_DISPLAY_HELPER
11	select DRM_KMS_HELPER
12	select DRM_TTM
13	select DRM_TTM_HELPER
14	select DRM_EXEC
15	select DRM_GPUVM
16	select DRM_SCHED
17	select I2C
18	select I2C_ALGOBIT
19	select BACKLIGHT_CLASS_DEVICE if DRM_NOUVEAU_BACKLIGHT
20	select X86_PLATFORM_DEVICES if ACPI && X86
21	select ACPI_WMI if ACPI && X86
22	select MXM_WMI if ACPI && X86
23	select POWER_SUPPLY
24	# Similar to i915, we need to select ACPI_VIDEO and it's dependencies
25	select BACKLIGHT_CLASS_DEVICE if ACPI && X86
26	select INPUT if ACPI && X86
27	select THERMAL if ACPI && X86
28	select ACPI_VIDEO if ACPI && X86
29	select SND_HDA_COMPONENT if SND_HDA_CORE
30	help
31	  Choose this option for open-source NVIDIA support.
32
33config NOUVEAU_PLATFORM_DRIVER
34	bool "Nouveau (NVIDIA) SoC GPUs"
35	depends on DRM_NOUVEAU && ARCH_TEGRA
36	default y
37	help
38	  Support for Nouveau platform driver, used for SoC GPUs as found
39	  on NVIDIA Tegra K1.
40
41config NOUVEAU_DEBUG
42	int "Maximum debug level"
43	depends on DRM_NOUVEAU
44	range 0 7
45	default 5
46	help
47	  Selects the maximum debug level to compile support for.
48
49	  0 - fatal
50	  1 - error
51	  2 - warning
52	  3 - info
53	  4 - debug
54	  5 - trace (recommended)
55	  6 - paranoia
56	  7 - spam
57
58	  The paranoia and spam levels will add a lot of extra checks which
59	  may potentially slow down driver operation.
60
61config NOUVEAU_DEBUG_DEFAULT
62	int "Default debug level"
63	depends on DRM_NOUVEAU
64	range 0 7
65	default 3
66	help
67	  Selects the default debug level
68
69config NOUVEAU_DEBUG_MMU
70	bool "Enable additional MMU debugging"
71	depends on DRM_NOUVEAU
72	default n
73	help
74	  Say Y here if you want to enable verbose MMU debug output.
75
76config NOUVEAU_DEBUG_PUSH
77	bool "Enable additional push buffer debugging"
78	depends on DRM_NOUVEAU
79	default n
80	help
81	  Say Y here if you want to enable verbose push buffer debug output
82	  and sanity checks.
83
84config DRM_NOUVEAU_BACKLIGHT
85	bool "Support for backlight control"
86	depends on DRM_NOUVEAU
87	default y
88	help
89	  Say Y here if you want to control the backlight of your display
90	  (e.g. a laptop panel).
91
92config DRM_NOUVEAU_SVM
93	bool "(EXPERIMENTAL) Enable SVM (Shared Virtual Memory) support"
94	depends on DEVICE_PRIVATE
95	depends on DRM_NOUVEAU
96	depends on MMU
97	depends on STAGING
98	select HMM_MIRROR
99	select MMU_NOTIFIER
100	default n
101	help
102	  Say Y here if you want to enable experimental support for
103	  Shared Virtual Memory (SVM).
104
105config DRM_NOUVEAU_GSP_DEFAULT
106	bool "Use GSP firmware for Turing/Ampere (needs firmware installed)"
107	depends on DRM_NOUVEAU
108	default n
109	help
110	  Say Y here if you want to use the GSP codepaths by default on
111	  Turing and Ampere GPUs.
112