[PATCH 08/25] arm64: ilp32: add documentation on the ILP32 ABI for ARM64

2016-04-05 Thread Yury Norov
Based on Andrew Pinski's patch-series. Signed-off-by: Yury Norov --- Documentation/arm64/ilp32.txt | 13 + 1 file changed, 13 insertions(+) create mode 100644 Documentation/arm64/ilp32.txt diff --git a/Documentation/arm64/ilp32.txt b/Documentation/arm64/ilp32.txt new file

[PATCH 19/25] arm64: ptrace: handle ptrace_request differently for aarch32 and ilp32

2016-04-05 Thread Yury Norov
Here new aarch32 ptrace syscall handler is introsuced to avoid run-time detection of the task type. Signed-off-by: Yury Norov --- arch/arm64/include/asm/unistd32.h | 2 +- arch/arm64/kernel/ptrace.c| 50 ++- arch/arm64/kernel/sys32.c | 1

[PATCH 06/25] compat ABI: use non-compat openat and open_by_handle_at variants

2016-04-05 Thread Yury Norov
The only difference is that non-compat version forces O_LARGEFILE, and it should be the default behaviour for all architectures, as we don't support 32-bit off_t. The only exception is tile32, that continues with compat version of syscalls. Signed-off-by: Yury Norov Acked-by: Arnd Ber

[PATCH 13/25] arm64:uapi: set __BITS_PER_LONG correctly for ILP32 and LP64

2016-04-05 Thread Yury Norov
Signed-off-by: Christoph Muellner Signed-off-by: Yury Norov Reviewed-by: David Daney --- arch/arm64/include/uapi/asm/bitsperlong.h | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/arch/arm64/include/uapi/asm/bitsperlong.h b/arch/arm64/include/uapi/asm/bitsperlong.h index

[PATCH 07/25] 32-bit ABI: introduce ARCH_32BIT_OFF_T config option

2016-04-05 Thread Yury Norov
-bit off_t, and therefore want to limit the file size to 4GB unless specified differently in the open flags. Signed-off-by: Yury Norov Acked-by: Thomas Gleixner (For the x86 part) Acked-by: Arnd Bergmann --- arch/Kconfig| 4 arch/arc/Kconfig| 1 + arch/arm/Kconfig

[PATCH 11/25] arm64: change some CONFIG_COMPAT over to use CONFIG_AARCH32_EL0 instead

2016-04-05 Thread Yury Norov
From: Andrew Pinski Signed-off-by: Andrew Pinski Signed-off-by: Philipp Tomsich Signed-off-by: Christoph Muellner Signed-off-by: Yury Norov Reviewed-by: David Daney --- arch/arm64/include/asm/fpsimd.h | 2 +- arch/arm64/include/asm/hwcap.h | 4 ++-- arch/arm64/include/asm

[PATCH 12/25] arm64: compat: change config dependences to aarch32

2016-04-05 Thread Yury Norov
From: Bamvor Jian Zhang With the patches of ILP32, COMPAT is not equivalent to AARCH32 in EL0. This patch fix this by updating the dependency from COMPAT to AARCH32_EL0 for ARMV8_DEPRECATED and ARM64_ERRATUM_845719. Signed-off-by: Bamvor Jian Zhang Signed-off-by: Yury Norov --- arch/arm64

[PATCH 05/25] all: wrap needed syscalls in generic unistd

2016-04-05 Thread Yury Norov
As generic unistd syscall table is written in C, syscall prototypes declaration is needed. It's added to compat header. Signed-off-by: Yury Norov Acked-by: Heiko Carstens --- include/linux/compat.h| 225 + include/uapi/asm-generic/unistd.h

[PATCH 04/25] all: s390: move compat_wrappers.c from arch/s390/kernel to kernel/

2016-04-05 Thread Yury Norov
Some syscalls are declared conditionally, so corresponding wrappers are conditional accordingly. Signed-off-by: Yury Norov Acked-by: Heiko Carstens --- arch/s390/kernel/Makefile | 2 +- arch/s390/kernel/compat_linux.c | 4 + arch/s390/kernel/compat_wrapper.c | 129

[PATCH 21/25] arm64: signal: share lp64 signal routines to ilp32

2016-04-05 Thread Yury Norov
After that, it will be possible to reuse it in ilp32. Signed-off-by: Yury Norov --- arch/arm64/include/asm/signal_common.h | 33 arch/arm64/kernel/signal.c | 91 +- 2 files changed, 90 insertions(+), 34 deletions(-) create mode 100644

[PATCH 24/25] arm64:ilp32: add vdso-ilp32 and use for signal return

2016-04-05 Thread Yury Norov
pages and spec. Adjusted to move the move data page before code pages in sync with commit 601255ae3c98fd3a8bb4696425e4f868b4f1 Signed-off-by: Philipp Tomsich Signed-off-by: Christoph Muellner Signed-off-by: Yury Norov --- arch/arm64/include/asm/vdso.h | 6 ++ arch/arm64

[PATCH 20/25] arm64:ilp32: add sys_ilp32.c and a separate table (in entry.S) to use it

2016-04-05 Thread Yury Norov
From: Andrew Pinski Add a separate syscall-table for ILP32, which dispatches either to native LP64 system call implementation or to compat-syscalls, as appropriate. Signed-off-by: Andrew Pinski Signed-off-by: Yury Norov --- arch/arm64/include/asm/unistd.h | 11 ++- arch/arm64/kernel

[PATCH 22/25] arm64: signal32: move ilp32 and aarch32 common code to separated file

2016-04-05 Thread Yury Norov
Signed-off-by: Yury Norov --- arch/arm64/include/asm/signal32_common.h | 25 +++ arch/arm64/kernel/Makefile | 1 + arch/arm64/kernel/signal32.c | 85 --- arch/arm64/kernel/signal32_common.c | 115 +++ 4 files

[PATCH 16/25] arm64: ilp32: add is_ilp32_compat_{task,thread} and TIF_32BIT_AARCH64

