aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2018-06-28 13:44:25 -0400
committerAlex Deucher <alexander.deucher@amd.com>2018-07-05 17:39:50 -0400
commit70eb46db101b55acdf432187800915f72962a564 (patch)
treee82bb3071f772d68d8a9e290d94cd6cf97978165 /drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c
parent3413accb3eac9182ee0fc0b350a5f18247d8ac9d (diff)
drm/amdgpu/pm: fix display count in non-DC path
new_active_crtcs is a bitmask, new_active_crtc_count is the actual count. Reviewed-by: Rex Zhu <Rex.Zhu@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c
index a003fd881a89..f1404adc3a90 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c
@@ -1959,7 +1959,7 @@ void amdgpu_pm_compute_clocks(struct amdgpu_device *adev)
1959 if (!amdgpu_device_has_dc_support(adev)) { 1959 if (!amdgpu_device_has_dc_support(adev)) {
1960 mutex_lock(&adev->pm.mutex); 1960 mutex_lock(&adev->pm.mutex);
1961 amdgpu_dpm_get_active_displays(adev); 1961 amdgpu_dpm_get_active_displays(adev);
1962 adev->pm.pm_display_cfg.num_display = adev->pm.dpm.new_active_crtcs; 1962 adev->pm.pm_display_cfg.num_display = adev->pm.dpm.new_active_crtc_count;
1963 adev->pm.pm_display_cfg.vrefresh = amdgpu_dpm_get_vrefresh(adev); 1963 adev->pm.pm_display_cfg.vrefresh = amdgpu_dpm_get_vrefresh(adev);
1964 adev->pm.pm_display_cfg.min_vblank_time = amdgpu_dpm_get_vblank_time(adev); 1964 adev->pm.pm_display_cfg.min_vblank_time = amdgpu_dpm_get_vblank_time(adev);
1965 /* we have issues with mclk switching with refresh rates over 120 hz on the non-DC code. */ 1965 /* we have issues with mclk switching with refresh rates over 120 hz on the non-DC code. */