Re: [PATCH 07/24] arm64: ilp32: add documentation on the ILP32 ABI for ARM64

2018-05-24 Thread Yury Norov
Hi Pavel, On Wed, May 23, 2018 at 04:06:20PM +0200, Pavel Machek wrote: > On Wed 2018-05-16 11:18:52, Yury Norov wrote: > > Based on Andrew Pinski's patch-series. > > > > Signed-off-by: Yury Norov <yno...@caviumnetworks.com> > > So Andrew's signoff should be

[PATCH v9 00/24] ILP32 for ARM64

2018-05-16 Thread Yury Norov
default y Dave Martin (1): arm64: signal: Make parse_user_sigframe() independent of rt_sigframe layout James Morse (1): ptrace: Add compat PTRACE_{G,S}ETSIGMASK handlers Philipp Tomsich (1): arm64:ilp32: add vdso-ilp32 and use for signal return Yury Norov (16): compat ABI: use non

[PATCH 02/24] ptrace: Add compat PTRACE_{G,S}ETSIGMASK handlers

2018-05-16 Thread Yury Norov
James Morse <james.mo...@arm.com> Yury: Replace sigset_{to,from}_compat() with new {get,put}_compat_sigset() Signed-off-by: Yury Norov <yno...@caviumnetworks.com> --- kernel/ptrace.c | 48 1 file changed, 36 insertions(+), 12 deletions(

[PATCH 03/24] compat ABI: use non-compat openat and open_by_handle_at variants

2018-05-16 Thread Yury Norov
version of syscalls. Signed-off-by: Yury Norov <yno...@caviumnetworks.com> Acked-by: Arnd Bergmann <a...@arndb.de> Acked-by: Chris Metcalf <cmetc...@ezchip.com> [for tile] --- arch/tile/kernel/compat.c | 3 +++ include/uapi/asm-generic/unistd.h | 5 ++--- 2 files cha

[PATCH 01/24] arm64: signal: Make parse_user_sigframe() independent of rt_sigframe layout

2018-05-16 Thread Yury Norov
being parsed, and makes the sigframe base pointer generic. A macro is defined to provide a suitable duck-typed interface that can be used with both sigframe definitions. Suggested-by: Yury Norov <yno...@caviumnetworks.com> Signed-off-by: Dave Martin <dave.mar...@arm.com> Signed-off-b

[PATCH 09/24] arm64: rename functions that reference compat term

2018-05-16 Thread Yury Norov
The ILP32 for ARM64 patch series introduces another 'compat' mode for arm64. So to avoid confusing, aarch32-only functions renamed in according to it. Signed-off-by: Yury Norov <yno...@caviumnetworks.com> --- arch/arm64/include/asm/ptrace.h | 10 ++-- arch/arm64/include/asm/sign

[PATCH 10/24] arm64: uapi: set __BITS_PER_LONG correctly for ILP32 and LP64

2018-05-16 Thread Yury Norov
<apin...@cavium.com> Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> Signed-off-by: Christoph Muellner <christoph.muell...@theobroma-systems.com> Signed-off-by: Yury Norov <yno...@caviumnetworks.com> Reviewed-by: David Daney <dda...@caviumnetworks.com&

[PATCH 11/24] arm64: introduce is_a32_task and is_a32_thread (for AArch32 compat)

2018-05-16 Thread Yury Norov
because has already included. It was fixed too. Signed-off-by: Yury Norov <yno...@caviumnetworks.com> Signed-off-by: Andrew Pinski <andrew.pin...@caviumnetworks.com> Signed-off-by: Bamvor Jian Zhang <bamv2...@gmail.com> --- arch/arm64/include/asm/compat.h | 19 ++

[PATCH 14/24] arm64: change compat_elf_hwcap and compat_elf_hwcap2 prefix to a32

2018-05-16 Thread Yury Norov
ILP32 patch series introduces new type of binaries which is also compat. So rename existung aarch32 compat_elf_hwcap's helps to avoid confusing. Signed-off-by: Yury Norov <yno...@caviumnetworks.com> --- arch/arm64/include/asm/hwcap.h | 2 +- arch/arm64/kernel/binfmt_elf32.c

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

2018-05-16 Thread Yury Norov
accordingly. Signed-off-by: Andrew Pinski <andrew.pin...@caviumnetworks.com> Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> Signed-off-by: Christoph Muellner <christoph.muell...@theobroma-systems.com> Signed-off-by: Yury Norov <yno...@caviumnetworks.com>

[PATCH 16/24] arm64: ilp32: share aarch32 syscall handlers

2018-05-16 Thread Yury Norov
According to userspace/kernel ABI, userspace off_t is passed in register pair just like in aarch32. In this patch corresponding aarch32 handlers are shared to ilp32 code. Signed-off-by: Yury Norov <yno...@caviumnetworks.com> --- arch/arm64/kernel/Makefile | 1 + arch/arm64/

[PATCH 15/24] arm64: ilp32: introduce binfmt_ilp32.c

2018-05-16 Thread Yury Norov
Like binfmt_elf32.c for AARCH32, binfmt_ilp32.c is needed to handle ILP32 binaries. Signed-off-by: Yury Norov <yno...@caviumnetworks.com> Signed-off-by: Bamvor Jian Zhang <bamv2...@gmail.com> --- arch/arm64/kernel/Makefile | 1 + arch/arm64/kernel/binfmt_

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

2018-05-16 Thread Yury Norov
ILP32 needs to mix 32bit struct siginfo and 64bit sigframe for its signal handlers. Move the existing compat code for copying siginfo to user space and manipulating signal masks into signal32_common.c so it can be used to deliver aarch32 and ilp32 signals. Signed-off-by: Yury Norov <

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

2018-05-16 Thread Yury Norov
From: Andrew Pinski <apin...@cavium.com> 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 <andrew.pin...@caviumnetworks.com> Signed-off-by: Yur

[PATCH 20/24] arm64: ilp32: introduce ilp32-specific sigframe and ucontext

2018-05-16 Thread Yury Norov
From: Yury Norov <yno...@caviumnetworks.comk> ILP32 uses AARCH32 compat structures and syscall handlers for signals. But ILP32 rt_sigframe and ucontext structures differ from both LP64 and AARCH32. >From software point of view ILP32 is typical 32-bit compat ABI, and from hardware poin

[PATCH 18/24] arm64: signal: share lp64 signal structures and routines to ilp32

2018-05-16 Thread Yury Norov
rt_sigframe which differs for ILP32. Therefore, to let ILP32 generate correct code, body of that functions are moved to arch/arm64/include/asm/signal_common.h. Others just declared in new header. Signed-off-by: Yury Norov <yno...@caviumnetworks.com> --- arch/arm64/include/asm/signal_common.h

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

2018-05-16 Thread Yury Norov
by: Christoph Muellner <christoph.muell...@theobroma-systems.com> Signed-off-by: Yury Norov <yno...@caviumnetworks.com> Signed-off-by: Bamvor Jian Zhang <bamv2...@gmail.com> --- arch/arm64/Makefile | 3 + arch/arm64/include/asm/vdso.h

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

2018-05-16 Thread Yury Norov
theobroma-systems.com> Signed-off-by: Yury Norov <yno...@caviumnetworks.com> Reviewed-by: David Daney <dda...@caviumnetworks.com> --- arch/arm64/Kconfig | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 0685754a

[PATCH 24/24] arm64: ilp32: Make the Kconfig option default y

2018-05-16 Thread Yury Norov
From: Catalin Marinas <catalin.mari...@arm.com> The intention of the ILP32 branches is to enable ILP32 by default. This default is to be revisited for upstream merging. Signed-off-by: Catalin Marinas <catalin.mari...@arm.com> Signed-off-by: Yury Norov <yno...@caviumnetworks.com&g

[PATCH 21/24] arm64: ptrace: handle ptrace_request differently for aarch32 and ilp32

2018-05-16 Thread Yury Norov
compat_ptrace_request() for all requests except PTRACE_GETSIGMASK and PTRACE_SETSIGMASK, which need special handling. Signed-off-by: Yury Norov <yno...@caviumnetworks.com> Signed-off-by: Bamvor Jian Zhang <bamv2...@gmail.com> --- arch/arm64/kernel/ptrace.c | 21 +++-- 1

[PATCH 13/24] arm64: introduce binfmt_elf32.c

2018-05-16 Thread Yury Norov
As we support more than one compat formats, it looks more reasonable to not use fs/compat_binfmt.c. Custom binfmt_elf32.c allows to move aarch32 specific definitions there and make code more maintainable and readable. Signed-off-by: Yury Norov <yno...@caviumnetworks.com> --- arch/arm64/K

[PATCH 07/24] arm64: ilp32: add documentation on the ILP32 ABI for ARM64

2018-05-16 Thread Yury Norov
Based on Andrew Pinski's patch-series. Signed-off-by: Yury Norov <yno...@caviumnetworks.com> --- Documentation/arm64/ilp32.txt | 45 +++ 1 file changed, 45 insertions(+) create mode 100644 Documentation/arm64/ilp32.txt diff --git a/Documentation/arm64/ilp

[PATCH 08/24] arm64: rename COMPAT to AARCH32_EL0 in Kconfig

2018-05-16 Thread Yury Norov
caviumnetworks.com> Signed-off-by: Yury Norov <yno...@caviumnetworks.com> Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> Signed-off-by: Christoph Muellner <christoph.muell...@theobroma-systems.com> Signed-off-by: Bamvor Jian Zhang <bamv2...@gmail.com>

[PATCH 04/24] 32-bit userspace ABI: introduce ARCH_32BIT_OFF_T config option

2018-05-16 Thread Yury Norov
), a libc may use 32-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 <yno...@caviumnetworks.com> Acked-by: Arnd Bergmann <a...@arndb.de> --- arch/Kconfig| 15 +++ arch

