[PATCH] Add VDSO time function support for x86 32-bit kernel

2012-12-11 Thread stefani
From: Stefani Seibold This small patch add the functions vdso_gettimeofday(), vdso_clock_gettime() and vdso_time() support to the VDSO for x86 32-bit kernels. The reason to do this was to get a fast reliable time stamp. Many developers uses TSC to get a fast time time stamp, without knowing the

[PATCH] Add 32 bit VDSO time function support

2012-12-17 Thread stefani
From: Stefani Seibold This patch add the functions vdso_gettimeofday(), vdso_clock_gettime() and vdso_time() to the 32 bit VDSO. The reason to do this was to get a fast reliable time stamp. Many developers uses TSC to get a fast time time stamp, without knowing the pitfalls. VDSO time functions

[PATCH 5/6] Cleanup header files to build a proper 32 bit VDSO

2012-12-18 Thread stefani
From: Stefani Seibold To build a proper VDSO for 64 bit and 32 bit from the same source, some header cleanup is necessary, otherwise a "gcc -m32" will produce a lot of errors and warnings due the differents with LP64 and LP32. Signed-off-by: Stefani Seibold --- arch/x86/mm

[PATCH 1/6] Move out seqcount from seqlock.h

2012-12-18 Thread stefani
From: Stefani Seibold Create a seperate seqcount.h file which handles only seqcount. This file is save to include in VDSO, since there is no in-kernel functionality like spinlock in use. seqlock.h still includes seqcount.h, so there is no side effect for current users. Signed-off-by: Stefani

[PATCH 3/6] Make vsyscall_gtod_data compatible with 32 bit VDSO

2012-12-18 Thread stefani
From: Stefani Seibold To make the vsyscall_gtod_data available for both VDSO (X86_64 and IA32_EMULATION) the alignment must be set to 4. Otherwise the code create with "gcc -m32" will fail, since the structure alignment in 32 bit mode ist 4 byte. There is currently no drawback for X86

[PATCH 6/6] Add 32 bit VDSO support for 32 and 64 bit kernels

2012-12-18 Thread stefani
From: Stefani Seibold This patch adds support for 32 bit VDSO. For 32 bit programs running on a 32 bit kernel, the same mechanism is used as for 64 bit programs running on a 64 bit kernel. For 32 bit programs running under a 64 bit IA32_EMULATION, it is a little bit more tricky. In this case

[PATCH 0/6] Add 32 bit VDSO time function support

2012-12-18 Thread stefani
From: Stefani Seibold This patch add the functions vdso_gettimeofday(), vdso_clock_gettime() and vdso_time() to the 32 bit VDSO. The reason to do this was to get a fast reliable time stamp. Many developers uses TSC to get a fast time time stamp, without knowing the pitfalls. VDSO time functions

[PATCH 2/6] Make vsyscall_gtod_data handling x86 generic

2012-12-18 Thread stefani
From: Stefani Seibold This patch move the vsyscall_gtod_data handling out of vsyscall_64.c into an additonal file vsyscall_gtod.c and make the functions available for x86 32 bit kernels. Signed-off-by: Stefani Seibold --- arch/x86/Kconfig | 4 +- arch/x86/include/asm

[PATCH 4/6] Add new base function _install_special_mapping() to mmap.c

2012-12-18 Thread stefani
From: Stefani Seibold The _install_special_mapping() is the new base function for install_special_mapping(). This function will return a pointer to the vma which was created or a error code in an ERR_PTR() The install_special_mapping() will unscramble this to the old behaviour, returning an int

[PATCH] Add VDSO time function support for x86 32-bit kernel

2012-12-12 Thread stefani
From: Stefani Seibold This small patch add the functions vdso_gettimeofday(), vdso_clock_gettime() and vdso_time() support to the VDSO for x86 32-bit kernels. The reason to do this was to get a fast reliable time stamp. Many developers uses TSC to get a fast time time stamp, without knowing the

[PATCH 1/2] move kfifo.c from kernel/ to lib/

2013-01-08 Thread stefani
From: Stefani Seibold This patch move the kfifo.c file from kernel/ to lib/ Signed-off-by: Stefani Seibold --- kernel/Makefile | 2 +- lib/Makefile| 2 +- {kernel => lib}/kfifo.c | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename {kernel => lib}/kfifo.

[PATCH 2/2] fix kfifo_alloc() and kfifo_init()

2013-01-08 Thread stefani
From: Stefani Seibold This patch fix the kfifo_alloc() and kfifo_init() to alloc at least the requested number of elements. Since the kfifo operates on power of 2 the request size will be rounded up to the next power of two. Signed-off-by: Stefani Seibold --- lib/kfifo.c | 6 ++ 1 file

[PATCH 0/2] kfifo fixes

