All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 0/7] SMP support for RISC-V
@ 2019-02-11 22:13 Lukas Auer
  2019-02-11 22:13 ` [U-Boot] [PATCH 1/7] riscv: add infrastructure for calling functions on other harts Lukas Auer
                   ` (7 more replies)
  0 siblings, 8 replies; 45+ messages in thread
From: Lukas Auer @ 2019-02-11 22:13 UTC (permalink / raw)
  To: u-boot

This patch series adds SMP support for RISC-V to U-Boot. It allows
U-Boot to run on multi-hart systems and will boot images passed to bootm
on all harts. The bootm command is currently the only one that will boot
images on all harts, bootefi is not yet supported.

The patches have been successfully tested on both QEMU (machine and
supervisor mode) and the HiFive Unleashed board [1] (supervisor mode),
using BBL and OpenSBI.
Mainline QEMU requires two patches [2, 3] to run in this configuration.
I will send a follow-up patch to enable SMP support on the HiFive
Unleashed board.

[1]: https://patchwork.ozlabs.org/project/uboot/list/?series=91125
[2]: https://patchwork.ozlabs.org/patch/1039493/
[3]: https://patchwork.ozlabs.org/patch/1039082/


Lukas Auer (7):
  riscv: add infrastructure for calling functions on other harts
  riscv: import the supervisor binary interface header file
  riscv: implement IPI platform functions using SBI
  riscv: delay initialization of caches and debug UART
  riscv: add support for multi-hart systems
  riscv: boot images passed to bootm on all harts
  riscv: qemu: enable SMP

 arch/riscv/Kconfig                   |  36 +++++++++
 arch/riscv/cpu/start.S               | 116 +++++++++++++++++++++++++--
 arch/riscv/include/asm/csr.h         |   1 +
 arch/riscv/include/asm/global_data.h |   5 ++
 arch/riscv/include/asm/sbi.h         |  94 ++++++++++++++++++++++
 arch/riscv/include/asm/smp.h         |  53 ++++++++++++
 arch/riscv/lib/Makefile              |   2 +
 arch/riscv/lib/bootm.c               |  13 ++-
 arch/riscv/lib/sbi_ipi.c             |  25 ++++++
 arch/riscv/lib/smp.c                 | 110 +++++++++++++++++++++++++
 board/emulation/qemu-riscv/Kconfig   |   1 +
 11 files changed, 447 insertions(+), 9 deletions(-)
 create mode 100644 arch/riscv/include/asm/sbi.h
 create mode 100644 arch/riscv/include/asm/smp.h
 create mode 100644 arch/riscv/lib/sbi_ipi.c
 create mode 100644 arch/riscv/lib/smp.c

-- 
2.20.1

^ permalink raw reply	[flat|nested] 45+ messages in thread

end of thread, other threads:[~2019-03-14 21:04 UTC | newest]

Thread overview: 45+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-11 22:13 [U-Boot] [PATCH 0/7] SMP support for RISC-V Lukas Auer
2019-02-11 22:13 ` [U-Boot] [PATCH 1/7] riscv: add infrastructure for calling functions on other harts Lukas Auer
2019-02-12  1:44   ` Anup Patel
2019-02-17 21:55     ` Auer, Lukas
     [not found]       ` <752D002CFF5D0F4FA35C0100F1D73F3FA4087D3C@ATCPCS16.andestech.com>
2019-02-18  3:24         ` Rick Chen
2019-02-18  3:40           ` Anup Patel
2019-02-18  9:53             ` Auer, Lukas
2019-02-12  3:03   ` Bin Meng
2019-02-17 22:00     ` Auer, Lukas
2019-02-18  4:58   ` Anup Patel
2019-02-18 10:01     ` Auer, Lukas
2019-02-18 11:41       ` Auer, Lukas
2019-02-18 13:16         ` Anup Patel
2019-02-18 16:04           ` Auer, Lukas
2019-02-19  8:16         ` Anup Patel
2019-02-25 11:13           ` Auer, Lukas
2019-02-11 22:13 ` [U-Boot] [PATCH 2/7] riscv: import the supervisor binary interface header file Lukas Auer
2019-02-12  2:32   ` Anup Patel
2019-02-12  3:03   ` Bin Meng
2019-02-11 22:13 ` [U-Boot] [PATCH 3/7] riscv: implement IPI platform functions using SBI Lukas Auer
2019-02-12  2:32   ` Anup Patel
2019-02-12  3:03   ` Bin Meng
2019-02-11 22:13 ` [U-Boot] [PATCH 4/7] riscv: delay initialization of caches and debug UART Lukas Auer
2019-02-12  2:32   ` Anup Patel
2019-02-12  3:03   ` Bin Meng
2019-02-11 22:13 ` [U-Boot] [PATCH 5/7] riscv: add support for multi-hart systems Lukas Auer
2019-02-12  1:48   ` Anup Patel
2019-02-17 22:02     ` Auer, Lukas
     [not found]   ` <752D002CFF5D0F4FA35C0100F1D73F3FA408502C@ATCPCS16.andestech.com>
2019-02-15  6:51     ` Rick Chen
2019-02-17 22:06       ` Auer, Lukas
2019-03-07  9:30     ` Rick Chen
2019-03-10 13:58       ` Auer, Lukas
2019-03-10 14:54         ` Anup Patel
2019-03-10 18:12           ` Auer, Lukas
2019-03-10 20:56             ` Anup Patel
2019-03-12  1:15             ` Rick Chen
2019-03-14 21:04               ` Auer, Lukas
2019-02-11 22:13 ` [U-Boot] [PATCH 6/7] riscv: boot images passed to bootm on all harts Lukas Auer
2019-02-12  2:33   ` Anup Patel
2019-02-12  3:04   ` Bin Meng
2019-02-11 22:13 ` [U-Boot] [PATCH 7/7] riscv: qemu: enable SMP Lukas Auer
2019-02-12  2:34   ` Anup Patel
2019-02-12  3:05   ` Bin Meng
2019-02-11 22:16 ` [U-Boot] [PATCH 0/7] SMP support for RISC-V Philipp Tomsich
2019-02-11 22:44   ` Auer, Lukas

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.