drm/virtio: rework virtio_fence_signaled
authorGurchetan Singh <gurchetansingh@chromium.org>
Tue, 1 Dec 2020 02:16:22 +0000 (18:16 -0800)
committerGerd Hoffmann <kraxel@redhat.com>
Wed, 2 Dec 2020 10:48:14 +0000 (11:48 +0100)
commitb9662c3a54eba1a06e2c14744dd78b065df120c5
treeb7e2c3c040146b51bfa0b283d199e0b17d4e8c87
parent41a90202cd150a2f1318582a985e27b4a3bd9a8d
drm/virtio: rework virtio_fence_signaled

virtio_gpu_fence_event_process sets the last_fence_id and
subsequently calls dma_fence_signal_locked(..).

dma_fence_signal_locked(..) sets DMA_FENCE_FLAG_SIGNALED_BIT,
which is actually checked before &dma_fence_ops.(*signaled) is
called.

The check for last_fence_id is therefore a bit redundant, and
it will not be sufficient to check the last_fence_id for multiple
synchronization timelines.  Remove it.

v3: add r-b tags

Signed-off-by: Gurchetan Singh <gurchetansingh@chromium.org>
Reviewed-by: Anthoine Bourgeois <anthoine.bourgeois@gmail.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20201201021623.619-2-gurchetansingh@chromium.org
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
drivers/gpu/drm/virtio/virtgpu_fence.c