drm/amdgpu/vce1: Don't repeat GTT MGR node allocation
authorTimur Kristóf <timur.kristof@gmail.com>
Wed, 13 May 2026 20:04:12 +0000 (22:04 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 18 May 2026 22:17:00 +0000 (18:17 -0400)
commit8d2a20c1721cb17e22821e1b4ecbb02d475d91c5
treea993ab299270dcc5812302c25a945dcc565b8c8f
parentf370ec9b164698a9ca1a7b59bfbea07f70df769d
drm/amdgpu/vce1: Don't repeat GTT MGR node allocation

Only allocate entries from the GTT manager when the
VCE GTT node is not allocated yet. This prevents the
possibility of allocating them multiple times, which
causes issues during GPU reset and suspend/resume.

Fixes: 71aec08f80e7 ("amdgpu/vce: use amdgpu_gtt_mgr_alloc_entries")
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>
drivers/gpu/drm/amd/amdgpu/vce_v1_0.c