Skip to content

Commit f7b5289

Browse files
Evan Quanalexdeucher
authored andcommitted
drm/amdgpu: drop redundant cg/pg ungate on runpm enter
CG/PG ungate is already performed in ip_suspend_phase1. Otherwise, the CG/PG ungate will be performed twice. That will cause gfxoff disablement is performed twice also on runpm enter while gfxoff enablemnt once on rump exit. That will put gfxoff into disabled state. Fixes: b2a7e97 ("drm/amdgpu: fix the hw hang during perform system reboot and reset") Signed-off-by: Evan Quan <[email protected]> Acked-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]> Cc: [email protected]
1 parent c457a27 commit f7b5289

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

drivers/gpu/drm/amd/amdgpu/amdgpu_device.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3372,9 +3372,6 @@ int amdgpu_device_suspend(struct drm_device *dev, bool fbcon)
33723372
}
33733373
}
33743374

3375-
amdgpu_device_set_pg_state(adev, AMD_PG_STATE_UNGATE);
3376-
amdgpu_device_set_cg_state(adev, AMD_CG_STATE_UNGATE);
3377-
33783375
amdgpu_ras_suspend(adev);
33793376

33803377
r = amdgpu_device_ip_suspend_phase1(adev);

0 commit comments

Comments
 (0)