From cd6628ed63a03839b96a98900e417a4b95289a81 Mon Sep 17 00:00:00 2001 From: jsg Date: Fri, 30 Aug 2024 03:42:46 +0000 Subject: [PATCH] drm/amdgpu/jpeg2: properly set atomics vmid field 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/pci/drm/amd/amdgpu/jpeg_v2_0.c b/sys/dev/pci/drm/amd/amdgpu/jpeg_v2_0.c index d3fd39d4cd2..7e5bb35dd33 100644 --- a/sys/dev/pci/drm/amd/amdgpu/jpeg_v2_0.c +++ b/sys/dev/pci/drm/amd/amdgpu/jpeg_v2_0.c @@ -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)); -- 2.20.1