• Greg Kroah-Hartman's avatar
    Revert "drm/nouveau: add kconfig option to turn off nouveau legacy contexts. (v3)" · e73b09c7
    Greg Kroah-Hartman authored
    This reverts commit 1e07d637 which is
    commit b30a43ac upstream.
    
    Sven reports:
    	Commit 1e07d637 ("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  (#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 bed2dd84 ("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: default avatarSven 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: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
    e73b09c7
Kconfig 2.17 KB