drm/amdgpu/ci: drop some old thermal setup
authorAlex Deucher <alexander.deucher@amd.com>
Thu, 3 Mar 2016 16:28:24 +0000 (11:28 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 8 Mar 2016 15:58:59 +0000 (10:58 -0500)
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>
drivers/gpu/drm/amd/amdgpu/ci_dpm.c

index 8b4731d4e10eabbd78f17f799c5fcd1156ba9862..7226a418ae4b9d417019d5ac008996b413dbab4b 100644 (file)
@@ -5394,30 +5394,6 @@ static int ci_dpm_enable(struct amdgpu_device *adev)
 
        ci_update_current_ps(adev, boot_ps);
 
-       if (adev->irq.installed &&
-           amdgpu_is_internal_thermal_sensor(adev->pm.int_thermal_type)) {
-#if 0
-               PPSMC_Result result;
-#endif
-               ret = ci_thermal_set_temperature_range(adev, CISLANDS_TEMP_RANGE_MIN,
-                                                      CISLANDS_TEMP_RANGE_MAX);
-               if (ret) {
-                       DRM_ERROR("ci_thermal_set_temperature_range failed\n");
-                       return ret;
-               }
-               amdgpu_irq_get(adev, &adev->pm.dpm.thermal.irq,
-                              AMDGPU_THERMAL_IRQ_LOW_TO_HIGH);
-               amdgpu_irq_get(adev, &adev->pm.dpm.thermal.irq,
-                              AMDGPU_THERMAL_IRQ_HIGH_TO_LOW);
-
-#if 0
-               result = amdgpu_ci_send_msg_to_smc(adev, PPSMC_MSG_EnableThermalInterrupt);
-
-               if (result != PPSMC_Result_OK)
-                       DRM_DEBUG_KMS("Could not enable thermal interrupts.\n");
-#endif
-       }
-
        return 0;
 }