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

2012-12-11 Thread stefani
From: Stefani Seibold stef...@seibold.net 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

[PATCH] Add 32 bit VDSO time function support

2012-12-17 Thread stefani
From: Stefani Seibold stef...@seibold.net 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

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

2012-12-18 Thread stefani
From: Stefani Seibold stef...@seibold.net 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 stef...@seibold.net

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

2012-12-18 Thread stefani
From: Stefani Seibold stef...@seibold.net 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

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

2012-12-18 Thread stefani
From: Stefani Seibold stef...@seibold.net 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

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

2012-12-18 Thread stefani
From: Stefani Seibold stef...@seibold.net 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

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

2012-12-18 Thread stefani
From: Stefani Seibold stef...@seibold.net 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

[PATCH 2/6] Make vsyscall_gtod_data handling x86 generic

2012-12-18 Thread stefani
From: Stefani Seibold stef...@seibold.net 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 stef...@seibold.net --- arch/x86/Kconfig

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

2012-12-18 Thread stefani
From: Stefani Seibold stef...@seibold.net 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

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

2012-12-12 Thread stefani
From: Stefani Seibold stef...@seibold.net 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

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

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

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

2013-01-08 Thread stefani
From: Stefani Seibold stef...@seibold.net 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 stef...@seibold.net

[PATCH 0/2] kfifo fixes

2013-01-08 Thread stefani
From: Stefani Seibold stef...@seibold.net 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 stef...@seibold.net -- To unsubscribe from

[PATCH 0/2] kfifo fixes

2013-01-08 Thread stefani
From: Stefani Seibold stef...@seibold.net 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 stef...@seibold.net -- To unsubscribe from

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

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

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

2013-01-08 Thread stefani
From: Stefani Seibold stef...@seibold.net 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 stef...@seibold.net

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

2013-10-21 Thread stefani
From: Stefani Seibold stef...@seibold.net 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

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

2014-03-12 Thread stefani
the compat 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/

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

2014-03-10 Thread stefani
will add another 500 bytes. But this is 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

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

2014-03-10 Thread stefani
Zitat von H. Peter Anvin h...@linux.intel.com: 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

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

2014-03-10 Thread stefani
there is a solution i already announced. A dual 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

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

2014-02-10 Thread stefani
From: Stefani Seibold stef...@seibold.net 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

[PATCH v14 3/9] revamp vclock_gettime.c

2014-02-10 Thread stefani
From: Stefani Seibold stef...@seibold.net 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 stef...@seibold.net --- arch/x86/vdso

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

2014-02-10 Thread stefani
From: Stefani Seibold stef...@seibold.net 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

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

2014-02-10 Thread stefani
From: Stefani Seibold stef...@seibold.net 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

[PATCH v14 6/9] cleanup __vdso_gettimeofday

2014-02-10 Thread stefani
From: Stefani Seibold stef...@seibold.net 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 stef...@seibold.net --- arch/x86/vdso

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

2014-02-10 Thread stefani
From: Stefani Seibold stef...@seibold.net 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 stef...@seibold.net

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

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

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

2014-02-10 Thread stefani
From: Stefani Seibold stef...@seibold.net 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 stef...@seibold.net --- arch/x86/vdso/vclock_gettime.c | 6 +++--- 1 file changed, 3 insertions(+), 3

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

2014-02-10 Thread stefani
From: Stefani Seibold stef...@seibold.net 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

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

2014-02-10 Thread stefani
From: Stefani Seibold stef...@seibold.net 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

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

2014-02-12 Thread stefani
From: Stefani Seibold stef...@seibold.net 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 Stefani Seibold stef...@seibold.net --- arch/x86/vdso/vclock_gettime.c | 6 +++--- 1 file changed, 3

[PATCH v15 06/10] cleanup __vdso_gettimeofday

2014-02-12 Thread stefani
From: Stefani Seibold stef...@seibold.net 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 Stefani Seibold stef...@seibold.net --- arch/x86

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

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

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

2014-02-12 Thread stefani
From: Stefani Seibold stef...@seibold.net 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

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

2014-02-12 Thread stefani
From: Stefani Seibold stef...@seibold.net 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

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

2014-02-12 Thread stefani
From: Stefani Seibold stef...@seibold.net 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

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

