[PATCH 0/5] Fix vDSO clock_getres()

2019-04-01 Thread Vincenzo Frascino
e Hu Cc: Vincent Chen Cc: Shuah Khan Cc: Thomas Gleixner Cc: Arnd Bergmann Signed-off-by: Vincenzo Frascino Vincenzo Frascino (5): arm64: Fix vDSO clock_getres() powerpc: Fix vDSO clock_getres() s390: Fix vDSO clock_getres() nds32: Fix vDSO clock_getres() kselftest: Extend vDSO sel

[PATCH 1/5] arm64: Fix vDSO clock_getres()

2019-04-01 Thread Vincenzo Frascino
or at run time. Fix the arm64 vdso implementation of clock_getres keeping a copy of hrtimer_resolution in vdso data and using that directly. Cc: Catalin Marinas Cc: Will Deacon Signed-off-by: Vincenzo Frascino --- arch/arm64/include/asm/vdso_datapage.h | 1 + arch/arm64/kernel/asm-offsets.c

[PATCH 2/5] powerpc: Fix vDSO clock_getres()

2019-04-01 Thread Vincenzo Frascino
or at run time. Fix the powerpc vdso implementation of clock_getres keeping a copy of hrtimer_resolution in vdso data and using that directly. Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Michael Ellerman Signed-off-by: Vincenzo Frascino --- arch/powerpc/include/asm/vdso_datapage.h | 2

[PATCH 3/5] s390: Fix vDSO clock_getres()

2019-04-01 Thread Vincenzo Frascino
or at run time. Fix the s390 vdso implementation of clock_getres keeping a copy of hrtimer_resolution in vdso data and using that directly. Cc: Martin Schwidefsky Cc: Heiko Carstens Signed-off-by: Vincenzo Frascino --- arch/s390/include/asm/vdso.h | 1 + arch/s390/kernel/asm

[PATCH 4/5] nds32: Fix vDSO clock_getres()

2019-04-01 Thread Vincenzo Frascino
or at run time. Fix the nds32 vdso implementation of clock_getres keeping a copy of hrtimer_resolution in vdso data and using that directly. Cc: Greentime Hu Cc: Vincent Chen Signed-off-by: Vincenzo Frascino --- arch/nds32/include/asm/vdso_datapage.h | 1 + arch/nds32/kernel/vdso.c

[PATCH 5/5] kselftest: Extend vDSO selftest to clock_getres

2019-04-01 Thread Vincenzo Frascino
-off-by: Vincenzo Frascino --- tools/testing/selftests/vDSO/Makefile | 2 + .../selftests/vDSO/vdso_clock_getres.c| 107 ++ 2 files changed, 109 insertions(+) create mode 100644 tools/testing/selftests/vDSO/vdso_clock_getres.c diff --git a/tools/testing/selftests

Re: [PATCH 2/5] powerpc: Fix vDSO clock_getres()

2019-04-02 Thread Vincenzo Frascino
Hi Christophe, thank you for your review. On 02/04/2019 06:54, Christophe Leroy wrote: > > > On 04/01/2019 11:51 AM, Vincenzo Frascino wrote: >> clock_getres in the vDSO library has to preserve the same behaviour >> of posix_get_hrtimer_res(). >> >> In particu

Re: [PATCH 2/5] powerpc: Fix vDSO clock_getres()

2019-04-02 Thread Vincenzo Frascino
On 02/04/2019 07:14, Christophe Leroy wrote: > > > On 04/01/2019 11:51 AM, Vincenzo Frascino wrote: >> clock_getres in the vDSO library has to preserve the same behaviour >> of posix_get_hrtimer_res(). >> >> In particular, posix_get_hrtimer_res()

Re: [PATCH 3/5] s390: Fix vDSO clock_getres()

2019-04-03 Thread Vincenzo Frascino
On 03/04/2019 11:06, Thomas Gleixner wrote: > On Wed, 3 Apr 2019, Martin Schwidefsky wrote: > >> On Mon, 1 Apr 2019 12:51:50 +0100 >> Vincenzo Frascino wrote: >> >>> clock_getres in the vDSO library has to preserve the same behaviour >>> of posi

Re: [PATCH 1/5] arm64: Fix vDSO clock_getres()

