Clock issues
Hello,
For some time now, maybe since around linux-6.18 or 6.19, I've had clock issues on my C8000:
$ dmesg | grep -Ei "(clock|timer)" [ 0.000000] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns [ 0.000002] sched_clock: 64 bits at 1000MHz, resolution 1ns, wraps every 4398046511103ns [ 0.157067] clocksource: cr16: mask: 0xffffffffffffffff max_cycles: 0x1cd42e4dffb, max_idle_ns: 881590591483 ns [ 0.424601] posixtimers hash table entries: 16384 (order: 7, 393216 bytes, linear) [ 10.815258] clocksource: Switched to clocksource cr16 [ 27.403405] rtc-generic rtc-generic: setting system clock to 1970-01-01T00:04:49 UTC (289) [ 40.505925] systemd[1]: Reached target Timer Units. [ 81.978188] systemd-journald[287]: /var/log/journal/3bf64e406fa183db336e3a9461ec365e/system.journal: Realtime clock jumped backwards relative to last journal entry, rotating. [ 85.469182] systemd-journald[287]: /var/log/journal/3bf64e406fa183db336e3a9461ec365e/system.journal: Realtime clock jumped backwards relative to last journal entry, rotating. [ 86.056725] systemd-journald[287]: /var/log/journal/3bf64e406fa183db336e3a9461ec365e/system.journal: Realtime clock jumped backwards relative to last journal entry, rotating. [16728.874434] systemd[1]: systemd-journald.service: Consumed 39.782s CPU time over 4h 37min 46.181s wall clock time, 265.1M memory peak. [27122.317603] systemd[1]: systemd-journald.service: Consumed 16.300s CPU time over 2h 53min 14.258s wall clock time, 59.1M memory peak. [40094.549635] systemd[1]: systemd-journald.service: Consumed 5.282s CPU time over 3h 36min 11.123s wall clock time, 33.6M memory peak. [47515.303274] systemd[1]: systemd-journald.service: Consumed 5.582s CPU time over 2h 3min 40.649s wall clock time, 53M memory peak.
make often complains like:
make[4]: Warning: File '/tmp/ccye17kj.mk' has modification time 0.95 s in the future make[4]: warning: Clock skew detected. Your build may be incomplete.
and my dmesg has many lines like:
[64917.169127] systemd-journald[699]: Time jumped backwards, rotating. [64918.586414] systemd-journald[699]: Time jumped backwards, rotating.
I have chrony running for ntp:
$ chronyc tracking Reference ID : E8E39FE7 (leontp3.office.panq.nl) Stratum : 2 Ref time (UTC) : Sat Sep 26 23:00:50 2026 System time : 0.000000048 seconds fast of NTP time Last offset : +0.000170778 seconds RMS offset : 0.005325589 seconds Frequency : 5.130 ppm fast Residual freq : +0.004 ppm Skew : 0.024 ppm Root delay : 0.016093126 seconds Root dispersion : 0.010259669 seconds Update interval : 1037.3 seconds Leap status : Normal
The machine is SMP with 2 CPUs (PA8900).
I've attached my dmesg output and kernel config.
thanks,
sam
Quoted 4 lines · Sam James
Hello,
For some time now, maybe since around linux-6.18 or 6.19, I've had clock issues on my C8000:
I found an old patch at
https://lore.kernel.org/linux-parisc/ZpoWGfQMJY19fOyR@p100/ but it doesn't apply cleanly anymore. Is it still relevant and worth trying?
sam
Quoted 6 lines · Sam James
Quoted 4 lines · Sam James
Hello,
For some time now, maybe since around linux-6.18 or 6.19, I've had clock issues on my C8000
Yes, Dave and me see similar issues lately.
The parisc related clock code did not change, so it's mostly something upstream which broke it.
Quoted 3 lines
I found an old patch at
https://lore.kernel.org/linux-parisc/ZpoWGfQMJY19fOyR@p100/ but it doesn't apply cleanly anymore. Is it still relevant and worth trying?
Not sure.
My main intention was to be able to run in tickless mode. That was one of the patches, but I think it had issues.
Helge