]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
drm/radeon: add support for thermal controller on KB/KV
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 23 Apr 2013 01:41:26 +0000 (21:41 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 30 Aug 2013 20:30:13 +0000 (16:30 -0400)
No support for reading temperature back yet.

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/radeon.h
drivers/gpu/drm/radeon/radeon_atombios.c

index 262c4c47c31931a3f7a00128b0e9e30c45149b50..d1f5f7bb052c2f2da59d38fba68cd946a68b3d98 100644 (file)
@@ -1132,6 +1132,7 @@ enum radeon_int_thermal_type {
        THERMAL_TYPE_SI,
        THERMAL_TYPE_EMC2103_WITH_INTERNAL,
        THERMAL_TYPE_CI,
+       THERMAL_TYPE_KV,
 };
 
 struct radeon_voltage {
index 27de73c162c9025316f11ded4e2e04714b24455c..6247b5e2d074c39eedec5dbc9e8a00314c932439 100644 (file)
@@ -2237,6 +2237,11 @@ static void radeon_atombios_add_pplib_thermal_controller(struct radeon_device *r
                                 (controller->ucFanParameters &
                                  ATOM_PP_FANPARAMETERS_NOFAN) ? "without" : "with");
                        rdev->pm.int_thermal_type = THERMAL_TYPE_CI;
+               } else if (controller->ucType == ATOM_PP_THERMALCONTROLLER_KAVERI) {
+                       DRM_INFO("Internal thermal controller %s fan control\n",
+                                (controller->ucFanParameters &
+                                 ATOM_PP_FANPARAMETERS_NOFAN) ? "without" : "with");
+                       rdev->pm.int_thermal_type = THERMAL_TYPE_KV;
                } else if ((controller->ucType ==
                            ATOM_PP_THERMALCONTROLLER_EXTERNAL_GPIO) ||
                           (controller->ucType ==