drm/amdgpu/vcn4: Fix IB parsing with multiple engine info packages
authorDavid Rosca <david.rosca@amd.com>
Mon, 18 Aug 2025 07:06:58 +0000 (09:06 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 9 Sep 2025 20:41:49 +0000 (16:41 -0400)
commit2b10cb58d7a3fd621ec9b2ba765a092e562ef998
tree4a744883ed776a34a974d655025e5e0331d1e382
parent857ccfc19f9be1269716f3d681650c1bd149a656
drm/amdgpu/vcn4: Fix IB parsing with multiple engine info packages

There can be multiple engine info packages in one IB and the first one
may be common engine, not decode/encode.
We need to parse the entire IB instead of stopping after finding first
engine info.

Signed-off-by: David Rosca <david.rosca@amd.com>
Reviewed-by: Leo Liu <leo.liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit dc8f9f0f45166a6b37864e7a031c726981d6e5fc)
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/amdgpu/vcn_v4_0.c