2019-04-16 Thread Vincenzo Frascino
Hi Catalin, On 15/04/2019 18:35, Catalin Marinas wrote: > On Mon, Apr 01, 2019 at 12:51:48PM +0100, Vincenzo Frascino wrote: >> diff --git a/arch/arm64/kernel/vdso.c b/arch/arm64/kernel/vdso.c >> index 2d419006ad43..47ba72345739 100644 >> --- a/arch/arm64/kernel/vdso.c >&

[PATCH v2 0/5] Fix vDSO clock_getres()

2019-04-16 Thread Vincenzo Frascino
Bergmann Signed-off-by: Vincenzo Frascino Vincenzo Frascino (5): arm64: Fix vDSO clock_getres() powerpc: Fix vDSO clock_getres() s390: Fix vDSO clock_getres() nds32: Fix vDSO clock_getres() kselftest: Extend vDSO selftest to clock_getres arch/arm64/include/asm/vdso_datapage.h| 1

[PATCH v2 1/5] arm64: Fix vDSO clock_getres()

2019-04-16 Thread Vincenzo Frascino
or at run time. Fix the arm64 vdso implementation of clock_getres keeping a copy of hrtimer_resolution in vdso data and using that directly. Cc: Catalin Marinas Cc: Will Deacon Signed-off-by: Vincenzo Frascino --- arch/arm64/include/asm/vdso_datapage.h | 1 + arch/arm64/kernel/asm-offsets.c

[PATCH v2 2/5] powerpc: Fix vDSO clock_getres()

2019-04-16 Thread Vincenzo Frascino
or at run time. Fix the powerpc vdso implementation of clock_getres keeping a copy of hrtimer_resolution in vdso data and using that directly. Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Michael Ellerman Signed-off-by: Vincenzo Frascino --- arch/powerpc/include/asm/vdso_datapage.h | 2

[PATCH v2 3/5] s390: Fix vDSO clock_getres()

2019-04-16 Thread Vincenzo Frascino
or at run time. Fix the s390 vdso implementation of clock_getres keeping a copy of hrtimer_resolution in vdso data and using that directly. Cc: Martin Schwidefsky Cc: Heiko Carstens Signed-off-by: Vincenzo Frascino Acked-by: Martin Schwidefsky --- arch/s390/include/asm/vdso.h | 1

[PATCH v2 4/5] nds32: Fix vDSO clock_getres()

2019-04-16 Thread Vincenzo Frascino
or at run time. Fix the nds32 vdso implementation of clock_getres keeping a copy of hrtimer_resolution in vdso data and using that directly. Cc: Greentime Hu Cc: Vincent Chen Signed-off-by: Vincenzo Frascino --- arch/nds32/include/asm/vdso_datapage.h | 1 + arch/nds32/kernel/vdso.c

[PATCH v2 5/5] kselftest: Extend vDSO selftest to clock_getres

2019-04-16 Thread Vincenzo Frascino
-off-by: Vincenzo Frascino --- tools/testing/selftests/vDSO/Makefile | 2 + .../selftests/vDSO/vdso_clock_getres.c| 108 ++ 2 files changed, 110 insertions(+) create mode 100644 tools/testing/selftests/vDSO/vdso_clock_getres.c diff --git a/tools/testing/selftests

Re: [PATCH v4 3/3] kselftest: Extend vDSO selftest to clock_getres

2019-06-13 Thread Vincenzo Frascino
Hi Michael, I wanted to check with you if you had time to have a look at my new version (v5) of the patches with the fixed test, and if they are ready to be merged or if there is anything else I can do. Thanks and Regards, Vincenzo On 28/05/2019 12:57, Vincenzo Frascino wrote: > Hi Mich

Re: [PATCH 15/22] arch: vdso: consolidate gettime prototypes

2023-11-10 Thread Vincenzo Frascino
I agree, it is a good idea to have a single header for this purpose. > Unfortunately, the sparc version is currently incompatible since > that never added support for __vdso_clock_gettime64() in 32-bit > userland. For the moment, I'm leaving this one out, as I can't > easily test it and

Re: [PATCH v2] vdso: Improve cmd_vdso_check to check all dynamic relocations

2023-03-10 Thread Vincenzo Frascino
ation type $(ARCH_REL_TYPE_ABS) needs to be defined before > -# the inclusion of generic Makefile. > -ARCH_REL_TYPE_ABS := R_ARM_JUMP_SLOT|R_ARM_GLOB_DAT|R_ARM_ABS32 I would still add a comment here to say why we are including the generic Makefile to prevent that it gets accidentally remo

