Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Alex Xie and committed by
Alex Deucher
f3aa745e 1d284797

+1 -1
+1 -1
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
··· 295 295 if (*bo == NULL) 296 296 return; 297 297 298 - if (likely(amdgpu_bo_reserve(*bo, false) == 0)) { 298 + if (likely(amdgpu_bo_reserve(*bo, true) == 0)) { 299 299 if (cpu_addr) 300 300 amdgpu_bo_kunmap(*bo); 301 301