aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
diff options
context:
space:
mode:
authorTim Chen <[email protected]>2023-09-07 17:42:21 +0000
committerIngo Molnar <[email protected]>2023-09-13 13:03:06 +0000
commit450e749707bc1755f22b505d9cd942d4869dc535 (patch)
treec5bba96bc95d14a8679acc9fd1420e595a525e30 /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
parentsched/fair: Optimize should_we_balance() for large SMT systems (diff)
downloadkernel-450e749707bc1755f22b505d9cd942d4869dc535.tar.gz
kernel-450e749707bc1755f22b505d9cd942d4869dc535.zip
sched/fair: Fix SMT4 group_smt_balance handling
For SMT4, any group with more than 2 tasks will be marked as group_smt_balance. Retain the behaviour of group_has_spare by marking the busiest group as the group which has the least number of idle_cpus. Also, handle rounding effect of adding (ncores_local + ncores_busy) when the local is fully idle and busy group imbalance is less than 2 tasks. Local group should try to pull at least 1 task in this case so imbalance should be set to 2 instead. Fixes: fee1759e4f04 ("sched/fair: Determine active load balance for SMT sched groups") Acked-by: Shrikanth Hegde <[email protected]> Signed-off-by: Tim Chen <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Signed-off-by: Ingo Molnar <[email protected]> Link: http://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
0 files changed, 0 insertions, 0 deletions