OSDN Git Service

drm/amd/powerplay: implement fan1_enable hwmon interface for SMU11 (v2)
authorChengming Gui <Jack.Gui@amd.com>
Fri, 25 Jan 2019 10:57:34 +0000 (18:57 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 19 Mar 2019 20:04:01 +0000 (15:04 -0500)
commitda5f18e8e8cbafe722c679803cd69d03aea22db4
treec4b44cd4ef52474a9461a3443723fc7c4fc8c554
parenta76ff5af98bea45bd7303d83c593957dad0213ee
drm/amd/powerplay: implement fan1_enable hwmon interface for SMU11 (v2)

set the fan1_enable hwmon interface to call
smu_get_fan_control_mode and smu_set_fan_control_mode.

v2: fix print value.

Signed-off-by: Chengming Gui <Jack.Gui@amd.com>
Reviewed-by: Huang Rui <ray.huang@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c
drivers/gpu/drm/amd/powerplay/smu_v11_0.c