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

drm/amdgpu: clear the shadow fence as well



It also needs to be initialized.

Signed-off-by: default avatarChristian König <christian.koenig@amd.com>
Reviewed-by: default avatarChunming Zhou <david1.zhou@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent e5197a4c
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -336,6 +336,11 @@ static int amdgpu_vm_clear_bo(struct amdgpu_device *adev,

	amdgpu_bo_fence(bo, fence, true);
	dma_fence_put(fence);

	if (bo->shadow)
		return amdgpu_vm_clear_bo(adev, vm, bo->shadow,
					  level, pte_support_ats);

	return 0;

error_free: