diff options
| -rw-r--r-- | drivers/gpu/drm/nouveau/Kconfig | 13 | ||||
| -rw-r--r-- | drivers/gpu/drm/nouveau/nouveau_drm.c | 7 |
2 files changed, 17 insertions, 3 deletions
diff --git a/drivers/gpu/drm/nouveau/Kconfig b/drivers/gpu/drm/nouveau/Kconfig index 00cd9ab8948d..db28012dbf54 100644 --- a/drivers/gpu/drm/nouveau/Kconfig +++ b/drivers/gpu/drm/nouveau/Kconfig | |||
| @@ -17,10 +17,21 @@ config DRM_NOUVEAU | |||
| 17 | select INPUT if ACPI && X86 | 17 | select INPUT if ACPI && X86 |
| 18 | select THERMAL if ACPI && X86 | 18 | select THERMAL if ACPI && X86 |
| 19 | select ACPI_VIDEO if ACPI && X86 | 19 | select ACPI_VIDEO if ACPI && X86 |
| 20 | select DRM_VM | ||
| 21 | help | 20 | help |
| 22 | Choose this option for open-source NVIDIA support. | 21 | Choose this option for open-source NVIDIA support. |
| 23 | 22 | ||
| 23 | config NOUVEAU_LEGACY_CTX_SUPPORT | ||
| 24 | bool "Nouveau legacy context support" | ||
| 25 | depends on DRM_NOUVEAU | ||
| 26 | select DRM_VM | ||
| 27 | default y | ||
| 28 | help | ||
| 29 | There was a version of the nouveau DDX that relied on legacy | ||
| 30 | ctx ioctls not erroring out. But that was back in time a long | ||
| 31 | ways, so offer a way to disable it now. For uapi compat with | ||
| 32 | old nouveau ddx this should be on by default, but modern distros | ||
| 33 | should consider turning it off. | ||
| 34 | |||
| 24 | config NOUVEAU_PLATFORM_DRIVER | 35 | config NOUVEAU_PLATFORM_DRIVER |
| 25 | bool "Nouveau (NVIDIA) SoC GPUs" | 36 | bool "Nouveau (NVIDIA) SoC GPUs" |
| 26 | depends on DRM_NOUVEAU && ARCH_TEGRA | 37 | depends on DRM_NOUVEAU && ARCH_TEGRA |
diff --git a/drivers/gpu/drm/nouveau/nouveau_drm.c b/drivers/gpu/drm/nouveau/nouveau_drm.c index 5020265bfbd9..6ab9033f49da 100644 --- a/drivers/gpu/drm/nouveau/nouveau_drm.c +++ b/drivers/gpu/drm/nouveau/nouveau_drm.c | |||
| @@ -1094,8 +1094,11 @@ nouveau_driver_fops = { | |||
| 1094 | static struct drm_driver | 1094 | static struct drm_driver |
| 1095 | driver_stub = { | 1095 | driver_stub = { |
| 1096 | .driver_features = | 1096 | .driver_features = |
| 1097 | DRIVER_GEM | DRIVER_MODESET | DRIVER_PRIME | DRIVER_RENDER | | 1097 | DRIVER_GEM | DRIVER_MODESET | DRIVER_PRIME | DRIVER_RENDER |
| 1098 | DRIVER_KMS_LEGACY_CONTEXT, | 1098 | #if defined(CONFIG_NOUVEAU_LEGACY_CTX_SUPPORT) |
| 1099 | | DRIVER_KMS_LEGACY_CONTEXT | ||
| 1100 | #endif | ||
| 1101 | , | ||
| 1099 | 1102 | ||
| 1100 | .open = nouveau_drm_open, | 1103 | .open = nouveau_drm_open, |
| 1101 | .postclose = nouveau_drm_postclose, | 1104 | .postclose = nouveau_drm_postclose, |
