[PATCH] drm/amdgpu/powerplay: Modify SMC message name for setting power profile mode
Alex Deucher
alexdeucher at gmail.com
Mon Jul 13 14:20:43 UTC 2020
On Mon, Jul 13, 2020 at 4:34 AM chen gong <curry.gong at amd.com> wrote:
>
> I consulted Cai Land(Chuntian.Cai at amd.com), he told me corresponding smc
> message name to fSMC_MSG_SetWorkloadMask() is
> "PPSMC_MSG_ActiveProcessNotify" in firmware code of Renoir.
>
> Strange though it may seem, but it's a fact.
Weird.
Acked-by: Alex Deucher <alexander.deucher at amd.com>
>
> Signed-off-by: chen gong <curry.gong at amd.com>
> ---
> drivers/gpu/drm/amd/powerplay/renoir_ppt.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/amd/powerplay/renoir_ppt.c b/drivers/gpu/drm/amd/powerplay/renoir_ppt.c
> index 5071cfb..4fcb51e 100644
> --- a/drivers/gpu/drm/amd/powerplay/renoir_ppt.c
> +++ b/drivers/gpu/drm/amd/powerplay/renoir_ppt.c
> @@ -698,7 +698,7 @@ static int renoir_set_power_profile_mode(struct smu_context *smu, long *input, u
> return -EINVAL;
> }
>
> - ret = smu_send_smc_msg_with_param(smu, SMU_MSG_SetWorkloadMask,
> + ret = smu_send_smc_msg_with_param(smu, SMU_MSG_ActiveProcessNotify,
> 1 << workload_type,
> NULL);
> if (ret) {
> --
> 2.7.4
>
> _______________________________________________
> amd-gfx mailing list
> amd-gfx at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx
More information about the amd-gfx
mailing list