[PATCH 2/2] drm/amd/pm: drop those unrealistic thermal_type checks

Evan Quan evan.quan at amd.com
Wed Dec 8 02:54:50 UTC 2021


As it's impossible the thermal sensor of KV is one of them.

Signed-off-by: Evan Quan <evan.quan at amd.com>
Change-Id: I52783cb50f037df06f76fbab997e0dc0fd445203
---
 drivers/gpu/drm/amd/pm/legacy-dpm/kv_dpm.c | 10 ----------
 1 file changed, 10 deletions(-)

diff --git a/drivers/gpu/drm/amd/pm/legacy-dpm/kv_dpm.c b/drivers/gpu/drm/amd/pm/legacy-dpm/kv_dpm.c
index b37662c4a413..8b23cc9f098a 100644
--- a/drivers/gpu/drm/amd/pm/legacy-dpm/kv_dpm.c
+++ b/drivers/gpu/drm/amd/pm/legacy-dpm/kv_dpm.c
@@ -1260,18 +1260,8 @@ static void kv_dpm_enable_bapm(void *handle, bool enable)
 static bool kv_is_internal_thermal_sensor(enum amdgpu_int_thermal_type sensor)
 {
 	switch (sensor) {
-	case THERMAL_TYPE_RV6XX:
-	case THERMAL_TYPE_RV770:
-	case THERMAL_TYPE_EVERGREEN:
-	case THERMAL_TYPE_SUMO:
-	case THERMAL_TYPE_NI:
-	case THERMAL_TYPE_SI:
-	case THERMAL_TYPE_CI:
 	case THERMAL_TYPE_KV:
 		return true;
-	case THERMAL_TYPE_ADT7473_WITH_INTERNAL:
-	case THERMAL_TYPE_EMC2103_WITH_INTERNAL:
-		return false; /* need special handling */
 	case THERMAL_TYPE_NONE:
 	case THERMAL_TYPE_EXTERNAL:
 	case THERMAL_TYPE_EXTERNAL_GPIO:
-- 
2.29.0



More information about the amd-gfx mailing list