2013-01-08 Thread stefani
From: Stefani Seibold As requested by Andrew Morton - move the kfifo.c file from kernel/ to lib/ and - fix the kfifo_alloc() and kfifo_init() to alloc at least the requested number of elements Signed-off-by: Stefani Seibold -- To unsubscribe from this list: send the line "unsubscribe

[PATCH 0/2] kfifo fixes

2013-01-08 Thread stefani
From: Stefani Seibold As requested by Andrew Morton - move the kfifo.c file from kernel/ to lib/ and - fix the kfifo_alloc() and kfifo_init() to alloc at least the requested number of elements Signed-off-by: Stefani Seibold -- To unsubscribe from this list: send the line "unsubscribe

[PATCH 1/2] move kfifo.c from kernel/ to lib/

2013-01-08 Thread stefani
From: Stefani Seibold This patch move the kfifo.c file from kernel/ to lib/ Signed-off-by: Stefani Seibold --- kernel/Makefile | 2 +- lib/Makefile| 2 +- {kernel => lib}/kfifo.c | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename {kernel => lib}/kfifo.

[PATCH 2/2] fix kfifo_alloc() and kfifo_init()

2013-01-08 Thread stefani
From: Stefani Seibold This patch fix the kfifo_alloc() and kfifo_init() to alloc at least the requested number of elements. Since the kfifo operates on power of 2 the request size will be rounded up to the next power of two. Signed-off-by: Stefani Seibold --- lib/kfifo.c | 6 ++ 1 file

Re: [PATCH 0/3] Improve 32 bit vDSO time

2014-03-12 Thread stefani
vdso. - Stefani -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

[PATCH v15 05/10] replace VVAR(vsyscall_gtod_data) by gtod macro

2014-02-12 Thread stefani
From: Stefani Seibold There a currently more than 30 users of the gtod macro, so replace the last VVAR(vsyscall_gtod_data) by gtod macro. Signed-off-by: Stefani Seibold --- arch/x86/vdso/vclock_gettime.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/x86/vdso

[PATCH v15 06/10] cleanup __vdso_gettimeofday

2014-02-12 Thread stefani
From: Stefani Seibold This patch do a little cleanup for the __vdso_gettimeofday() function. It kick out an unneeded ret local variable and makes the code faster if only the timezone is needed. Signed-off-by: Stefani Seibold --- arch/x86/vdso/vclock_gettime.c | 7 ++- 1 file changed, 2

[PATCH v15 07/10] introduce VVAR marco for vdso32

2014-02-12 Thread stefani
From: Stefani Seibold This patch revamp the vvar.h for introduce the VVAR macro for vdso32. Signed-off-by: Stefani Seibold --- arch/x86/include/asm/vvar.h | 14 -- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/arch/x86/include/asm/vvar.h b/arch/x86/include/asm

[PATCH v15 01/10] Make vsyscall_gtod_data handling x86 generic

2014-02-12 Thread stefani
From: Stefani Seibold This patch move the vsyscall_gtod_data handling out of vsyscall_64.c into an additonal file vsyscall_gtod.c to make the functionality available for x86 32 bit kernel. It also adds a new vsyscall_32.c which setup the VVAR page. Signed-off-by: Stefani Seibold --- arch/x86

[PATCH v15 04/10] vclock_gettime.c __vdso_clock_gettime cleanup

2014-02-12 Thread stefani
From: Stefani Seibold This patch is a small code cleanup for the __vdso_clock_gettime() function. It removes the unneeded return values from do_monotonic_coarse() and do_realtime_coarse() and add a fallback label for doing the kernel gettimeofday() system call. Signed-off-by: Stefani Seibold

[PATCH v15 0/10] Add 32 bit VDSO time function support

2014-02-12 Thread stefani
From: Stefani Seibold This patch add the functions vdso_gettimeofday(), vdso_clock_gettime() and vdso_time() to the 32 bit VDSO. The reason to do this was to get a fast reliable time stamp. Many developers uses TSC to get a fast time stamp, without knowing the pitfalls. VDSO time functions a

[PATCH v15 08/10] Add 32 bit VDSO time support for 32 bit kernel

2014-02-12 Thread stefani
From: Stefani Seibold This patch add the time support for 32 bit a VDSO to a 32 bit kernel. For 32 bit programs running on a 32 bit kernel, the same mechanism is used as for 64 bit programs running on a 64 bit kernel. Signed-off-by: Stefani Seibold --- arch/x86/include/asm/vdso.h

[PATCH v15 09/10] Add 32 bit VDSO time support for 64 bit kernel

2014-02-12 Thread stefani
From: Stefani Seibold This patch add the VDSO time support for the IA32 Emulation Layer. Due the nature of the kernel headers and the LP64 compiler where the size of a long and a pointer differs against a 32 bit compiler, there is some type hacking necessary for optimal performance. The

[PATCH v15 02/10] Add new func _install_special_mapping() to mmap.c

