Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/virtio: Fix type of dma-fence context variable

Type of DMA fence context is u64. Fence-waiting code uses u32 for the
context variable, fix it.

Fixes: e4812ab8e6b1 ("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

+1 -1
+1 -1
drivers/gpu/drm/virtio/virtgpu_submit.c
··· 48 48 static int virtio_gpu_do_fence_wait(struct virtio_gpu_submit *submit, 49 49 struct dma_fence *in_fence) 50 50 { 51 - u32 context = submit->fence_ctx + submit->ring_idx; 51 + u64 context = submit->fence_ctx + submit->ring_idx; 52 52 53 53 if (dma_fence_match_context(in_fence, context)) 54 54 return 0;