xref: /openbmc/linux/drivers/gpu/drm/nouveau/Kconfig (revision ee864216)
1ec8f24b7SThomas Gleixner# SPDX-License-Identifier: GPL-2.0-only
26ee73861SBen Skeggsconfig DRM_NOUVEAU
38ba9ff11SAlexandre Courbot	tristate "Nouveau (NVIDIA) cards"
4011cda58SBenjamin Gaignard	depends on DRM && PCI && MMU
5ee864216SChen Zhou	select IOMMU_API
66ee73861SBen Skeggs	select FW_LOADER
76ee73861SBen Skeggs	select DRM_KMS_HELPER
86ee73861SBen Skeggs	select DRM_TTM
9399382f8SBartlomiej Zolnierkiewicz	select BACKLIGHT_CLASS_DEVICE if DRM_NOUVEAU_BACKLIGHT
10a386c006SJean Delvare	select ACPI_VIDEO if ACPI && X86 && BACKLIGHT_CLASS_DEVICE && INPUT
11a91ed42dSBen Hutchings	select X86_PLATFORM_DEVICES if ACPI && X86
12a91ed42dSBen Hutchings	select ACPI_WMI if ACPI && X86
13a91ed42dSBen Hutchings	select MXM_WMI if ACPI && X86
1440c61046SDave Airlie	select POWER_SUPPLY
151107276cSMaarten Lankhorst	# Similar to i915, we need to select ACPI_VIDEO and it's dependencies
161107276cSMaarten Lankhorst	select BACKLIGHT_CLASS_DEVICE if ACPI && X86
171107276cSMaarten Lankhorst	select INPUT if ACPI && X86
181107276cSMaarten Lankhorst	select THERMAL if ACPI && X86
191107276cSMaarten Lankhorst	select ACPI_VIDEO if ACPI && X86
206ee73861SBen Skeggs	help
218ba9ff11SAlexandre Courbot	  Choose this option for open-source NVIDIA support.
228ba9ff11SAlexandre Courbot
23b30a43acSDave Airlieconfig NOUVEAU_LEGACY_CTX_SUPPORT
24b30a43acSDave Airlie	bool "Nouveau legacy context support"
25b30a43acSDave Airlie	depends on DRM_NOUVEAU
2661ae2270SDave Airlie	select DRM_LEGACY
27b30a43acSDave Airlie	default y
28b30a43acSDave Airlie	help
29b30a43acSDave Airlie	  There was a version of the nouveau DDX that relied on legacy
30b30a43acSDave Airlie	  ctx ioctls not erroring out. But that was back in time a long
31b30a43acSDave Airlie	  ways, so offer a way to disable it now. For uapi compat with
32b30a43acSDave Airlie	  old nouveau ddx this should be on by default, but modern distros
33b30a43acSDave Airlie	  should consider turning it off.
34b30a43acSDave Airlie
358ba9ff11SAlexandre Courbotconfig NOUVEAU_PLATFORM_DRIVER
36055a65d5SAlexandre Courbot	bool "Nouveau (NVIDIA) SoC GPUs"
378ba9ff11SAlexandre Courbot	depends on DRM_NOUVEAU && ARCH_TEGRA
388ba9ff11SAlexandre Courbot	default y
398ba9ff11SAlexandre Courbot	help
408ba9ff11SAlexandre Courbot	  Support for Nouveau platform driver, used for SoC GPUs as found
418ba9ff11SAlexandre Courbot	  on NVIDIA Tegra K1.
426ee73861SBen Skeggs
435999933fSBen Skeggsconfig NOUVEAU_DEBUG
445999933fSBen Skeggs	int "Maximum debug level"
455999933fSBen Skeggs	depends on DRM_NOUVEAU
465999933fSBen Skeggs	range 0 7
475999933fSBen Skeggs	default 5
485999933fSBen Skeggs	help
495999933fSBen Skeggs	  Selects the maximum debug level to compile support for.
505999933fSBen Skeggs
515999933fSBen Skeggs	  0 - fatal
525999933fSBen Skeggs	  1 - error
535999933fSBen Skeggs	  2 - warning
545999933fSBen Skeggs	  3 - info
555999933fSBen Skeggs	  4 - debug
565999933fSBen Skeggs	  5 - trace (recommended)
575999933fSBen Skeggs	  6 - paranoia
585999933fSBen Skeggs	  7 - spam
595999933fSBen Skeggs
605999933fSBen Skeggs	  The paranoia and spam levels will add a lot of extra checks which
615999933fSBen Skeggs	  may potentially slow down driver operation.
625999933fSBen Skeggs
635999933fSBen Skeggsconfig NOUVEAU_DEBUG_DEFAULT
645999933fSBen Skeggs	int "Default debug level"
655999933fSBen Skeggs	depends on DRM_NOUVEAU
665999933fSBen Skeggs	range 0 7
675999933fSBen Skeggs	default 3
685999933fSBen Skeggs	help
695999933fSBen Skeggs	  Selects the default debug level
705999933fSBen Skeggs
71eb813999SBen Skeggsconfig NOUVEAU_DEBUG_MMU
72eb813999SBen Skeggs	bool "Enable additional MMU debugging"
73eb813999SBen Skeggs	depends on DRM_NOUVEAU
74eb813999SBen Skeggs	default n
75eb813999SBen Skeggs	help
76eb813999SBen Skeggs	  Say Y here if you want to enable verbose MMU debug output.
77eb813999SBen Skeggs
786ee73861SBen Skeggsconfig DRM_NOUVEAU_BACKLIGHT
796ee73861SBen Skeggs	bool "Support for backlight control"
806ee73861SBen Skeggs	depends on DRM_NOUVEAU
816ee73861SBen Skeggs	default y
826ee73861SBen Skeggs	help
836ee73861SBen Skeggs	  Say Y here if you want to control the backlight of your display
846ee73861SBen Skeggs	  (e.g. a laptop panel).
85eeaf06acSBen Skeggs
86eeaf06acSBen Skeggsconfig DRM_NOUVEAU_SVM
87eeaf06acSBen Skeggs	bool "(EXPERIMENTAL) Enable SVM (Shared Virtual Memory) support"
887328d9ccSChristoph Hellwig	depends on DEVICE_PRIVATE
89eeaf06acSBen Skeggs	depends on DRM_NOUVEAU
909c240a7bSChristoph Hellwig	depends on MMU
91eeaf06acSBen Skeggs	depends on STAGING
929c240a7bSChristoph Hellwig	select HMM_MIRROR
939c240a7bSChristoph Hellwig	select MMU_NOTIFIER
94eeaf06acSBen Skeggs	default n
95eeaf06acSBen Skeggs	help
96eeaf06acSBen Skeggs	  Say Y here if you want to enable experimental support for
97eeaf06acSBen Skeggs	  Shared Virtual Memory (SVM).
98