drm/amd/powerplay: add callback function of get_thermal_temperature_range
authorKevin Wang <kevin1.wang@amd.com>
Mon, 3 Jun 2019 07:58:31 +0000 (15:58 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 31 Jul 2019 05:00:49 +0000 (00:00 -0500)
commit2c0f07fe3ca57c8fb4ee179c9fb50d6eba75349e
tree1a9c79a14171d03981ee562940f61e7946f3119f
parentd65848657c3da5c0d4b685f823d0230f151ab34e
drm/amd/powerplay: add callback function of get_thermal_temperature_range

1. the thermal temperature is asic related data, move the code logic to
xxx_ppt.c.
2. replace data structure PP_TemperatureRange with
smu_temperature_range.
3. change temperature uint from temp*1000 to temp (temperature uint).

Signed-off-by: Kevin Wang <kevin1.wang@amd.com>
Signed-off-by: Kenneth Feng <kenneth.feng@amd.com>
Acked-by: Huang Rui <ray.huang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h
drivers/gpu/drm/amd/powerplay/navi10_ppt.c
drivers/gpu/drm/amd/powerplay/smu_v11_0.c
drivers/gpu/drm/amd/powerplay/vega20_ppt.c