summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2024-08-30 03:42:47 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2024-08-30 03:42:47 +0000
commitbfdf876d826693b93d4071e253c34468ac36649b (patch)
tree9739e410c98b82f62fc245b0106e3ef8c04050e1 /sys
parent0610caaed8ebb47f24ff132e0fa49cef967e7971 (diff)
drm/amdgpu/jpeg2: properly set atomics vmid field
From Alex Deucher 0e93fa4027cf2324b34b2158d58175c4cd4a2e01 in linux-6.6.y/6.6.48 e414a304f2c5368a84f03ad34d29b89f965a33c9 in mainline linux
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/pci/drm/amd/amdgpu/jpeg_v2_0.c4
1 files 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));