2014-02-12 Thread stefani
From: Stefani Seibold The _install_special_mapping() is the new base function for install_special_mapping(). This function will return a pointer of the created VMA or a error code in an ERR_PTR() This new function will be needed by the for the vdso 32 bit support to map the additonal vvar and

[PATCH v15 03/10] revamp vclock_gettime.c

2014-02-12 Thread stefani
From: Stefani Seibold This intermediate patch revamps the vclock_gettime.c by moving some functions around. It is only for spliting purpose, to make whole the 32 bit vdso timer patch easier to review. Signed-off-by: Stefani Seibold --- arch/x86/vdso/vclock_gettime.c | 85

Re: [x86, vdso] BUG: unable to handle kernel paging request at d34bd000

2014-03-10 Thread stefani
not a real solution, at least when vcpu function support will be added, then the code size will exceed the page size. Reserving two pages for the VDSO is a good option. - Stefani -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to major

Re: [x86, vdso] BUG: unable to handle kernel paging request at d34bd000

2014-03-10 Thread stefani
Zitat von "H. Peter Anvin" : On 03/10/2014 01:03 PM, Stefani Seibold wrote: What is now the next step? Kick out the compat VDSO? Or should i implement the dual VDSO. And what is now the preferred way to map the VDSO into the user space? Using install_special_mapping() or map it

Re: [x86, vdso] BUG: unable to handle kernel paging request at d34bd000

2014-03-10 Thread stefani
ual VDSO: a one page sized VDSO for the compat mode which has only the syscall code and on multi page sized VDSO which is mapped into user space for the non compat mode. This will work and has no side effects. - Stefani -- To unsubscribe from this list: send the line "unsubscribe linux

Re: Missing USB XHCI and EHCI reset for kexec

2014-04-14 Thread stefani
From Alan Stern : On Sun, 13 Apr 2014, Stefani Seibold wrote: When executing a kexec kernel on a PowerPC board the new started kernel will not find already enumerated USB devices due a missing reset on the USB bus. How do you know the problem is caused by a missing reset? A "e

Re: Missing USB XHCI and EHCI reset for kexec

2014-04-14 Thread stefani
m also occurs with ehci-fsl used in by an other PowerPC device, which is a part of the SoC and is not attached to the PCI bus. One thing is that the "echo 1 >/sys/bus/pci/drivers/ehci-pci/\:00\:17.2/reset" workaround will no longer work for kernel 3.14. - Stefani

Re: Missing USB XHCI and EHCI reset for kexec

2014-04-14 Thread stefani
Zitat von Benjamin Herrenschmidt : On Sun, 2014-04-13 at 21:22 +0200, Stefani Seibold wrote: When executing a kexec kernel on a PowerPC board the new started kernel will not find already enumerated USB devices due a missing reset on the USB bus. As a work around a echo 1 >/sys/bus/

Re: Missing USB XHCI and EHCI reset for kexec

2014-04-15 Thread stefani
ntroller and all devices on this bus. This is what i do with a "echo 1 >/sys/bus/pci/drivers/xhci_hcd/0001:03:00.0/reset" before the kexec. - Stefani -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord.

Re: Missing USB XHCI and EHCI reset for kexec

2014-04-15 Thread stefani
n, the other >one as well, and report what worked for you? > >[1] http://marc.info/?l=linux-usb&m=139483181809062&w=2 > I tried the attach patch and it did not help. This is what i expected because this is a fix in the shutdown path, which will never called when doing a forced

[PATCH 2/4] Add new func _install_special_mapping() to mmap.c

2014-01-30 Thread stefani
From: Stefani Seibold The _install_special_mapping() is the new base function for install_special_mapping(). This function will return a pointer of the created VMA or a error code in an ERR_PTR() This new function will be needed by the for the vdso 32 bit support to map the additonal vvar and

[PATCH 1/4] Make vsyscall_gtod_data handling x86 generic

2014-01-30 Thread stefani
From: Stefani Seibold This patch move the vsyscall_gtod_data handling out of vsyscall_64.c into an additonal file vsyscall_gtod.c to make the functionality available for x86 32 bit kernel. It also adds a new vsyscall_32.c which setup the VVAR page. Signed-off-by: Stefani Seibold --- arch/x86

[PATCH 0/4] Add 32 bit VDSO time function support

2014-01-30 Thread stefani
From: Stefani Seibold This patch add the functions vdso_gettimeofday(), vdso_clock_gettime() and vdso_time() to the 32 bit VDSO. The reason to do this was to get a fast reliable time stamp. Many developers uses TSC to get a fast time stamp, without knowing the pitfalls. VDSO time functions a

[PATCH 3/4] Add 32 bit VDSO support for 32 kernel

2014-01-30 Thread stefani
From: Stefani Seibold This patch add the support for 32 bit VDSO to a 32 bit kernel. For 32 bit programs running on a 32 bit kernel, the same mechanism is used as for 64 bit programs running on a 64 bit kernel. Signed-off-by: Stefani Seibold --- arch/x86/include/asm/elf.h| 2

