* Add PHC support with error bound value for ENA driver
@ 2024-02-01 7:24 Bernstein, Amit
2024-02-01 14:49 ` Richard Cochran
0 siblings, 1 reply; 3+ messages in thread
From: Bernstein, Amit @ 2024-02-01 7:24 UTC (permalink / raw)
To: tglx@linutronix.de, richardcochran@gmail.com
Cc: kuba@kernel.org, netdev@vger.kernel.org, Dagan, Noam,
Arinzon, David, Agroskin, Shay
Hi Thomas, Richard and all,
In one of the upcoming releases, we're planning to add PHC support to the ENA driver (/drivers/net/ethernet/amazon/ena/)
To provide the best experience for service customers, the ENA driver will expose an error_bound parameter (expressed in nanoseconds),
which will represent the maximal clock error on each given PHC timestamp.
The error bound is calculated by the device, taking into account the accuracy and delays of all the device's PHC components.
Based on our search, there is no similar functionality in other drivers, meaning there is no user interface to expose it.
We're currently exploring the best method of exposing this capability to the user.
Our debate is between:
- Extending the gettimex64 API in ptp_clock_info
- Introducing a new devlink entry
- Updating the time-related ethtool option (-T flag).
As our device sends each PHC timestamp with an error_bound value together, gettimex64 is the reasonable option for us and our recommended solution.
We would like to ask for your recommendation.
We have already consulted with Jakub, who recommended that we consult with all of you.
For more information, you may visit: https://aws.amazon.com/blogs/compute/its-about-time-microsecond-accurate-clocks-on-amazon-ec2-instances/
Thanks,
Amit
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Add PHC support with error bound value for ENA driver
2024-02-01 7:24 Add PHC support with error bound value for ENA driver Bernstein, Amit
@ 2024-02-01 14:49 ` Richard Cochran
2024-02-01 18:56 ` Bernstein, Amit
0 siblings, 1 reply; 3+ messages in thread
From: Richard Cochran @ 2024-02-01 14:49 UTC (permalink / raw)
To: Bernstein, Amit
Cc: tglx@linutronix.de, kuba@kernel.org, netdev@vger.kernel.org,
Dagan, Noam, Arinzon, David, Agroskin, Shay
On Thu, Feb 01, 2024 at 07:24:51AM +0000, Bernstein, Amit wrote:
> In one of the upcoming releases, we're planning to add PHC support
> to the ENA driver (/drivers/net/ethernet/amazon/ena/) To provide the
> best experience for service customers, the ENA driver will expose an
> error_bound parameter (expressed in nanoseconds), which will
> represent the maximal clock error on each given PHC timestamp.
> As our device sends each PHC timestamp with an error_bound value
> together, gettimex64 is the reasonable option for us and our
> recommended solution. We would like to ask for your recommendation.
Sounds like gettimex64 won't help you.
You will need to extend the socket time stamping API. That is how
time stamps are delivered to user space.
HTH,
Richard
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: Add PHC support with error bound value for ENA driver
2024-02-01 14:49 ` Richard Cochran
@ 2024-02-01 18:56 ` Bernstein, Amit
0 siblings, 0 replies; 3+ messages in thread
From: Bernstein, Amit @ 2024-02-01 18:56 UTC (permalink / raw)
To: Richard Cochran
Cc: tglx@linutronix.de, kuba@kernel.org, netdev@vger.kernel.org,
Dagan, Noam, Arinzon, David, Agroskin, Shay
> On Thu, Feb 01, 2024 at 07:24:51AM +0000, Bernstein, Amit wrote:
>
> > In one of the upcoming releases, we're planning to add PHC support to
> > the ENA driver (/drivers/net/ethernet/amazon/ena/) To provide the best
> > experience for service customers, the ENA driver will expose an
> > error_bound parameter (expressed in nanoseconds), which will represent
> > the maximal clock error on each given PHC timestamp.
>
> > As our device sends each PHC timestamp with an error_bound value
> > together, gettimex64 is the reasonable option for us and our
> > recommended solution. We would like to ask for your recommendation.
>
> Sounds like gettimex64 won't help you.
>
> You will need to extend the socket time stamping API. That is how time
> stamps are delivered to user space.
>
> HTH,
> Richard
Richard, thank you for your response.
However, I forgot to mention that the ENA driver currently doesn't support any socket timestamping.
It only supports the PTP hardware clock infrastructure, which is exported using the clock driver.
User space programs can control the clock driver via the PTP_SYS_OFFSET ioctl.
Therefore, we can only use the basic clock operations of ptp_clock_info, such as gettime/gettime64/gettimex64.
Thanks,
Amit
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-02-01 18:56 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-01 7:24 Add PHC support with error bound value for ENA driver Bernstein, Amit
2024-02-01 14:49 ` Richard Cochran
2024-02-01 18:56 ` Bernstein, Amit
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).