From: Jonathan Lemon <jonathan.lemon@gmail.com>
To: Richard Cochran <richardcochran@gmail.com>
Cc: netdev@vger.kernel.org, kernel-team@fb.com,
Andrew Lunn <andrew@lunn.ch>,
Florian Fainelli <f.fainelli@gmail.com>,
Lasse Johnsen <l@ssejohnsen.me>,
Heiner Kallweit <hkallweit1@gmail.com>,
Russell King <linux@armlinux.org.uk>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
Broadcom internal kernel review list
<bcm-kernel-feedback-list@broadcom.com>
Subject: Re: [PATCH net-next v6 2/3] net: phy: broadcom: Add PTP support for some Broadcom PHYs.
Date: Thu, 09 Jun 2022 12:21:25 -0700 [thread overview]
Message-ID: <85F4D27D-EF7F-4F69-9020-769D2461777D@gmail.com> (raw)
In-Reply-To: <20220609040141.GA21971@hoboy.vegasvil.org>
On 8 Jun 2022, at 21:01, Richard Cochran wrote:
> On Wed, Jun 08, 2022 at 02:29:15PM -0700, Jonathan Lemon wrote:
>> Do you have a stress test to verify one way or the other?
>
> You can set a large freq. offset on the server. For example
>
> phc_ctl eth0 -- freq 500000
>
> for 500 ppm and see what the client does.
Server:
phc_ctl /dev/ptp0 -- freq 60000000
Client (cm4):
ptp4l[252648.584]: rms 5 max 5 freq -59995478 +/- 5
ptp4l[252649.584]: rms 2 max 2 freq -59995476 +/- 1 delay 165 +/- 0
ptp4l[252650.585]: rms 3 max 3 freq -59995475 +/- 1 delay 165 +/- 0
Flipping client and server roles still works, (up to the 62499999 limit
for the igb adapter I'm using on the other end of the cm4 link.)
Looking at the math, the adjustment in bcm_ptp_adjfine() can be up to
0x7fffffff, as this is added to a 0x8000000 base.
So:
(0x7fffffff * 15625) >> 9 == 65535999969 scaled ppm
(65535999969 * 125) >> 13 == 999999999 ppb
Seems like the 100000000 ppb max value is in range?
--
Jonathan
next prev parent reply other threads:[~2022-06-09 19:21 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-08 20:44 [PATCH net-next v6 0/3] Broadcom PTP PHY support Jonathan Lemon
2022-06-08 20:44 ` [PATCH net-next v6 1/3] net: phy: broadcom: Add Broadcom PTP hooks to bcm-phy-lib Jonathan Lemon
2022-06-08 20:44 ` [PATCH net-next v6 2/3] net: phy: broadcom: Add PTP support for some Broadcom PHYs Jonathan Lemon
2022-06-08 20:55 ` Richard Cochran
2022-06-08 21:29 ` Jonathan Lemon
2022-06-09 4:01 ` Richard Cochran
2022-06-09 19:21 ` Jonathan Lemon [this message]
2022-06-09 20:37 ` Richard Cochran
2022-06-11 1:02 ` Jakub Kicinski
2022-06-11 21:33 ` Jonathan Lemon
2022-06-13 16:13 ` Jakub Kicinski
2022-06-08 20:44 ` [PATCH net-next v6 3/3] net: phy: Add support for 1PPS out and external timestamps Jonathan Lemon
2022-06-08 20:50 ` Richard Cochran
2022-06-08 20:58 ` Jonathan Lemon
2022-06-09 20:38 ` [PATCH net-next v6 0/3] Broadcom PTP PHY support Richard Cochran
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=85F4D27D-EF7F-4F69-9020-769D2461777D@gmail.com \
--to=jonathan.lemon@gmail.com \
--cc=andrew@lunn.ch \
--cc=bcm-kernel-feedback-list@broadcom.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=f.fainelli@gmail.com \
--cc=hkallweit1@gmail.com \
--cc=kernel-team@fb.com \
--cc=kuba@kernel.org \
--cc=l@ssejohnsen.me \
--cc=linux@armlinux.org.uk \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=richardcochran@gmail.com \
/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.