Re: [v2 PATCH 0/3] arch: mm, vdso: consolidate PAGE_SIZE definition

2024-03-08 Thread Vincenzo Frascino
as still waiting to resolve the m68k question, > but there were no further replies in the end, so I kept my original > version. > > Changes from v1: > > - improve Kconfig help texts > - remove an extraneous line in hexagon > > Arnd > Thanks Arnd, looks good to me. Reviewed-by: Vincenzo Frascino

Re: [PATCH RESEND v1 1/4] lib/vdso: Mark do_hres_timens() and do_coarse_timens() __always_inline()

2021-04-12 Thread Vincenzo Frascino
-gettime-monotonic-raw:vdso: 1100 nsec/call > clock-gettime-monotonic-coarse:vdso: 667 nsec/call > clock-gettime-monotonic:vdso: 1025 nsec/call > > Signed-off-by: Christophe Leroy Reviewed-by: Vincenzo Frascino > --- > lib/vdso/gettimeofday.c | 16 >

Re: [PATCH RESEND v1 2/4] lib/vdso: Add vdso_data pointer as input to __arch_get_timens_vdso_data()

2021-04-12 Thread Vincenzo Frascino
age to vdso_data, provide > vdso_data pointer to __arch_get_timens_vdso_data() in order > to ease the calculation on powerpc in following patches. > > Signed-off-by: Christophe Leroy Reviewed-by: Vincenzo Frascino > --- > arch/arm64/include/asm/vdso/compat_gettimeofda

Re: [PATCH RESEND v1 3/4] powerpc/vdso: Separate vvar vma from vdso

2021-04-12 Thread Vincenzo Frascino
Michael Ellerman > Cc: Paul Mackerras > Cc: linuxppc-dev@lists.ozlabs.org > Cc: sta...@vger.kernel.org # v5.11 > [1]: https://github.com/checkpoint-restore/criu/issues/1417 > Signed-off-by: Dmitry Safonov > Tested-by: Christophe Leroy > Signed-off-by: Christophe Leroy Re

Re: [PATCH RESEND v1 4/4] powerpc/vdso: Add support for time namespaces

2021-04-12 Thread Vincenzo Frascino
next page in vvar. > This avoids having to redo the mflr/bcl/mflr/mtlr dance to locate > the page relative to running code position. > > Signed-off-by: Christophe Leroy Reviewed-by: Vincenzo Frascino # vDSO parts > --- > arch/powerpc/Kconfig | 3

[PATCH v3 0/3] Fix vDSO clock_getres()

2019-05-22 Thread Vincenzo Frascino
ackerras Cc: Michael Ellerman Cc: Martin Schwidefsky Cc: Heiko Carstens Cc: Shuah Khan Cc: Thomas Gleixner Cc: Arnd Bergmann Signed-off-by: Vincenzo Frascino Vincenzo Frascino (3): powerpc: Fix vDSO clock_getres() s390: Fix vDSO clock_getres() kselftest: Extend vDSO selftest to cloc

[PATCH v3 1/3] powerpc: Fix vDSO clock_getres()

2019-05-22 Thread Vincenzo Frascino
hmidt Cc: Paul Mackerras Cc: Michael Ellerman Signed-off-by: Vincenzo Frascino Reviewed-by: Christophe Leroy --- Note: This patch is independent from the others in this series, hence it can be merged singularly by the powerpc maintainers. arch/powerpc/include/asm/vdso_datapage.h | 2 +

[PATCH v3 3/3] kselftest: Extend vDSO selftest to clock_getres

2019-05-22 Thread Vincenzo Frascino
-off-by: Vincenzo Frascino --- Note: This patch is independent from the others in this series, hence it can be merged singularly by the kselftest maintainers. tools/testing/selftests/vDSO/Makefile | 2 + .../selftests/vDSO/vdso_clock_getres.c| 137 ++ 2 files

[PATCH v3 2/3] s390: Fix vDSO clock_getres()

2019-05-22 Thread Vincenzo Frascino
or at run time. Fix the s390 vdso implementation of clock_getres keeping a copy of hrtimer_resolution in vdso data and using that directly. Cc: Martin Schwidefsky Cc: Heiko Carstens Signed-off-by: Vincenzo Frascino Acked-by: Martin Schwidefsky --- Note: This patch is independent from the

