From: Ben Skeggs Date: Fri, 4 Nov 2016 07:20:35 +0000 (+1000) Subject: drm/nouveau/kms: execute drm_mode_config_reset() after constructing display X-Git-Tag: Ubuntu-5.4-5.4.0-11.14~8846^2~38^2~37 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=07193f705154e26e1a246b81a5ae59f6354e8e7a;p=mirror_ubuntu-focal-kernel.git 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 --- 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)