Ping...

> -----Original Message-----
> From: Evan Quan <[email protected]>
> Sent: 2018年11月28日 16:54
> To: [email protected]
> Cc: Quan, Evan <[email protected]>
> Subject: [PATCH 1/3] drm/amd/powerplay: support new pptable upload on
> Vega20
> 
> New pptable upload through sysfs interface is supported.
> 
> Change-Id: Idba7aad2898c05bde1f11c7f9ef2f2f077101d9f
> Signed-off-by: Evan Quan <[email protected]>
> ---
>  drivers/gpu/drm/amd/powerplay/hwmgr/hardwaremanager.c | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/hardwaremanager.c
> b/drivers/gpu/drm/amd/powerplay/hwmgr/hardwaremanager.c
> index b05b153101c5..3aec7adfa5f0 100644
> --- a/drivers/gpu/drm/amd/powerplay/hwmgr/hardwaremanager.c
> +++ b/drivers/gpu/drm/amd/powerplay/hwmgr/hardwaremanager.c
> @@ -75,10 +75,12 @@ int phm_set_power_state(struct pp_hwmgr *hwmgr,
> 
>  int phm_enable_dynamic_state_management(struct pp_hwmgr *hwmgr)  {
> +     struct amdgpu_device *adev = hwmgr->adev;
>       int ret = -EINVAL;;
>       PHM_FUNC_CHECK(hwmgr);
> 
> -     if (smum_is_dpm_running(hwmgr)) {
> +     /* Skip for suspend/resume case */
> +     if (smum_is_dpm_running(hwmgr) && adev->in_suspend) {
>               pr_info("dpm has been enabled\n");
>               return 0;
>       }
> --
> 2.19.2

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

Reply via email to