]> Git Repo - linux.git/blobdiff - drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c
Merge tag 'platform-drivers-x86-v4.13-2' of git://git.infradead.org/linux-platform...
[linux.git] / drivers / gpu / drm / amd / amdgpu / amdgpu_cgs.c
index c6dba1eaefbd463a2330386ae41773a659139051..c0a806280257c80954930c3744d7cd65e6b6de5f 100644 (file)
@@ -838,6 +838,12 @@ static int amdgpu_cgs_get_active_displays_info(struct cgs_device *cgs_device,
                return -EINVAL;
 
        mode_info = info->mode_info;
+       if (mode_info) {
+               /* if the displays are off, vblank time is max */
+               mode_info->vblank_time_us = 0xffffffff;
+               /* always set the reference clock */
+               mode_info->ref_clock = adev->clock.spll.reference_freq;
+       }
 
        if (adev->mode_info.num_crtc && adev->mode_info.mode_config_initialized) {
                list_for_each_entry(crtc,
This page took 0.032636 seconds and 4 git commands to generate.