drm/amdgpu/vcn: Allow limiting ctx to instance 0 for AV1 at any time
authorDavid Rosca <david.rosca@amd.com>
Mon, 18 Aug 2025 07:18:37 +0000 (09:18 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 9 Sep 2025 20:42:26 +0000 (16:42 -0400)
commit3318f2d20ce48849855df5e190813826d0bc3653
tree1309df4c56f165041427a6cc142ed2359fb9451e
parent2b10cb58d7a3fd621ec9b2ba765a092e562ef998
drm/amdgpu/vcn: Allow limiting ctx to instance 0 for AV1 at any time

There is no reason to require this to happen on first submitted IB only.
We need to wait for the queue to be idle, but it can be done at any
time (including when there are multiple video sessions active).

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 8908fdce0634a623404e9923ed2f536101a39db5)
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c
drivers/gpu/drm/amd/amdgpu/vcn_v4_0.c