]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8d72216bb1a2e3ad6a6ac5e9a0f1bd3c88d796a1
tree8bb5b1275bd20498c5642c4445cee93e20e56cc6
parentf7c43822e4b3ae19035daa36c92d031dd7b70c16
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