diff options
author | Alex Xie <AlexBin.Xie@amd.com> | 2017-04-24 13:53:04 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-04-28 17:33:06 -0400 |
commit | 1d28479776fe932c32bda2366501fb2408557397 (patch) | |
tree | 03ca8ad896c11092c94068e6f7e8994a38afbf1a /drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | |
parent | 7a6901d7d7e49ad50d477cd8f8ef79d079b5c6c5 (diff) |
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>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_device.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c index 3f01c4b92280..234d90a12482 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | |||
@@ -2423,7 +2423,7 @@ static int amdgpu_recover_vram_from_shadow(struct amdgpu_device *adev, | |||
2423 | if (!bo->shadow) | 2423 | if (!bo->shadow) |
2424 | return 0; | 2424 | return 0; |
2425 | 2425 | ||
2426 | r = amdgpu_bo_reserve(bo, false); | 2426 | r = amdgpu_bo_reserve(bo, true); |
2427 | if (r) | 2427 | if (r) |
2428 | return r; | 2428 | return r; |
2429 | domain = amdgpu_mem_type_to_domain(bo->tbo.mem.mem_type); | 2429 | domain = amdgpu_mem_type_to_domain(bo->tbo.mem.mem_type); |