Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 88eadc31 authored by Eric Huang's avatar Eric Huang Committed by Alex Deucher
Browse files

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: default avatarEric Huang <JinHuiEric.Huang@amd.com>
Acked-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 4edc8f7a
Loading
Loading
Loading
Loading
+3 −1
Original line number Original line Diff line number Diff line
@@ -500,7 +500,6 @@ static int vega10_smu_init(struct pp_smumgr *smumgr)
					smu_lower_32_bits(mc_addr);
					smu_lower_32_bits(mc_addr);
			priv->smu_tables.entry[TOOLSTABLE].table = kaddr;
			priv->smu_tables.entry[TOOLSTABLE].table = kaddr;
			priv->smu_tables.entry[TOOLSTABLE].handle = handle;
			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),
	PP_ASSERT_WITH_CODE(!vega10_verify_smc_interface(smumgr),
			"Failed to verify SMC interface!",
			"Failed to verify SMC interface!",
			return -EINVAL);
			return -EINVAL);

	vega10_set_tools_address(smumgr);

	return 0;
	return 0;
}
}