drm/amd/powerplay: change ASIC temperature reading on Vega10
authorEric Huang <JinHuiEric.Huang@amd.com>
Fri, 27 Oct 2017 19:24:38 +0000 (15:24 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 27 Oct 2017 20:14:30 +0000 (16:14 -0400)
ASIC temperature reading from HOTSPOT to ASIC edge which makes
things consistent with previous asics.

Signed-off-by: Eric Huang <JinHuiEric.Huang@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/hwmgr/vega10_thermal.c

index 1feefac..dc3761b 100644 (file)
@@ -365,8 +365,8 @@ int vega10_thermal_get_temperature(struct pp_hwmgr *hwmgr)
 
        temp = cgs_read_register(hwmgr->device, reg);
 
-       temp = (temp & CG_MULT_THERMAL_STATUS__ASIC_MAX_TEMP_MASK) >>
-                       CG_MULT_THERMAL_STATUS__ASIC_MAX_TEMP__SHIFT;
+       temp = (temp & CG_MULT_THERMAL_STATUS__CTF_TEMP_MASK) >>
+                       CG_MULT_THERMAL_STATUS__CTF_TEMP__SHIFT;
 
        temp = temp & 0x1ff;