mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +00:00
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>
This commit is contained in:
parent
c98ee89736
commit
93a8024130
1 changed files with 4 additions and 0 deletions
|
@ -405,6 +405,8 @@ static int smu_set_funcs(struct amdgpu_device *adev)
|
||||||
break;
|
break;
|
||||||
case CHIP_VANGOGH:
|
case CHIP_VANGOGH:
|
||||||
vangogh_set_ppt_funcs(smu);
|
vangogh_set_ppt_funcs(smu);
|
||||||
|
/* enable the OD by default to allow the fine grain tuning function */
|
||||||
|
smu->od_enabled = true;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
@ -474,6 +476,8 @@ static int smu_late_init(void *handle)
|
||||||
struct smu_context *smu = &adev->smu;
|
struct smu_context *smu = &adev->smu;
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
|
|
||||||
|
smu_set_fine_grain_gfx_freq_parameters(smu);
|
||||||
|
|
||||||
if (adev->asic_type == CHIP_VANGOGH)
|
if (adev->asic_type == CHIP_VANGOGH)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue