Commit 07193f70 authored by Ben Skeggs's avatar Ben Skeggs

drm/nouveau/kms: execute drm_mode_config_reset() after constructing display

This will ensure we have some kind of initial atomic state for all objects
after initialisation.
Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent 3b4c0abb
...@@ -530,6 +530,8 @@ nouveau_display_create(struct drm_device *dev) ...@@ -530,6 +530,8 @@ nouveau_display_create(struct drm_device *dev)
if (ret) if (ret)
goto disp_create_err; goto disp_create_err;
drm_mode_config_reset(dev);
if (dev->mode_config.num_crtc) { if (dev->mode_config.num_crtc) {
ret = nouveau_display_vblank_init(dev); ret = nouveau_display_vblank_init(dev);
if (ret) if (ret)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment