aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
diff options
context:
space:
mode:
authorTejun Heo <[email protected]>2025-06-16 20:13:25 +0000
committerTejun Heo <[email protected]>2025-06-17 18:19:55 +0000
commit33796b91871ad4010c8188372dd1faf97cf0f1c0 (patch)
treee5fc2e04c0868a5157e5a634c41b73ecb50af7f3 /drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
parentsched_ext: Make scx_group_set_weight() always update tg->scx.weight (diff)
downloadkernel-33796b91871ad4010c8188372dd1faf97cf0f1c0.tar.gz
kernel-33796b91871ad4010c8188372dd1faf97cf0f1c0.zip
sched_ext, sched/core: Don't call scx_group_set_weight() prematurely from sched_create_group()
During task_group creation, sched_create_group() calls scx_group_set_weight() with CGROUP_WEIGHT_DFL to initialize the sched_ext portion. This is premature and ends up calling ops.cgroup_set_weight() with an incorrect @cgrp before ops.cgroup_init() is called. sched_create_group() should just initialize SCX related fields in the new task_group. Fix it by factoring out scx_tg_init() from sched_init() and making sched_create_group() call that function instead of scx_group_set_weight(). v2: Retain CONFIG_EXT_GROUP_SCHED ifdef in sched_init() as removing it leads to build failures on !CONFIG_GROUP_SCHED configs. Signed-off-by: Tejun Heo <[email protected]> Fixes: 819513666966 ("sched_ext: Add cgroup support") Cc: [email protected] # v6.12+
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c')
0 files changed, 0 insertions, 0 deletions