diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2016-11-04 10:20:35 +0300 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2016-11-07 07:04:46 +0300 |
commit | 07193f705154e26e1a246b81a5ae59f6354e8e7a (patch) | |
tree | 045462bffc672f6903563e54df9f7bad2c452c83 /drivers/gpu/drm/nouveau/nouveau_display.c | |
parent | 3b4c0abb1bb72304c78d5919d20c4814424fff79 (diff) | |
download | linux-07193f705154e26e1a246b81a5ae59f6354e8e7a.tar.xz |
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: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nouveau_display.c')
-rw-r--r-- | drivers/gpu/drm/nouveau/nouveau_display.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_display.c b/drivers/gpu/drm/nouveau/nouveau_display.c index 081af3a4a5ca..1c4b2ca6bfd5 100644 --- a/drivers/gpu/drm/nouveau/nouveau_display.c +++ b/drivers/gpu/drm/nouveau/nouveau_display.c @@ -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) |