]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
drm/nouveau/kms: never call drm_helper_disable_unused_functions() with atomic
authorBen Skeggs <bskeggs@redhat.com>
Fri, 4 Nov 2016 07:20:36 +0000 (17:20 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Mon, 7 Nov 2016 04:04:49 +0000 (14:04 +1000)
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_fbcon.c

index 4192b79267693501e7f3861f1033dc374baba94c..cc8c5833798158dbbc1db3d9566979f8c3bfe08c 100644 (file)
@@ -535,7 +535,8 @@ nouveau_fbcon_init(struct drm_device *dev)
                preferred_bpp = 32;
 
        /* disable all the possible outputs/crtcs before entering KMS mode */
-       drm_helper_disable_unused_functions(dev);
+       if (!dev->mode_config.funcs->atomic_commit)
+               drm_helper_disable_unused_functions(dev);
 
        ret = drm_fb_helper_initial_config(&fbcon->helper, preferred_bpp);
        if (ret)