Re: [PATCH 2/2] ARM: shmobile: Move shmobile_smp_{mpidr,fn,arg}[] from .text to .data

2016-01-28 Thread Nicolas Pitre
On Thu, 28 Jan 2016, Geert Uytterhoeven wrote: > When CONFIG_ARM_KERNMEM_PERMS=y and CONFIG_DEBUG_RODATA=y, the kernel > crashes during system suspend: > > Freezing user space processes ... (elapsed 0.004 seconds) done. > Freezing remaining freezable tasks ... (elapsed 0.002 seconds) >

Re: [PATCH v2 1/2] ARM: shmobile: Move shmobile_smp_{mpidr,fn,arg}[] from .text to .data

2016-02-10 Thread Nicolas Pitre
x this by moving these arrays from the .text to the .data section. > This requires accessing them through PC-relative offsets. > > Signed-off-by: Geert Uytterhoeven > Reviewed-by: Kees Cook You could replace .data with .bss to avoid allocating zero-initialized space in the kerne

Re: [PATCH v2 2/2] ARM: shmobile: Remove shmobile_boot_arg

2016-02-10 Thread Nicolas Pitre
SoCs"), and ignoring accidental remainings, > shmobile_boot_arg is always set to MPIDR_HWID_BITMASK by C code. > Hence we can just hardcode this in the assembler code, and remove the > variable, and thus also remove the need to write to this variable. > > Signed-off-by: Geer

Re: [PATCH 01/15] ARM: assembler: introduce adr_l, ldr_l and str_l macros

2017-08-08 Thread Nicolas Pitre
On Sat, 5 Aug 2017, Ard Biesheuvel wrote: > Like arm64, ARM supports position independent code sequences that > produce symbol references with a greater reach than the ordinary > adr/ldr instructions. > > Currently, we use open coded instruction sequences involving literals > and arithmetic opera

Re: [PATCH 01/15] ARM: assembler: introduce adr_l, ldr_l and str_l macros

2017-08-08 Thread Nicolas Pitre
On Tue, 8 Aug 2017, Ard Biesheuvel wrote: > On 8 August 2017 at 16:10, Nicolas Pitre wrote: > > On Sat, 5 Aug 2017, Ard Biesheuvel wrote: > > > >> Like arm64, ARM supports position independent code sequences that > >> produce symbol references with a greater rea

Re: [PATCH 05/15] ARM: head: use PC-relative insn sequence for __smp_alt

2017-08-11 Thread Nicolas Pitre
On Fri, 11 Aug 2017, Ard Biesheuvel wrote: > On 11 August 2017 at 16:13, Tony Lindgren wrote: > > * Ard Biesheuvel [170805 13:54]: > >> Replace the open coded PC relative offset calculations with a pair > >> of adr_l invocations. > >> > >> Signed-off-by: Ard Biesheuvel > >> --- > >> arch/arm/k

Re: [PATCH 05/15] ARM: head: use PC-relative insn sequence for __smp_alt

2017-08-11 Thread Nicolas Pitre
On Fri, 11 Aug 2017, Ard Biesheuvel wrote: > On 11 August 2017 at 20:58, Nicolas Pitre wrote: > > On Fri, 11 Aug 2017, Ard Biesheuvel wrote: > > > >> On 11 August 2017 at 16:13, Tony Lindgren wrote: > >> > * Ard Biesheuvel [170805 13:54]: > >>

Re: [PATCH 05/15] ARM: head: use PC-relative insn sequence for __smp_alt

2017-08-11 Thread Nicolas Pitre
On Fri, 11 Aug 2017, Ard Biesheuvel wrote: > On 11 August 2017 at 21:06, Nicolas Pitre wrote: > > On Fri, 11 Aug 2017, Ard Biesheuvel wrote: > > > >> On 11 August 2017 at 20:58, Nicolas Pitre wrote: > >> > On Fri, 11 Aug 2017, Ard Biesheuvel wrote: >

Re: [PATCH] ARM: head-common.S: Clear lr before jumping to start_kernel()

2017-10-03 Thread Nicolas Pitre
ommon.S: speed up startup code") > Suggested-by: Ard Biesheuvel > Signed-off-by: Geert Uytterhoeven Good! This fixes another similar case I had but I didn't come around to look at closely yet. Acked-by: Nicolas Pitre Please send it to RMK's patch system. > --- > Commi

Re: [PATCH] ARM: head-common.S: Clear lr before jumping to start_kernel()

2017-10-14 Thread Nicolas Pitre
On Sat, 14 Oct 2017, Russell King - ARM Linux wrote: > On Sat, Oct 14, 2017 at 03:14:05PM +0100, Russell King - ARM Linux wrote: > > On Thu, Oct 12, 2017 at 11:25:50AM -0400, Nicolas Pitre wrote: > > > It should go into your devel-testing branch as this must be applied o