Re: [PATCH v4 1/3] amr64: map FDT as RW for early_init_dt_scan()

2019-05-25 Thread Mike Rapoport
On Thu, May 23, 2019 at 05:04:18PM -0700, Stephen Boyd wrote: > Quoting Hsin-Yi Wang (2019-05-19 09:04:44) > > diff --git a/arch/arm64/mm/mmu.c b/arch/arm64/mm/mmu.c > > index a170c6369a68..29648e86f7e5 100644 > > --- a/arch/arm64/mm/mmu.c > > +++ b/arch/arm64/mm/mmu.c > > @@ -940,12 +940,12 @@ voi

Re: [PATCH v4 1/3] amr64: map FDT as RW for early_init_dt_scan()

2019-05-24 Thread Rob Herring
On Mon, May 20, 2019 at 12:04:44AM +0800, Hsin-Yi Wang wrote: > Currently in arm64, FDT is mapped to RO before it's passed to > early_init_dt_scan(). However, there might be some code that needs > to modify FDT during init. Map FDT to RW until unflatten DT. typo in the subject. Otherwise, this on

Re: [PATCH v4 1/3] amr64: map FDT as RW for early_init_dt_scan()

2019-05-23 Thread Stephen Boyd
Quoting Hsin-Yi Wang (2019-05-19 09:04:44) > diff --git a/arch/arm64/mm/mmu.c b/arch/arm64/mm/mmu.c > index a170c6369a68..29648e86f7e5 100644 > --- a/arch/arm64/mm/mmu.c > +++ b/arch/arm64/mm/mmu.c > @@ -940,12 +940,12 @@ void *__init __fixmap_remap_fdt(phys_addr_t dt_phys, > int *size, pgprot_t p

Re: [PATCH v4 1/3] amr64: map FDT as RW for early_init_dt_scan()

2019-05-19 Thread Nicolas Boichat
s/amr64/arm64/ in the commit title. On Mon, May 20, 2019 at 1:09 AM Hsin-Yi Wang wrote: > > Currently in arm64, FDT is mapped to RO before it's passed to > early_init_dt_scan(). However, there might be some code that needs > to modify FDT during init. I'd give a specific example (i.e. mention th

[PATCH v4 1/3] amr64: map FDT as RW for early_init_dt_scan()

2019-05-19 Thread Hsin-Yi Wang
Currently in arm64, FDT is mapped to RO before it's passed to early_init_dt_scan(). However, there might be some code that needs to modify FDT during init. Map FDT to RW until unflatten DT. Signed-off-by: Hsin-Yi Wang --- change log v2->v4: * v3 abandoned * add an arg pgprot_t to fixmap_remap_fdt