[PATCH] drm/amd/pm: Activate a more aggressive DPM policy while there's heavy load.
Ernst Sjöstrand
ernstp at gmail.com
Tue Oct 27 12:46:58 UTC 2020
Is this really a patch for kernel.org? Seems like a hack for Stadia or
something. (And the patch description is not very good...)
This should really be made into a generic solution.
Regards
//Ernst
Den tis 27 okt. 2020 kl 07:38 skrev Li, Xin (Justin) <Xin2.Li at amd.com>:
> [AMD Official Use Only - Internal Distribution Only]
>
> Fix performace drop while streaming Doom
>
> Signed-off-by: Li, Xin (Justin) <Xin2.Li at amd.com>
> Signed-off-by: Zhao, Jiange <Jiange.Zhao at amd.com>
> ---
> drivers/gpu/drm/amd/pm/powerplay/amd_powerplay.c | 14 ++++++++++++++
> 1 file changed, 14 insertions(+)
>
> diff --git a/drivers/gpu/drm/amd/pm/powerplay/amd_powerplay.c
> b/drivers/gpu/drm/amd/pm/powerplay/amd_powerplay.c
> index eab9768029c1..5287ac4e8364 100644
> --- a/drivers/gpu/drm/amd/pm/powerplay/amd_powerplay.c
> +++ b/drivers/gpu/drm/amd/pm/powerplay/amd_powerplay.c
> @@ -125,6 +125,20 @@ static int pp_hw_init(void *handle)
>
> ret = hwmgr_hw_init(hwmgr);
>
> + if (adev->pdev->device == 0x6860 && adev->pdev->revision == 0x07) {
> + long param[5];
> +
> + param[0] = 5; // busy_set_point
> + param[1] = 60; // FPS
> + param[2] = 0; // use_rlc_busy
> + param[3] = 3; // min_active_level
> + param[4] = PP_SMC_POWER_PROFILE_CUSTOM;
> +
> + mutex_lock(&hwmgr->smu_lock);
> + ret = hwmgr->hwmgr_func->set_power_profile_mode(hwmgr,
> param, 4);
> + mutex_unlock(&hwmgr->smu_lock);
> + }
> +
> if (ret)
> pr_err("powerplay hw init failed\n");
>
> --
> 2.24.3 (Apple Git-128)
>
>
> _______________________________________________
> amd-gfx mailing list
> amd-gfx at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/amd-gfx/attachments/20201027/f96543fe/attachment.htm>
More information about the amd-gfx
mailing list