diff options
author | Eric Huang <JinHuiEric.Huang@amd.com> | 2017-05-25 15:59:59 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-05-31 14:16:31 -0400 |
commit | 88eadc314d375eb454e5b6dcaa1b767483842dee (patch) | |
tree | 2839f7acfbb88b88580f971fb61c15270974f3f0 /drivers/gpu/drm/amd/powerplay/smumgr | |
parent | 4edc8f7a389eb324bfd10d798d701a0ffdee16a3 (diff) |
drm/amd/powerplay: fix set tools address for Vega10
Tools fb address was failed to send to smu when smu
was not running. Changing sequence will fix it.
Signed-off-by: Eric Huang <JinHuiEric.Huang@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/powerplay/smumgr')
-rw-r--r-- | drivers/gpu/drm/amd/powerplay/smumgr/vega10_smumgr.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/powerplay/smumgr/vega10_smumgr.c b/drivers/gpu/drm/amd/powerplay/smumgr/vega10_smumgr.c index 115f0e4b1603..269678443862 100644 --- a/drivers/gpu/drm/amd/powerplay/smumgr/vega10_smumgr.c +++ b/drivers/gpu/drm/amd/powerplay/smumgr/vega10_smumgr.c @@ -500,7 +500,6 @@ static int vega10_smu_init(struct pp_smumgr *smumgr) smu_lower_32_bits(mc_addr); priv->smu_tables.entry[TOOLSTABLE].table = kaddr; priv->smu_tables.entry[TOOLSTABLE].handle = handle; - vega10_set_tools_address(smumgr); } } @@ -569,6 +568,9 @@ static int vega10_start_smu(struct pp_smumgr *smumgr) PP_ASSERT_WITH_CODE(!vega10_verify_smc_interface(smumgr), "Failed to verify SMC interface!", return -EINVAL); + + vega10_set_tools_address(smumgr); + return 0; } |