forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 61598093bbdd283a7edc367d900f223070ead8d2
kernel/drivers/gpu/drm/nouveau/Kconfig
....@@ -1,28 +1,30 @@
1
+# SPDX-License-Identifier: GPL-2.0-only
12 config DRM_NOUVEAU
23 tristate "Nouveau (NVIDIA) cards"
34 depends on DRM && PCI && MMU
4
- select FW_LOADER
5
+ select IOMMU_API
6
+ select FW_LOADER
57 select DRM_KMS_HELPER
68 select DRM_TTM
7
- select FB_BACKLIGHT if DRM_NOUVEAU_BACKLIGHT
9
+ select BACKLIGHT_CLASS_DEVICE if DRM_NOUVEAU_BACKLIGHT
810 select ACPI_VIDEO if ACPI && X86 && BACKLIGHT_CLASS_DEVICE && INPUT
911 select X86_PLATFORM_DEVICES if ACPI && X86
1012 select ACPI_WMI if ACPI && X86
1113 select MXM_WMI if ACPI && X86
1214 select POWER_SUPPLY
1315 # Similar to i915, we need to select ACPI_VIDEO and it's dependencies
14
- select BACKLIGHT_LCD_SUPPORT if ACPI && X86
1516 select BACKLIGHT_CLASS_DEVICE if ACPI && X86
1617 select INPUT if ACPI && X86
1718 select THERMAL if ACPI && X86
1819 select ACPI_VIDEO if ACPI && X86
20
+ select SND_HDA_COMPONENT if SND_HDA_CORE
1921 help
2022 Choose this option for open-source NVIDIA support.
2123
2224 config NOUVEAU_LEGACY_CTX_SUPPORT
2325 bool "Nouveau legacy context support"
2426 depends on DRM_NOUVEAU
25
- select DRM_VM
27
+ select DRM_LEGACY
2628 default y
2729 help
2830 There was a version of the nouveau DDX that relied on legacy
....@@ -74,6 +76,14 @@
7476 help
7577 Say Y here if you want to enable verbose MMU debug output.
7678
79
+config NOUVEAU_DEBUG_PUSH
80
+ bool "Enable additional push buffer debugging"
81
+ depends on DRM_NOUVEAU
82
+ default n
83
+ help
84
+ Say Y here if you want to enable verbose push buffer debug output
85
+ and sanity checks.
86
+
7787 config DRM_NOUVEAU_BACKLIGHT
7888 bool "Support for backlight control"
7989 depends on DRM_NOUVEAU
....@@ -81,3 +91,16 @@
8191 help
8292 Say Y here if you want to control the backlight of your display
8393 (e.g. a laptop panel).
94
+
95
+config DRM_NOUVEAU_SVM
96
+ bool "(EXPERIMENTAL) Enable SVM (Shared Virtual Memory) support"
97
+ depends on DEVICE_PRIVATE
98
+ depends on DRM_NOUVEAU
99
+ depends on MMU
100
+ depends on STAGING
101
+ select HMM_MIRROR
102
+ select MMU_NOTIFIER
103
+ default n
104
+ help
105
+ Say Y here if you want to enable experimental support for
106
+ Shared Virtual Memory (SVM).