aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/ci_dpm.c
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2016-03-03 11:28:24 -0500
committerAlex Deucher <alexander.deucher@amd.com>2016-03-08 10:58:59 -0500
commit225ac139285a3ebde698694a4957a9de907b97ee (patch)
treead817136873aa74c6e87818e1895c9d44fa6524f /drivers/gpu/drm/amd/amdgpu/ci_dpm.c
parentda26bae051b8c4a13c31f2275a4ec4b560c172e6 (diff)
drm/amdgpu/ci: drop some old thermal setup
This was leftover from a long time ago and is not longer needed since the thermal controller setup code was added. Additional mucking with the thermal interrupts can cause spurious thermal events which can lead to unnecessary state changes. Reviewed-by: Christian König <christian.koenig@amd.com> Reviewed-by: Ken Wang <Qingqing.Wang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/ci_dpm.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/ci_dpm.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/ci_dpm.c b/drivers/gpu/drm/amd/amdgpu/ci_dpm.c
index 8b4731d4e10e..7226a418ae4b 100644
--- a/drivers/gpu/drm/amd/amdgpu/ci_dpm.c
+++ b/drivers/gpu/drm/amd/amdgpu/ci_dpm.c
@@ -5394,30 +5394,6 @@ static int ci_dpm_enable(struct amdgpu_device *adev)
5394 5394
5395 ci_update_current_ps(adev, boot_ps); 5395 ci_update_current_ps(adev, boot_ps);
5396 5396
5397 if (adev->irq.installed &&
5398 amdgpu_is_internal_thermal_sensor(adev->pm.int_thermal_type)) {
5399#if 0
5400 PPSMC_Result result;
5401#endif
5402 ret = ci_thermal_set_temperature_range(adev, CISLANDS_TEMP_RANGE_MIN,
5403 CISLANDS_TEMP_RANGE_MAX);
5404 if (ret) {
5405 DRM_ERROR("ci_thermal_set_temperature_range failed\n");
5406 return ret;
5407 }
5408 amdgpu_irq_get(adev, &adev->pm.dpm.thermal.irq,
5409 AMDGPU_THERMAL_IRQ_LOW_TO_HIGH);
5410 amdgpu_irq_get(adev, &adev->pm.dpm.thermal.irq,
5411 AMDGPU_THERMAL_IRQ_HIGH_TO_LOW);
5412
5413#if 0
5414 result = amdgpu_ci_send_msg_to_smc(adev, PPSMC_MSG_EnableThermalInterrupt);
5415
5416 if (result != PPSMC_Result_OK)
5417 DRM_DEBUG_KMS("Could not enable thermal interrupts.\n");
5418#endif
5419 }
5420
5421 return 0; 5397 return 0;
5422} 5398}
5423 5399