[PATCH 4/4] Add 32 bit VDSO support for 64 kernel

2014-01-30 Thread stefani
From: Stefani Seibold This patch add the support for the IA32 Emulation Layer to run 32 bit applications on a 64 bit kernel. Due the nature of the kernel headers and the LP64 compiler where the size of a long and a pointer differs against a 32 bit compiler, there is a lot of type hacking

[PATCH 0/4] Add 32 bit VDSO time function support

2014-02-01 Thread stefani
From: Stefani Seibold This patch add the functions vdso_gettimeofday(), vdso_clock_gettime() and vdso_time() to the 32 bit VDSO. The reason to do this was to get a fast reliable time stamp. Many developers uses TSC to get a fast time stamp, without knowing the pitfalls. VDSO time functions a

[PATCH 4/4] Add 32 bit VDSO time support for 64 bit kernel

2014-02-01 Thread stefani
From: Stefani Seibold This patch add the VDSO time support for the IA32 Emulation Layer. Due the nature of the kernel headers and the LP64 compiler where the size of a long and a pointer differs against a 32 bit compiler, there is a lot of type hacking necessary. This kind of type hacking

[PATCH 3/4] Add 32 bit VDSO time support for 32 bit kernel

2014-02-01 Thread stefani
From: Stefani Seibold This patch add the time support for 32 bit a VDSO to a 32 bit kernel. For 32 bit programs running on a 32 bit kernel, the same mechanism is used as for 64 bit programs running on a 64 bit kernel. Signed-off-by: Stefani Seibold --- arch/x86/include/asm/elf.h

[PATCH 1/4] Make vsyscall_gtod_data handling x86 generic

2014-02-01 Thread stefani
From: Stefani Seibold This patch move the vsyscall_gtod_data handling out of vsyscall_64.c into an additonal file vsyscall_gtod.c to make the functionality available for x86 32 bit kernel. It also adds a new vsyscall_32.c which setup the VVAR page. Signed-off-by: Stefani Seibold --- arch/x86

[PATCH 2/4] Add new func _install_special_mapping() to mmap.c

2014-02-01 Thread stefani
From: Stefani Seibold The _install_special_mapping() is the new base function for install_special_mapping(). This function will return a pointer of the created VMA or a error code in an ERR_PTR() This new function will be needed by the for the vdso 32 bit support to map the additonal vvar and

[PATCH 6/8] cleanup __vdso_gettimeofday

2014-02-02 Thread stefani
From: Stefani Seibold This patch do a little cleanup for the __vdso_gettimeofday() function. It kick out an unneeded ret local variable and makes the code faster if only the timezone is needed. Signed-off-by: Stefani Seibold --- arch/x86/vdso/vclock_gettime.c | 7 ++- 1 file changed, 2

[PATCH 7/8] Add 32 bit VDSO time support for 32 bit kernel

2014-02-02 Thread stefani
From: Stefani Seibold This patch add the time support for 32 bit a VDSO to a 32 bit kernel. For 32 bit programs running on a 32 bit kernel, the same mechanism is used as for 64 bit programs running on a 64 bit kernel. Signed-off-by: Stefani Seibold --- arch/x86/include/asm/elf.h

[PATCH 8/8] Add 32 bit VDSO time support for 64 bit kernel

2014-02-02 Thread stefani
From: Stefani Seibold This patch add the VDSO time support for the IA32 Emulation Layer. Due the nature of the kernel headers and the LP64 compiler where the size of a long and a pointer differs against a 32 bit compiler, there is a lot of type hacking necessary. Signed-off-by: Stefani Seibold

[PATCH 1/8] Make vsyscall_gtod_data handling x86 generic

2014-02-02 Thread stefani
From: Stefani Seibold This patch move the vsyscall_gtod_data handling out of vsyscall_64.c into an additonal file vsyscall_gtod.c to make the functionality available for x86 32 bit kernel. It also adds a new vsyscall_32.c which setup the VVAR page. Signed-off-by: Stefani Seibold --- arch/x86

[PATCH 5/8] replace VVAR(vsyscall_gtod_data) by gtod macro

2014-02-02 Thread stefani
From: Stefani Seibold There a currently more than 30 users of the gtod macro, so replace the last VVAR(vsyscall_gtod_data) by gtod macro. Signed-off-by: Stefani Seibold --- arch/x86/vdso/vclock_gettime.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/x86/vdso

[PATCH 0/8] Add 32 bit VDSO time function support

2014-02-02 Thread stefani
From: Stefani Seibold This patch add the functions vdso_gettimeofday(), vdso_clock_gettime() and vdso_time() to the 32 bit VDSO. The reason to do this was to get a fast reliable time stamp. Many developers uses TSC to get a fast time stamp, without knowing the pitfalls. VDSO time functions a

