]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
drm/amdgpu/pm: check for headless before calling compute_clocks
authorAlex Deucher <alexander.deucher@amd.com>
Fri, 10 Feb 2017 23:09:32 +0000 (18:09 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 10 Feb 2017 23:09:32 +0000 (18:09 -0500)
Don't update display bandwidth on headless asics.

bug:
https://bugs.freedesktop.org/show_bug.cgi?id=99387

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c

index 95e026a4a2deb598d883887dcbd47a4f6e2f995a..346e80a7119b32e2091f2f73958d4e345874b602 100644 (file)
@@ -1296,7 +1296,8 @@ void amdgpu_pm_compute_clocks(struct amdgpu_device *adev)
        if (!adev->pm.dpm_enabled)
                return;
 
-       amdgpu_display_bandwidth_update(adev);
+       if (adev->mode_info.num_crtc)
+               amdgpu_display_bandwidth_update(adev);
 
        for (i = 0; i < AMDGPU_MAX_RINGS; i++) {
                struct amdgpu_ring *ring = adev->rings[i];