qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH  0/3] Add OpenSBI dynamic firmware support
@ 2020-06-16 19:26 Atish Patra
  2020-06-16 19:26 ` [PATCH 1/3] riscv: Unify Qemu's reset vector code path Atish Patra
                   ` (4 more replies)
  0 siblings, 5 replies; 14+ messages in thread
From: Atish Patra @ 2020-06-16 19:26 UTC (permalink / raw)
  To: qemu-devel
  Cc: qemu-riscv, Sagar Karandikar, Bastian Koppelmann, Atish Patra,
	Alistair Francis, Palmer Dabbelt

This series adds support OpenSBI dynamic firmware support to Qemu.
Qemu loader passes the information about the DT and next stage (i.e. kernel
or U-boot) via "a2" register. It allows the user to build bigger OS images
without worrying about overwriting DT. It also unifies the reset vector code
in rom and dt placement. Now, the DT is copied directly in DRAM instead of ROM.

The changes have been verified on following qemu machines.

64bit:
 - spike, sifive_u, virt
32bit:
 - virt

I have also verified fw_jump on all the above platforms to ensure that this
series doesn't break the existing setup.

Atish Patra (3):
riscv: Unify Qemu's reset vector code path
RISC-V: Copy the fdt in dram instead of ROM
riscv: Add opensbi firmware dynamic support

hw/riscv/boot.c                 | 95 +++++++++++++++++++++++++++++++++
hw/riscv/sifive_u.c             | 59 ++++++++------------
hw/riscv/spike.c                | 55 ++++++++-----------
hw/riscv/virt.c                 | 55 ++++++++-----------
include/hw/riscv/boot.h         |  5 ++
include/hw/riscv/boot_opensbi.h | 58 ++++++++++++++++++++
6 files changed, 223 insertions(+), 104 deletions(-)
create mode 100644 include/hw/riscv/boot_opensbi.h

--
2.26.2



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

end of thread, other threads:[~2020-06-19 20:35 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-06-16 19:26 [PATCH 0/3] Add OpenSBI dynamic firmware support Atish Patra
2020-06-16 19:26 ` [PATCH 1/3] riscv: Unify Qemu's reset vector code path Atish Patra
2020-06-18  8:02   ` Bin Meng
2020-06-19  1:55     ` Atish Patra
2020-06-19 16:37   ` Alexander Richardson
2020-06-19 20:34     ` Atish Patra
2020-06-16 19:26 ` [PATCH 2/3] RISC-V: Copy the fdt in dram instead of ROM Atish Patra
2020-06-18  8:25   ` Bin Meng
2020-06-19  1:53     ` Atish Patra
2020-06-16 19:27 ` [PATCH 3/3] riscv: Add opensbi firmware dynamic support Atish Patra
2020-06-16 22:39 ` [PATCH 0/3] Add OpenSBI dynamic firmware support no-reply
2020-06-18  8:56 ` Bin Meng
2020-06-18 18:19   ` Atish Patra
2020-06-19 16:32     ` Alexander Richardson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).