aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
diff options
context:
space:
mode:
authorMathieu Desnoyers <[email protected]>2024-12-03 16:35:58 +0000
committerIngo Molnar <[email protected]>2024-12-05 13:25:28 +0000
commit63a48181fbcddefe5fb4c6618938bb64c543945b (patch)
tree203e7fa55596c828d847b37c6cf971c915ad1976 /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
parentlocking/lockdep: Enforce PROVE_RAW_LOCK_NESTING only if ARCH_SUPPORTS_RT (diff)
downloadkernel-63a48181fbcddefe5fb4c6618938bb64c543945b.tar.gz
kernel-63a48181fbcddefe5fb4c6618938bb64c543945b.zip
smp/scf: Evaluate local cond_func() before IPI side-effects
In smp_call_function_many_cond(), the local cond_func() is evaluated after triggering the remote CPU IPIs. If cond_func() depends on loading shared state updated by other CPU's IPI handlers func(), then triggering execution of remote CPUs IPI before evaluating cond_func() may have unexpected consequences. One example scenario is evaluating a jiffies delay in cond_func(), which is updated by func() in the IPI handlers. This situation can prevent execution of periodic cleanup code on the local CPU. Signed-off-by: Mathieu Desnoyers <[email protected]> Signed-off-by: Ingo Molnar <[email protected]> Reviewed-by: Rik van Riel <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Thomas Gleixner <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
0 files changed, 0 insertions, 0 deletions