Re: [PATCH v3 3/5] RISC-V: Improve init_resources

2021-04-09 Thread Nick Kossifidis
Στις 2021-04-06 11:22, Geert Uytterhoeven έγραψε: Hi Nick, On Tue, Apr 6, 2021 at 10:11 AM Nick Kossifidis wrote: Hello Geert, Στις 2021-04-06 10:19, Geert Uytterhoeven έγραψε: > On Mon, Apr 5, 2021 at 10:57 AM Nick Kossifidis > wrote: >> * Kernel region is always present and we know where

Re: [PATCH v3 3/5] RISC-V: Improve init_resources

2021-04-06 Thread Geert Uytterhoeven
Hi Nick, On Tue, Apr 6, 2021 at 10:11 AM Nick Kossifidis wrote: > Hello Geert, > Στις 2021-04-06 10:19, Geert Uytterhoeven έγραψε: > > On Mon, Apr 5, 2021 at 10:57 AM Nick Kossifidis > > wrote: > >> * Kernel region is always present and we know where it is, no > >> need to look for it inside

Re: [PATCH v3 3/5] RISC-V: Improve init_resources

2021-04-06 Thread Nick Kossifidis
Hello Geert, Στις 2021-04-06 10:19, Geert Uytterhoeven έγραψε: Hi Nick, Thanks for your patch! On Mon, Apr 5, 2021 at 10:57 AM Nick Kossifidis wrote: * Kernel region is always present and we know where it is, no need to look for it inside the loop, just ignore it like the rest of the

Re: [PATCH v3 3/5] RISC-V: Improve init_resources

2021-04-06 Thread Geert Uytterhoeven
Hi Nick, Thanks for your patch! On Mon, Apr 5, 2021 at 10:57 AM Nick Kossifidis wrote: > * Kernel region is always present and we know where it is, no > need to look for it inside the loop, just ignore it like the > rest of the reserved regions within system's memory. > > * Don't call

[PATCH v3 3/5] RISC-V: Improve init_resources

2021-04-05 Thread Nick Kossifidis
* Kernel region is always present and we know where it is, no need to look for it inside the loop, just ignore it like the rest of the reserved regions within system's memory. * Don't call memblock_free inside the loop, if called it'll split the region of pre-allocated resources in two parts,