OSDN Git Service

drm/amd/powerplay: Add read_sensor() callback to hwmgr (v3)
authorTom St Denis <tom.stdenis@amd.com>
Thu, 15 Sep 2016 14:07:34 +0000 (10:07 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 19 Sep 2016 18:38:26 +0000 (14:38 -0400)
commita6e3695221446cf825d12db9c6ad3502c45fb9de
tree8bb5b1275bd20498c5642c4445cee93e20e56cc6
parent167ac5733c70683c4886a8b3ef347cc6c93a76a6
drm/amd/powerplay: Add read_sensor() callback to hwmgr (v3)

Provides standardized interface to read various sensors.
The API is extensible (by adding to the end of the
amd_pp_sensors enumeration list.

Support has been added to Carrizo/smu7

(v2) Squashed the two sensor patches into one.
(v3) Updated to apply to smu7_hwmgr instead

Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/amd_powerplay.c
drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c
drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c
drivers/gpu/drm/amd/powerplay/inc/amd_powerplay.h
drivers/gpu/drm/amd/powerplay/inc/hwmgr.h