From: Prike Liang Date: Fri, 16 Aug 2019 03:22:13 +0000 (+0800) Subject: drm/amd/powerplay: enable populate DPM clocks table for swSMU APU X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=296ae1038d43c54e0b0e7e4f398c867ba4beaaac;p=openwrt%2Fstaging%2Fblogic.git drm/amd/powerplay: enable populate DPM clocks table for swSMU APU Should populate DPM clocks tables during hw init,otherwise will suffer from invalidate table. Signed-off-by: Prike Liang Reviewed-by: Evan Quan Reviewed-by: Aaron Liu Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c b/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c index ffbe4d881e48..5340556a34c5 100644 --- a/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c +++ b/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c @@ -1042,9 +1042,6 @@ static int smu_smc_table_hw_init(struct smu_context *smu, struct amdgpu_device *adev = smu->adev; int ret; - if (adev->flags & AMD_IS_APU) - return 0; - if (smu_is_dpm_running(smu) && adev->in_suspend) { pr_info("dpm has been enabled\n"); return 0;