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-Url: https://git.stricted.de/?a=commitdiff_plain;h=07193f705154e26e1a246b81a5ae59f6354e8e7a;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.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)