Skip to content

riscv: Correctly handle IPIs already pending upon boot

Sean Anderson u-boot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7Revert "riscv: Clear pending interrupts before enabling IPIs"arch/riscv/cpu/start.S+0 -22 replies
1/7Revert "riscv: Clear pending interrupts before enabling IPIs"+0 -01 reply
1/7Revert "riscv: Clear pending interrupts before enabling IPIs"+0 -00 replies
1/7Revert "riscv: Clear pending interrupts before enabling IPIs"+0 -01 reply
1/7Revert "riscv: Clear pending interrupts before enabling IPIs"+0 -01 reply
1/7Revert "riscv: Clear pending interrupts before enabling IPIs"+0 -00 replies
2/7riscv: Match memory barriers between send_ipi_many and handle_ipiarch/riscv/lib/smp.c+2 -01 reply
3/7riscv: Use NULL as a sentinel value for smp_call_functionarch/riscv/lib/smp.c+22 -47 replies
3/7riscv: Use NULL as a sentinel value for smp_call_function+0 -03 replies
3/7riscv: Use NULL as a sentinel value for smp_call_function+0 -00 replies
3/7riscv: Use NULL as a sentinel value for smp_call_function+0 -00 replies
4/7riscv: Clear pending IPIs on initializationarch/riscv/cpu/cpu.c+18 -01 reply
5/7riscv: Add fence to available_harts_lockarch/riscv/cpu/start.S+3 -32 replies
5/7riscv: Add fence to available_harts_lock+0 -00 replies
6/7riscv: Ensure gp is NULL or points to valid dataarch/riscv/cpu/start.S arch/riscv/lib/interrupts.c+19 -41 reply
6/7riscv: Ensure gp is NULL or points to valid data+0 -00 replies
6/7riscv: Ensure gp is NULL or points to valid data+0 -00 replies
7/7riscv: Add some comments to start.Sarch/riscv/cpu/start.S+17 -21 reply

Reviews trailers per patch

12 of 18 patches have a Reviewed-by or Acked-by.

PatchRick ChenBin Meng
1/7R-b
1/7R-b
1/7R-b
1/7R-b
1/7R-b
1/7R-b
2/7R-b
3/7R-b
3/7R-b
3/7R-b
3/7R-b
4/7R-b
5/7
5/7
6/7
6/7
6/7
7/7

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/7] riscv: Correctly handle IPIs already pending upon boot

On the K210, the prior stage bootloader does not clear IPIs. This presents a problem, because U-Boot up until this point assumes (with one exception) that IPIs are cleared when it starts. This series attempts to fix this in a robust manner, and fix several concurrency bugs I noticed while fixing these other areas. Heinrich previously submitted a patch addressing part of this problem in [1].

[1] https://patchwork.ozlabs.org/project/uboot/patch/20200811035648.3284-1-xypron.glpk at gmx.de/

Sean Anderson (7):
Revert "riscv: Clear pending interrupts before enabling IPIs"
riscv: Match memory barriers between send_ipi_many and handle_ipi
riscv: Use NULL as a sentinel value for smp_call_function
riscv: Clear pending IPIs on initialization
riscv: Add fence to available_harts_lock
riscv: Ensure gp is NULL or points to valid data
riscv: Add some comments to start.S

 arch/riscv/cpu/cpu.c        | 18 ++++++++++++++
 arch/riscv/cpu/start.S      | 47 +++++++++++++++++++++++++++++--------
 arch/riscv/lib/interrupts.c |  3 ++-
 arch/riscv/lib/smp.c        | 26 +++++++++++++++++---
 4 files changed, 80 insertions(+), 14 deletions(-)
Signature · 1 line
2.28.0