Skip to content

Commit 445d336

Browse files
committed
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: e4812ab ("drm/virtio: Refactor and optimize job submission code path") Cc: <[email protected]> # v6.4+ Signed-off-by: Dmitry Osipenko <[email protected]> Reviewed-by: Rob Clark <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent a9bf3ef commit 445d336

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/virtio/virtgpu_submit.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ struct virtio_gpu_submit {
4848
static int virtio_gpu_do_fence_wait(struct virtio_gpu_submit *submit,
4949
struct dma_fence *in_fence)
5050
{
51-
u32 context = submit->fence_ctx + submit->ring_idx;
51+
u64 context = submit->fence_ctx + submit->ring_idx;
5252

5353
if (dma_fence_match_context(in_fence, context))
5454
return 0;

0 commit comments

Comments
 (0)