2016-04-05 Thread Yury Norov
accordingly. Signed-off-by: Andrew Pinski Signed-off-by: Philipp Tomsich Signed-off-by: Christoph Muellner Signed-off-by: Yury Norov Reviewed-by: David Daney --- arch/arm64/include/asm/elf.h | 13 +++-- arch/arm64/include/asm/is_compat.h | 28 +++- arch

[PATCH 15/25] arm64: introduce is_a32_task and is_a32_thread (for AArch32 compat)

2016-04-05 Thread Yury Norov
because has already included. It was fixed too. Signed-off-by: Yury Norov Signed-off-by: Philipp Tomsich Signed-off-by: Christoph Muellner Signed-off-by: Andrew Pinski Reviewed-by: David Daney --- arch/arm64/include/asm/compat.h | 19 ++-- arch/arm64/include/asm/elf.h | 10

[PATCH 25/25] arm64:ilp32: add ARM64_ILP32 to Kconfig

2016-04-05 Thread Yury Norov
From: Andrew Pinski This patch adds the config option for ILP32. Signed-off-by: Andrew Pinski Signed-off-by: Philipp Tomsich Signed-off-by: Christoph Muellner Signed-off-by: Yury Norov Reviewed-by: David Daney --- arch/arm64/Kconfig | 10 +- 1 file changed, 9 insertions(+), 1

[PATCH 23/25] arm64: ilp32: introduce ilp32-specific handlers for sigframe and ucontext

2016-04-05 Thread Yury Norov
From: Andrew Pinski ILP32 uses AARCH32 compat structures and syscall handlers for signals. But ILP32 struct rt_sigframe and ucontext differs from both LP64 and AARCH32. So some specific mechanism is needed to take care of it. Signed-off-by: Andrew Pinski Signed-off-by: Yury Norov --- arch

[PATCH 18/25] arm64: ilp32: introduce binfmt_ilp32.c

2016-04-05 Thread Yury Norov
to handle ILP32 binaries Signed-off-by: Yury Norov --- arch/arm64/kernel/Makefile | 1 + arch/arm64/kernel/binfmt_ilp32.c | 91 2 files changed, 92 insertions(+) create mode 100644 arch/arm64/kernel/binfmt_ilp32.c diff --git a/arch/arm64/kernel

Re: [RFC6 PATCH v6 00/21] ILP32 for ARM64 - LTP results

2016-04-05 Thread Yury Norov
There are about 20 failing tests of 782 in lite scenario. float_bessel float_exp_log float_iperb float_power float_trigo pipeio_1 pipeio_3 pipeio_5 pipeio_8 abort01 clone02 kill11 mmap16 open12 pause01 rename1

Re: [RFC6 PATCH v6 00/21] ILP32 for ARM64

2016-04-06 Thread Yury Norov
Hi Geert, On Wed, Apr 06, 2016 at 08:51:50AM +0200, Geert Uytterhoeven wrote: > Hi Yuri, > > On Wed, Apr 6, 2016 at 12:08 AM, Yury Norov wrote: > > This version is rebased on kernel v4.6-rc2, and has fixes in signal > > subsystem. > > It works with updated glibc [

Re: [PATCH 19/25] arm64: ptrace: handle ptrace_request differently for aarch32 and ilp32

2016-04-22 Thread Yury Norov
On Fri, Apr 22, 2016 at 06:10:09PM +0100, Catalin Marinas wrote: > On Wed, Apr 06, 2016 at 01:08:41AM +0300, Yury Norov wrote: > > Here new aarch32 ptrace syscall handler is introsuced to avoid run-time > > detection of the task type. > > The reason for this patch isn't

Re: [PATCH 12/25] arm64: compat: change config dependences to aarch32

2016-04-22 Thread Yury Norov
On Fri, Apr 22, 2016 at 04:58:18PM +0100, Catalin Marinas wrote: > On Wed, Apr 06, 2016 at 01:08:34AM +0300, Yury Norov wrote: > > From: Bamvor Jian Zhang > > > > With the patches of ILP32, COMPAT is not equivalent to AARCH32 in EL0. > > This patch fix this by updating

Re: [PATCH 20/25] arm64:ilp32: add sys_ilp32.c and a separate table (in entry.S) to use it

2016-04-25 Thread Yury Norov
On Mon, Apr 25, 2016 at 06:26:56PM +0100, Catalin Marinas wrote: > On Wed, Apr 06, 2016 at 01:08:42AM +0300, Yury Norov wrote: > > --- a/arch/arm64/kernel/entry.S > > +++ b/arch/arm64/kernel/entry.S > > @@ -715,9 +715,13 @@ ENDPROC(ret_from_fork) > > */ >

Re: [PATCH 20/25] arm64:ilp32: add sys_ilp32.c and a separate table (in entry.S) to use it

2016-04-25 Thread Yury Norov
On Mon, Apr 25, 2016 at 09:19:13PM +0300, Yury Norov wrote: > On Mon, Apr 25, 2016 at 06:26:56PM +0100, Catalin Marinas wrote: > > On Wed, Apr 06, 2016 at 01:08:42AM +0300, Yury Norov wrote: > > > --- a/arch/arm64/kernel/entry.S > > > +++ b/arch/arm64/kernel/entr

arm64: kernel v4.6-rc1 hangs on QEMU

2016-03-29 Thread Yury Norov
Hi, Checked for both v4.6-rc1 and current master (1993b17). Config: arm64 defconfig QEMU: QEMU emulator version 2.3.0 (Debian 1:2.3+dfsg-5ubuntu9.2) Stacktrace: #0 arch_counter_get_cntvct () at ./arch/arm64/include/asm/arch_timer.h:121 #1 __delay (cycles=1024) at arch/arm64/lib/delay.c:31 #2

Re: arm64: kernel v4.6-rc1 hangs on QEMU

2016-03-29 Thread Yury Norov
On Wed, Mar 30, 2016 at 12:12:30AM +0200, Arnd Bergmann wrote: > On Wednesday 30 March 2016 01:05:02 Yury Norov wrote: > > Checked for both v4.6-rc1 and current master (1993b17). > > Config: arm64 defconfig > > QEMU: QEMU emulator version 2.3.0 (Debian 1:2.3+dfsg-5ubuntu9.2

Re: arm64: kernel v4.6-rc1 hangs on QEMU

2016-03-29 Thread Yury Norov
On Wed, Mar 30, 2016 at 12:32:42AM +0200, Arnd Bergmann wrote: > On Wednesday 30 March 2016 01:22:17 Yury Norov wrote: > > > > > > Undefined instruction in cpuinfo_store_boot_cpu() could be related > > > to the SYS_ID_AA64MMFR2_EL1 access that was recently add

[RFC] [PATCH] arm64: survive after access to unimplemented register

2016-03-30 Thread Yury Norov
(Debian 1:2.3+dfsg-5ubuntu9.2) that does not implement SYS_ID_AA64MMFR2_EL1 register. (Fixed in new releases), Discussion: https://lkml.org/lkml/2016/3/29/931 Signed-off-by: Yury Norov --- arch/arm64/include/asm/cputype.h | 17 +++-- arch/arm64/include/asm/exttable.h | 21

Re: [RFC] [PATCH] arm64: survive after access to unimplemented register

2016-03-31 Thread Yury Norov
Hi Mark, On Thu, Mar 31, 2016 at 11:05:48AM +0100, Mark Rutland wrote: > On Thu, Mar 31, 2016 at 05:27:03AM +0300, Yury Norov wrote: > > Not all vendors implement all the system registers ARM specifies. > > The ID registers in question are precisely documented in the ARM ARM >

Re: [RFC] [PATCH] arm64: survive after access to unimplemented register

2016-03-31 Thread Yury Norov
On Thu, Mar 31, 2016 at 02:12:31PM +0100, Mark Rutland wrote: > On Thu, Mar 31, 2016 at 03:28:59PM +0300, Yury Norov wrote: > > Hi Mark, > > > > On Thu, Mar 31, 2016 at 11:05:48AM +0100, Mark Rutland wrote: > > > On Thu, Mar 31, 2016 at 05:27:03AM +0300, Yury Norov

Re: [PATCH 24/25] arm64:ilp32: add vdso-ilp32 and use for signal return

2016-04-13 Thread Yury Norov
ffsets > +ifeq ($(CONFIG_ARM64_ILP32),y) > $(call objectify,$(arm64-obj-y)): $(obj)/vdso-ilp32/vdso-ilp32-offsets.h > $(obj)/vdso-ilp32/vdso-ilp32-offsets.h: $(obj)/vdso-ilp32 > +endif > -- > 1.8.4.5 > > On 2016/4/6 6:08, Yury Norov wrote: > >From: Philipp Tomsich >

Re: [RFC PATCH v6 00/17] ILP32 for ARM64

2015-11-05 Thread Yury Norov
On Thu, Nov 05, 2015 at 09:39:51PM +0800, Andrew Pinski wrote: > On Thu, Nov 5, 2015 at 7:36 PM, Andreas Schwab wrote: > > Yury Norov writes: > > > >> v6: > >> - time_t, __kenel_off_t and other types turned to be 32-bit > >>for compatibility reas

Re: [PATCH] lib/bitmap.c: return -EINVAL for grouping errors in __bitmap_parselist

2015-06-30 Thread Yury Norov
2015-07-01 4:37 GMT+03:00 Pan Xinhui : > hi, Yury > thanks for your nice reply. > > On 2015年06月29日 21:39, Yury Norov wrote: >>> >>> Sometimes the input from user may cause an unexpected result. >> >> >> Could you please provide specific exa

Re: [RFC PATCH v6 00/17] ILP32 for ARM64

2015-11-09 Thread Yury Norov
gt; On Monday 09 November 2015 14:23:59 Andreas Schwab wrote: > >>>> Yury Norov writes: > >>>> > >>>>> This is what I run: > >>>>> https://github.com/norov/glibc/tree/thunderx-ilp32-32time_toff_t > >>>> > >>>

Re: [RFC PATCH v6 00/17] ILP32 for ARM64

2015-11-09 Thread Yury Norov
On Mon, Nov 09, 2015 at 06:50:42PM +0300, Yury Norov wrote: > On Mon, Nov 09, 2015 at 10:52:32PM +0800, pins...@gmail.com wrote: > > > > > > > On Nov 9, 2015, at 10:36 PM, Arnd Bergmann wrote: > > > > > >> On Monday 09 November 2015 15:33:51 Andre

[PATCH v5 00/23] ILP32 for ARM64

2015-09-29 Thread Yury Norov
PAT_ELF_PLATFORM to report a a subplatform for ILP32 Yury Norov (1): aarch64: ilp32: msgrcv, msgsnd handlers Documentation/arm64/ilp32.txt | 64 ++ arch/arm64/Kconfig | 14 +- arch/arm64/Makefile|

[PATCH v5 01/23] arm64:ilp32: add documentation on the ILP32 ABI for ARM64

2015-09-29 Thread Yury Norov
From: Philipp Tomsich Based on Andrew Pinski's original patch-series and adapted with changes to reduce the duplication of code-paths and resolve issue found during LTP testing. Signed-off-by: Philipp Tomsich Signed-off-by: Christoph Muellner Signed-off-by: Yury Norov create mode 1

[PATCH v5 02/23] arm64: ensure the kernel is compiled for LP64

2015-09-29 Thread Yury Norov
ned-off-by: Christoph Muellner Signed-off-by: Yury Norov diff --git a/arch/arm64/Makefile b/arch/arm64/Makefile index f9914d7..d7a13ce 100644 --- a/arch/arm64/Makefile +++ b/arch/arm64/Makefile @@ -15,7 +15,6 @@ CPPFLAGS_vmlinux.lds = -DTEXT_OFFSET=$(TEXT_OFFSET) OBJCOPYFLAGS :=-O binary -

[PATCH v5 03/23] arm64: rename COMPAT to AARCH32_EL0 in Kconfig

2015-09-29 Thread Yury Norov
From: Andrew Pinski Signed-off-by: Philipp Tomsich Signed-off-by: Christoph Muellner Signed-off-by: Yury Norov diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 07d1811..d1dc605 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -679,6 +679,11 @@ menu "Userspace b

[PATCH v5 12/23] arm64:ilp32: COMPAT_USE_64BIT_TIME is true for ILP32 tasks

2015-09-29 Thread Yury Norov
el and in glibc. Signed-off-by: Philipp Tomsich Signed-off-by: Christoph Muellner Signed-off-by: Yury Norov diff --git a/arch/arm64/include/asm/compat.h b/arch/arm64/include/asm/compat.h index f53c4e6..4b717df 100644 --- a/arch/arm64/include/asm/compat.h +++ b/arch/arm64/include/asm/compat.h

[PATCH v5 15/23] arm64:ilp32: support core dump generation for ILP32

2015-09-29 Thread Yury Norov
From: Andrew Pinski This patch supports core dumping on ILP32. We need a few extra macros (COMPAT_PR_REG_SIZE and COMPAT_PRSTATUS_SIZE) due to size differences of the register sets. Signed-off-by: Philipp Tomsich Signed-off-by: Christoph Muellner Signed-off-by: Yury Norov diff --git a/arch

[PATCH v5 16/23] arm64: add support for starting ILP32 (ELFCLASS32) binaries

2015-09-29 Thread Yury Norov
From: Andrew Pinski Handle ILP32 (AArch64, but ELFCLASS32) binaries on ARM64. Signed-off-by: Philipp Tomsich Signed-off-by: Christoph Muellner Signed-off-by: Yury Norov diff --git a/arch/arm64/include/asm/elf.h b/arch/arm64/include/asm/elf.h index d4d53c91a..9a854f9 100644 --- a/arch/arm64

[PATCH v5 19/23] arm64:ilp32: add sys_ilp32.c and a separate table (in entry.S) to use it

2015-09-29 Thread Yury Norov
0_svc-handler and simply relies on the flags having been read by the kernel_entry macro. Signed-off-by: Philipp Tomsich Signed-off-by: Christoph Muellner Signed-off-by: Yury Norov create mode 100644 arch/arm64/kernel/sys_ilp32.c diff --git a/arch/arm64/include/asm/unistd.h b/arch/arm64/includ

[PATCH v5 13/23] arm64:ilp32: share HWCAP between LP64 and ILP32

2015-09-29 Thread Yury Norov
From: Andrew Pinski Signed-off-by: Philipp Tomsich Signed-off-by: Christoph Muellner Signed-off-by: Yury Norov diff --git a/arch/arm64/include/asm/hwcap.h b/arch/arm64/include/asm/hwcap.h index 0ad7351..1e5361e 100644 --- a/arch/arm64/include/asm/hwcap.h +++ b/arch/arm64/include/asm/hwcap.h

[PATCH v5 06/23] arm64:uapi: set __BITS_PER_LONG correctly for ILP32 and LP64

2015-09-29 Thread Yury Norov
Signed-off-by: Yury Norov diff --git a/arch/arm64/include/uapi/asm/bitsperlong.h b/arch/arm64/include/uapi/asm/bitsperlong.h index fce9c29..4265243 100644 --- a/arch/arm64/include/uapi/asm/bitsperlong.h +++ b/arch/arm64/include/uapi/asm/bitsperlong.h @@ -16,7 +16,14 @@ #ifndef

[PATCH v5 08/23] arm64:ilp32: use 64bit syscall-names for ILP32 when passing 64bit registers

2015-09-29 Thread Yury Norov
From: Andrew Pinski In the ARM64 ILP32 case, we want to say the syscalls that normally would pass 64bit as two arguments are now passing as one so want to use the 64bit naming scheme. Signed-off-by: Philipp Tomsich Signed-off-by: Christoph Muellner Signed-off-by: Yury Norov diff --git a

[PATCH v5 10/23] arm64: introduce is_a32_task and is_a32_thread (for AArch32 compat)

2015-09-29 Thread Yury Norov
From: Andrew Pinski This patch introduces is_a32_compat_task and is_a32_thread so it is easier to say this is a a32 specific thread or a generic compat thread/task. Signed-off-by: Philipp Tomsich Signed-off-by: Christoph Muellner Signed-off-by: Yury Norov diff --git a/arch/arm64/include/asm

[PATCH v5 04/23] arm64: change some CONFIG_COMPAT over to use CONFIG_AARCH32_EL0 instead

2015-09-29 Thread Yury Norov
From: Andrew Pinski Signed-off-by: Philipp Tomsich Signed-off-by: Christoph Muellner Signed-off-by: Yury Norov diff --git a/arch/arm64/include/asm/elf.h b/arch/arm64/include/asm/elf.h index faad6df..f40c51b 100644 --- a/arch/arm64/include/asm/elf.h +++ b/arch/arm64/include/asm/elf.h

[PATCH v5 14/23] arm64:ilp32 use the native LP64 'start_thread' for ILP32 threads

2015-09-29 Thread Yury Norov
From: Andrew Pinski If we have both ILP32 and AARCH32 compiled in, we need use the non compat start thread for ILP32. Signed-off-by: Philipp Tomsich Signed-off-by: Christoph Muellner Signed-off-by: Yury Norov diff --git a/arch/arm64/include/asm/processor.h b/arch/arm64/include/asm

[PATCH v5 09/23] arm64:ilp32: use non-compat syscall names for ILP32 as for LP64

2015-09-29 Thread Yury Norov
From: Andrew Pinski Define __ARCH_WANT_64BIT_SYSCALLS for ILP32, so we (can) use the 64bit syscall names for ILP32. Signed-off-by: Philipp Tomsich Signed-off-by: Christoph Muellner Signed-off-by: Yury Norov diff --git a/arch/arm64/include/uapi/asm/unistd.h b/arch/arm64/include/uapi/asm

[PATCH v5 07/23] arm64:ilp32: share signal structures between ILP32 and LP64 ABIs

2015-09-29 Thread Yury Norov
From: Andrew Pinski Defines the macros which allow the signal structures to be the same between ILP32 and LP64. Signed-off-by: Philipp Tomsich Signed-off-by: Christoph Muellner Signed-off-by: Yury Norov diff --git a/arch/arm64/include/uapi/asm/siginfo.h b/arch/arm64/include/uapi/asm

[PATCH v5 21/23] arm64:ilp32: change COMPAT_ELF_PLATFORM to report a a subplatform for ILP32

2015-09-29 Thread Yury Norov
From: Philipp Tomsich To make life for tools (such as gdb) easier when dealing with ILP32 processes, we report a proper subarchitecture for ILP32 in the ELF auxiliary vectors. Signed-off-by: Philipp Tomsich Signed-off-by: Christoph Muellner Signed-off-by: Yury Norov diff --git a/arch/arm64

[PATCH v5 05/23] arm64:ilp32: expose 'kernel_long' as 'long long' for ILP32

2015-09-29 Thread Yury Norov
are exposed as their ILP32 'long long' and 'unsigned long long' equivalents to allow glibc to correctly interpret most data-structures used in the kernel ABI (i.el with the exception of those, that include pointers). Signed-off-by: Philipp Tomsich Signed-off-by: Christoph Mu

[PATCH v5 11/23] arm64:ilp32: add is_ilp32_compat_{task,thread} and TIF_32BIT_AARCH64

2015-09-29 Thread Yury Norov
From: Andrew Pinski Signed-off-by: Philipp Tomsich Signed-off-by: Christoph Muellner Signed-off-by: Yury Norov diff --git a/arch/arm64/include/asm/compat.h b/arch/arm64/include/asm/compat.h index 3a2976d..f53c4e6 100644 --- a/arch/arm64/include/asm/compat.h +++ b/arch/arm64/include/asm

[PATCH v5 18/23] ptrace: Allow compat to use the native siginfo

2015-09-29 Thread Yury Norov
in the compat case as it was the non-compat case. Signed-off-by: Christoph Muellner Signed-off-by: Philipp Tomsich Signed-off-by: Yury Norov diff --git a/include/linux/compat.h b/include/linux/compat.h index a76c917..0a25d90 100644 --- a/include/linux/compat.h +++ b/include/linux/compat.h

[PATCH v5 23/23] arm64:ilp32: add ARM64_ILP32 to Kconfig

2015-09-29 Thread Yury Norov
From: Andrew Pinski This patch adds the config option for ILP32. Signed-off-by: Philipp Tomsich Signed-off-by: Christoph Muellner Signed-off-by: Yury Norov diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index d1dc605..afbde9c 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig

[PATCH v5 17/23] arm64:ilp32: add vdso-ilp32 and use for signal return

2015-09-29 Thread Yury Norov
From: Philipp Tomsich Adjusted to move the move data page before code pages in sync with commit 601255ae3c98fd3a8bb4696425e4f868b4f1 Signed-off-by: Philipp Tomsich Signed-off-by: Christoph Muellner Signed-off-by: Yury Norov create mode 100644 arch/arm64/kernel/vdso-ilp32/.gitignore

[PATCH v5 20/23] arm64:ilp32: use the native siginfo instead of the compat siginfo

2015-09-29 Thread Yury Norov
From: Andrew Pinski Set COMPAT_USE_NATIVE_SIGINFO to be true for non AARCH32 tasks. Signed-off-by: Philipp Tomsich Signed-off-by: Christoph Muellner Signed-off-by: Yury Norov diff --git a/arch/arm64/include/asm/compat.h b/arch/arm64/include/asm/compat.h index 4b717df..47f2b7a 100644 --- a

[PATCH v5 22/23] aarch64: ilp32: msgrcv, msgsnd handlers

2015-09-29 Thread Yury Norov
msgsnd and msgrcv syscall arguments are different in lp64 and ilp32 ABIs. In this patch, ilp32-specific handlers introduced to take it into account. Signed-off-by: Yury Norov diff --git a/arch/arm64/kernel/sys_ilp32.c b/arch/arm64/kernel/sys_ilp32.c index 623191a..09605be 100644 --- a/arch

[PATCH v6 01/19] arm64:ilp32: add documentation on the ILP32 ABI for ARM64

2015-11-17 Thread Yury Norov
00644 index 000..93c09f2 --- /dev/null +++ b/Documentation/arm64/ilp32.txt @@ -0,0 +1,47 @@ +ILP32 AARCH64 SYSCALL ABI += +Written by Andrew Pinski +Updated by Philipp Tomsich +Updated by Yury Norov + + +This document describes the ILP32 syscall ABI and where it di

[RFC2 PATCH v6 00/19] ILP32 for ARM64

2015-11-17 Thread Yury Norov
add ARM64_ILP32 to Kconfig Jan Dakinevich (2): ilp32: common 32-bit wrappers arm64: ilp32: force IPC_64 in msgctl, shmctl, semctl Philipp Tomsich (2): arm64:ilp32: add documentation on the ILP32 ABI for ARM64 arm64:ilp32: change COMPAT_ELF_PLATFORM to report a a subplatform for ILP32 Yury N

[PATCH v6 02/19] arm64: ensure the kernel is compiled for LP64

2015-11-17 Thread Yury Norov
ned-off-by: Philipp Tomsich Signed-off-by: Christoph Muellner Signed-off-by: Yury Norov Signed-off-by: Andrew Pinski --- arch/arm64/Makefile | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm64/Makefile b/arch/arm64/Makefile index d10b5d4..432b69a 100644 --- a/arch/arm64/Makefile +++ b/

[PATCH v6 04/19] arm64: change some CONFIG_COMPAT over to use CONFIG_AARCH32_EL0 instead

2015-11-17 Thread Yury Norov
From: Andrew Pinski Reviewed-by: David Daney Signed-off-by: Philipp Tomsich Signed-off-by: Christoph Muellner Signed-off-by: Yury Norov Signed-off-by: Andrew Pinski --- arch/arm64/include/asm/elf.h | 20 +--- arch/arm64/include/asm/fpsimd.h| 2 +- arch/arm64

[PATCH v6 03/19] arm64: rename COMPAT to AARCH32_EL0 in Kconfig

2015-11-17 Thread Yury Norov
From: Andrew Pinski Reviewed-by: David Daney Signed-off-by: Philipp Tomsich Signed-off-by: Christoph Muellner Signed-off-by: Yury Norov Signed-off-by: Andrew Pinski --- arch/arm64/Kconfig | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig

[PATCH v6 05/19] arm64:uapi: set __BITS_PER_LONG correctly for ILP32 and LP64

2015-11-17 Thread Yury Norov
-off-by: Christoph Muellner Signed-off-by: Yury Norov --- arch/arm64/include/uapi/asm/bitsperlong.h | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/arch/arm64/include/uapi/asm/bitsperlong.h b/arch/arm64/include/uapi/asm/bitsperlong.h index fce9c29..4265243 100644

[PATCH v6 06/19] arm64:ilp32: share signal structures between ILP32 and LP64 ABIs

2015-11-17 Thread Yury Norov
From: Andrew Pinski Defines the macros which allow the signal structures to be the same between ILP32 and LP64. Reviewed-by: David Daney Signed-off-by: Philipp Tomsich Signed-off-by: Christoph Muellner Signed-off-by: Yury Norov Signed-off-by: Andrew Pinski --- arch/arm64/include/uapi/asm

[PATCH v6 07/19] arm64: introduce is_a32_task and is_a32_thread (for AArch32 compat)

2015-11-17 Thread Yury Norov
From: Andrew Pinski This patch introduces is_a32_compat_task and is_a32_thread so it is easier to say this is a a32 specific thread or a generic compat thread/task. Reviewed-by: David Daney Signed-off-by: Philipp Tomsich Signed-off-by: Christoph Muellner Signed-off-by: Yury Norov Signed

[PATCH v6 08/19] arm64:ilp32: add is_ilp32_compat_{task,thread} and TIF_32BIT_AARCH64

2015-11-17 Thread Yury Norov
From: Andrew Pinski Reviewed-by: David Daney Signed-off-by: Philipp Tomsich Signed-off-by: Christoph Muellner Signed-off-by: Yury Norov Signed-off-by: Andrew Pinski --- arch/arm64/include/asm/compat.h | 38 +++- arch/arm64/include/asm/thread_info.h

[PATCH v6 09/19] arm64:ilp32: share HWCAP between LP64 and ILP32

2015-11-17 Thread Yury Norov
From: Andrew Pinski Reviewed-by: David Daney Signed-off-by: Philipp Tomsich Signed-off-by: Christoph Muellner Signed-off-by: Yury Norov Signed-off-by: Andrew Pinski --- arch/arm64/include/asm/hwcap.h | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/arch

[PATCH v6 10/19] arm64:ilp32 use the native LP64 'start_thread' for ILP32 threads

2015-11-17 Thread Yury Norov
From: Andrew Pinski If we have both ILP32 and AARCH32 compiled in, we need use the non compat start thread for ILP32. Reviewed-by: David Daney Signed-off-by: Philipp Tomsich Signed-off-by: Christoph Muellner Signed-off-by: Yury Norov Signed-off-by: Andrew Pinski --- arch/arm64/include

[PATCH v6 11/19] arm64:ilp32: support core dump generation for ILP32

2015-11-17 Thread Yury Norov
From: Andrew Pinski This patch supports core dumping on ILP32. We need a few extra macros (COMPAT_PR_REG_SIZE and COMPAT_PRSTATUS_SIZE) due to size differences of the register sets. Reviewed-by: David Daney Signed-off-by: Philipp Tomsich Signed-off-by: Christoph Muellner Signed-off-by: Yury

[PATCH v6 13/19] arm64: ilp32: common 32-bit wrappers

2015-11-17 Thread Yury Norov
From: Jan Dakinevich Reviewed-by: David Daney Signed-off-by: Yury Norov Signed-off-by: Jan Dakinevich --- arch/arm64/kernel/Makefile | 1 + arch/arm64/kernel/entry32-common.S | 37 + arch/arm64/kernel/entry32.S| 29

[PATCH v6 12/19] ptrace: Allow compat to use the native siginfo

2015-11-17 Thread Yury Norov
in the compat case as it was the non-compat case. Reviewed-by: David Daney Signed-off-by: Christoph Muellner Signed-off-by: Philipp Tomsich Signed-off-by: Yury Norov Signed-off-by: Andrew Pinski --- include/linux/compat.h | 4 kernel/ptrace.c| 24 +--- 2

[PATCH v6 14/19] arm64:ilp32: add sys_ilp32.c and a separate table (in entry.S) to use it

2015-11-17 Thread Yury Norov
From: Andrew Pinski Add a separate syscall-table for ILP32, which dispatches either to native LP64 system call implementation or to compat-syscalls, as appropriate. Reviewed-by: David Daney Signed-off-by: Philipp Tomsich Signed-off-by: Christoph Muellner Signed-off-by: Yury Norov Signed

[PATCH v6 15/19] arm64: ilp32: force IPC_64 in msgctl, shmctl, semctl

2015-11-17 Thread Yury Norov
From: Jan Dakinevich Reviewed-by: David Daney Signed-off-by: Yury Norov Signed-off-by: Jan Dakinevich --- arch/arm64/kernel/sys_ilp32.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/arch/arm64/kernel/sys_ilp32.c b/arch/arm64/kernel/sys_ilp32.c index c366d92

[PATCH v6 19/19] arm64:ilp32: add ARM64_ILP32 to Kconfig

2015-11-17 Thread Yury Norov
From: Andrew Pinski This patch adds the config option for ILP32. Reviewed-by: David Daney Signed-off-by: Philipp Tomsich Signed-off-by: Christoph Muellner Signed-off-by: Yury Norov Signed-off-by: Andrew Pinski --- arch/arm64/Kconfig | 9 - 1 file changed, 8 insertions(+), 1

[PATCH v6 16/19] aarch64: ilp32: use generic stat64 structure

2015-11-17 Thread Yury Norov
t for ABIs. Reviewed-by: David Daney Signed-off-by: Yury Norov --- arch/arm64/kernel/sys_ilp32.c | 86 +++ 1 file changed, 86 insertions(+) diff --git a/arch/arm64/kernel/sys_ilp32.c b/arch/arm64/kernel/sys_ilp32.c index a2596f4..c5bc712 100644 --- a

[PATCH v6 17/19] arm64:ilp32: use the native siginfo instead of the compat siginfo

2015-11-17 Thread Yury Norov
From: Andrew Pinski Set COMPAT_USE_NATIVE_SIGINFO to be true for non AARCH32 tasks. Reviewed-by: David Daney Signed-off-by: Philipp Tomsich Signed-off-by: Christoph Muellner Signed-off-by: Yury Norov Signed-off-by: Andrew Pinski --- arch/arm64/include/asm/compat.h | 3 +++ 1 file changed

[PATCH v6 18/19] arm64:ilp32: change COMPAT_ELF_PLATFORM to report a a subplatform for ILP32

2015-11-17 Thread Yury Norov
From: Philipp Tomsich To make life for tools (such as gdb) easier when dealing with ILP32 processes, we report a proper subarchitecture for ILP32 in the ELF auxiliary vectors. Reviewed-by: David Daney Signed-off-by: Philipp Tomsich Signed-off-by: Christoph Muellner Signed-off-by: Yury Norov

[RFC PATCH v6 00/17] ILP32 for ARM64

2015-11-02 Thread Yury Norov
p32: add ARM64_ILP32 to Kconfig Jan Dakinevich (1): ilp32: common 32-bit wrappers Philipp Tomsich (2): arm64:ilp32: add documentation on the ILP32 ABI for ARM64 arm64:ilp32: change COMPAT_ELF_PLATFORM to report a a subplatform for ILP32 Yury Norov (1): aarch64: ilp32: use gene

[PATCH v6 01/17] arm64:ilp32: add documentation on the ILP32 ABI for ARM64

2015-11-02 Thread Yury Norov
From: Philipp Tomsich Based on Andrew Pinski's original patch-series and adapted with changes to reduce the duplication of code-paths and resolve issue found during LTP testing. Signed-off-by: Philipp Tomsich Signed-off-by: Christoph Muellner Signed-off-by: Yury Norov Signed-off-by: A

[PATCH v6 02/17] arm64: ensure the kernel is compiled for LP64

2015-11-02 Thread Yury Norov
ned-off-by: Christoph Muellner Signed-off-by: Yury Norov Signed-off-by: Andrew Pinski Reviewed-by: David Daney --- arch/arm64/Makefile | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm64/Makefile b/arch/arm64/Makefile index d10b5d4..432b69a 100644 --- a/arch/arm64/Makefile +++ b/

[PATCH v6 03/17] arm64: rename COMPAT to AARCH32_EL0 in Kconfig

2015-11-02 Thread Yury Norov
From: Andrew Pinski Signed-off-by: Philipp Tomsich Signed-off-by: Christoph Muellner Signed-off-by: Yury Norov Signed-off-by: Andrew Pinski Reviewed-by: David Daney --- arch/arm64/Kconfig | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/arch/arm64/Kconfig b/arch

[PATCH v6 04/17] arm64: change some CONFIG_COMPAT over to use CONFIG_AARCH32_EL0 instead

2015-11-02 Thread Yury Norov
From: Andrew Pinski Signed-off-by: Philipp Tomsich Signed-off-by: Christoph Muellner Signed-off-by: Yury Norov Signed-off-by: Andrew Pinski Reviewed-by: David Daney --- arch/arm64/include/asm/elf.h | 20 +--- arch/arm64/include/asm/fpsimd.h| 2 +- arch/arm64

[PATCH v6 05/17] arm64:ilp32: share signal structures between ILP32 and LP64 ABIs

2015-11-02 Thread Yury Norov
From: Andrew Pinski Defines the macros which allow the signal structures to be the same between ILP32 and LP64. Signed-off-by: Philipp Tomsich Signed-off-by: Christoph Muellner Signed-off-by: Yury Norov Signed-off-by: Andrew Pinski Reviewed-by: David Daney --- arch/arm64/include/uapi/asm

[PATCH v6 06/17] arm64: introduce is_a32_task and is_a32_thread (for AArch32 compat)

2015-11-02 Thread Yury Norov
From: Andrew Pinski This patch introduces is_a32_compat_task and is_a32_thread so it is easier to say this is a a32 specific thread or a generic compat thread/task. Signed-off-by: Philipp Tomsich Signed-off-by: Christoph Muellner Signed-off-by: Yury Norov Signed-off-by: Andrew Pinski

[PATCH v6 07/17] arm64:ilp32: add is_ilp32_compat_{task,thread} and TIF_32BIT_AARCH64

2015-11-02 Thread Yury Norov
From: Andrew Pinski Signed-off-by: Philipp Tomsich Signed-off-by: Christoph Muellner Signed-off-by: Yury Norov Signed-off-by: Andrew Pinski Reviewed-by: David Daney --- arch/arm64/include/asm/compat.h | 38 +++- arch/arm64/include/asm/thread_info.h | 1

[PATCH v6 08/17] arm64:ilp32: share HWCAP between LP64 and ILP32

2015-11-02 Thread Yury Norov
From: Andrew Pinski Signed-off-by: Philipp Tomsich Signed-off-by: Christoph Muellner Signed-off-by: Yury Norov Signed-off-by: Andrew Pinski Reviewed-by: David Daney --- arch/arm64/include/asm/hwcap.h | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/arch

[PATCH v6 09/17] arm64:ilp32 use the native LP64 'start_thread' for ILP32 threads

2015-11-02 Thread Yury Norov
From: Andrew Pinski If we have both ILP32 and AARCH32 compiled in, we need use the non compat start thread for ILP32. Signed-off-by: Philipp Tomsich Signed-off-by: Christoph Muellner Signed-off-by: Yury Norov Signed-off-by: Andrew Pinski Reviewed-by: David Daney --- arch/arm64/include/asm

[PATCH v6 10/17] arm64:ilp32: support core dump generation for ILP32

2015-11-02 Thread Yury Norov
From: Andrew Pinski This patch supports core dumping on ILP32. We need a few extra macros (COMPAT_PR_REG_SIZE and COMPAT_PRSTATUS_SIZE) due to size differences of the register sets. Signed-off-by: Philipp Tomsich Signed-off-by: Christoph Muellner Signed-off-by: Yury Norov Signed-off-by

[PATCH v6 15/17] arm64:ilp32: use the native siginfo instead of the compat siginfo

2015-11-02 Thread Yury Norov
From: Andrew Pinski Set COMPAT_USE_NATIVE_SIGINFO to be true for non AARCH32 tasks. Signed-off-by: Philipp Tomsich Signed-off-by: Christoph Muellner Signed-off-by: Yury Norov Signed-off-by: Andrew Pinski Reviewed-by: David Daney --- arch/arm64/include/asm/compat.h | 3 +++ 1 file changed

[PATCH v6 14/17] aarch64: ilp32: use generic stat64 structure

2015-11-02 Thread Yury Norov
, because it's more flexible to have independend support for ABIs. Signed-off-by: Yury Norov Reviewed-by: David Daney --- arch/arm64/kernel/sys_ilp32.c | 57 + include/uapi/asm-generic/stat.h | 8 +++--- 2 files changed, 62 insertions(+), 3 dele

[PATCH v6 16/17] arm64:ilp32: change COMPAT_ELF_PLATFORM to report a a subplatform for ILP32

2015-11-02 Thread Yury Norov
From: Philipp Tomsich To make life for tools (such as gdb) easier when dealing with ILP32 processes, we report a proper subarchitecture for ILP32 in the ELF auxiliary vectors. Signed-off-by: Philipp Tomsich Signed-off-by: Christoph Muellner Signed-off-by: Yury Norov Signed-off-by: Andrew

[PATCH v6 13/17] arm64:ilp32: add sys_ilp32.c and a separate table (in entry.S) to use it

2015-11-02 Thread Yury Norov
From: Andrew Pinski Add a separate syscall-table for ILP32, which dispatches either to native LP64 system call implementation or to compat-syscalls, as appropriate. Signed-off-by: Philipp Tomsich Signed-off-by: Christoph Muellner Signed-off-by: Yury Norov Signed-off-by: Andrew Pinski

[PATCH v6 12/17] ilp32: common 32-bit wrappers

2015-11-02 Thread Yury Norov
From: Jan Dakinevich Signed-off-by: Yury Norov Signed-off-by: Jan Dakinevich Reviewed-by: David Daney --- arch/arm64/kernel/Makefile | 1 + arch/arm64/kernel/entry32-common.S | 37 + arch/arm64/kernel/entry32.S| 29

[PATCH v6 17/17] arm64:ilp32: add ARM64_ILP32 to Kconfig

2015-11-02 Thread Yury Norov
From: Andrew Pinski This patch adds the config option for ILP32. Signed-off-by: Philipp Tomsich Signed-off-by: Christoph Muellner Signed-off-by: Yury Norov Signed-off-by: Andrew Pinski Reviewed-by: David Daney --- arch/arm64/Kconfig | 9 - 1 file changed, 8 insertions(+), 1

[PATCH v6 11/17] ptrace: Allow compat to use the native siginfo

2015-11-02 Thread Yury Norov
in the compat case as it was the non-compat case. Signed-off-by: Christoph Muellner Signed-off-by: Philipp Tomsich Signed-off-by: Yury Norov Signed-off-by: Andrew Pinski Reviewed-by: David Daney --- include/linux/compat.h | 4 kernel/ptrace.c| 24 +--- 2

[PATCH 3/7] lib: add test for bitmap_parse()

2019-09-08 Thread Yury Norov
The test is derived from bitmap_parselist() NO_LEN is reserved for use in following patches. Reviewed-by: Andy Shevchenko Signed-off-by: Yury Norov --- lib/test_bitmap.c | 94 ++- 1 file changed, 93 insertions(+), 1 deletion(-) diff --git a/lib

[PATCH v4 0/7] lib: rework bitmap_parse

2019-09-08 Thread Yury Norov
ing issues fixed. v3: - fix bitmap_clear() misuse. - opencode in_str() helper. - simplify while() in bitmap_parse() v4: - use isxdigit() where appropriate. - clean signed-off-by list. Yury Norov (7): lib/string: add strnchrnul() bitops: more BITS_TO_* macros lib: add test for bitma

[PATCH 2/7] bitops: more BITS_TO_* macros

2019-09-08 Thread Yury Norov
-off-by: Yury Norov --- include/linux/bitops.h | 5 - tools/include/linux/bitops.h | 9 + 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/include/linux/bitops.h b/include/linux/bitops.h index cf074bce3eb32..e61c4e6142641 100644 --- a/include/linux/bitops.h +++ b

<    1   2   3   4   5   6   7   8   9   10   >