]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 19 Sep 2025 14:35:46 +0000 (16:35 +0200)
commit6dc4eddeb7e6cca7e1ab32cafbda79d06e652d84
tree1d03831b2574093ae602f183ea984612c2e0159d
parentc53a6447d1ab3f89f5e4e989ee79fcddb98782be
drm/amdgpu/vcn4: Fix IB parsing with multiple engine info packages

commit 2b10cb58d7a3fd621ec9b2ba765a092e562ef998 upstream.

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
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/amd/amdgpu/vcn_v4_0.c