All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rodolfo Giometti <giometti@enneenne.com>
To: David Woodhouse <dwmw2@infradead.org>,
	Richard Cochran <richardcochran@gmail.com>,
	Andrew Lunn <andrew+netdev@lunn.ch>,
	"David S. Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@google.com>,
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
	John Stultz <jstultz@google.com>,
	Thomas Gleixner <tglx@kernel.org>,
	Stephen Boyd <sboyd@kernel.org>,
	Miroslav Lichvar <mlichvar@redhat.com>,
	linux-kernel@vger.kernel.org, netdev@vger.kernel.org,
	Alexander Gordeev <agordeev@linux.ibm.com>
Subject: Re: [PATCH v4 2/4] pps: Drop the !NO_HZ_COMMON dependency from NTP_PPS
Date: Wed, 30 Sep 2026 14:57:33 +0200	[thread overview]
Message-ID: <a2db0e1b-0796-499d-ba9c-dff749f9dc1d@enneenne.com> (raw)
In-Reply-To: <3f15c68bce92c57821fba53c80aed7fce13cf8c0.camel@infradead.org>

Hi David,

On 30/09/2026 03:28, David Woodhouse wrote:
> Ok, I have the series in the shape I want to test it now. I got caught
> up in more side quests around minimising ntp_error, which aren't
> *strictly* around hardpps or snapshots at all but it was annoying me.
>
> https://git.infradead.org/?p=users/dwmw2/linux.git;a=shortlog;h=refs/heads/timekeeping
> now has:
>
>  • timekeeping: Allow tick_length changes to apply mid-tick
>    (reduce a fairly gratuitous cause of ntp_error accumulation, when
>     we *account* for a rate change before it actually takes effect)
>
>  • timekeeping: Apply extrapolated ntp_error to clock snapshots
>    (you know this one; as discussed maybe it'll shift to later)
>
>  • timekeeping: Bound idle sleep while a phase slew is in flight
>    (even standard adjtime() was hosed for tickless and would keep
>     applying 500µs/s skew the whole time the system slept)
>
>  • timekeeping: Reinstate proportional correction of ntp_error
>    (because once I fix the above, we *can*)
>
>  • ntp: Recalculate skew_delta when the phase offset changes
>    (another gratuitous cause of ntp_error accumulation. If time_offset
>     goes away *while* we're skewing towards it, the continued skew
>     for the rest of the second is unwanted and goes to ntp_error.
>     Just... stop skewing!)
>
>  • arm64: Support inlined clocksource reads for the arch counter
>    (this seems like an oversight)
>
>  • timekeeping: Read the counter as early as possible in ktime_get_snapshot_id()
>    (as I said, those 20ns are in the noise... but you can have them
>     back anyway)
>
>  • pps: Drop the !NO_HZ_COMMON dependency from NTP_PPS
>    (Really, it isn't needed. This is working)
>
>  • pps: Always use ktime_get_snapshot_id() for pps_get_ts()
>    (I think I mostly eliminated ntp_error as a significant source of
>     discrepancies now, but this is still the right thing to do for
>     precision)

As you suggested on the 28th, wouldn't it be better to move "pps: Always
use ktime_get_snapshot_id() for pps_get_ts()" before "timekeeping: Apply
extrapolated ntp_error to clock snapshots"? So the PPS patch has no
visible effect on ts_real, and the change stays in the timekeeping
patch, where the chrony and ntpd people can judge it.

Ciao,

Rodolfo

  reply	other threads:[~2026-09-30 12:57 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-29 20:56 [PATCH v4 0/4] Add ntp_error to clock snapshot, enable NTP_PPS on tickless kernel David Woodhouse
2026-08-29 20:56 ` [PATCH v4 1/4] timekeeping: Apply extrapolated ntp_error to clock snapshots David Woodhouse
2026-08-29 20:57 ` [PATCH v4 2/4] pps: Drop the !NO_HZ_COMMON dependency from NTP_PPS David Woodhouse
2026-09-01 15:35   ` Rodolfo Giometti
2026-09-02  0:13     ` David Woodhouse
2026-09-28 13:37     ` David Woodhouse
2026-09-28 16:41       ` Rodolfo Giometti
2026-09-28 19:28         ` David Woodhouse
2026-09-29  6:33           ` Rodolfo Giometti
2026-09-29  9:32             ` David Woodhouse
2026-09-29 11:48               ` Rodolfo Giometti
2026-09-29 12:02                 ` David Woodhouse
2026-09-30  1:28                 ` David Woodhouse
2026-09-30 12:57                   ` Rodolfo Giometti [this message]
2026-09-30 10:37                 ` David Woodhouse
2026-09-30 12:57                   ` Rodolfo Giometti
2026-09-30 14:05                     ` David Woodhouse
2026-09-30 18:24                       ` David Woodhouse
2026-10-01  8:20                         ` Rodolfo Giometti
2026-10-01  9:08                           ` David Woodhouse
2026-08-29 20:57 ` [PATCH v4 3/4] pps: Always use ktime_get_snapshot_id() for pps_get_ts() David Woodhouse
2026-09-01 15:35   ` Rodolfo Giometti
2026-09-01 23:56     ` David Woodhouse
2026-09-26 20:38     ` David Woodhouse
2026-09-28  7:58       ` Rodolfo Giometti
2026-09-28 12:59         ` David Woodhouse
2026-09-28 16:41           ` Rodolfo Giometti
2026-10-01 13:14         ` Miroslav Lichvar
2026-10-01 15:38           ` David Woodhouse
2026-10-02  7:04           ` Rodolfo Giometti
2026-10-02  9:07             ` David Woodhouse
2026-10-02 12:29               ` David Woodhouse
2026-10-02 13:44                 ` David Woodhouse
2026-10-03 11:29                   ` David Woodhouse
2026-10-05  9:16                   ` Miroslav Lichvar
2026-08-29 20:57 ` [PATCH v4 4/4] [DO NOT MERGE] ptp: ptp_vmclock: Add simulated 1PPS support David Woodhouse
2026-09-01 15:35 ` [PATCH v4 0/4] Add ntp_error to clock snapshot, enable NTP_PPS on tickless kernel Rodolfo Giometti
2026-09-01 23:37   ` David Woodhouse

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=a2db0e1b-0796-499d-ba9c-dff749f9dc1d@enneenne.com \
    --to=giometti@enneenne.com \
    --cc=agordeev@linux.ibm.com \
    --cc=andrew+netdev@lunn.ch \
    --cc=davem@davemloft.net \
    --cc=dwmw2@infradead.org \
    --cc=edumazet@google.com \
    --cc=jstultz@google.com \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mlichvar@redhat.com \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=richardcochran@gmail.com \
    --cc=sboyd@kernel.org \
    --cc=tglx@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.