drm/amdgpu: Fix VCE 3 ring align_mask
authorDavid Rosca <david.rosca@amd.com>
Thu, 20 Aug 2026 14:32:51 +0000 (16:32 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 25 Aug 2026 22:17:35 +0000 (18:17 -0400)
The largest frame is 20 dwords, so 0xf mask is too small.
This was always wrong, but we were lucky with the VCE_CMD_END
commands inserted after fence and vm_flush.

Fixes: 8897ea8c761b ("drm/amdgpu: Implement insert_end for VCE 3")
Cc: stable@vger.kernel.org
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: David Rosca <david.rosca@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/vce_v3_0.c

index a9497e2..4dbbeaf 100644 (file)
@@ -891,7 +891,7 @@ static const struct amdgpu_ring_funcs vce_v3_0_ring_phys_funcs = {
 
 static const struct amdgpu_ring_funcs vce_v3_0_ring_vm_funcs = {
        .type = AMDGPU_RING_TYPE_VCE,
-       .align_mask = 0xf,
+       .align_mask = 0x1f,
        .nop = VCE_CMD_NO_OP,
        .support_64bit_ptrs = false,
        .no_user_fence = true,