drm/amdgpu: vcn_4_0 set instance 0 init sched score to 1
authorSonny Jiang <sonjiang@amd.com>
Tue, 6 Jun 2023 21:18:52 +0000 (17:18 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 21 Jun 2023 14:00:56 +0000 (16:00 +0200)
commit5d1fdfb3d185a9726478ba174235eff7c16f1101
tree86e86a0477c40ab42dc0d201fe29a2ad0ba56664
parentf6d74371ce15e176020ea2441d70c51c7457b680
drm/amdgpu: vcn_4_0 set instance 0 init sched score to 1

commit 9db5ec1ceb5303398ec4f899d691073d531257c3 upstream.

Only vcn0 can process AV1 codecx. In order to use both vcn0 and
vcn1 in h264/265 transcode to AV1 cases, set vcn0 sched score to 1
at initialization time.

Signed-off-by: Sonny Jiang <sonjiang@amd.com>
Reviewed-by: Leo Liu <leo.liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org # 6.1.x
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/amd/amdgpu/vcn_v4_0.c