Re: [PATCH v3 11/20] arm64: assembler: add macros to conditionally yield the NEON under PREEMPT

2017-12-07 Thread Ard Biesheuvel
On 7 December 2017 at 14:50, Ard Biesheuvel wrote: > On 7 December 2017 at 14:39, Dave Martin wrote: >> On Wed, Dec 06, 2017 at 07:43:37PM +, Ard Biesheuvel wrote: >>> Add support macros to conditionally yield the NEON (and thus the CPU) >>> that may be called from the assembler code. >>> >>>

Re: [PATCH v3 11/20] arm64: assembler: add macros to conditionally yield the NEON under PREEMPT

2017-12-07 Thread Dave Martin
On Thu, Dec 07, 2017 at 03:47:43PM +, Ard Biesheuvel wrote: > On 7 December 2017 at 14:50, Ard Biesheuvel wrote: > > On 7 December 2017 at 14:39, Dave Martin wrote: > >> On Wed, Dec 06, 2017 at 07:43:37PM +, Ard Biesheuvel wrote: [...] > >>> + .macro if_will_cond_yield_neon

Re: [PATCH v3 11/20] arm64: assembler: add macros to conditionally yield the NEON under PREEMPT

2017-12-07 Thread Dave Martin
On Thu, Dec 07, 2017 at 02:50:11PM +, Ard Biesheuvel wrote: > On 7 December 2017 at 14:39, Dave Martin wrote: > > On Wed, Dec 06, 2017 at 07:43:37PM +, Ard Biesheuvel wrote: > >> Add support macros to conditionally yield the NEON (and thus the CPU) > >> that may be called from the assemble

Re: [PATCH v3 11/20] arm64: assembler: add macros to conditionally yield the NEON under PREEMPT

2017-12-07 Thread Ard Biesheuvel
On 7 December 2017 at 15:47, Ard Biesheuvel wrote: > On 7 December 2017 at 14:50, Ard Biesheuvel wrote: >> On 7 December 2017 at 14:39, Dave Martin wrote: >>> On Wed, Dec 06, 2017 at 07:43:37PM +, Ard Biesheuvel wrote: Add support macros to conditionally yield the NEON (and thus the CPU

Re: [PATCH v3 11/20] arm64: assembler: add macros to conditionally yield the NEON under PREEMPT

2017-12-07 Thread Ard Biesheuvel
On 7 December 2017 at 14:39, Dave Martin wrote: > On Wed, Dec 06, 2017 at 07:43:37PM +, Ard Biesheuvel wrote: >> Add support macros to conditionally yield the NEON (and thus the CPU) >> that may be called from the assembler code. >> >> In some cases, yielding the NEON involves saving and resto

Re: [PATCH v3 11/20] arm64: assembler: add macros to conditionally yield the NEON under PREEMPT

2017-12-07 Thread Dave Martin
On Wed, Dec 06, 2017 at 07:43:37PM +, Ard Biesheuvel wrote: > Add support macros to conditionally yield the NEON (and thus the CPU) > that may be called from the assembler code. > > In some cases, yielding the NEON involves saving and restoring a non > trivial amount of context (especially in

[PATCH v3 11/20] arm64: assembler: add macros to conditionally yield the NEON under PREEMPT

2017-12-06 Thread Ard Biesheuvel
Add support macros to conditionally yield the NEON (and thus the CPU) that may be called from the assembler code. In some cases, yielding the NEON involves saving and restoring a non trivial amount of context (especially in the CRC folding algorithms), and so the macro is split into three, and the