Skip to content

Commit b2a7e97

Browse files
Prike Liangalexdeucher
authored andcommitted
drm/amdgpu: fix the hw hang during perform system reboot and reset
The system reboot failed as some IP blocks enter power gate before perform hw resource destory. Meanwhile use unify interface to set device CGPG to ungate state can simplify the amdgpu poweroff or reset ungate guard. Fixes: 487eca1 ("drm/amdgpu: fix gfx hang during suspend with video playback (v2)") Signed-off-by: Prike Liang <[email protected]> Tested-by: Mengbing Wang <[email protected]> Tested-by: Paul Menzel <[email protected]> Acked-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]> Cc: [email protected]
1 parent 028cfb2 commit b2a7e97

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2356,6 +2356,8 @@ static int amdgpu_device_ip_suspend_phase1(struct amdgpu_device *adev)
23562356
{
23572357
int i, r;
23582358

2359+
amdgpu_device_set_pg_state(adev, AMD_PG_STATE_UNGATE);
2360+
amdgpu_device_set_cg_state(adev, AMD_CG_STATE_UNGATE);
23592361

23602362
for (i = adev->num_ip_blocks - 1; i >= 0; i--) {
23612363
if (!adev->ip_blocks[i].status.valid)

0 commit comments

Comments
 (0)