Re: [PATCH v3 2/3] RISC-V: Copy the fdt in dram instead of ROM

2020-06-29 Thread Bin Meng
On Tue, Jun 30, 2020 at 2:50 AM Atish Patra wrote: > > On Sat, Jun 27, 2020 at 2:55 AM Bin Meng wrote: > > > > On Sat, Jun 27, 2020 at 12:37 PM Atish Patra wrote: > > > > > > On Fri, Jun 26, 2020 at 7:54 PM Bin Meng wrote: > > > > > > > > Hi Atish, > > > > > > > > On Sat, Jun 27, 2020 at 12:58

Re: [PATCH v3 2/3] RISC-V: Copy the fdt in dram instead of ROM

2020-06-29 Thread Atish Patra
On Sat, Jun 27, 2020 at 2:55 AM Bin Meng wrote: > > On Sat, Jun 27, 2020 at 12:37 PM Atish Patra wrote: > > > > On Fri, Jun 26, 2020 at 7:54 PM Bin Meng wrote: > > > > > > Hi Atish, > > > > > > On Sat, Jun 27, 2020 at 12:58 AM Atish Patra > > > wrote: > > > > > > > > On Fri, Jun 26, 2020 at 4:

Re: [PATCH v3 2/3] RISC-V: Copy the fdt in dram instead of ROM

2020-06-27 Thread Bin Meng
On Sat, Jun 27, 2020 at 5:55 PM Bin Meng wrote: > > On Sat, Jun 27, 2020 at 12:37 PM Atish Patra wrote: > > > > On Fri, Jun 26, 2020 at 7:54 PM Bin Meng wrote: > > > > > > Hi Atish, > > > > > > On Sat, Jun 27, 2020 at 12:58 AM Atish Patra > > > wrote: > > > > > > > > On Fri, Jun 26, 2020 at 4:

Re: [PATCH v3 2/3] RISC-V: Copy the fdt in dram instead of ROM

2020-06-27 Thread Bin Meng
On Sat, Jun 27, 2020 at 12:37 PM Atish Patra wrote: > > On Fri, Jun 26, 2020 at 7:54 PM Bin Meng wrote: > > > > Hi Atish, > > > > On Sat, Jun 27, 2020 at 12:58 AM Atish Patra wrote: > > > > > > On Fri, Jun 26, 2020 at 4:50 AM Bin Meng wrote: > > > > > > > > Hi Atish, > > > > > > > > On Fri, Jun

Re: [PATCH v3 2/3] RISC-V: Copy the fdt in dram instead of ROM

2020-06-26 Thread Alistair Francis
On Fri, Jun 26, 2020 at 9:37 PM Atish Patra wrote: > > On Fri, Jun 26, 2020 at 7:54 PM Bin Meng wrote: > > > > Hi Atish, > > > > On Sat, Jun 27, 2020 at 12:58 AM Atish Patra wrote: > > > > > > On Fri, Jun 26, 2020 at 4:50 AM Bin Meng wrote: > > > > > > > > Hi Atish, > > > > > > > > On Fri, Jun

Re: [PATCH v3 2/3] RISC-V: Copy the fdt in dram instead of ROM

2020-06-26 Thread Atish Patra
On Fri, Jun 26, 2020 at 7:54 PM Bin Meng wrote: > > Hi Atish, > > On Sat, Jun 27, 2020 at 12:58 AM Atish Patra wrote: > > > > On Fri, Jun 26, 2020 at 4:50 AM Bin Meng wrote: > > > > > > Hi Atish, > > > > > > On Fri, Jun 26, 2020 at 8:33 AM Atish Patra wrote: > > > > > > > > Currently, the fdt i

Re: [PATCH v3 2/3] RISC-V: Copy the fdt in dram instead of ROM

2020-06-26 Thread Bin Meng
Hi Atish, On Sat, Jun 27, 2020 at 12:58 AM Atish Patra wrote: > > On Fri, Jun 26, 2020 at 4:50 AM Bin Meng wrote: > > > > Hi Atish, > > > > On Fri, Jun 26, 2020 at 8:33 AM Atish Patra wrote: > > > > > > Currently, the fdt is copied to the ROM after the reset vector. The > > > firmware > > > ha

Re: [PATCH v3 2/3] RISC-V: Copy the fdt in dram instead of ROM

2020-06-26 Thread Atish Patra
On Fri, Jun 26, 2020 at 4:50 AM Bin Meng wrote: > > Hi Atish, > > On Fri, Jun 26, 2020 at 8:33 AM Atish Patra 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-compute

Re: [PATCH v3 2/3] RISC-V: Copy the fdt in dram instead of ROM

2020-06-26 Thread Bin Meng
Hi Atish, On Fri, Jun 26, 2020 at 8:33 AM Atish Patra 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

[PATCH v3 2/3] RISC-V: Copy the fdt in dram instead of ROM

2020-06-25 Thread Atish Patra
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 e