[PATCH 2/2] drm/amdgpu/jpeg4: properly set atomics vmid field
Liu, Leo
Leo.Liu at amd.com
Tue Aug 6 17:25:53 UTC 2024
[AMD Official Use Only - AMD Internal Distribution Only]
The series is:
Reviewed-by: Leo Liu <leo.liu at amd.com>
> -----Original Message-----
> From: amd-gfx <amd-gfx-bounces at lists.freedesktop.org> On Behalf Of Alex
> Deucher
> Sent: Tuesday, August 6, 2024 1:03 PM
> To: amd-gfx at lists.freedesktop.org
> Cc: Deucher, Alexander <Alexander.Deucher at amd.com>;
> stable at vger.kernel.org
> Subject: [PATCH 2/2] drm/amdgpu/jpeg4: properly set atomics vmid field
>
> This needs to be set as well if the IB uses atomics.
>
> Signed-off-by: Alex Deucher <alexander.deucher at amd.com>
> Cc: stable at vger.kernel.org
> ---
> drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_3.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_3.c
> b/drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_3.c
> index ad524ddc9760..f4662920c653 100644
> --- a/drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_3.c
> +++ b/drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_3.c
> @@ -782,11 +782,11 @@ 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));
> --
> 2.45.2
More information about the amd-gfx
mailing list