drm/amd/powerplay: add function to get power limit for smu11 (v2)
authorLikun Gao <Likun.Gao@amd.com>
Tue, 25 Dec 2018 06:44:25 +0000 (14:44 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 19 Mar 2019 20:03:57 +0000 (15:03 -0500)
commite66adb1eea90703f4e1d8ea509f7ec3fe0b4be6d
tree8639d2f17b4247e81a7c6d9287d557af7cd3805a
parent133438fa4e60d017b2c45b9fca64bcc4fc64007f
drm/amd/powerplay: add function to get power limit for smu11 (v2)

Add smu_v11_0_get_power_limit function to get power limit vaule.

v2: update "set" to "get", it only implements "get" behavior. (Alex)

Signed-off-by: Likun Gao <Likun.Gao@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/powerplay/amdgpu_smu.c
drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h
drivers/gpu/drm/amd/powerplay/smu_v11_0.c