Skip to content

arm/arm64: smp: on_cpu improvements

Andrew Jones kvm 2 versions Applied

Status from this message: Applied, thanks.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 2 repliesApplied
  2. v12 patches 1 replySuperseded

Changes in v2 from the cover letter

- fix race in cpu_wait() by ordering set/check correctly

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/2arm/arm64: smp: cpu0 is speciallib/arm/asm/smp.h lib/arm/smp.c+13 -50 replies
2/2arm/arm64: smp: add deadlock detectionlib/arm/smp.c+25 -50 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH kvm-unit-tests v2 0/2] arm/arm64: smp: on_cpu improvements

After posting on_cpu() support yesterday I thought of some potential issues.
1) cpu0 was the only cpu allowed to call on_cpus, and no cpu was allowed to call on_cpu on cpu0 (as it'll never idle).
2) deadlocks are easy with this idle state scheduling model, but also easy to detect, so we should.

v2:
- fix race in cpu_wait() by ordering set/check correctly

Andrew Jones (2):
arm/arm64: smp: cpu0 is special
arm/arm64: smp: add deadlock detection

 lib/arm/asm/smp.h |  2 ++
 lib/arm/smp.c     | 46 ++++++++++++++++++++++++++++++++++++----------
 2 files changed, 38 insertions(+), 10 deletions(-)
Signature · 1 line
2.9.4