mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-05 22:28:00 +00:00
drm/amdgpu: optimize moved handling only when vm_debug is inactive
Otherwise we would completely circumvent that debugging feature. Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Roger He <Hongbo.He@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
3cc1d3ea4a
commit
9b8cad2047
1 changed files with 1 additions and 1 deletions
|
@ -1685,7 +1685,7 @@ int amdgpu_vm_handle_moved(struct amdgpu_device *adev,
|
|||
if (resv == vm->root.base.bo->tbo.resv)
|
||||
clear = false;
|
||||
/* Try to reserve the BO to avoid clearing its ptes */
|
||||
else if (reservation_object_trylock(resv))
|
||||
else if (!amdgpu_vm_debug && reservation_object_trylock(resv))
|
||||
clear = false;
|
||||
/* Somebody else is using the BO right now */
|
||||
else
|
||||
|
|
Loading…
Add table
Reference in a new issue