Skip to content

Commit

Permalink
drm/virtio: Fix type of dma-fence context variable
Browse files Browse the repository at this point in the history
Type of DMA fence context is u64. Fence-waiting code uses u32 for the
context variable, fix it.

Fixes: e4812ab ("drm/virtio: Refactor and optimize job submission code path")
Cc: <stable@vger.kernel.org> # v6.4+
Signed-off-by: Dmitry Osipenko <dmitry.osipenko@collabora.com>
Reviewed-by: Rob Clark <robdclark@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240714205009.3408298-1-dmitry.osipenko@collabora.com
  • Loading branch information
Dmitry Osipenko committed Jul 24, 2024
1 parent a9bf3ef commit 445d336
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/virtio/virtgpu_submit.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ struct virtio_gpu_submit {
static int virtio_gpu_do_fence_wait(struct virtio_gpu_submit *submit,
struct dma_fence *in_fence)
{
u32 context = submit->fence_ctx + submit->ring_idx;
u64 context = submit->fence_ctx + submit->ring_idx;

if (dma_fence_match_context(in_fence, context))
return 0;
Expand Down

0 comments on commit 445d336

Please sign in to comment.