Re: PROBLEM: monotonic clock going backwards on ppc64

2019-03-01 Thread Jakub Drnec
Hi, >> Decreasing the realtime clock across the y2k38 threshold is one reliable way >> to reproduce. >> Allegedly this can also happen just by running ntpd, I have not managed to >> reproduce that other >> than booting with rtc at >2038 and then running ntp. > Isn't it the expected behavior. He

PROBLEM: monotonic clock going backwards on ppc64

2019-02-26 Thread Jakub Drnec
eems to be in vDSO code in arch/powerpc/kernel/vdso64/gettimeofday.S. (possibly because some values used in the calculation are only 32 bit?) Slightly silly workaround: nuke the "cmpwi cr1,r3,CLOCK_MONOTONIC" in __kernel_clock_gettime Now it always goes through the syscall fallback which does not have the same problem. Regards, Jakub Drnec