drm/amdgpu: Fix GPU reset crash regression.
authorAndrey Grodzovsky <andrey.grodzovsky@amd.com>
Fri, 2 Aug 2019 20:48:08 +0000 (16:48 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 6 Aug 2019 18:53:19 +0000 (13:53 -0500)
amdgpu_ip_block.status.hw for GMC wasn't set to
false on suspend during GPU reset and so on resume gmc_v9_0_resume
wasn't called.
Caused by 'drm/amdgpu: fix double ucode load by PSP(v3)'

Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c

index 192f753..e7537e1 100644 (file)
@@ -2274,6 +2274,8 @@ static int amdgpu_device_ip_suspend_phase2(struct amdgpu_device *adev)
                                }
                        }
                }
+
+               adev->ip_blocks[i].status.hw = false;
        }
 
        return 0;