diff options
author | Evan Quan | 2019-07-11 09:13:17 +0200 |
---|---|---|
committer | Alex Deucher | 2019-07-17 20:34:30 +0200 |
commit | 0d9d78b57bf32fdc4baf6eb8853e65059dcd5e06 (patch) | |
tree | 06bcd2b6918aaf6d11d5813ff4eb937d5af5a0c3 /drivers/gpu/drm/amd/powerplay/smu_v11_0.c | |
parent | drm/amd/powerplay: fix deadlock around smu_handle_task V2 (diff) | |
download | kernel-qcow2-linux-0d9d78b57bf32fdc4baf6eb8853e65059dcd5e06.tar.gz kernel-qcow2-linux-0d9d78b57bf32fdc4baf6eb8853e65059dcd5e06.tar.xz kernel-qcow2-linux-0d9d78b57bf32fdc4baf6eb8853e65059dcd5e06.zip |
drm/amd/powerplay: correct smu_update_table usage
The interface was used in a confusing way. In profile mode scenario,
the 2nd parameter of the interface was used in a different way from
other scenarios.
Signed-off-by: Evan Quan <evan.quan@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@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.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/powerplay/smu_v11_0.c b/drivers/gpu/drm/amd/powerplay/smu_v11_0.c index a87b86ae2cc5..f182d75e127d 100644 --- a/drivers/gpu/drm/amd/powerplay/smu_v11_0.c +++ b/drivers/gpu/drm/amd/powerplay/smu_v11_0.c @@ -703,7 +703,7 @@ static int smu_v11_0_write_pptable(struct smu_context *smu) struct smu_table_context *table_context = &smu->smu_table; int ret = 0; - ret = smu_update_table(smu, SMU_TABLE_PPTABLE, + ret = smu_update_table(smu, SMU_TABLE_PPTABLE, 0, table_context->driver_pptable, true); return ret; @@ -722,7 +722,7 @@ static int smu_v11_0_write_watermarks_table(struct smu_context *smu) if (!table->cpu_addr) return -EINVAL; - ret = smu_update_table(smu, SMU_TABLE_WATERMARKS, table->cpu_addr, + ret = smu_update_table(smu, SMU_TABLE_WATERMARKS, 0, table->cpu_addr, true); return ret; |