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

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.

Changes from v2->v3:
1. Removed redundant header includes.

Changes from v1->v2:
1. Rebased on top of latest upstream Qemu (with MSEL changes for sifive_u).
2. Improved the code organization

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                 | 103 ++++++++++++++++++++++++++++++++
hw/riscv/sifive_u.c             |  46 ++++++++------
hw/riscv/spike.c                |  55 +++++------------
hw/riscv/virt.c                 |  54 +++++------------
include/hw/riscv/boot.h         |   8 +++
include/hw/riscv/boot_opensbi.h |  58 ++++++++++++++++++
6 files changed, 228 insertions(+), 96 deletions(-)
create mode 100644 include/hw/riscv/boot_opensbi.h

--
2.26.2



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

end of thread, other threads:[~2020-06-30  1:06 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-06-26  0:33 [PATCH v3 0/3] Add OpenSBI dynamic firmware support Atish Patra
2020-06-26  0:33 ` [PATCH v3 1/3] riscv: Unify Qemu's reset vector code path Atish Patra
2020-06-26 10:25   ` Bin Meng
2020-06-26  0:33 ` [PATCH v3 2/3] RISC-V: Copy the fdt in dram instead of ROM Atish Patra
2020-06-26 11:49   ` Bin Meng
2020-06-26 16:58     ` Atish Patra
2020-06-27  2:54       ` Bin Meng
2020-06-27  4:37         ` Atish Patra
2020-06-27  5:22           ` Alistair Francis
2020-06-27  9:55           ` Bin Meng
2020-06-27 10:03             ` Bin Meng
2020-06-29 18:50             ` Atish Patra
2020-06-30  1:04               ` Bin Meng
2020-06-26  0:33 ` [PATCH v3 3/3] riscv: Add opensbi firmware dynamic support Atish Patra
2020-06-26 12:17   ` Bin Meng
2020-06-26 18:48     ` Atish Patra

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).