New pptable upload through sysfs interface is supported. Change-Id: Idba7aad2898c05bde1f11c7f9ef2f2f077101d9f Signed-off-by: Evan Quan <evan.quan@xxxxxxx> --- 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 amd-gfx@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/amd-gfx