drm/amdgpu/jpeg2: properly set atomics vmid field
authorjsg <jsg@openbsd.org>
Fri, 30 Aug 2024 03:42:46 +0000 (03:42 +0000)
committerjsg <jsg@openbsd.org>
Fri, 30 Aug 2024 03:42:46 +0000 (03:42 +0000)
From Alex Deucher
0e93fa4027cf2324b34b2158d58175c4cd4a2e01 in linux-6.6.y/6.6.48
e414a304f2c5368a84f03ad34d29b89f965a33c9 in mainline linux

sys/dev/pci/drm/amd/amdgpu/jpeg_v2_0.c

index d3fd39d..7e5bb35 100644 (file)
@@ -543,11 +543,11 @@ void jpeg_v2_0_dec_ring_emit_ib(struct amdgpu_ring *ring,
 
        amdgpu_ring_write(ring, PACKETJ(mmUVD_LMI_JRBC_IB_VMID_INTERNAL_OFFSET,
                0, 0, PACKETJ_TYPE0));
-       amdgpu_ring_write(ring, (vmid | (vmid << 4)));
+       amdgpu_ring_write(ring, (vmid | (vmid << 4) | (vmid << 8)));
 
        amdgpu_ring_write(ring, PACKETJ(mmUVD_LMI_JPEG_VMID_INTERNAL_OFFSET,
                0, 0, PACKETJ_TYPE0));
-       amdgpu_ring_write(ring, (vmid | (vmid << 4)));
+       amdgpu_ring_write(ring, (vmid | (vmid << 4) | (vmid << 8)));
 
        amdgpu_ring_write(ring, PACKETJ(mmUVD_LMI_JRBC_IB_64BIT_BAR_LOW_INTERNAL_OFFSET,
                0, 0, PACKETJ_TYPE0));