[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v4 2/4] RISC-V: Copy the fdt in dram instead of ROM
From: |
Bin Meng |
Subject: |
Re: [PATCH v4 2/4] RISC-V: Copy the fdt in dram instead of ROM |
Date: |
Fri, 3 Jul 2020 09:19:12 +0800 |
On Thu, Jul 2, 2020 at 2:39 AM Atish Patra <atish.patra@wdc.com> wrote:
>
> Currently, the fdt is copied to the ROM after the reset vector. The firmware
> has to copy it to DRAM. Instead of this, directly copy the device tree to a
> pre-computed dram address. The device tree load address should be as far as
> possible from kernel and initrd images. That's why it is kept at the end of
> the DRAM or 4GB whichever is lesser.
>
> Signed-off-by: Atish Patra <atish.patra@wdc.com>
> Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
> ---
> hw/riscv/boot.c | 53 +++++++++++++++++++++++++++++------------
> hw/riscv/sifive_u.c | 28 ++++++++++------------
> hw/riscv/spike.c | 7 +++++-
> hw/riscv/virt.c | 7 +++++-
> include/hw/riscv/boot.h | 4 +++-
> 5 files changed, 66 insertions(+), 33 deletions(-)
>
Reviewed-by: Bin Meng <bin.meng@windriver.com>
Tested-by: Bin Meng <bin.meng@windriver.com>
- [PATCH v4 0/4] Add OpenSBI dynamic firmware support, Atish Patra, 2020/07/01
- [PATCH v4 1/4] riscv: Unify Qemu's reset vector code path, Atish Patra, 2020/07/01
- [PATCH v4 3/4] riscv: Add opensbi firmware dynamic support, Atish Patra, 2020/07/01
- [PATCH v4 2/4] RISC-V: Copy the fdt in dram instead of ROM, Atish Patra, 2020/07/01
- Re: [PATCH v4 2/4] RISC-V: Copy the fdt in dram instead of ROM,
Bin Meng <=
- [PATCH v4 4/4] RISC-V: Support 64 bit start address, Atish Patra, 2020/07/01
- Re: [PATCH v4 0/4] Add OpenSBI dynamic firmware support, Alistair Francis, 2020/07/07