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>
This commit is contained in:
parent
f6d74371ce
commit
5d1fdfb3d1
1 changed files with 5 additions and 1 deletions
|
|
@ -117,7 +117,11 @@ static int vcn_v4_0_sw_init(void *handle)
|
||||||
if (adev->vcn.harvest_config & (1 << i))
|
if (adev->vcn.harvest_config & (1 << i))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
atomic_set(&adev->vcn.inst[i].sched_score, 0);
|
/* Init instance 0 sched_score to 1, so it's scheduled after other instances */
|
||||||
|
if (i == 0)
|
||||||
|
atomic_set(&adev->vcn.inst[i].sched_score, 1);
|
||||||
|
else
|
||||||
|
atomic_set(&adev->vcn.inst[i].sched_score, 0);
|
||||||
|
|
||||||
/* VCN UNIFIED TRAP */
|
/* VCN UNIFIED TRAP */
|
||||||
r = amdgpu_irq_add_id(adev, amdgpu_ih_clientid_vcns[i],
|
r = amdgpu_irq_add_id(adev, amdgpu_ih_clientid_vcns[i],
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue