Re: [PATCH v5 03/27] arm64: alternative: Apply alternatives early in boot process

2018-09-21 Thread Marc Zyngier
On Wed, 12 Sep 2018 17:49:09 +0100, Julien Thierry wrote: > > Hi James, > > On 12/09/18 11:29, James Morse wrote: > > Hi Julien, > > > > On 28/08/18 16:51, Julien Thierry wrote: > >> From: Daniel Thompson > >> > >> Currently alternatives are applied very late in the boot process (and > >> a l

Re: [PATCH v5 03/27] arm64: alternative: Apply alternatives early in boot process

2018-09-18 Thread James Morse
Hi Daniel, Julien, On 09/18/2018 12:44 AM, Daniel Thompson wrote: On Wed, Sep 12, 2018 at 05:49:09PM +0100, Julien Thierry wrote: diff --git a/arch/arm64/kernel/cpufeature.c b/arch/arm64/kernel/cpufeature.c index 3bc1c8b..0d1e41e 100644 --- a/arch/arm64/kernel/cpufeature.c +++ b/arch/arm64/kern

Re: [PATCH v5 03/27] arm64: alternative: Apply alternatives early in boot process

2018-09-18 Thread Julien Thierry
On 18/09/18 00:44, Daniel Thompson wrote: On Wed, Sep 12, 2018 at 05:49:09PM +0100, Julien Thierry wrote: + __apply_alternatives(®ion, false, boot_capabilities); +} + #ifdef CONFIG_MODULES void apply_alternatives_module(void *start, size_t length) { diff --git a/arch/arm64/k

Re: [PATCH v5 03/27] arm64: alternative: Apply alternatives early in boot process

2018-09-17 Thread Daniel Thompson
On Wed, Sep 12, 2018 at 05:49:09PM +0100, Julien Thierry wrote: > > > + __apply_alternatives(®ion, false, boot_capabilities); > > > +} > > > + > > > #ifdef CONFIG_MODULES > > > void apply_alternatives_module(void *start, size_t length) > > > { > > > > > diff --git a/arch/arm64/kernel/cpufeat

Re: [PATCH v5 03/27] arm64: alternative: Apply alternatives early in boot process

2018-09-12 Thread Julien Thierry
Hi James, On 12/09/18 11:29, James Morse wrote: Hi Julien, On 28/08/18 16:51, Julien Thierry wrote: From: Daniel Thompson Currently alternatives are applied very late in the boot process (and a long time after we enable scheduling). Some alternative sequences, such as those that alter the wa

Re: [PATCH v5 03/27] arm64: alternative: Apply alternatives early in boot process

2018-09-12 Thread James Morse
Hi Julien, On 28/08/18 16:51, Julien Thierry wrote: > From: Daniel Thompson > > Currently alternatives are applied very late in the boot process (and > a long time after we enable scheduling). Some alternative sequences, > such as those that alter the way CPU context is stored, must be applied >

[PATCH v5 03/27] arm64: alternative: Apply alternatives early in boot process

2018-08-28 Thread Julien Thierry
From: Daniel Thompson Currently alternatives are applied very late in the boot process (and a long time after we enable scheduling). Some alternative sequences, such as those that alter the way CPU context is stored, must be applied much earlier in the boot sequence. Introduce apply_boot_alterna