[PATCH 1/3] drm/amd/powerplay: support new pptable upload on Vega20
Evan Quan
evan.quan at amd.com
Wed Nov 28 08:53:34 UTC 2018
New pptable upload through sysfs interface is supported.
Change-Id: Idba7aad2898c05bde1f11c7f9ef2f2f077101d9f
Signed-off-by: Evan Quan <evan.quan at amd.com>
---
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
More information about the amd-gfx
mailing list