Browse Source

drm/amdgpu/sriov: Need to set in_gpu_reset flag to back after gpu reset

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>
Emily Deng 7 years ago
parent
commit
6e9c2b88eb
1 changed files with 3 additions and 1 deletions
  1. 3 1
      drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c

+ 3 - 1
drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c

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