drm/amd/pp: Fix set wrong temperature range on smu7
Subsystems (2)
PATCH 1/1 drm/amd/pp: Fix set wrong temperature range on smu7
Fix the issue thermal irq was always triggered
for GPU under temperature range detected
The low temp in default thermal policy
was set to -273. so need to use int type for the low temp.
--- drivers/gpu/drm/amd/powerplay/hwmgr/smu7_thermal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/powerplay/hwmgr/smu7_thermal.c +1 -1
@@ -308,7 +308,7 @@ int smu7_thermal_get_temperature(struct pp_hwmgr *hwmgr)* @exception PP_Result_BadInput if the input data is not valid. */ static int smu7_thermal_set_temperature_range (struct pp_hwmgr *hwmgr, -uint32_t low_temp,uint32_t high_temp) +int low_temp,int high_temp) {int low =SMU7_THERMAL_MINIMUM_ALERT_TEMP *PP_TEMPERATURE_UNITS_PER_CENTIGRADES ;
Signature · 6 lines
1.9.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 1521618979-15694-1-git-send-email-Rex.Zhu-5C7GfCeVMHo@public.gmane.org
Deucher, Alexander
Reviewed-by________________________________
From: amd-gfx <amd-gfx-bounces-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org> on behalf of Rex Zhu <[email protected]>
Sent: Wednesday, March 21, 2018 3:56:19 AM
To: [email protected]
Cc: Zhu, Rex
Subject: [PATCH] drm/amd/pp: Fix set wrong temperature range on smu7
Fix the issue thermal irq was always triggered
for GPU under temperature range detected
The low temp in default thermal policy
was set to -273. so need to use int type for the low temp.
--- drivers/gpu/drm/amd/powerplay/hwmgr/smu7_thermal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/powerplay/hwmgr/smu7_thermal.c +1 -1
@@ -308,7 +308,7 @@ int smu7_thermal_get_temperature(struct pp_hwmgr *hwmgr)* @exception PP_Result_BadInput if the input data is not valid. */ static int smu7_thermal_set_temperature_range (struct pp_hwmgr *hwmgr, -uint32_t low_temp,uint32_t high_temp) +int low_temp,int high_temp) {int low =SMU7_THERMAL_MINIMUM_ALERT_TEMP *PP_TEMPERATURE_UNITS_PER_CENTIGRADES ;
--
1.9.1
_______________________________________________
amd-gfx mailing list [email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx