summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd
diff options
context:
space:
mode:
authorXiaojian Du <Xiaojian.Du@amd.com>2020-11-12 19:08:26 +0800
committerAlex Deucher <alexander.deucher@amd.com>2020-11-16 12:18:02 -0500
commit93a8024130e218821c2d9cf7a7ed1ca8cdb8f809 (patch)
treec1a21f6d0d3e83f1b32ea597ab7da3684bf2e9df /drivers/gpu/drm/amd
parentc98ee89736b80fd1d4f4cdd0b0b9c6ce66f5d666 (diff)
downloadlinux-93a8024130e218821c2d9cf7a7ed1ca8cdb8f809.tar.gz
linux-93a8024130e218821c2d9cf7a7ed1ca8cdb8f809.tar.bz2
linux-93a8024130e218821c2d9cf7a7ed1ca8cdb8f809.zip
drm/amd/pm: enable the fine grain tuning function for vangogh
This patch is to enale the fine grain tuning function for vangogh. Signed-off-by: Xiaojian Du <Xiaojian.Du@amd.com> Reviewed-by: Evan Quan <evan.quan@amd.com> Reviewed-by: Huang Rui <ray.huang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd')
-rw-r--r--drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c b/drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c
index 7b698c5ddad0..1904df5a3e20 100644
--- a/drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c
+++ b/drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c
@@ -405,6 +405,8 @@ static int smu_set_funcs(struct amdgpu_device *adev)
break;
case CHIP_VANGOGH:
vangogh_set_ppt_funcs(smu);
+ /* enable the OD by default to allow the fine grain tuning function */
+ smu->od_enabled = true;
break;
default:
return -EINVAL;
@@ -474,6 +476,8 @@ static int smu_late_init(void *handle)
struct smu_context *smu = &adev->smu;
int ret = 0;
+ smu_set_fine_grain_gfx_freq_parameters(smu);
+
if (adev->asic_type == CHIP_VANGOGH)
return 0;