Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9b8cad20 authored by Christian König's avatar Christian König Committed by Alex Deucher
Browse files

drm/amdgpu: optimize moved handling only when vm_debug is inactive



Otherwise we would completely circumvent that debugging feature.

Signed-off-by: default avatarChristian König <christian.koenig@amd.com>
Reviewed-by: default avatarRoger He <Hongbo.He@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 3cc1d3ea
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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