From: David Woodhouse <dwmw2@infradead.org>
To: John Stultz <jstultz@google.com>
Cc: "Miroslav Lichvar" <mlichvar@redhat.com>,
"Richard Cochran" <richardcochran@gmail.com>,
"Wen Gu" <guwen@linux.alibaba.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>,
"Thomas Gleixner" <tglx@kernel.org>,
"Stephen Boyd" <sboyd@kernel.org>,
"Anna-Maria Behnsen" <anna-maria@linutronix.de>,
"Frederic Weisbecker" <frederic@kernel.org>,
"Shuah Khan" <shuah@kernel.org>,
"Peter Zijlstra" <peterz@infradead.org>,
"Thomas Weißschuh" <thomas.weissschuh@linutronix.de>,
"Arnd Bergmann" <arnd@arndb.de>,
linux-kernel@vger.kernel.org
Subject: Re: [RFC PATCH 1/4] timekeeping: Remove xtime_remainder from ntp_error accumulation
Date: Wed, 20 May 2026 01:50:19 +0100 [thread overview]
Message-ID: <e76d780ec49ad65ce796708e9978c4779f893767.camel@infradead.org> (raw)
In-Reply-To: <CANDhNCqE5TmacZh=2P6L003HTOJzzxu4npqFub5u9Bz02LB+Bw@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 2407 bytes --]
On Tue, 2026-05-19 at 17:32 -0700, John Stultz wrote:
> On Tue, May 19, 2026 at 3:20 PM David Woodhouse <dwmw2@infradead.org>
> wrote:
> >
> > On Tue, 2026-05-19 at 14:54 -0700, John Stultz wrote:
> > >
> > > Its a nice analogy. Though if you're going to use it in your
> > > commit
> > > messages, it might be good to also add a comment to the
> > > timekeeping_adjustment() logic so there is an clear anchor to the
> > > code
> > > for folks who might not be as familiar with the detail.
> > >
> > >
> > > > > Also I'm not sure its very clear what you mean by
> > > > > "monotonicity clawback".
> > > >
> > > > This is the offset applied by timekeeping_apply_adjustment() in
> > > > order
> > > > to ensure that the observed xtime remains monotonic when the
> > > > dithering
> > > > switches back from 'mult+1' to 'mult' and a consumer may have
> > > > seen a
> > > > 'later' time than it's about to set in {cycle_last,mult}.
> > > >
> > >
> > > This one I find less clarifying, but I do recognize "adjustments
> > > to
> > > the base xtime_nsec made when adjusting the multiplier due to
> > > unaccumulated cycles" is a mouthful.
> > >
> > > The "xtime_nsec adjustment in timekeeping_apply_adjustment()" is
> > > probably easier/clearer?
> >
> > How's this...
> >
> > # Linux Timekeeping: Tick-Based Clock Discipline
>
> So, I'm guessing given how fast you were to create this and how
> verbose it is, it was AI generated? (Apologies if I'm wrong here!)
It was originally, yes. But it wasn't that fast; I've had it open in
emacs for a week or so now. I had the AI write it for me so that I
could sanity-check it and refine my own understanding.
I trust the AI about as far as I can throw it.
> If so, do remember to use the Assisted-by tag.
Ack.
> I'll try to find some time to carefully review it, but while I
> appreciate the benefit of having a tool help write this, I'm not super
> excited about externalizing the cost of the review onto others.
> As careful review and feedback of an individuals work feels like
> investing in that collaborative effort, but doing the same for AI
> generated output just feels like a chore.
Oh, absolutely! I have actually done the first week's worth of saying
"no, that's complete horseshit. Tell me the truth" to it, as well as
refining the flow to make it read more coherently :)
[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 5069 bytes --]
next prev parent reply other threads:[~2026-05-20 0:50 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-13 20:44 [RFC PATCH 0/4] timekeeping: add feed-forward clock discipline via vmclock David Woodhouse
2026-05-13 20:44 ` [RFC PATCH 1/4] timekeeping: Remove xtime_remainder from ntp_error accumulation David Woodhouse
2026-05-15 22:49 ` John Stultz
2026-05-16 8:25 ` David Woodhouse
2026-05-19 1:37 ` John Stultz
2026-05-19 9:16 ` David Woodhouse
2026-05-19 21:54 ` John Stultz
2026-05-19 22:18 ` David Woodhouse
2026-05-20 0:01 ` John Stultz
2026-05-20 1:01 ` David Woodhouse
2026-05-19 22:20 ` David Woodhouse
2026-05-20 0:32 ` John Stultz
2026-05-20 0:50 ` David Woodhouse [this message]
2026-05-13 20:44 ` [RFC PATCH 2/4] WIP: kernel/time: Add /dev/vmclock_host miscdev David Woodhouse
2026-05-13 20:44 ` [RFC PATCH 3/4] timekeeping: Add absolute reference for feed-forward clock discipline David Woodhouse
2026-05-13 20:44 ` [RFC PATCH 4/4] ptp_vmclock: Feed reference to timekeeping for feed-forward discipline 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=e76d780ec49ad65ce796708e9978c4779f893767.camel@infradead.org \
--to=dwmw2@infradead.org \
--cc=andrew+netdev@lunn.ch \
--cc=anna-maria@linutronix.de \
--cc=arnd@arndb.de \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=frederic@kernel.org \
--cc=guwen@linux.alibaba.com \
--cc=jstultz@google.com \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mlichvar@redhat.com \
--cc=pabeni@redhat.com \
--cc=peterz@infradead.org \
--cc=richardcochran@gmail.com \
--cc=sboyd@kernel.org \
--cc=shuah@kernel.org \
--cc=tglx@kernel.org \
--cc=thomas.weissschuh@linutronix.de \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®