From: jsg Date: Fri, 30 Aug 2024 03:46:49 +0000 (+0000) Subject: drm/amdgpu/jpeg4: properly set atomics vmid field X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=6e341069377c5adaaa964fffd9ad12e16831b0e6;p=openbsd drm/amdgpu/jpeg4: properly set atomics vmid field From Alex Deucher 09717678737b942159daebe6094134568dd28d1c in linux-6.6.y/6.6.48 e6c6bd6253e792cee6c5c065e106e87b9f0d9ae9 in mainline linux --- diff --git a/sys/dev/pci/drm/amd/amdgpu/jpeg_v4_0_3.c b/sys/dev/pci/drm/amd/amdgpu/jpeg_v4_0_3.c index 4e540d1b73a..ed077b3da3c 100644 --- a/sys/dev/pci/drm/amd/amdgpu/jpeg_v4_0_3.c +++ b/sys/dev/pci/drm/amd/amdgpu/jpeg_v4_0_3.c @@ -769,11 +769,11 @@ static void jpeg_v4_0_3_dec_ring_emit_ib(struct amdgpu_ring *ring, amdgpu_ring_write(ring, PACKETJ(regUVD_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(regUVD_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(regUVD_LMI_JRBC_IB_64BIT_BAR_LOW_INTERNAL_OFFSET, 0, 0, PACKETJ_TYPE0));