drm/nouveau/kms: execute drm_mode_config_reset() after constructing display
authorBen Skeggs <bskeggs@redhat.com>
Fri, 4 Nov 2016 07:20:35 +0000 (17:20 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Mon, 7 Nov 2016 04:04:46 +0000 (14:04 +1000)
This will ensure we have some kind of initial atomic state for all objects
after initialisation.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_display.c

index 081af3a4a5ca070f5efe836a090e1d6119d1e000..1c4b2ca6bfd5932eea639ebf24d96f1b68e21fb8 100644 (file)
@@ -530,6 +530,8 @@ nouveau_display_create(struct drm_device *dev)
        if (ret)
                goto disp_create_err;
 
+       drm_mode_config_reset(dev);
+
        if (dev->mode_config.num_crtc) {
                ret = nouveau_display_vblank_init(dev);
                if (ret)