2014-02-12 Thread stefani
From: Stefani Seibold stef...@seibold.net 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 Stefani Seibold stef

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

2014-02-12 Thread stefani
From: Stefani Seibold stef...@seibold.net 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

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

2014-02-12 Thread stefani
From: Stefani Seibold stef...@seibold.net 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

[PATCH v15 03/10] revamp vclock_gettime.c

2014-02-12 Thread stefani
From: Stefani Seibold stef...@seibold.net 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 Stefani Seibold stef...@seibold.net

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

2014-02-01 Thread stefani
From: Stefani Seibold stef...@seibold.net 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

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

2014-02-01 Thread stefani
From: Stefani Seibold stef...@seibold.net 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

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

2014-02-01 Thread stefani
From: Stefani Seibold stef...@seibold.net 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 stef...@seibold.net

[PATCH 1/4] Make vsyscall_gtod_data handling x86 generic

2014-02-01 Thread stefani
From: Stefani Seibold stef...@seibold.net 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

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

2014-02-01 Thread stefani
From: Stefani Seibold stef...@seibold.net 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

[PATCH 6/8] cleanup __vdso_gettimeofday

2014-02-02 Thread stefani
From: Stefani Seibold stef...@seibold.net 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 stef...@seibold.net --- arch/x86/vdso

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

2014-02-02 Thread stefani
From: Stefani Seibold stef...@seibold.net 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 stef...@seibold.net

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

2014-02-02 Thread stefani
From: Stefani Seibold stef...@seibold.net 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

[PATCH 1/8] Make vsyscall_gtod_data handling x86 generic

2014-02-02 Thread stefani
From: Stefani Seibold stef...@seibold.net 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

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

2014-02-02 Thread stefani
From: Stefani Seibold stef...@seibold.net 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 stef...@seibold.net --- arch/x86/vdso/vclock_gettime.c | 6 +++--- 1 file changed, 3 insertions(+), 3

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

2014-02-02 Thread stefani
From: Stefani Seibold stef...@seibold.net 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

[PATCH 3/8] revamp vclock_gettime.c

2014-02-02 Thread stefani
From: Stefani Seibold stef...@seibold.net 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 stef...@seibold.net --- arch/x86/vdso

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

2014-02-02 Thread stefani
From: Stefani Seibold stef...@seibold.net 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

[PATCH 4/8] vclock_gettime.c __vdso_clock_gettime cleanup

2014-02-02 Thread stefani
From: Stefani Seibold stef...@seibold.net 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

[PATCH v9 3/8] revamp vclock_gettime.c

2014-02-02 Thread stefani
From: Stefani Seibold stef...@seibold.net 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 stef...@seibold.net --- arch/x86/vdso

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

2014-02-02 Thread stefani
From: Stefani Seibold stef...@seibold.net 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 stef...@seibold.net

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

2014-02-02 Thread stefani
From: Stefani Seibold stef...@seibold.net 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

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

2014-02-02 Thread stefani
From: Stefani Seibold stef...@seibold.net 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

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

2014-02-02 Thread stefani
From: Stefani Seibold stef...@seibold.net 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

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

2014-02-02 Thread stefani
From: Stefani Seibold stef...@seibold.net 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 stef...@seibold.net --- arch/x86/vdso/vclock_gettime.c | 6 +++--- 1 file changed, 3 insertions(+), 3

[PATCH v9 6/8] cleanup __vdso_gettimeofday

2014-02-02 Thread stefani
From: Stefani Seibold stef...@seibold.net 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 stef...@seibold.net --- arch/x86/vdso

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

2014-02-02 Thread stefani
From: Stefani Seibold stef...@seibold.net 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

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

2014-02-02 Thread stefani
From: Stefani Seibold stef...@seibold.net 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

[PATCH v10 6/8] cleanup __vdso_gettimeofday

2014-02-02 Thread stefani
From: Stefani Seibold stef...@seibold.net 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 stef...@seibold.net --- arch/x86/vdso

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

2014-02-02 Thread stefani
From: Stefani Seibold stef...@seibold.net 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

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

2014-02-02 Thread stefani
From: Stefani Seibold stef...@seibold.net 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 stef...@seibold.net --- arch/x86/vdso/vclock_gettime.c | 6 +++--- 1 file changed, 3 insertions(+), 3

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

2014-02-02 Thread stefani
From: Stefani Seibold stef...@seibold.net 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

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

