From: Greg KH <gregkh@linuxfoundation.org>
To: "Markus Blöchl" <markus@blochl.de>
Cc: stable@vger.kernel.org, linux-kernel@vger.kernel.org,
Anton Nadezhdin <anton.nadezhdin@intel.com>,
markus.bloechl@ipetronik.com
Subject: Re: [PATCH] ice/ptp: fix crosstimestamp reporting
Date: Sun, 24 Aug 2025 09:52:44 +0200 [thread overview]
Message-ID: <2025082425-studio-foam-1975@gregkh> (raw)
In-Reply-To: <20250725-ice_crosstimestamp_reporting-v1-1-3d0473bb7b57@blochl.de>
On Fri, Jul 25, 2025 at 10:33:31PM +0200, Markus Blöchl wrote:
> From: Anton Nadezhdin <anton.nadezhdin@intel.com>
>
> commit a5a441ae283d upstream.
>
> Set use_nsecs=true as timestamp is reported in ns. Lack of this result
> in smaller timestamp error window which cause error during phc2sys
> execution on E825 NICs:
> phc2sys[1768.256]: ioctl PTP_SYS_OFFSET_PRECISE: Invalid argument
>
> This problem was introduced in the cited commit which omitted setting
> use_nsecs to true when converting the ice driver to use
> convert_base_to_cs().
>
> Testing hints (ethX is PF netdev):
> phc2sys -s ethX -c CLOCK_REALTIME -O 37 -m
> phc2sys[1769.256]: CLOCK_REALTIME phc offset -5 s0 freq -0 delay 0
>
> Fixes: d4bea547ebb57 ("ice/ptp: Remove convert_art_to_tsc()")
> Signed-off-by: Anton Nadezhdin <anton.nadezhdin@intel.com>
> Reviewed-by: Aleksandr Loktionov <aleksandr.loktionov@intel.com>
> Reviewed-by: Arkadiusz Kubalewski <arkadiusz.kubalewski@intel.com>
> Tested-by: Rinitha S <sx.rinitha@intel.com>
> Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
> Signed-off-by: Markus Blöchl <markus@blochl.de>
> ---
> Hi Greg,
>
> please consider this backport for linux-6.12.y
>
> It fixes a regression from the series around
> d4bea547ebb57 ("ice/ptp: Remove convert_art_to_tsc()")
> which affected multiple drivers and occasionally
> caused phc2sys to fail on ioctl(fd, PTP_SYS_OFFSET_PRECISE, ...).
>
> This was the initial fix for ice but apparently tagging it
> for stable was forgotten during submission.
>
> The hunk was moved around slightly in the upstream commit
> 92456e795ac6 ("ice: Add unified ice_capture_crosststamp")
> from ice_ptp_get_syncdevicetime() into another helper function
> ice_capture_crosststamp() so its indentation and context have changed.
> I adapted it to apply cleanly.
> ---
> drivers/net/ethernet/intel/ice/ice_ptp.c | 1 +
> 1 file changed, 1 insertion(+)
This is already in the 6.12.42 release, so we don't need to apply it
again, right?
thanks,
greg k-h
prev parent reply other threads:[~2025-08-24 7:52 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-25 20:33 [PATCH] ice/ptp: fix crosstimestamp reporting Markus Blöchl
2025-07-26 1:37 ` Sasha Levin
2025-08-07 12:34 ` Markus Blöchl
2025-08-07 13:54 ` Sasha Levin
2025-08-24 7:52 ` Greg KH [this message]
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=2025082425-studio-foam-1975@gregkh \
--to=gregkh@linuxfoundation.org \
--cc=anton.nadezhdin@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=markus.bloechl@ipetronik.com \
--cc=markus@blochl.de \
--cc=stable@vger.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.