diff options
author | Likun Gao <Likun.Gao@amd.com> | 2019-12-02 15:04:35 +0800 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2019-12-03 11:08:17 -0500 |
commit | f275cde7066a27ab7afa0a1d95390dbf237726a2 (patch) | |
tree | e42e3b8cc70b75b4021d8c675f7e7c82b7029726 /drivers/gpu/drm/amd/powerplay/amdgpu_smu.c | |
parent | 7091b60cadae8353866084f3d2d61affa66f6473 (diff) | |
download | linux-stable-f275cde7066a27ab7afa0a1d95390dbf237726a2.tar.gz linux-stable-f275cde7066a27ab7afa0a1d95390dbf237726a2.tar.bz2 linux-stable-f275cde7066a27ab7afa0a1d95390dbf237726a2.zip |
drm/amdgpu/powerplay: unify smu send message function
Drop smu_send_smc_msg function from ASIC specify structure.
Reuse smu_send_smc_msg_with_param function for smu_send_smc_msg.
Set paramer to 0 for smu_send_msg function, otherwise it will send
with previous paramer value (Not a certain value).
Materialize msg type for smu send message function definition.
Signed-off-by: Likun Gao <Likun.Gao@amd.com>
Reviewed-by: Kevin Wang <kevin1.wang@amd.com>
Reviewed-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/powerplay/amdgpu_smu.c')
-rw-r--r-- | drivers/gpu/drm/amd/powerplay/amdgpu_smu.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c b/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c index 0cc37cfe6eb0..c30f9a281e4c 100644 --- a/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c +++ b/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c @@ -2568,3 +2568,12 @@ uint32_t smu_get_pptable_power_limit(struct smu_context *smu) return ret; } + +int smu_send_smc_msg(struct smu_context *smu, + enum smu_message_type msg) +{ + int ret; + + ret = smu_send_smc_msg_with_param(smu, msg, 0); + return ret; +} |