drm/amdgpu/sriov: Need to set in_gpu_reset flag to back after gpu reset
authorEmily Deng <Emily.Deng@amd.com>
Thu, 26 Apr 2018 10:02:14 +0000 (18:02 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 15 May 2018 18:44:06 +0000 (13:44 -0500)
After host os reset gpu reset, need to set flag in_gpu_reset to
zero.

Signed-off-by: Emily Deng <Emily.Deng@amd.com>
Reviewed-by: Monk Liu <monk.liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c

index 4933486724754f179539d3d8743e4ed91bcb3f3d..078f70faedcbb1e15dbf8d737090071d10ea403a 100644 (file)
@@ -260,8 +260,10 @@ static void xgpu_ai_mailbox_flr_work(struct work_struct *work)
        } while (timeout > 1);
 
 flr_done:
-       if (locked)
+       if (locked) {
+               adev->in_gpu_reset = 0;
                mutex_unlock(&adev->lock_reset);
+       }
 
        /* Trigger recovery for world switch failure if no TDR */
        if (amdgpu_lockup_timeout == 0)