Skip to content

Commit e73b09c

Browse files
committed
Revert "drm/nouveau: add kconfig option to turn off nouveau legacy contexts. (v3)"
This reverts commit 1e07d63 which is commit b30a43a upstream. Sven reports: Commit 1e07d63 ("drm/nouveau: add kconfig option to turn off nouveau legacy contexts. (v3)") has caused a build failure for me when I actually tried that option (CONFIG_NOUVEAU_LEGACY_CTX_SUPPORT=n): ,---- | Kernel: arch/x86/boot/bzImage is ready (raspberrypi#1) | Building modules, stage 2. | MODPOST 290 modules | ERROR: "drm_legacy_mmap" [drivers/gpu/drm/nouveau/nouveau.ko] undefined! | scripts/Makefile.modpost:91: recipe for target '__modpost' failed `---- Upstream does not have that problem, as commit bed2dd8 ("drm/ttm: Quick-test mmap offset in ttm_bo_mmap()") has removed the use of drm_legacy_mmap from nouveau_ttm.c. Unfortunately that commit does not apply in 5.1.9. The ensuing discussion proposed a number of one-off patches, but no solid agreement was made, so just revert the commit for now to get people's systems building again. Reported-by: Sven Joachim <svenjoac@gmx.de> Cc: Daniel Vetter <daniel.vetter@ffwll.ch> Cc: Dave Airlie <airlied@redhat.com> Cc: Thomas Backlund <tmb@mageia.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent b528880 commit e73b09c

2 files changed

Lines changed: 3 additions & 17 deletions

File tree

‎drivers/gpu/drm/nouveau/Kconfig‎

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,9 @@ config DRM_NOUVEAU
1717
select INPUT if ACPI && X86
1818
select THERMAL if ACPI && X86
1919
select ACPI_VIDEO if ACPI && X86
20-
help
21-
Choose this option for open-source NVIDIA support.
22-
23-
config NOUVEAU_LEGACY_CTX_SUPPORT
24-
bool "Nouveau legacy context support"
25-
depends on DRM_NOUVEAU
2620
select DRM_VM
27-
default y
2821
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.
22+
Choose this option for open-source NVIDIA support.
3423

3524
config NOUVEAU_PLATFORM_DRIVER
3625
bool "Nouveau (NVIDIA) SoC GPUs"

‎drivers/gpu/drm/nouveau/nouveau_drm.c‎

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1094,11 +1094,8 @@ nouveau_driver_fops = {
10941094
static struct drm_driver
10951095
driver_stub = {
10961096
.driver_features =
1097-
DRIVER_GEM | DRIVER_MODESET | DRIVER_PRIME | DRIVER_RENDER
1098-
#if defined(CONFIG_NOUVEAU_LEGACY_CTX_SUPPORT)
1099-
| DRIVER_KMS_LEGACY_CONTEXT
1100-
#endif
1101-
,
1097+
DRIVER_GEM | DRIVER_MODESET | DRIVER_PRIME | DRIVER_RENDER |
1098+
DRIVER_KMS_LEGACY_CONTEXT,
11021099

11031100
.open = nouveau_drm_open,
11041101
.postclose = nouveau_drm_postclose,

0 commit comments

Comments
 (0)