]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amdgpu/vce3: Fix VCE 3 firmware size and offsets
authorTimur Kristóf <timur.kristof@gmail.com>
Wed, 13 May 2026 20:04:16 +0000 (22:04 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 19 May 2026 16:11:07 +0000 (12:11 -0400)
commit0c61a9732a35b0a96213119c8212349da9cda117
tree3402d30933f2aa0defc3cc0f29d4e00c5dbcf440
parent5dc3d16cd072a3b8595f430b6683d688d1d62f37
drm/amdgpu/vce3: Fix VCE 3 firmware size and offsets

The VCPU BO contains the actual FW at an offset, but
it was not calculated into the VCPU BO size.
Subtract this from the FW size to make sure there is
no out of bounds access.

This may fix VM faults when using VCE 3.

Cc: John Olender <john.olender@gmail.com>
Fixes: e98226221467 ("drm/amdgpu: recalculate VCE firmware BO size")
Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit 15c369257bd85f47a514744f960c5a51c867716f)
drivers/gpu/drm/amd/amdgpu/vce_v3_0.c