aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
diff options
context:
space:
mode:
authorAlex Xie <[email protected]>2017-04-24 18:27:00 +0000
committerAlex Deucher <[email protected]>2017-04-28 21:33:06 +0000
commitf3aa745eedc851742f6d6574ee2322c021b8f33c (patch)
treefc4b8c79c52470453672507305589b0a614ac389 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
parentdrm/amdgpu: Fix use of interruptible waiting (diff)
downloadkernel-f3aa745eedc851742f6d6574ee2322c021b8f33c.tar.gz
kernel-f3aa745eedc851742f6d6574ee2322c021b8f33c.zip
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 <[email protected]> Reviewed-by: Christian König <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_object.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
index cb89fff863c0..60de77b153b7 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
@@ -295,7 +295,7 @@ void amdgpu_bo_free_kernel(struct amdgpu_bo **bo, u64 *gpu_addr,
if (*bo == NULL)
return;
- if (likely(amdgpu_bo_reserve(*bo, false) == 0)) {
+ if (likely(amdgpu_bo_reserve(*bo, true) == 0)) {
if (cpu_addr)
amdgpu_bo_kunmap(*bo);