2014-02-02 Thread stefani
From: Stefani Seibold stef...@seibold.net 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 stef...@seibold.net

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

2014-02-02 Thread stefani
From: Stefani Seibold stef...@seibold.net 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

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

2014-02-02 Thread stefani
From: Stefani Seibold stef...@seibold.net 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

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

2014-02-02 Thread stefani
From: Stefani Seibold stef...@seibold.net 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

[PATCH v10 3/8] revamp vclock_gettime.c

2014-02-02 Thread stefani
From: Stefani Seibold stef...@seibold.net 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 stef...@seibold.net --- arch/x86/vdso

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

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

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

2014-02-04 Thread stefani
From: Stefani Seibold stef...@seibold.net 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

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

2014-02-04 Thread stefani
From: Stefani Seibold stef...@seibold.net 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 stef...@seibold.net --- arch/x86/vdso/vclock_gettime.c | 6 +++--- 1 file changed, 3 insertions(+), 3

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

2014-02-04 Thread stefani
From: Stefani Seibold stef...@seibold.net 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

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

2014-02-04 Thread stefani
From: Stefani Seibold stef...@seibold.net 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

[PATCH v11 6/9] cleanup __vdso_gettimeofday

2014-02-04 Thread stefani
From: Stefani Seibold stef...@seibold.net 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 stef...@seibold.net --- arch/x86/vdso

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

2014-02-04 Thread stefani
From: Stefani Seibold stef...@seibold.net 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 stef...@seibold.net

[PATCH v11 3/9] revamp vclock_gettime.c

2014-02-04 Thread stefani
From: Stefani Seibold stef...@seibold.net 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 stef...@seibold.net --- arch/x86/vdso

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

2014-02-04 Thread stefani
From: Stefani Seibold stef...@seibold.net 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

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

2014-02-04 Thread stefani
From: Stefani Seibold stef...@seibold.net 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

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

2014-02-05 Thread stefani
From: Stefani Seibold stef...@seibold.net 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

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

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

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

2014-02-05 Thread stefani
From: Stefani Seibold stef...@seibold.net 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

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

2014-02-05 Thread stefani
From: Stefani Seibold stef...@seibold.net 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 stef...@seibold.net --- arch/x86/vdso/vclock_gettime.c | 6 +++--- 1 file changed, 3 insertions(+), 3

[PATCH v12 6/9] cleanup __vdso_gettimeofday

2014-02-05 Thread stefani
From: Stefani Seibold stef...@seibold.net 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 stef...@seibold.net --- arch/x86/vdso

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

2014-02-05 Thread stefani
From: Stefani Seibold stef...@seibold.net 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

[PATCH v12 3/9] revamp vclock_gettime.c

2014-02-05 Thread stefani
From: Stefani Seibold stef...@seibold.net 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 stef...@seibold.net --- arch/x86/vdso

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

2014-02-05 Thread stefani
From: Stefani Seibold stef...@seibold.net 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

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

2014-02-05 Thread stefani
From: Stefani Seibold stef...@seibold.net 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

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

2014-02-05 Thread stefani
From: Stefani Seibold stef...@seibold.net 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 stef...@seibold.net

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

2014-01-30 Thread stefani
From: Stefani Seibold stef...@seibold.net 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

[PATCH 1/4] Make vsyscall_gtod_data handling x86 generic

2014-01-30 Thread stefani
From: Stefani Seibold stef...@seibold.net 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

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

2014-01-30 Thread stefani
From: Stefani Seibold stef...@seibold.net 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

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

2014-01-30 Thread stefani
From: Stefani Seibold stef...@seibold.net 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 stef...@seibold.net --- arch/x86

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

2014-01-30 Thread stefani
From: Stefani Seibold stef...@seibold.net 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

Re: Missing USB XHCI and EHCI reset for kexec

2014-04-15 Thread stefani
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...@vger.kernel.org More majordomo info at http

Re: Missing USB XHCI and EHCI reset for kexec

2014-04-15 Thread stefani
in the shutdown path, which will never called when doing a forced kexec. Hi, Stefani. Did you try with both patches applied? How do you evoke the forced kexec? Is that a kexec on panic? Does it really need to be forced? With no clean shutdown, platform and drivers would need to issue resets, like

  1   2   3   4   5   6   7   8   >