drm/amdgpu: Fix use of interruptible waiting
authorAlex Xie <AlexBin.Xie@amd.com>
Mon, 24 Apr 2017 17:53:04 +0000 (13:53 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 28 Apr 2017 21:33:06 +0000 (17:33 -0400)
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>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c

index 3f01c4b92280d53da08f48f6ece3d796abcd54fc..234d90a1248244e91536ecb649b829e501eb6463 100644 (file)
@@ -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);