aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd
diff options
context:
space:
mode:
authorHuang Rui <ray.huang@amd.com>2019-01-31 08:11:11 -0500
committerAlex Deucher <alexander.deucher@amd.com>2019-06-21 19:59:24 -0400
commit4009b9b589aa11d812d40b92b1f825e45efb853f (patch)
tree1130edc80e363fa041b39eaa385a58ea589e1179 /drivers/gpu/drm/amd
parent31528650356c30809a4902ea8ea3345975fdc1d5 (diff)
drm/amd/powerplay: move bootup value before read pptable from vbios
In navi10, we need read the pp_table_id from bootup value, then decide whether use load the soft pptable. Signed-off-by: Huang Rui <ray.huang@amd.com> Reviewed-by: Hawking Zhang <Hawking.Zhang@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/powerplay/amdgpu_smu.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c b/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c
index a3a6099ab8cd..88fd79d5aca6 100644
--- a/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c
+++ b/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c
@@ -628,12 +628,12 @@ static int smu_smc_table_hw_init(struct smu_context *smu,
628 return ret; 628 return ret;
629 629
630 if (initialize) { 630 if (initialize) {
631 ret = smu_read_pptable_from_vbios(smu); 631 /* get boot_values from vbios to set revision, gfxclk, and etc. */
632 ret = smu_get_vbios_bootup_values(smu);
632 if (ret) 633 if (ret)
633 return ret; 634 return ret;
634 635
635 /* get boot_values from vbios to set revision, gfxclk, and etc. */ 636 ret = smu_read_pptable_from_vbios(smu);
636 ret = smu_get_vbios_bootup_values(smu);
637 if (ret) 637 if (ret)
638 return ret; 638 return ret;
639 639