drm/amd/powerplay: implement sysfs of get num states function
authorKevin Wang <Kevin1.Wang@amd.com>
Thu, 17 Jan 2019 05:15:48 +0000 (13:15 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 19 Mar 2019 20:03:58 +0000 (15:03 -0500)
commit0989532330e1e7d25693c14b3d57288aa4915f81
tree34002bb1560b8bcea5af25b91d130970b59d6d4c
parent143c75d6514dd65ba49d3846a5a02c45a4b7f15b
drm/amd/powerplay: implement sysfs of get num states function

add function smu_get_power_num_state function for sw-smu.
it's only for sysfs interface, the power state feature is not ready for sw-smu.

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