Browse Source

drm/amdgpu: Fix use of interruptible waiting

1. The signal interrupt can affect the expected behaviour.
2. There is no good mechanism to handle the corresponding error.

Signed-off-by: Alex Xie <AlexBin.Xie@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Alex Xie 8 years ago
parent
commit
1d28479776
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/gpu/drm/amd/amdgpu/amdgpu_device.c

+ 1 - 1
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c

@@ -2423,7 +2423,7 @@ static int amdgpu_recover_vram_from_shadow(struct amdgpu_device *adev,
 	if (!bo->shadow)
 		return 0;
 
-	r = amdgpu_bo_reserve(bo, false);
+	r = amdgpu_bo_reserve(bo, true);
 	if (r)
 		return r;
 	domain = amdgpu_mem_type_to_domain(bo->tbo.mem.mem_type);