Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Xiaojian Du and committed by
Alex Deucher
93a80241 c98ee897

+4
+4
drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c
··· 405 405 break; 406 406 case CHIP_VANGOGH: 407 407 vangogh_set_ppt_funcs(smu); 408 + /* enable the OD by default to allow the fine grain tuning function */ 409 + smu->od_enabled = true; 408 410 break; 409 411 default: 410 412 return -EINVAL; ··· 475 473 struct amdgpu_device *adev = (struct amdgpu_device *)handle; 476 474 struct smu_context *smu = &adev->smu; 477 475 int ret = 0; 476 + 477 + smu_set_fine_grain_gfx_freq_parameters(smu); 478 478 479 479 if (adev->asic_type == CHIP_VANGOGH) 480 480 return 0;