[PATCH 06/24] thread: move thread bits accessors to separated file

2018-05-16 Thread Yury Norov
t; Signed-off-by: Yury Norov <yno...@caviumnetworks.com> --- include/linux/sched.h | 1 + include/linux/thread_bits.h | 76 + include/linux/thread_info.h | 64 +-- 3 files changed, 78 insertions(+), 63 deletions(-) cr

Re: [PATCH v9 00/24] ILP32 for ARM64

2018-05-15 Thread Yury Norov
Hi all, On Tue, May 15, 2018 at 10:11:50PM +0300, Yury Norov wrote: > This series enables AARCH64 with ILP32 mode. > > As supporting work, it introduces ARCH_32BIT_OFF_T configuration > option that is enabled for existing 32-bit architectures but disabled > for new arches (

[PATCH 01/24] arm64: signal: Make parse_user_sigframe() independent of rt_sigframe layout

2018-05-15 Thread Yury Norov
being parsed, and makes the sigframe base pointer generic. A macro is defined to provide a suitable duck-typed interface that can be used with both sigframe definitions. Suggested-by: Yury Norov <yno...@caviumnetworks.com> Signed-off-by: Dave Martin <dave.mar...@arm.com> Signed-off-b

[PATCH 02/24] ptrace: Add compat PTRACE_{G,S}ETSIGMASK handlers

2018-05-15 Thread Yury Norov
ted-by: Zhou Chengming <zhouchengmi...@huawei.com> Signed-off-by: James Morse <james.mo...@arm.com> Yury: Replace sigset_{to,from}_compat() with new {get,put}_compat_sigset() Signed-off-by: Yury Norov <yno...@caviumnetworks.com> --- kernel/ptrace.c | 48

[PATCH v9 00/24] ILP32 for ARM64

2018-05-15 Thread Yury Norov
handlers Philipp Tomsich (1): arm64:ilp32: add vdso-ilp32 and use for signal return Yury Norov (16): compat ABI: use non-compat openat and open_by_handle_at variants 32-bit userspace ABI: introduce ARCH_32BIT_OFF_T config option asm-generic: Drop getrlimit and setrlimit syscalls from

Re: [PATCH v16 06/13] task_isolation: userspace hard isolation from kernel

2018-03-18 Thread Yury Norov
Hi Chris, On Fri, Nov 03, 2017 at 01:04:45PM -0400, Chris Metcalf wrote: > The existing nohz_full mode is designed as a "soft" isolation mode > that makes tradeoffs to minimize userspace interruptions while > still attempting to avoid overheads in the kernel entry/exit path, > to provide 100%

Re: [PATCH v16 00/13] support "task_isolation" mode

2018-03-07 Thread Yury Norov
29 cycles (count: 437) 30 cycles (count: 1874) 31 cycles (count: 221) 57 cycles (count: 4) 58 cycles (count: 6) 59 cycles (count: 1) real 15m58.643s user 15m58.626s sys 0m0.012s I pass task_isolation_debug to boot parameters: # cat /proc/cmdline BOOT_IMAGE=

Re: [PATCH v8 00/20] ILP32 for ARM64

2018-02-02 Thread Yury Norov
, Yury On Mon, Jun 19, 2017 at 06:49:43PM +0300, Yury Norov wrote: > This series enables aarch64 with ilp32 mode. > > As supporting work, it introduces ARCH_32BIT_OFF_T configuration > option that is enabled for existing 32-bit architectures but disabled > for new arches (so 64-bit

Re: [PATCH v8 00/20] ILP32 for ARM64

2017-11-16 Thread Yury Norov
Hi Catalin, Arnd, all, This is ILP32 patches on top of 4.14 kernel: https://github.com/norov/linux/commits/ilp32-4.14 I tested the series with LTP lite built by Linaro toolchain, and no regressions found. By the way, do you have plans to upstream arch subseries?

Re: [PATCH] arm64: fix documentation on kernel pages mappings to HYP VA

2017-09-28 Thread Yury Norov
On Wed, Sep 27, 2017 at 10:13:33AM +0100, Will Deacon wrote: > On Wed, Sep 27, 2017 at 09:31:41AM +0100, Marc Zyngier wrote: > > On Tue, Sep 26 2017 at 9:45:42 pm BST, Yury Norov > > <yno...@caviumnetworks.com> wrote: > > > On Wed, Sep 13, 2017 at 09:0

Re: [PATCH] Documentation: kernel-api: add bitmap operations from linux/bitmap.h

2017-09-18 Thread Yury Norov
On Sun, Sep 17, 2017 at 07:07:10PM -0700, Randy Dunlap wrote: > From: Randy Dunlap <rdun...@infradead.org> > > Add to kernel-api Bitmap Operations section. > Fix kernel-doc nitpicks in . > > Signed-off-by: Randy Dunlap <rdun...@infradead.org> > Cc: Yury Norov &

Re: [PATCH v8 00/20] ILP32 for ARM64

2017-09-15 Thread Yury Norov
:49:43PM +0300, Yury Norov wrote: > This series enables aarch64 with ilp32 mode. > > As supporting work, it introduces ARCH_32BIT_OFF_T configuration > option that is enabled for existing 32-bit architectures but disabled > for new arches (so 64-bit off_t userspace type is used b

[PATCH] arm64: fix documentation on kernel pages mappings to HYP VA

2017-09-13 Thread Yury Norov
assumes clearing of top 24bits of the kernel VA. Signed-off-by: Yury Norov <yno...@caviumnetworks.com> --- Documentation/arm64/memory.txt | 15 +-- 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/Documentation/arm64/memory.txt b/Documentation/arm64/memory.txt index d7273a

Re: [PATCH v8 00/20] ILP32 for ARM64

2017-09-04 Thread Yury Norov
On Mon, Aug 21, 2017 at 01:21:24PM +0300, Yury Norov wrote: > On Tue, Aug 08, 2017 at 02:34:11PM +0100, Catalin Marinas wrote: > > On Mon, Jul 24, 2017 at 02:26:24PM +0300, Yury Norov wrote: > > > This is the 4.12 and linux-next - based kernel patches: > > > https://

Re: [PATCH v8 00/20] ILP32 for ARM64

2017-08-21 Thread Yury Norov
On Tue, Aug 08, 2017 at 02:34:11PM +0100, Catalin Marinas wrote: > On Mon, Jul 24, 2017 at 02:26:24PM +0300, Yury Norov wrote: > > This is the 4.12 and linux-next - based kernel patches: > > https://github.com/norov/linux/tree/ilp32-4.12 > > https://github.com/norov/linu

Re: [PATCH v8 00/20] ILP32 for ARM64

2017-07-31 Thread Yury Norov
Hi Catalin, On Thu, Jul 27, 2017 at 06:12:22PM +0100, Catalin Marinas wrote: > Hi Yury, > > On Mon, Jul 24, 2017 at 02:26:24PM +0300, Yury Norov wrote: [...] > > This is the 4.12 and linux-next - based kernel patches: > > https://github.com/norov/linux/tree/ilp32-4.12 &

Re: [PATCH v8 00/20] ILP32 for ARM64

2017-07-24 Thread Yury Norov
Hi Catalin, Hope you spent your vacation well. On Fri, Jul 07, 2017 at 06:11:36PM +0100, Catalin Marinas wrote: > Hi Yury, > > Just a quick reply as I'm about to go on holiday for the next two weeks. > > On Fri, Jul 07, 2017 at 12:59:02AM +0300, Yury Norov wrote: > > On Th

Re: [PATCH 08/20] thread: move thread bits accessors to separated file

2017-07-17 Thread Yury Norov
On Mon, Jul 17, 2017 at 04:57:02PM +0200, Andreas Schwab wrote: > On Jun 19 2017, Yury Norov <yno...@caviumnetworks.com> wrote: > > > diff --git a/include/linux/thread_bits.h b/include/linux/thread_bits.h > > new file mode 100644 > > index ..87354331bc

Re: [PATCH v8 00/20] ILP32 for ARM64

2017-07-06 Thread Yury Norov
Hi Catalin, On Thu, Jun 29, 2017 at 05:10:36PM +0100, Catalin Marinas wrote: > Hi Yury, > > On Mon, Jun 19, 2017 at 06:49:43PM +0300, Yury Norov wrote: > > This series enables aarch64 with ilp32 mode. > > Thanks for putting this series together, I do appreciate the effo

Re: [PATCH 18/20] arm64: ptrace: handle ptrace_request differently for aarch32 and ilp32

2017-06-23 Thread Yury Norov
On Fri, Jun 23, 2017 at 06:03:37PM +0100, James Morse wrote: > Hi Yury, > > On 04/06/17 13:00, Yury Norov wrote: > > ILP32 has context-related structures different from both aarch32 and > > aarch64/lp64. In this patch compat_arch_ptrace() renamed to > > compat_a32_ptrac

Re: [PATCH 05/20] arm64: rename COMPAT to AARCH32_EL0 in Kconfig

2017-06-22 Thread Yury Norov
On Wed, Jun 21, 2017 at 02:10:03AM +0300, Yury Norov wrote: > On Mon, Jun 19, 2017 at 04:58:16PM +0100, James Morse wrote: > > Hi Yury, [...] > > This is confusing as 'is_compat_task()' matches one of aarch32 or ilp32, but > > compat_user_mode(regs) only matches aarch32 a

Re: [PATCH 05/20] arm64: rename COMPAT to AARCH32_EL0 in Kconfig

2017-06-20 Thread Yury Norov
On Mon, Jun 19, 2017 at 04:58:16PM +0100, James Morse wrote: > Hi Yury, > > On 04/06/17 12:59, Yury Norov wrote: > > From: Andrew Pinski <apin...@cavium.com> > > > > In this patchset ILP32 ABI support is added. Additionally to AARCH32, > > which is binar

Re: [PATCH 16/20] arm64: signal32: move ilp32 and aarch32 common code to separated file

2017-06-20 Thread Yury Norov
On Mon, Jun 19, 2017 at 05:16:42PM +0100, James Morse wrote: > Hi Yury, > > On 04/06/17 13:00, Yury Norov wrote: > > Signed-off-by: Yury Norov <yno...@caviumnetworks.com> > > Can I offer a body for the commit message: > ILP32 needs to mix 32bit struct siginfo and

[PATCH 07/20] arm64:uapi: set __BITS_PER_LONG correctly for ILP32 and LP64

2017-06-19 Thread Yury Norov
<apin...@cavium.com> Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> Signed-off-by: Christoph Muellner <christoph.muell...@theobroma-systems.com> Signed-off-by: Yury Norov <yno...@caviumnetworks.com> Reviewed-by: David Daney <dda...@caviumnetworks.com&

[PATCH 13/20] arm64: ilp32: share aarch32 syscall handlers

2017-06-19 Thread Yury Norov
According to userspace/kernel ABI, userspace off_t is passed in register pair just like in aarch32. In this patch corresponding aarch32 handlers are shared to ilp32 code. Signed-off-by: Yury Norov <yno...@caviumnetworks.com> --- arch/arm64/kernel/Makefile | 1 + arch/arm64/

[PATCH 15/20] arm64: signal: share lp64 signal routines to ilp32

2017-06-19 Thread Yury Norov
After that, it will be possible to reuse it in ilp32. Signed-off-by: Yury Norov <yno...@caviumnetworks.com> Signed-off-by: Bamvor Jian Zhang <bamvor.zhangj...@linaro.org> --- arch/arm64/include/asm/signal_common.h | 33 arch/arm64/kernel/signal.c

[PATCH 19/20] arm64:ilp32: add vdso-ilp32 and use for signal return

2017-06-19 Thread Yury Norov
by: Christoph Muellner <christoph.muell...@theobroma-systems.com> Signed-off-by: Yury Norov <yno...@caviumnetworks.com> Signed-off-by: Bamvor Jian Zhang <bamvor.zhangj...@linaro.org> --- arch/arm64/Makefile | 3 + arch/arm64/include/asm/vdso.h

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

2017-06-19 Thread Yury Norov
Signed-off-by: Yury Norov <yno...@caviumnetworks.com> --- arch/arm64/include/asm/signal32.h| 3 + arch/arm64/include/asm/signal32_common.h | 27 +++ arch/arm64/kernel/Makefile | 2 +- arch/arm64/kernel/signal32.c | 107

[PATCH 18/20] arm64: ptrace: handle ptrace_request differently for aarch32 and ilp32

2017-06-19 Thread Yury Norov
compat_ptrace_request() for all requests except PTRACE_GETSIGMASK and PTRACE_SETSIGMASK, which need special handling. Signed-off-by: Yury Norov <yno...@caviumnetworks.com> Signed-off-by: Bamvor Jian Zhang <bamvor.zhangj...@linaro.org> Signed-off-by: Chengming Zhou <zhouchengm

[PATCH 17/20] arm64: ilp32: introduce ilp32-specific handlers for sigframe and ucontext

2017-06-19 Thread Yury Norov
ndrew.pin...@caviumnetworks.com> Signed-off-by: Yury Norov <yno...@caviumnetworks.com> --- arch/arm64/include/asm/signal_ilp32.h | 38 arch/arm64/kernel/Makefile| 3 +- arch/arm64/kernel/entry_ilp32.S | 22 + arch/arm64/kernel/signal.c| 3 +

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

2017-06-19 Thread Yury Norov
theobroma-systems.com> Signed-off-by: Yury Norov <yno...@caviumnetworks.com> Reviewed-by: David Daney <dda...@caviumnetworks.com> --- arch/arm64/Kconfig | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 168ab2cc

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

2017-06-19 Thread Yury Norov
From: Andrew Pinski <apin...@cavium.com> 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 <andrew.pin...@caviumnetworks.com> Signed-off-by: Yur

[PATCH 12/20] arm64: ilp32: introduce binfmt_ilp32.c

2017-06-19 Thread Yury Norov
Like binfmt_elf32.c, binfmt_ilp32.c is needed to handle ILP32 binaries. Signed-off-by: Yury Norov <yno...@caviumnetworks.com> Signed-off-by: Bamvor Jian Zhang <bamvor.zhangj...@linaro.org> --- arch/arm64/kernel/Makefile | 1 + arch/arm64/kernel/binfmt_

[PATCH 11/20] arm64: introduce binfmt_elf32.c

2017-06-19 Thread Yury Norov
As we support more than one compat formats, it looks more reasonable to not use fs/compat_binfmt.c. Custom binfmt_elf32.c allows to move aarch32 specific definitions there and make code more maintainable and readable. Signed-off-by: Yury Norov <yno...@caviumnetworks.com> --- arch/arm64/K

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

2017-06-19 Thread Yury Norov
accordingly. Signed-off-by: Andrew Pinski <andrew.pin...@caviumnetworks.com> Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> Signed-off-by: Christoph Muellner <christoph.muell...@theobroma-systems.com> Signed-off-by: Yury Norov <yno...@caviumnetworks.com>

[PATCH 09/20] arm64: introduce is_a32_task and is_a32_thread (for AArch32 compat)

2017-06-19 Thread Yury Norov
because has already included. It was fixed too. Signed-off-by: Yury Norov <yno...@caviumnetworks.com> Signed-off-by: Andrew Pinski <andrew.pin...@caviumnetworks.com> Signed-off-by: Bamvor Jian Zhang <bamvor.zhangj...@linaro.org> --- arch/arm64/include/asm/compat.h | 19 ++---

[PATCH 06/20] arm64: ensure the kernel is compiled for LP64

2017-06-19 Thread Yury Norov
Pinski <andrew.pin...@caviumnetworks.com> Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> Signed-off-by: Christoph Muellner <christoph.muell...@theobroma-systems.com> Signed-off-by: Yury Norov <yno...@caviumnetworks.com> Reviewed-by: David Daney <dda

[PATCH 05/20] arm64: rename COMPAT to AARCH32_EL0 in Kconfig

2017-06-19 Thread Yury Norov
caviumnetworks.com> Signed-off-by: Yury Norov <yno...@caviumnetworks.com> Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> Signed-off-by: Christoph Muellner <christoph.muell...@theobroma-systems.com> Signed-off-by: Bamvor Jian Zhang <bamvor.zha

[PATCH 04/20] arm64: ilp32: add documentation on the ILP32 ABI for ARM64

2017-06-19 Thread Yury Norov
Based on Andrew Pinski's patch-series. Signed-off-by: Yury Norov <yno...@caviumnetworks.com> --- Documentation/arm64/ilp32.txt | 45 +++ 1 file changed, 45 insertions(+) create mode 100644 Documentation/arm64/ilp32.txt diff --git a/Documentation

[PATCH 03/20] asm-generic: Drop getrlimit and setrlimit syscalls from default list

2017-06-19 Thread Yury Norov
ox...@gmail.com> Cc: Chris Metcalf <cmetc...@mellanox.com> Cc: Guan Xuetao <g...@mprc.pku.edu.cn> Cc: Ley Foon Tan <lf...@altera.com> Cc: nios2-...@lists.rocketboards.org Cc: Yoshinori Sato <ys...@users.sourceforge.jp> Cc: uclinux-h8-de...@lists.sourceforge.jp Signed-o

[PATCH 02/20] 32-bit userspace ABI: introduce ARCH_32BIT_OFF_T config option

2017-06-19 Thread Yury Norov
), a libc may use 32-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 <yno...@caviumnetworks.com> Acked-by: Arnd Bergmann <a...@arndb.de> --- arch/Kconfig| 15 +++ arch

[PATCH 01/20] compat ABI: use non-compat openat and open_by_handle_at variants

2017-06-19 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 are going to drop the support of 32-bit userspace off_t. The exception is tile32 that continues with compat version of syscalls. Signed-off-by: Yury Norov <

[PATCH v8 00/20] ILP32 for ARM64

2017-06-19 Thread Yury Norov
: ilp32: introduce ilp32-specific handlers for sigframe and ucontext arm64:ilp32: add ARM64_ILP32 to Kconfig Philipp Tomsich (1): arm64:ilp32: add vdso-ilp32 and use for signal return Yury Norov (13): compat ABI: use non-compat openat and open_by_handle_at variants 32-bit userspace ABI

Re: [PATCH 02/20] 32-bit ABI: introduce ARCH_32BIT_OFF_T config option

2017-06-13 Thread Yury Norov
On Thu, Jun 08, 2017 at 04:09:50PM +0100, Catalin Marinas wrote: > On Sun, Jun 04, 2017 at 02:59:51PM +0300, Yury Norov wrote: > > All new 32-bit architectures should have 64-bit off_t type, but existing > > architectures has 32-bit ones. > > > > To handle it, new con

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

2017-06-09 Thread Yury Norov
On Thu, Jun 08, 2017 at 04:05:36PM +0100, James Morse wrote: > Hi Yury, > > On 04/06/17 13:00, Yury Norov wrote: > > From: Andrew Pinski <apin...@cavium.com> > > > > Add a separate syscall-table for ILP32, which dispatches either to native > > LP64

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

2017-06-08 Thread Yury Norov
On Thu, Jun 08, 2017 at 04:24:34PM +0100, Catalin Marinas wrote: > On Sun, Jun 04, 2017 at 03:00:08PM +0300, Yury Norov wrote: > > From: Philipp Tomsich <philipp.toms...@theobroma-systems.com> > > > > ILP32 VDSO exports following symbols: > > __kernel_rt_sigr

Re: [PATCH 05/20] arm64: rename COMPAT to AARCH32_EL0 in Kconfig

2017-06-08 Thread Yury Norov
Hi Catalin, thanks for review. On Thu, Jun 08, 2017 at 03:09:12PM +0100, Catalin Marinas wrote: > On Sun, Jun 04, 2017 at 02:59:54PM +0300, Yury Norov wrote: > > --- a/arch/arm64/Kconfig > > +++ b/arch/arm64/Kconfig > > @@ -402,7 +402,7 @@ config ARM64_ERRATUM_834

Re: [PATCH 03/20] asm-generic: Drop getrlimit and setrlimit syscalls from default list

2017-06-07 Thread Yury Norov
On Mon, Jun 05, 2017 at 03:44:06PM +0100, James Hogan wrote: > Hi Yury, > > On Sun, Jun 04, 2017 at 02:59:52PM +0300, Yury Norov wrote: > > The newer prlimit64 syscall provides all the functionality provided by > > the getrlimit and setrlimit syscalls and adds the pid of t

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

2017-06-04 Thread Yury Norov
Signed-off-by: Yury Norov <yno...@caviumnetworks.com> --- arch/arm64/include/asm/signal32.h| 3 + arch/arm64/include/asm/signal32_common.h | 27 +++ arch/arm64/kernel/Makefile | 2 +- arch/arm64/kernel/signal32.c | 107

[PATCH 13/20] arm64: ilp32: share aarch32 syscall handlers

2017-06-04 Thread Yury Norov
off_t is passed in register pair just like in aarch32. In this patch corresponding aarch32 handlers are shared to ilp32 code. Signed-off-by: Yury Norov <yno...@caviumnetworks.com> --- arch/arm64/kernel/Makefile | 1 + arch/arm64/kernel/entry32.S

[PATCH 19/20] arm64:ilp32: add vdso-ilp32 and use for signal return

2017-06-04 Thread Yury Norov
by: Christoph Muellner <christoph.muell...@theobroma-systems.com> Signed-off-by: Yury Norov <yno...@caviumnetworks.com> Signed-off-by: Bamvor Jian Zhang <bamvor.zhangj...@linaro.org> --- arch/arm64/Makefile | 3 + arch/arm64/include/asm/vdso.h

[PATCH 15/20] arm64: signal: share lp64 signal routines to ilp32

2017-06-04 Thread Yury Norov
After that, it will be possible to reuse it in ilp32. Signed-off-by: Yury Norov <yno...@caviumnetworks.com> Signed-off-by: Bamvor Jian Zhang <bamvor.zhangj...@linaro.org> --- arch/arm64/include/asm/signal_common.h | 33 arch/arm64/kernel/signal.c

[PATCH 17/20] arm64: ilp32: introduce ilp32-specific handlers for sigframe and ucontext

2017-06-04 Thread Yury Norov
ndrew.pin...@caviumnetworks.com> Signed-off-by: Yury Norov <yno...@caviumnetworks.com> --- arch/arm64/include/asm/signal_ilp32.h | 38 arch/arm64/kernel/Makefile| 3 +- arch/arm64/kernel/entry_ilp32.S | 22 + arch/arm64/kernel/signal.c| 3 +

[PATCH 12/20] arm64: ilp32: introduce binfmt_ilp32.c

2017-06-04 Thread Yury Norov
Like binfmt_elf32.c, binfmt_ilp32.c is needed to handle ILP32 binaries Signed-off-by: Yury Norov <yno...@caviumnetworks.com> Signed-off-by: Bamvor Jian Zhang <bamvor.zhangj...@linaro.org> --- arch/arm64/kernel/Makefile | 1 + arch/arm64/kernel/binfmt_

[PATCH 18/20] arm64: ptrace: handle ptrace_request differently for aarch32 and ilp32

2017-06-04 Thread Yury Norov
compat_ptrace_request() for all requests except PTRACE_GETSIGMASK and PTRACE_SETSIGMASK, which need special handling. Signed-off-by: Yury Norov <yno...@caviumnetworks.com> Signed-off-by: Bamvor Jian Zhang <bamvor.zhangj...@linaro.org> Signed-off-by: Chengming Zhou <zhouchengm

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

2017-06-04 Thread Yury Norov
From: Andrew Pinski <apin...@cavium.com> 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 <andrew.pin...@caviumnetworks.com> Signed-off-by: Yur

[PATCH 08/20] thread: move thread bits accessors to separated file

2017-06-04 Thread Yury Norov
Signed-off-by: Yury Norov <yno...@caviumnetworks.com> --- include/linux/thread_bits.h | 63 +++ include/linux/thread_info.h | 66 + 2 files changed, 75 insertions(+), 54 deletions(-) create mode 100644 include/lin

[PATCH 09/20] arm64: introduce is_a32_task and is_a32_thread (for AArch32 compat)

2017-06-04 Thread Yury Norov
because has already included. It was fixed too. Signed-off-by: Yury Norov <yno...@caviumnetworks.com> Signed-off-by: Andrew Pinski <andrew.pin...@caviumnetworks.com> Signed-off-by: Bamvor Jian Zhang <bamvor.zhangj...@linaro.org> --- arch/arm64/include/asm/compat.h | 19 ++---

[PATCH 11/20] arm64: introduce binfmt_elf32.c

2017-06-04 Thread Yury Norov
As we support more than one compat formats, it looks more reasonable to not use fs/compat_binfmt.c. Custom binfmt_elf32.c allows to move aarch32 specific definitions there and make code more maintainable and readable. Signed-off-by: Yury Norov <yno...@caviumnetworks.com> --- arch/arm64/K

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

2017-06-04 Thread Yury Norov
accordingly. Signed-off-by: Andrew Pinski <andrew.pin...@caviumnetworks.com> Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> Signed-off-by: Christoph Muellner <christoph.muell...@theobroma-systems.com> Signed-off-by: Yury Norov <yno...@caviumnetworks.com>

[PATCH 07/20] arm64:uapi: set __BITS_PER_LONG correctly for ILP32 and LP64

2017-06-04 Thread Yury Norov
<apin...@cavium.com> Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> Signed-off-by: Christoph Muellner <christoph.muell...@theobroma-systems.com> Signed-off-by: Yury Norov <yno...@caviumnetworks.com> Reviewed-by: David Daney <dda...@caviumnetworks.com&

[PATCH 05/20] arm64: rename COMPAT to AARCH32_EL0 in Kconfig

2017-06-04 Thread Yury Norov
tworks.com> Signed-off-by: Yury Norov <yno...@caviumnetworks.com> Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> Signed-off-by: Christoph Muellner <christoph.muell...@theobroma-systems.com> Signed-off-by: Bamvor Jian Zhang <bamvor.zha

[PATCH 04/20] arm64: ilp32: add documentation on the ILP32 ABI for ARM64

2017-06-04 Thread Yury Norov
Based on Andrew Pinski's patch-series. Signed-off-by: Yury Norov <yno...@caviumnetworks.com> --- Documentation/arm64/ilp32.txt | 45 +++ 1 file changed, 45 insertions(+) create mode 100644 Documentation/arm64/ilp32.txt diff --git a/Documentation

[PATCH 03/20] asm-generic: Drop getrlimit and setrlimit syscalls from default list

2017-06-04 Thread Yury Norov
ox...@gmail.com> Cc: Chris Metcalf <cmetc...@mellanox.com> Cc: Guan Xuetao <g...@mprc.pku.edu.cn> Cc: Ley Foon Tan <lf...@altera.com> Cc: nios2-...@lists.rocketboards.org Cc: Yoshinori Sato <ys...@users.sourceforge.jp> Cc: uclinux-h8-de...@lists.sourceforge.jp Signed-o

[PATCH 06/20] arm64: ensure the kernel is compiled for LP64

2017-06-04 Thread Yury Norov
Pinski <andrew.pin...@caviumnetworks.com> Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> Signed-off-by: Christoph Muellner <christoph.muell...@theobroma-systems.com> Signed-off-by: Yury Norov <yno...@caviumnetworks.com> Reviewed-by: David Daney <dda

[no subject]

2017-06-04 Thread Yury Norov
Yury Norov (13): compat ABI: use non-compat openat and open_by_handle_at variants 32-bit ABI: introduce ARCH_32BIT_OFF_T config option asm-generic: Drop getrlimit and setrlimit syscalls from default list arm64: ilp32: add documentation on the ILP32 ABI for ARM64 thread: move thread bits

[PATCH 01/20] compat ABI: use non-compat openat and open_by_handle_at variants

2017-06-04 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 <yno...@caviumnetworks.

Re: [PATCH v7 resend 00/20] ILP32 for ARM64

2017-04-11 Thread Yury Norov
On Tue, Apr 11, 2017 at 08:42:24PM +0200, Florian Weimer wrote: > On 04/11/2017 08:36 PM, Yury Norov wrote: > >>Also, the latest benchmarks I've seen were mostly for user space > >>while I'm more concerned with the user-kernel interface > >>(https://marc.info/?l=linu

Re: [PATCH v7 resend 00/20] ILP32 for ARM64

2017-04-11 Thread Yury Norov
> Also, the latest benchmarks I've seen were mostly for user space > while I'm more concerned with the user-kernel interface > (https://marc.info/?l=linux-arm-kernel=148690490713310=2). > On the glibc testing side, have the regressions been identified/fixed? I run LTP for testing the ABI and

Re: [PATCH v7 resend 00/20] ILP32 for ARM64

2017-04-10 Thread Yury Norov
in 4.12? This is the rebase of ILP32 on latest linux-next: https://github.com/norov/linux/tree/ilp32-20170410 And glibc that I use for testing: https://github.com/norov/glibc/commits/dev9 Yury On Thu, Mar 02, 2017 at 12:49:08AM +0530, Yury Norov wrote: > This series enables aarch64 with il

[PATCH 05/20] arm64: rename COMPAT to AARCH32_EL0 in Kconfig

2017-03-01 Thread Yury Norov
tworks.com> Signed-off-by: Yury Norov <yno...@caviumnetworks.com> Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> Signed-off-by: Christoph Muellner <christoph.muell...@theobroma-systems.com> Signed-off-by: Bamvor Jian Zhang <bamvor.zha

[PATCH 01/20] compat ABI: use non-compat openat and open_by_handle_at variants

2017-03-01 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 <yno...@caviumnetworks.

[PATCH 04/20] arm64: ilp32: add documentation on the ILP32 ABI for ARM64

2017-03-01 Thread Yury Norov
Based on Andrew Pinski's patch-series. Signed-off-by: Yury Norov <yno...@caviumnetworks.com> --- Documentation/arm64/ilp32.txt | 45 +++ 1 file changed, 45 insertions(+) create mode 100644 Documentation/arm64/ilp32.txt diff --git a/Documentation

[PATCH 03/20] asm-generic: Drop getrlimit and setrlimit syscalls from default list

2017-03-01 Thread Yury Norov
Arnd Bergmann <a...@arndb.de> Acked-by: Mark Salter <msal...@redhat.com> [c6x] Acked-by: James Hogan <james.ho...@imgtec.com> [metag] Acked-by: Ley Foon Tan <lf...@altera.com> [nios2] Acked-by: Stafford Horne <sho...@gmail.com> [openrisc] Acked-by: Vineet Gupta <vgu

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

2017-03-01 Thread Yury Norov
Signed-off-by: Yury Norov <yno...@caviumnetworks.com> --- arch/arm64/include/asm/signal32.h| 3 + arch/arm64/include/asm/signal32_common.h | 27 +++ arch/arm64/kernel/Makefile | 2 +- arch/arm64/kernel/signal32.c | 107

[PATCH 07/20] arm64:uapi: set __BITS_PER_LONG correctly for ILP32 and LP64

2017-03-01 Thread Yury Norov
<apin...@cavium.com> Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> Signed-off-by: Christoph Muellner <christoph.muell...@theobroma-systems.com> Signed-off-by: Yury Norov <yno...@caviumnetworks.com> Reviewed-by: David Daney <dda...@caviumnetworks.com&

  1   2   3   >