[PATCH 3/8] revamp vclock_gettime.c

2014-02-02 Thread stefani
From: Stefani Seibold This intermediate patch revamps the vclock_gettime.c by moving some functions around. It is only for spliting purpose, to make whole the 32 bit vdso timer patch easier to review. Signed-off-by: Stefani Seibold --- arch/x86/vdso/vclock_gettime.c | 85

[PATCH 2/8] Add new func _install_special_mapping() to mmap.c

2014-02-02 Thread stefani
From: Stefani Seibold The _install_special_mapping() is the new base function for install_special_mapping(). This function will return a pointer of the created VMA or a error code in an ERR_PTR() This new function will be needed by the for the vdso 32 bit support to map the additonal vvar and

[PATCH 4/8] vclock_gettime.c __vdso_clock_gettime cleanup

2014-02-02 Thread stefani
From: Stefani Seibold This patch is a small code cleanup for the __vdso_clock_gettime() function. It removes the unneeded return values from do_monotonic_coarse() and do_realtime_coarse() and add a fallback label for doing the kernel gettimeofday() system call. Signed-off-by: Stefani Seibold

[PATCH v9 3/8] revamp vclock_gettime.c

2014-02-02 Thread stefani
From: Stefani Seibold This intermediate patch revamps the vclock_gettime.c by moving some functions around. It is only for spliting purpose, to make whole the 32 bit vdso timer patch easier to review. Signed-off-by: Stefani Seibold --- arch/x86/vdso/vclock_gettime.c | 85

[PATCH v9 7/8] Add 32 bit VDSO time support for 32 bit kernel

2014-02-02 Thread stefani
From: Stefani Seibold This patch add the time support for 32 bit a VDSO to a 32 bit kernel. For 32 bit programs running on a 32 bit kernel, the same mechanism is used as for 64 bit programs running on a 64 bit kernel. Signed-off-by: Stefani Seibold --- arch/x86/include/asm/vdso.h

[PATCH v9 2/8] Add new func _install_special_mapping() to mmap.c

2014-02-02 Thread stefani
From: Stefani Seibold The _install_special_mapping() is the new base function for install_special_mapping(). This function will return a pointer of the created VMA or a error code in an ERR_PTR() This new function will be needed by the for the vdso 32 bit support to map the additonal vvar and

[PATCH v9 8/8] Add 32 bit VDSO time support for 64 bit kernel

2014-02-02 Thread stefani
From: Stefani Seibold This patch add the VDSO time support for the IA32 Emulation Layer. Due the nature of the kernel headers and the LP64 compiler where the size of a long and a pointer differs against a 32 bit compiler, there is a lot of type hacking necessary. Signed-off-by: Stefani Seibold

[PATCH v9 1/8] Make vsyscall_gtod_data handling x86 generic

2014-02-02 Thread stefani
From: Stefani Seibold This patch move the vsyscall_gtod_data handling out of vsyscall_64.c into an additonal file vsyscall_gtod.c to make the functionality available for x86 32 bit kernel. It also adds a new vsyscall_32.c which setup the VVAR page. Signed-off-by: Stefani Seibold --- arch/x86

[PATCH v9 5/8] replace VVAR(vsyscall_gtod_data) by gtod macro

2014-02-02 Thread stefani
From: Stefani Seibold There a currently more than 30 users of the gtod macro, so replace the last VVAR(vsyscall_gtod_data) by gtod macro. Signed-off-by: Stefani Seibold --- arch/x86/vdso/vclock_gettime.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/x86/vdso

[PATCH v9 6/8] cleanup __vdso_gettimeofday

2014-02-02 Thread stefani
From: Stefani Seibold This patch do a little cleanup for the __vdso_gettimeofday() function. It kick out an unneeded ret local variable and makes the code faster if only the timezone is needed. Signed-off-by: Stefani Seibold --- arch/x86/vdso/vclock_gettime.c | 7 ++- 1 file changed, 2

[PATCH v9 0/8] Add 32 bit VDSO time function support

2014-02-02 Thread stefani
From: Stefani Seibold This patch add the functions vdso_gettimeofday(), vdso_clock_gettime() and vdso_time() to the 32 bit VDSO. The reason to do this was to get a fast reliable time stamp. Many developers uses TSC to get a fast time stamp, without knowing the pitfalls. VDSO time functions a

[PATCH v9 4/8] vclock_gettime.c __vdso_clock_gettime cleanup

2014-02-02 Thread stefani
From: Stefani Seibold This patch is a small code cleanup for the __vdso_clock_gettime() function. It removes the unneeded return values from do_monotonic_coarse() and do_realtime_coarse() and add a fallback label for doing the kernel gettimeofday() system call. Signed-off-by: Stefani Seibold

[PATCH v10 6/8] cleanup __vdso_gettimeofday

