xref: /openbmc/linux/drivers/gpu/drm/nouveau/Kconfig (revision 151f4e2b)
1config DRM_NOUVEAU
2	tristate "Nouveau (NVIDIA) cards"
3	depends on DRM && PCI && MMU
4        select FW_LOADER
5	select DRM_KMS_HELPER
6	select DRM_TTM
7	select BACKLIGHT_CLASS_DEVICE if DRM_NOUVEAU_BACKLIGHT
8	select ACPI_VIDEO if ACPI && X86 && BACKLIGHT_CLASS_DEVICE && INPUT
9	select X86_PLATFORM_DEVICES if ACPI && X86
10	select ACPI_WMI if ACPI && X86
11	select MXM_WMI if ACPI && X86
12	select POWER_SUPPLY
13	# Similar to i915, we need to select ACPI_VIDEO and it's dependencies
14	select BACKLIGHT_CLASS_DEVICE if ACPI && X86
15	select INPUT if ACPI && X86
16	select THERMAL if ACPI && X86
17	select ACPI_VIDEO if ACPI && X86
18	help
19	  Choose this option for open-source NVIDIA support.
20
21config NOUVEAU_LEGACY_CTX_SUPPORT
22	bool "Nouveau legacy context support"
23	depends on DRM_NOUVEAU
24	select DRM_LEGACY
25	default y
26	help
27	  There was a version of the nouveau DDX that relied on legacy
28	  ctx ioctls not erroring out. But that was back in time a long
29	  ways, so offer a way to disable it now. For uapi compat with
30	  old nouveau ddx this should be on by default, but modern distros
31	  should consider turning it off.
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 DRM_NOUVEAU_BACKLIGHT
77	bool "Support for backlight control"
78	depends on DRM_NOUVEAU
79	default y
80	help
81	  Say Y here if you want to control the backlight of your display
82	  (e.g. a laptop panel).
83
84config DRM_NOUVEAU_SVM
85	bool "(EXPERIMENTAL) Enable SVM (Shared Virtual Memory) support"
86	depends on ARCH_HAS_HMM
87	depends on DRM_NOUVEAU
88	depends on STAGING
89	select HMM_MIRROR
90	select DEVICE_PRIVATE
91	default n
92	help
93	  Say Y here if you want to enable experimental support for
94	  Shared Virtual Memory (SVM).
95