Re: [PATCH 2/4] efi/arm: defer persistent reservations until after paging_init()

2018-11-07 Thread Russell King - ARM Linux
On Wed, Nov 07, 2018 at 11:04:53AM +0100, Ard Biesheuvel wrote: > On 7 November 2018 at 10:58, Russell King - ARM Linux > wrote: > > On Wed, Nov 07, 2018 at 09:51:09AM +, Marc Zyngier wrote: > >> On 06/11/18 23:49, Russell King - ARM Linux wrote: > >> > On Tue, Nov 06, 2018 at 09:06:56PM

Re: [PATCH 2/4] efi/arm: defer persistent reservations until after paging_init()

2018-11-07 Thread Ard Biesheuvel
On 7 November 2018 at 10:58, Russell King - ARM Linux wrote: > On Wed, Nov 07, 2018 at 09:51:09AM +, Marc Zyngier wrote: >> On 06/11/18 23:49, Russell King - ARM Linux wrote: >> > On Tue, Nov 06, 2018 at 09:06:56PM +0100, Ard Biesheuvel wrote: >> >> On 6 November 2018 at 20:08, Russell King -

Re: [PATCH 2/4] efi/arm: defer persistent reservations until after paging_init()

2018-11-07 Thread Russell King - ARM Linux
On Wed, Nov 07, 2018 at 09:51:09AM +, Marc Zyngier wrote: > On 06/11/18 23:49, Russell King - ARM Linux wrote: > > On Tue, Nov 06, 2018 at 09:06:56PM +0100, Ard Biesheuvel wrote: > >> On 6 November 2018 at 20:08, Russell King - ARM Linux > >> wrote: > >>> On Tue, Nov 06, 2018 at 08:02:58PM

Re: [PATCH 2/4] efi/arm: defer persistent reservations until after paging_init()

2018-11-07 Thread Marc Zyngier
On 06/11/18 23:49, Russell King - ARM Linux wrote: > On Tue, Nov 06, 2018 at 09:06:56PM +0100, Ard Biesheuvel wrote: >> On 6 November 2018 at 20:08, Russell King - ARM Linux >> wrote: >>> On Tue, Nov 06, 2018 at 08:02:58PM +0100, Ard Biesheuvel wrote: On 6 November 2018 at 12:37, Ard

Re: [PATCH 2/4] efi/arm: defer persistent reservations until after paging_init()

2018-11-06 Thread Russell King - ARM Linux
On Tue, Nov 06, 2018 at 09:06:56PM +0100, Ard Biesheuvel wrote: > On 6 November 2018 at 20:08, Russell King - ARM Linux > wrote: > > On Tue, Nov 06, 2018 at 08:02:58PM +0100, Ard Biesheuvel wrote: > >> On 6 November 2018 at 12:37, Ard Biesheuvel > >> wrote: > >> > The new memory EFI reservation

Re: [PATCH 2/4] efi/arm: defer persistent reservations until after paging_init()

2018-11-06 Thread Ard Biesheuvel
On 6 November 2018 at 20:08, Russell King - ARM Linux wrote: > On Tue, Nov 06, 2018 at 08:02:58PM +0100, Ard Biesheuvel wrote: >> On 6 November 2018 at 12:37, Ard Biesheuvel >> wrote: >> > The new memory EFI reservation feature we introduced to allow memory >> > reservations to persist across

Re: [PATCH 2/4] efi/arm: defer persistent reservations until after paging_init()

2018-11-06 Thread Ard Biesheuvel
On 6 November 2018 at 12:37, Ard Biesheuvel wrote: > The new memory EFI reservation feature we introduced to allow memory > reservations to persist across kexec may trigger an unbounded number > of calls to memblock_reserve(). The memblock subsystem can deal with > this fine, but not before

Re: [PATCH 2/4] efi/arm: defer persistent reservations until after paging_init()

2018-11-06 Thread Russell King - ARM Linux
On Tue, Nov 06, 2018 at 08:02:58PM +0100, Ard Biesheuvel wrote: > On 6 November 2018 at 12:37, Ard Biesheuvel wrote: > > The new memory EFI reservation feature we introduced to allow memory > > reservations to persist across kexec may trigger an unbounded number > > of calls to

[PATCH 2/4] efi/arm: defer persistent reservations until after paging_init()

2018-11-06 Thread Ard Biesheuvel
The new memory EFI reservation feature we introduced to allow memory reservations to persist across kexec may trigger an unbounded number of calls to memblock_reserve(). The memblock subsystem can deal with this fine, but not before memblock resizing is enabled, which we can only do after