Re: [PATCH v3 3/3] kselftest: Extend vDSO selftest to clock_getres

2019-05-22 Thread Vincenzo Frascino
Hi Christophe, thank you for your review. On 22/05/2019 12:50, Christophe Leroy wrote: > > > Le 22/05/2019 à 13:07, Vincenzo Frascino a écrit : >> The current version of the multiarch vDSO selftest verifies only >> gettimeofday. >> >> Extend the vDSO selftes

Re: [PATCH v3 3/3] kselftest: Extend vDSO selftest to clock_getres

2019-05-22 Thread Vincenzo Frascino
Hi Christophe, thank you for your review. On 22/05/2019 12:50, Christophe Leroy wrote: > > > Le 22/05/2019 à 13:07, Vincenzo Frascino a écrit : >> The current version of the multiarch vDSO selftest verifies only >> gettimeofday. >> >> Extend the vDSO selftes

[PATCH v4 0/3] Fix vDSO clock_getres()

2019-05-23 Thread Vincenzo Frascino
Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Michael Ellerman Cc: Martin Schwidefsky Cc: Heiko Carstens Cc: Shuah Khan Cc: Thomas Gleixner Cc: Arnd Bergmann Signed-off-by: Vincenzo Frascino Vincenzo Frascino (3): powerpc: Fix vDSO clock_getres() s390: Fix vDSO clock_getres() kselftest

[PATCH v4 1/3] powerpc: Fix vDSO clock_getres()

2019-05-23 Thread Vincenzo Frascino
hmidt Cc: Paul Mackerras Cc: Michael Ellerman Signed-off-by: Vincenzo Frascino Reviewed-by: Christophe Leroy --- Note: This patch is independent from the others in this series, hence it can be merged singularly by the powerpc maintainers. arch/powerpc/include/asm/vdso_datapage.h | 2 +

[PATCH v4 2/3] s390: Fix vDSO clock_getres()

2019-05-23 Thread Vincenzo Frascino
or at run time. Fix the s390 vdso implementation of clock_getres keeping a copy of hrtimer_resolution in vdso data and using that directly. Cc: Martin Schwidefsky Cc: Heiko Carstens Signed-off-by: Vincenzo Frascino Acked-by: Martin Schwidefsky --- Note: This patch is independent from the

[PATCH v4 3/3] kselftest: Extend vDSO selftest to clock_getres

2019-05-23 Thread Vincenzo Frascino
-off-by: Vincenzo Frascino --- Note: This patch is independent from the others in this series, hence it can be merged singularly by the kselftest maintainers. tools/testing/selftests/vDSO/Makefile | 2 + .../selftests/vDSO/vdso_clock_getres.c| 124 ++ 2 files

Re: [PATCH v4 3/3] kselftest: Extend vDSO selftest to clock_getres

2019-05-28 Thread Vincenzo Frascino
Hi Michael, thank you for your reply. On 28/05/2019 07:19, Michael Ellerman wrote: > Vincenzo Frascino writes: > >> The current version of the multiarch vDSO selftest verifies only >> gettimeofday. >> >> Extend the vDSO selftest to clock_getres, to verify th

[PATCH v5 0/3] Fix vDSO clock_getres()

2019-05-28 Thread Vincenzo Frascino
ddressed review comments. Cc: Christophe Leroy Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Michael Ellerman Cc: Martin Schwidefsky Cc: Heiko Carstens Cc: Shuah Khan Cc: Thomas Gleixner Cc: Arnd Bergmann Signed-off-by: Vincenzo Frascino Vincenzo Frascino (3): powerpc: Fix vDSO cloc

[PATCH v5 1/3] powerpc: Fix vDSO clock_getres()

2019-05-28 Thread Vincenzo Frascino
hmidt Cc: Paul Mackerras Cc: Michael Ellerman Signed-off-by: Vincenzo Frascino Reviewed-by: Christophe Leroy --- Note: This patch is independent from the others in this series, hence it can be merged singularly by the powerpc maintainers. arch/powerpc/include/asm/vdso_datapage.h | 2 +

[PATCH v5 2/3] s390: Fix vDSO clock_getres()

2019-05-28 Thread Vincenzo Frascino
or at run time. Fix the s390 vdso implementation of clock_getres keeping a copy of hrtimer_resolution in vdso data and using that directly. Cc: Martin Schwidefsky Cc: Heiko Carstens Signed-off-by: Vincenzo Frascino Acked-by: Martin Schwidefsky --- Note: This patch is independent from the

