summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/powerplay/smu_v11_0.c
diff options
context:
space:
mode:
authorHuang Rui2019-03-31 09:53:42 +0200
committerAlex Deucher2019-06-22 01:59:26 +0200
commit8890fe5f435333c9f6ea7cd6b6de964c669602f4 (patch)
tree4cfa279d92514f677e3fbe33711ede3a6e0a28ab /drivers/gpu/drm/amd/powerplay/smu_v11_0.c
parentdrm/amd/powerplay: move Watermarks_t uses into asic level (diff)
downloadkernel-qcow2-linux-8890fe5f435333c9f6ea7cd6b6de964c669602f4.tar.gz
kernel-qcow2-linux-8890fe5f435333c9f6ea7cd6b6de964c669602f4.tar.xz
kernel-qcow2-linux-8890fe5f435333c9f6ea7cd6b6de964c669602f4.zip
drm/amd/powerplay: introduce smu power source type to handle AC/DC source for each asic
This patch introduces new smu power source type, it's to handle the different AC/DC source defines for each asic with the same smu ip. Signed-off-by: Huang Rui <ray.huang@amd.com> Reviewed-by: Kevin Wang <kevin1.wang@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/powerplay/smu_v11_0.c')
-rw-r--r--drivers/gpu/drm/amd/powerplay/smu_v11_0.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/powerplay/smu_v11_0.c b/drivers/gpu/drm/amd/powerplay/smu_v11_0.c
index 1ed644fe4e0a..a1b63a39bba7 100644
--- a/drivers/gpu/drm/amd/powerplay/smu_v11_0.c
+++ b/drivers/gpu/drm/amd/powerplay/smu_v11_0.c
@@ -1038,7 +1038,7 @@ static int smu_v11_0_get_power_limit(struct smu_context *smu,
mutex_unlock(&smu->mutex);
} else {
ret = smu_send_smc_msg_with_param(smu, SMU_MSG_GetPptLimit,
- POWER_SOURCE_AC << 16);
+ smu_power_get_index(smu, SMU_POWER_SOURCE_AC) << 16);
if (ret) {
pr_err("[%s] get PPT limit failed!", __func__);
return ret;