diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2017-02-10 18:09:32 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-02-10 18:09:32 -0500 |
commit | c10c8f7c27103bd7ac02d041d9d6e97296d48fc1 (patch) | |
tree | 05ad619e7ad7e5d3df63fc95479a860d3a06a7cf /drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c | |
parent | a73effaf583f3e246b3e784b16443154a6105080 (diff) |
drm/amdgpu/pm: check for headless before calling compute_clocks
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
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c index 95e026a4a2de..346e80a7119b 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c | |||
@@ -1296,7 +1296,8 @@ void amdgpu_pm_compute_clocks(struct amdgpu_device *adev) | |||
1296 | if (!adev->pm.dpm_enabled) | 1296 | if (!adev->pm.dpm_enabled) |
1297 | return; | 1297 | return; |
1298 | 1298 | ||
1299 | amdgpu_display_bandwidth_update(adev); | 1299 | if (adev->mode_info.num_crtc) |
1300 | amdgpu_display_bandwidth_update(adev); | ||
1300 | 1301 | ||
1301 | for (i = 0; i < AMDGPU_MAX_RINGS; i++) { | 1302 | for (i = 0; i < AMDGPU_MAX_RINGS; i++) { |
1302 | struct amdgpu_ring *ring = adev->rings[i]; | 1303 | struct amdgpu_ring *ring = adev->rings[i]; |