[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20220301182153.6a1a8e89@kicinski-fedora-PC1C0HJN.hsd1.ca.comcast.net>
Date: Tue, 1 Mar 2022 18:21:53 -0800
From: Jakub Kicinski <kuba@...nel.org>
To: Jonathan Lemon <jonathan.lemon@...il.com>
Cc: netdev@...r.kernel.org, davem@...emloft.net,
richardcochran@...il.com, kernel-team@...com
Subject: Re: [PATCH net-next] ptp: ocp: Add ptp_ocp_adjtime_coarse for large
adjustments
On Mon, 28 Feb 2022 12:39:57 -0800 Jonathan Lemon wrote:
> In ("ptp: ocp: Have FPGA fold in ns adjustment for adjtime."), the
> ns adjustment was written to the FPGA register, so the clock could
> accurately perform adjustments.
>
> However, the adjtime() call passes in a s64, while the clock adjustment
> registers use a s32. When trying to perform adjustments with a large
> value (37 sec), things fail.
>
> Examine the incoming delta, and if larger than 1 sec, use the original
> (coarse) adjustment method. If smaller than 1 sec, then allow the
> FPGA to fold in the changes over a 1 second window.
>
> Fixes: 6d59d4fa1789 ("ptp: ocp: Have FPGA fold in ns adjustment for adjtime.")
> Signed-off-by: Jonathan Lemon <jonathan.lemon@...il.com>
This one's tagged for net-next - do you intend for it to go to net-next,
or is that a typo?
Powered by blists - more mailing lists