Skip to content

Commit 0a33b11

Browse files
ChristianKoenigAMDalexdeucher
authored andcommitted
drm/amdgpu: mark force completed fences with -ECANCELED
When we force complete fences we should mark them as canceled. Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Luben Tuikov <luben.tuikov@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent b13eb02 commit 0a33b11

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -723,6 +723,7 @@ void amdgpu_fence_driver_set_error(struct amdgpu_ring *ring, int error)
723723
*/
724724
void amdgpu_fence_driver_force_completion(struct amdgpu_ring *ring)
725725
{
726+
amdgpu_fence_driver_set_error(ring, -ECANCELED);
726727
amdgpu_fence_write(ring, ring->fence_drv.sync_seq);
727728
amdgpu_fence_process(ring);
728729
}

0 commit comments

Comments
 (0)