artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7e7270c
)
drm/amdgpu: vcn_4_0 set instance 0 init sched score to 1
author
jsg
<jsg@openbsd.org>
Thu, 22 Jun 2023 05:07:09 +0000
(
05:07
+0000)
committer
jsg
<jsg@openbsd.org>
Thu, 22 Jun 2023 05:07:09 +0000
(
05:07
+0000)
From Sonny Jiang
5d1fdfb3d185a9726478ba174235eff7c16f1101
in linux-6.1.y/6.1.35
9db5ec1ceb5303398ec4f899d691073d531257c3
in mainline linux
sys/dev/pci/drm/amd/amdgpu/vcn_v4_0.c
patch
|
blob
|
history
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
b855602
..
15408c8
100644
(file)
--- 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],