2014-02-02 Thread stefani
From: Stefani Seibold This patch do a little cleanup for the __vdso_gettimeofday() function. It kick out an unneeded ret local variable and makes the code faster if only the timezone is needed. Signed-off-by: Stefani Seibold --- arch/x86/vdso/vclock_gettime.c | 7 ++- 1 file changed, 2

[PATCH v10 1/8] Make vsyscall_gtod_data handling x86 generic

2014-02-02 Thread stefani
From: Stefani Seibold This patch move the vsyscall_gtod_data handling out of vsyscall_64.c into an additonal file vsyscall_gtod.c to make the functionality available for x86 32 bit kernel. It also adds a new vsyscall_32.c which setup the VVAR page. Signed-off-by: Stefani Seibold --- arch/x86

[PATCH v10 5/8] replace VVAR(vsyscall_gtod_data) by gtod macro

2014-02-02 Thread stefani
From: Stefani Seibold There a currently more than 30 users of the gtod macro, so replace the last VVAR(vsyscall_gtod_data) by gtod macro. Signed-off-by: Stefani Seibold --- arch/x86/vdso/vclock_gettime.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/x86/vdso

[PATCH v10 4/8] vclock_gettime.c __vdso_clock_gettime cleanup

2014-02-02 Thread stefani
From: Stefani Seibold This patch is a small code cleanup for the __vdso_clock_gettime() function. It removes the unneeded return values from do_monotonic_coarse() and do_realtime_coarse() and add a fallback label for doing the kernel gettimeofday() system call. Signed-off-by: Stefani Seibold

[PATCH v10 7/8] Add 32 bit VDSO time support for 32 bit kernel

2014-02-02 Thread stefani
From: Stefani Seibold This patch add the time support for 32 bit a VDSO to a 32 bit kernel. For 32 bit programs running on a 32 bit kernel, the same mechanism is used as for 64 bit programs running on a 64 bit kernel. Signed-off-by: Stefani Seibold --- arch/x86/include/asm/vdso.h

[PATCH v9 0/8] Add 32 bit VDSO time function support

2014-02-02 Thread stefani
From: Stefani Seibold This patch add the functions vdso_gettimeofday(), vdso_clock_gettime() and vdso_time() to the 32 bit VDSO. The reason to do this was to get a fast reliable time stamp. Many developers uses TSC to get a fast time stamp, without knowing the pitfalls. VDSO time functions a

[PATCH v10 2/8] Add new func _install_special_mapping() to mmap.c

2014-02-02 Thread stefani
From: Stefani Seibold The _install_special_mapping() is the new base function for install_special_mapping(). This function will return a pointer of the created VMA or a error code in an ERR_PTR() This new function will be needed by the for the vdso 32 bit support to map the additonal vvar and

[PATCH v10 8/8] Add 32 bit VDSO time support for 64 bit kernel

2014-02-02 Thread stefani
From: Stefani Seibold This patch add the VDSO time support for the IA32 Emulation Layer. Due the nature of the kernel headers and the LP64 compiler where the size of a long and a pointer differs against a 32 bit compiler, there is a lot of type hacking necessary. Signed-off-by: Stefani Seibold

[PATCH v10 3/8] revamp vclock_gettime.c

2014-02-02 Thread stefani
From: Stefani Seibold This intermediate patch revamps the vclock_gettime.c by moving some functions around. It is only for spliting purpose, to make whole the 32 bit vdso timer patch easier to review. Signed-off-by: Stefani Seibold --- arch/x86/vdso/vclock_gettime.c | 85

[PATCH v11 7/9] introduce VVAR marco for vdso32

2014-02-04 Thread stefani
From: Stefani Seibold This patch revamp the vvar.h for introduce the VVAR macro for vdso32. Signed-off-by: Stefani Seibold --- arch/x86/include/asm/vvar.h | 32 +--- 1 file changed, 21 insertions(+), 11 deletions(-) diff --git a/arch/x86/include/asm/vvar.h b/arch

[PATCH v11 0/9] Add 32 bit VDSO time function support

2014-02-04 Thread stefani
From: Stefani Seibold This patch add the functions vdso_gettimeofday(), vdso_clock_gettime() and vdso_time() to the 32 bit VDSO. The reason to do this was to get a fast reliable time stamp. Many developers uses TSC to get a fast time stamp, without knowing the pitfalls. VDSO time functions a

[PATCH v11 5/9] replace VVAR(vsyscall_gtod_data) by gtod macro

2014-02-04 Thread stefani
From: Stefani Seibold There a currently more than 30 users of the gtod macro, so replace the last VVAR(vsyscall_gtod_data) by gtod macro. Signed-off-by: Stefani Seibold --- arch/x86/vdso/vclock_gettime.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/x86/vdso

[PATCH v11 2/9] Add new func _install_special_mapping() to mmap.c

2014-02-04 Thread stefani
From: Stefani Seibold The _install_special_mapping() is the new base function for install_special_mapping(). This function will return a pointer of the created VMA or a error code in an ERR_PTR() This new function will be needed by the for the vdso 32 bit support to map the additonal vvar and