[PATCH v5 3/3] kselftest: Extend vDSO selftest to clock_getres

2019-05-28 Thread Vincenzo Frascino
-off-by: Vincenzo Frascino --- Note: This patch is independent from the others in this series, hence it can be merged singularly by the kselftest maintainers. tools/testing/selftests/vDSO/Makefile | 2 + .../selftests/vDSO/vdso_clock_getres.c| 124 ++ 2 files

Re: [PATCH v4 3/3] kselftest: Extend vDSO selftest to clock_getres

2019-05-28 Thread Vincenzo Frascino
Hi Christophe, On 28/05/2019 18:01, Christophe Leroy wrote: > Vincenzo Frascino a écrit : > >> Hi Michael, >> >> thank you for your reply. >> >> On 28/05/2019 07:19, Michael Ellerman wrote: >>> Vincenzo Frascino writes: >>> >>>>

Re: [PATCH v4 3/3] kselftest: Extend vDSO selftest to clock_getres

2019-06-04 Thread Vincenzo Frascino
Hi Christophe, On 04/06/2019 14:16, Christophe Leroy wrote: > Hi Vincenzo > > Le 28/05/2019 à 13:57, Vincenzo Frascino a écrit : >> Hi Michael, >> >> thank you for your reply. >> >> On 28/05/2019 07:19, Michael Ellerman wrote: >>> Vincenzo Frasc

Re: [PATCH v4 3/3] kselftest: Extend vDSO selftest to clock_getres

2019-06-04 Thread Vincenzo Frascino
On 04/06/2019 14:39, Christophe Leroy wrote: > > > Le 04/06/2019 à 15:32, Vincenzo Frascino a écrit : >> Hi Christophe, >> >> On 04/06/2019 14:16, Christophe Leroy wrote: >>> Hi Vincenzo >>> >>> Le 28/05/2019 à 13:57, Vincenzo Frascino a

Re: [PATCH v4 3/3] kselftest: Extend vDSO selftest to clock_getres

2019-06-04 Thread Vincenzo Frascino
On 04/06/2019 14:52, Christophe Leroy wrote: > > > Le 04/06/2019 à 15:43, Vincenzo Frascino a écrit : >> On 04/06/2019 14:39, Christophe Leroy wrote: >>> >>> >>> Le 04/06/2019 à 15:32, Vincenzo Frascino a écrit : >>>> Hi Christophe,

Re: [PATCH] random: vDSO: Redefine PAGE_SIZE and PAGE_MASK

2024-08-27 Thread Vincenzo Frascino
in the long run. I am attaching a patch to provide my view on how to minimize the headers included and use only the vdso/ namespace. Please, before using the code, consider that I conducted very limited testing. Note: It should apply clean on Jason's tree. Let me know your thoughts. &g

Re: [PATCH] random: vDSO: Redefine PAGE_SIZE and PAGE_MASK

2024-08-29 Thread Vincenzo Frascino
Hi Christophe, On 27/08/2024 18:14, Christophe Leroy wrote: > > > Le 27/08/2024 à 18:05, Vincenzo Frascino a écrit : >> Hi Christophe, >> >> On 27/08/2024 11:49, Christophe Leroy wrote: >> >> ... ... >> >> Could you please clarify where mi

Re: [PATCH] random: vDSO: Redefine PAGE_SIZE and PAGE_MASK

2024-08-29 Thread Vincenzo Frascino
Hi Christophe, On 27/08/2024 18:38, LEROY Christophe wrote: > Hi Vicenzo, > > Le 27/08/2024 à 18:05, Vincenzo Frascino a écrit : >> Hi Christophe, >> >> On 27/08/2024 11:49, Christophe Leroy wrote: >> >> ... >> >> >> >> I agree with

Re: [PATCH] random: vDSO: Redefine PAGE_SIZE and PAGE_MASK

2024-08-29 Thread Vincenzo Frascino
... >>> Without linux/array_size.h: >>> >>>    VDSO32C arch/powerpc/kernel/vdso/vgetrandom-32.o >>> In file included from : >>> /home/chleroy/linux-powerpc/lib/vdso/getrandom.c: In function >>> '__cvdso_getrandom_data': >>> /home/chleroy/linux-powerpc/lib/vdso/getrandom.c:89:40: error: implicit