summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm
diff options
context:
space:
mode:
authorxinhui pan <xinhui.pan@amd.com>2019-05-09 00:13:22 +0800
committerAlex Deucher <alexander.deucher@amd.com>2019-05-09 18:01:00 -0500
commitb0d01ca6e59a44f05f3049fd3bcc4bf10e3055a3 (patch)
tree34e71715f5f4af216e238af3930e2b5b0925b691 /drivers/gpu/drm
parent6248ec360450db9f6fe564fb36e2af8dea4b8d89 (diff)
downloadlinux-next-b0d01ca6e59a44f05f3049fd3bcc4bf10e3055a3.tar.gz
drm/amdgpu: gpu reset will run ras post init
ras need initialize proper state after late init Signed-off-by: xinhui pan <xinhui.pan@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_device.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
index 5273bc22b500..dedf5c0aa9a5 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
@@ -3497,6 +3497,9 @@ static int amdgpu_do_asic_reset(struct amdgpu_hive_info *hive,
if (r)
goto out;
+ /* must succeed. */
+ amdgpu_ras_post_init(tmp_adev);
+
/* Update PSP FW topology after reset */
if (hive && tmp_adev->gmc.xgmi.num_physical_nodes > 1)
r = amdgpu_xgmi_update_topology(hive, tmp_adev);