drm/amd/powerplay: implement sysfs of pp_cur_state function
authorKevin Wang <Kevin1.Wang@amd.com>
Thu, 17 Jan 2019 05:29:06 +0000 (13:29 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 19 Mar 2019 20:03:58 +0000 (15:03 -0500)
commitea2d0bf8c7f07ca6d0de11628a5d3af6c247e51c
tree73e55e9a1d8f3757362ff51ecf2d9d03ceabbc81
parent0989532330e1e7d25693c14b3d57288aa4915f81
drm/amd/powerplay: implement sysfs of pp_cur_state function

add function of smu_get_currente_state for sw-smu.

v2: fix code typo error if (ret);

Signed-off-by: Kevin Wang <Kevin1.Wang@amd.com>
Reviewed-by: Huang Rui <ray.huang@amd.com>
Acked-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/amdgpu_smu.c
drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h