Re: [PATCH] riscv: Fix memblock reservation for device tree blob

2019-10-08 Thread Palmer Dabbelt
On Tue, 08 Oct 2019 16:31:17 PDT (-0700), a...@eecs.berkeley.edu wrote: On 2019-10-08 15:38:15 -0700, Palmer Dabbelt wrote: On Fri, 20 Sep 2019 21:34:57 PDT (-0700), a...@brainfault.org wrote: > On Sat, Sep 21, 2019 at 6:30 AM Albert Ou wrote: >> >> This fixes an error with how the FDT blob is

Re: [PATCH] riscv: Fix memblock reservation for device tree blob

2019-10-08 Thread Albert Ou
On 2019-10-08 15:38:15 -0700, Palmer Dabbelt wrote: > On Fri, 20 Sep 2019 21:34:57 PDT (-0700), a...@brainfault.org wrote: > > On Sat, Sep 21, 2019 at 6:30 AM Albert Ou wrote: > >> > >> This fixes an error with how the FDT blob is reserved in memblock. > >> An incorrect physical address calculati

Re: [PATCH] riscv: Fix memblock reservation for device tree blob

2019-10-08 Thread Palmer Dabbelt
On Fri, 20 Sep 2019 21:34:57 PDT (-0700), a...@brainfault.org wrote: On Sat, Sep 21, 2019 at 6:30 AM Albert Ou wrote: This fixes an error with how the FDT blob is reserved in memblock. An incorrect physical address calculation exposed the FDT header to unintended corruption, which typically ma

Re: [PATCH] riscv: Fix memblock reservation for device tree blob

2019-09-20 Thread Anup Patel
On Sat, Sep 21, 2019 at 6:30 AM Albert Ou wrote: > > This fixes an error with how the FDT blob is reserved in memblock. > An incorrect physical address calculation exposed the FDT header to > unintended corruption, which typically manifested with of_fdt_raw_init() > faulting during late boot after

[PATCH] riscv: Fix memblock reservation for device tree blob

2019-09-20 Thread Albert Ou
This fixes an error with how the FDT blob is reserved in memblock. An incorrect physical address calculation exposed the FDT header to unintended corruption, which typically manifested with of_fdt_raw_init() faulting during late boot after fdt_totalsize() returned a wrong value. Systems with smalle