Re: [RFT PATCH v3 1/9] RISC-V: Move DT mapping outof fixmap

2020-07-21 Thread Anup Patel
On Tue, Jul 21, 2020 at 2:32 PM Ard Biesheuvel wrote: > > On Tue, 21 Jul 2020 at 11:57, Arnd Bergmann wrote: > > > > On Tue, Jul 21, 2020 at 6:18 AM Atish Patra wrote: > > > On Sat, Jul 18, 2020 at 2:24 AM Arnd Bergmann wrote: > > > > On Sat, Jul 18, 2020 at 3:05 AM Atish Patra > > > >

Re: [RFT PATCH v3 1/9] RISC-V: Move DT mapping outof fixmap

2020-07-21 Thread Ard Biesheuvel
On Tue, 21 Jul 2020 at 11:57, Arnd Bergmann wrote: > > On Tue, Jul 21, 2020 at 6:18 AM Atish Patra wrote: > > On Sat, Jul 18, 2020 at 2:24 AM Arnd Bergmann wrote: > > > On Sat, Jul 18, 2020 at 3:05 AM Atish Patra wrote: > > > > That's what the original code was doing. A fixmap entry was added

Re: [RFT PATCH v3 1/9] RISC-V: Move DT mapping outof fixmap

2020-07-21 Thread Arnd Bergmann
On Tue, Jul 21, 2020 at 6:18 AM Atish Patra wrote: > On Sat, Jul 18, 2020 at 2:24 AM Arnd Bergmann wrote: > > On Sat, Jul 18, 2020 at 3:05 AM Atish Patra wrote: > > > That's what the original code was doing. A fixmap entry was added to > > > map the original fdt > > > location to a virtual so

Re: [RFT PATCH v3 1/9] RISC-V: Move DT mapping outof fixmap

2020-07-20 Thread Atish Patra
On Sat, Jul 18, 2020 at 2:24 AM Arnd Bergmann wrote: > > On Sat, Jul 18, 2020 at 3:05 AM Atish Patra wrote: > > On Thu, Jul 16, 2020 at 11:32 PM Arnd Bergmann wrote: > > > On Fri, Jul 17, 2020 at 1:41 AM Atish Patra wrote: > > > > +#define DTB_EARLY_SIZE SZ_1M > > > > +static char

Re: [RFT PATCH v3 1/9] RISC-V: Move DT mapping outof fixmap

2020-07-18 Thread Arnd Bergmann
On Sat, Jul 18, 2020 at 3:05 AM Atish Patra wrote: > On Thu, Jul 16, 2020 at 11:32 PM Arnd Bergmann wrote: > > On Fri, Jul 17, 2020 at 1:41 AM Atish Patra wrote: > > > +#define DTB_EARLY_SIZE SZ_1M > > > +static char early_dtb[DTB_EARLY_SIZE] __initdata; > > > > Hardcoding the size in

Re: [RFT PATCH v3 1/9] RISC-V: Move DT mapping outof fixmap

2020-07-17 Thread Atish Patra
On Thu, Jul 16, 2020 at 11:32 PM Arnd Bergmann wrote: > > On Fri, Jul 17, 2020 at 1:41 AM Atish Patra wrote: > > > > From: Anup Patel > > > > Currently, RISC-V reserves 1MB of fixmap memory for device tree. However, > > it maps only single PMD (2MB) space for fixmap which leaves only < 1MB

Re: [RFT PATCH v3 1/9] RISC-V: Move DT mapping outof fixmap

2020-07-17 Thread Arnd Bergmann
On Fri, Jul 17, 2020 at 1:41 AM Atish Patra wrote: > > From: Anup Patel > > Currently, RISC-V reserves 1MB of fixmap memory for device tree. However, > it maps only single PMD (2MB) space for fixmap which leaves only < 1MB space > left for other kernel features such as early ioremap which

[RFT PATCH v3 1/9] RISC-V: Move DT mapping outof fixmap

2020-07-16 Thread Atish Patra
From: Anup Patel Currently, RISC-V reserves 1MB of fixmap memory for device tree. However, it maps only single PMD (2MB) space for fixmap which leaves only < 1MB space left for other kernel features such as early ioremap which requires fixmap as well. The fixmap size can be increased by another