[PATCH v11 1/9] Make vsyscall_gtod_data handling x86 generic

2014-02-04 Thread stefani
From: Stefani Seibold This patch move the vsyscall_gtod_data handling out of vsyscall_64.c into an additonal file vsyscall_gtod.c to make the functionality available for x86 32 bit kernel. It also adds a new vsyscall_32.c which setup the VVAR page. Signed-off-by: Stefani Seibold --- arch/x86

[PATCH v11 6/9] cleanup __vdso_gettimeofday

2014-02-04 Thread stefani
From: Stefani Seibold This patch do a little cleanup for the __vdso_gettimeofday() function. It kick out an unneeded ret local variable and makes the code faster if only the timezone is needed. Signed-off-by: Stefani Seibold --- arch/x86/vdso/vclock_gettime.c | 7 ++- 1 file changed, 2

[PATCH v11 8/9] Add 32 bit VDSO time support for 32 bit kernel

2014-02-04 Thread stefani
From: Stefani Seibold This patch add the time support for 32 bit a VDSO to a 32 bit kernel. For 32 bit programs running on a 32 bit kernel, the same mechanism is used as for 64 bit programs running on a 64 bit kernel. Signed-off-by: Stefani Seibold --- arch/x86/include/asm/vdso.h

[PATCH v11 3/9] revamp vclock_gettime.c

2014-02-04 Thread stefani
From: Stefani Seibold This intermediate patch revamps the vclock_gettime.c by moving some functions around. It is only for spliting purpose, to make whole the 32 bit vdso timer patch easier to review. Signed-off-by: Stefani Seibold --- arch/x86/vdso/vclock_gettime.c | 85

[PATCH v11 4/9] vclock_gettime.c __vdso_clock_gettime cleanup

2014-02-04 Thread stefani
From: Stefani Seibold This patch is a small code cleanup for the __vdso_clock_gettime() function. It removes the unneeded return values from do_monotonic_coarse() and do_realtime_coarse() and add a fallback label for doing the kernel gettimeofday() system call. Signed-off-by: Stefani Seibold

[PATCH v11 9/9] Add 32 bit VDSO time support for 64 bit kernel

2014-02-04 Thread stefani
From: Stefani Seibold This patch add the VDSO time support for the IA32 Emulation Layer. Due the nature of the kernel headers and the LP64 compiler where the size of a long and a pointer differs against a 32 bit compiler, there is a lot of type hacking necessary. The vsyscall_gtod_data

[PATCH v12 2/9] Add new func _install_special_mapping() to mmap.c

2014-02-05 Thread stefani
From: Stefani Seibold The _install_special_mapping() is the new base function for install_special_mapping(). This function will return a pointer of the created VMA or a error code in an ERR_PTR() This new function will be needed by the for the vdso 32 bit support to map the additonal vvar and

[PATCH v12 7/9] introduce VVAR marco for vdso32

2014-02-05 Thread stefani
From: Stefani Seibold This patch revamp the vvar.h for introduce the VVAR macro for vdso32. Signed-off-by: Stefani Seibold --- arch/x86/include/asm/vvar.h | 32 +--- 1 file changed, 21 insertions(+), 11 deletions(-) diff --git a/arch/x86/include/asm/vvar.h b/arch

[PATCH v12 9/9] Add 32 bit VDSO time support for 64 bit kernel

2014-02-05 Thread stefani
From: Stefani Seibold This patch add the VDSO time support for the IA32 Emulation Layer. Due the nature of the kernel headers and the LP64 compiler where the size of a long and a pointer differs against a 32 bit compiler, there is some type hacking necessary. The vsyscall_gtod_data struture

[PATCH v12 5/9] replace VVAR(vsyscall_gtod_data) by gtod macro

2014-02-05 Thread stefani
From: Stefani Seibold There a currently more than 30 users of the gtod macro, so replace the last VVAR(vsyscall_gtod_data) by gtod macro. Signed-off-by: Stefani Seibold --- arch/x86/vdso/vclock_gettime.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/x86/vdso

[PATCH v12 6/9] cleanup __vdso_gettimeofday

2014-02-05 Thread stefani
From: Stefani Seibold This patch do a little cleanup for the __vdso_gettimeofday() function. It kick out an unneeded ret local variable and makes the code faster if only the timezone is needed. Signed-off-by: Stefani Seibold --- arch/x86/vdso/vclock_gettime.c | 7 ++- 1 file changed, 2

[PATCH v12 1/9] Make vsyscall_gtod_data handling x86 generic

2014-02-05 Thread stefani
From: Stefani Seibold This patch move the vsyscall_gtod_data handling out of vsyscall_64.c into an additonal file vsyscall_gtod.c to make the functionality available for x86 32 bit kernel. It also adds a new vsyscall_32.c which setup the VVAR page. Signed-off-by: Stefani Seibold --- arch/x86

