drm/amd/pm: enable the fine grain tuning function for renoir
authorXiaojian Du <Xiaojian.Du@amd.com>
Fri, 18 Dec 2020 08:07:14 +0000 (16:07 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 5 Jan 2021 16:30:41 +0000 (11:30 -0500)
This patch is to enable the fine grain tuning function for renoir.

Signed-off-by: Xiaojian Du <Xiaojian.Du@amd.com>
Reviewed-by: Huang Rui <ray.huang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c

index d921986..d80f7f8 100644 (file)
@@ -402,6 +402,8 @@ static int smu_set_funcs(struct amdgpu_device *adev)
                break;
        case CHIP_RENOIR:
                renoir_set_ppt_funcs(smu);
+               /* enable the OD by default to allow the fine grain tuning function */
+               smu->od_enabled = true;
                break;
        case CHIP_VANGOGH:
                vangogh_set_ppt_funcs(smu);