summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/dev/pci/drm/amd/amdgpu/vcn_v4_0.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/pci/drm/amd/amdgpu/vcn_v4_0.c b/sys/dev/pci/drm/amd/amdgpu/vcn_v4_0.c
index b8556028725..15408c80420 100644
--- a/sys/dev/pci/drm/amd/amdgpu/vcn_v4_0.c
+++ b/sys/dev/pci/drm/amd/amdgpu/vcn_v4_0.c
@@ -117,7 +117,11 @@ static int vcn_v4_0_sw_init(void *handle)
if (adev->vcn.harvest_config & (1 << i))
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 */
r = amdgpu_irq_add_id(adev, amdgpu_ih_clientid_vcns[i],