[PATCH v12 3/9] revamp vclock_gettime.c

2014-02-05 Thread stefani
From: Stefani Seibold This intermediate patch revamps the vclock_gettime.c by moving some functions around. It is only for spliting purpose, to make whole the 32 bit vdso timer patch easier to review. Signed-off-by: Stefani Seibold --- arch/x86/vdso/vclock_gettime.c | 85

[PATCH v12 4/9] vclock_gettime.c __vdso_clock_gettime cleanup

2014-02-05 Thread stefani
From: Stefani Seibold This patch is a small code cleanup for the __vdso_clock_gettime() function. It removes the unneeded return values from do_monotonic_coarse() and do_realtime_coarse() and add a fallback label for doing the kernel gettimeofday() system call. Signed-off-by: Stefani Seibold

[PATCH v12 0/9] Add 32 bit VDSO time function support

2014-02-05 Thread stefani
From: Stefani Seibold This patch add the functions vdso_gettimeofday(), vdso_clock_gettime() and vdso_time() to the 32 bit VDSO. The reason to do this was to get a fast reliable time stamp. Many developers uses TSC to get a fast time stamp, without knowing the pitfalls. VDSO time functions a

[PATCH v12 8/9] Add 32 bit VDSO time support for 32 bit kernel

2014-02-05 Thread stefani
From: Stefani Seibold This patch add the time support for 32 bit a VDSO to a 32 bit kernel. For 32 bit programs running on a 32 bit kernel, the same mechanism is used as for 64 bit programs running on a 64 bit kernel. Signed-off-by: Stefani Seibold --- arch/x86/include/asm/vdso.h

[PATCH] [PATCH] add new prctl for a per process wide close on exec

2013-10-21 Thread stefani
From: Stefani Seibold This small patch adds a runtime prctl config option for a per process wide "close on exec" without breaking existing code. With this feature a developer can decide if the application will pass all non "close on exec" file descriptors to a new process

[PATCH v13 6/9] cleanup __vdso_gettimeofday

2014-02-08 Thread stefani
From: Stefani Seibold This patch do a little cleanup for the __vdso_gettimeofday() function. It kick out an unneeded ret local variable and makes the code faster if only the timezone is needed. Signed-off-by: Stefani Seibold --- arch/x86/vdso/vclock_gettime.c | 7 ++- 1 file changed, 2

[PATCH v13 8/9] Add 32 bit VDSO time support for 32 bit kernel

2014-02-08 Thread stefani
From: Stefani Seibold This patch add the time support for 32 bit a VDSO to a 32 bit kernel. For 32 bit programs running on a 32 bit kernel, the same mechanism is used as for 64 bit programs running on a 64 bit kernel. Signed-off-by: Stefani Seibold --- arch/x86/include/asm/vdso.h

[PATCH v13 2/9] Add new func _install_special_mapping() to mmap.c

2014-02-08 Thread stefani
From: Stefani Seibold The _install_special_mapping() is the new base function for install_special_mapping(). This function will return a pointer of the created VMA or a error code in an ERR_PTR() This new function will be needed by the for the vdso 32 bit support to map the additonal vvar and

[PATCH v13 1/9] Make vsyscall_gtod_data handling x86 generic

2014-02-08 Thread stefani
From: Stefani Seibold This patch move the vsyscall_gtod_data handling out of vsyscall_64.c into an additonal file vsyscall_gtod.c to make the functionality available for x86 32 bit kernel. It also adds a new vsyscall_32.c which setup the VVAR page. Signed-off-by: Stefani Seibold --- arch/x86

[PATCH v13 3/9] revamp vclock_gettime.c

2014-02-08 Thread stefani
From: Stefani Seibold This intermediate patch revamps the vclock_gettime.c by moving some functions around. It is only for spliting purpose, to make whole the 32 bit vdso timer patch easier to review. Signed-off-by: Stefani Seibold --- arch/x86/vdso/vclock_gettime.c | 85

[PATCH v13 5/9] replace VVAR(vsyscall_gtod_data) by gtod macro

2014-02-08 Thread stefani
From: Stefani Seibold There a currently more than 30 users of the gtod macro, so replace the last VVAR(vsyscall_gtod_data) by gtod macro. Signed-off-by: Stefani Seibold --- arch/x86/vdso/vclock_gettime.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/x86/vdso

[PATCH v13 7/9] introduce VVAR marco for vdso32

2014-02-08 Thread stefani
From: Stefani Seibold This patch revamp the vvar.h for introduce the VVAR macro for vdso32. Signed-off-by: Stefani Seibold --- arch/x86/include/asm/vvar.h | 32 +--- 1 file changed, 21 insertions(+), 11 deletions(-) diff --git a/arch/x86/include/asm/vvar.h b/arch

  1   2   3   4   >