Re: [PATCH v2 11/19] arm64: assembler: add macro to conditionally yield the NEON under PREEMPT

2017-12-06 Thread Dave Martin
On Wed, Dec 06, 2017 at 12:25:44PM +, Ard Biesheuvel wrote: > On 6 December 2017 at 12:12, Dave P Martin wrote: > > On Wed, Dec 06, 2017 at 11:57:12AM +, Ard Biesheuvel wrote: > >> On 6 December 2017 at 11:51, Dave Martin wrote: > >> > On Tue, Dec 05, 2017 at 06:04:34PM +, Ard Biesheu

Re: [PATCH v2 11/19] arm64: assembler: add macro to conditionally yield the NEON under PREEMPT

2017-12-06 Thread Ard Biesheuvel
On 6 December 2017 at 12:12, Dave P Martin wrote: > On Wed, Dec 06, 2017 at 11:57:12AM +, Ard Biesheuvel wrote: >> On 6 December 2017 at 11:51, Dave Martin wrote: >> > On Tue, Dec 05, 2017 at 06:04:34PM +, Ard Biesheuvel wrote: >> >> On 5 December 2017 at 12:45, Ard Biesheuvel >> >> wro

Re: [PATCH v2 11/19] arm64: assembler: add macro to conditionally yield the NEON under PREEMPT

2017-12-06 Thread Dave P Martin
On Wed, Dec 06, 2017 at 11:57:12AM +, Ard Biesheuvel wrote: > On 6 December 2017 at 11:51, Dave Martin wrote: > > On Tue, Dec 05, 2017 at 06:04:34PM +, Ard Biesheuvel wrote: > >> On 5 December 2017 at 12:45, Ard Biesheuvel > >> wrote: > >> > > >> > > >> >> On 5 Dec 2017, at 12:28, Dave M

Re: [PATCH v2 11/19] arm64: assembler: add macro to conditionally yield the NEON under PREEMPT

2017-12-06 Thread Ard Biesheuvel
On 6 December 2017 at 11:51, Dave Martin wrote: > On Tue, Dec 05, 2017 at 06:04:34PM +, Ard Biesheuvel wrote: >> On 5 December 2017 at 12:45, Ard Biesheuvel >> wrote: >> > >> > >> >> On 5 Dec 2017, at 12:28, Dave Martin wrote: >> >> >> >>> On Mon, Dec 04, 2017 at 12:26:37PM +, Ard Biesh

Re: [PATCH v2 11/19] arm64: assembler: add macro to conditionally yield the NEON under PREEMPT

2017-12-06 Thread Dave Martin
On Tue, Dec 05, 2017 at 06:04:34PM +, Ard Biesheuvel wrote: > On 5 December 2017 at 12:45, Ard Biesheuvel wrote: > > > > > >> On 5 Dec 2017, at 12:28, Dave Martin wrote: > >> > >>> On Mon, Dec 04, 2017 at 12:26:37PM +, Ard Biesheuvel wrote: > >>> Add a support macro to conditionally yield

Re: [PATCH v2 11/19] arm64: assembler: add macro to conditionally yield the NEON under PREEMPT

2017-12-05 Thread Ard Biesheuvel
On 5 December 2017 at 12:45, Ard Biesheuvel wrote: > > >> On 5 Dec 2017, at 12:28, Dave Martin wrote: >> >>> On Mon, Dec 04, 2017 at 12:26:37PM +, Ard Biesheuvel wrote: >>> Add a support macro to conditionally yield the NEON (and thus the CPU) >>> that may be called from the assembler code. G

Re: [PATCH v2 11/19] arm64: assembler: add macro to conditionally yield the NEON under PREEMPT

2017-12-05 Thread Ard Biesheuvel
> On 5 Dec 2017, at 12:28, Dave Martin wrote: > >> On Mon, Dec 04, 2017 at 12:26:37PM +, Ard Biesheuvel wrote: >> Add a support macro to conditionally yield the NEON (and thus the CPU) >> that may be called from the assembler code. Given that especially the >> instruction based accelerated

Re: [PATCH v2 11/19] arm64: assembler: add macro to conditionally yield the NEON under PREEMPT

2017-12-05 Thread Dave Martin
On Mon, Dec 04, 2017 at 12:26:37PM +, Ard Biesheuvel wrote: > Add a support macro to conditionally yield the NEON (and thus the CPU) > that may be called from the assembler code. Given that especially the > instruction based accelerated crypto code may use very tight loops, add > some parametri

[PATCH v2 11/19] arm64: assembler: add macro to conditionally yield the NEON under PREEMPT

2017-12-04 Thread Ard Biesheuvel
Add a support macro to conditionally yield the NEON (and thus the CPU) that may be called from the assembler code. Given that especially the instruction based accelerated crypto code may use very tight loops, add some parametrization so that the TIF_NEED_RESCHED flag test is only executed every so