summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
diff options
context:
space:
mode:
authorVineeth Pillai (Google) <vineeth@bitbyteword.org>2024-12-13 06:22:37 +0300
committerPeter Zijlstra <peterz@infradead.org>2024-12-13 14:57:35 +0300
commitc7f7e9c73178e0e342486fd31e7f363ef60e3f83 (patch)
tree5674b963eeac2f81dfe26134db4010bc5075dd3a /drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
parentb53127db1dbf7f1047cf35c10922d801dcd40324 (diff)
downloadlinux-c7f7e9c73178e0e342486fd31e7f363ef60e3f83.tar.xz
sched/dlserver: Fix dlserver time accounting
dlserver time is accounted when: - dlserver is active and the dlserver proxies the cfs task. - dlserver is active but deferred and cfs task runs after being picked through the normal fair class pick. dl_server_update is called in two places to make sure that both the above times are accounted for. But it doesn't check if dlserver is active or not. Now that we have this dl_server_active flag, we can consolidate dl_server_update into one place and all we need to check is whether dlserver is active or not. When dlserver is active there is only two possible conditions: - dlserver is deferred. - cfs task is running on behalf of dlserver. Fixes: a110a81c52a9 ("sched/deadline: Deferrable dl server") Signed-off-by: "Vineeth Pillai (Google)" <vineeth@bitbyteword.org> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Tested-by: Marcel Ziswiler <marcel.ziswiler@codethink.co.uk> # ROCK 5B Link: https://lore.kernel.org/r/20241213032244.877029-2-vineeth@bitbyteword.org
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c')
0 files changed, 0 insertions, 0 deletions