drm/amd/pp: Fix set wrong temperature range on smu7
authorRex Zhu <Rex.Zhu@amd.com>
Wed, 21 Mar 2018 07:48:36 +0000 (15:48 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 22 Mar 2018 19:43:01 +0000 (14:43 -0500)
commit3c79684396ec2ac951e16a6d8ae55f4cdcabc7e8
treec645b0ed2c9987e9406571a71e42ee2ecb560509
parentcc15dfaa85e8dfc763f22caca54fa097e377ea27
drm/amd/pp: Fix set wrong temperature range on smu7

Fix the issue thermal irq was always triggered
as 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.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/hwmgr/smu7_thermal.c