DPDK patches and discussions
 help / color / mirror / Atom feed
From: Slava Ovsiienko <viacheslavo@mellanox.com>
To: PATRICK KEROULAS <patrick.keroulas@radio-canada.ca>
Cc: "dev@dpdk.org" <dev@dpdk.org>,
	Vivien Didelot <vivien.didelot@gmail.com>,
	 Shahaf Shuler <shahafs@mellanox.com>,
	Raslan Darawsheh <rasland@mellanox.com>,
	Matan Azrad <matan@mellanox.com>
Subject: Re: [dpdk-dev] mlx5 & pdump: convert HW timestamps to nanoseconds
Date: Fri, 5 Jun 2020 16:30:07 +0000
Message-ID: <AM4PR05MB32653023479E4F529F8A5E89D2860@AM4PR05MB3265.eurprd05.prod.outlook.com> (raw)
In-Reply-To: <CALEF-=APTLw8y-2E8Tj=NRcXvgDEqUm8t-BYcGB8ZBc9Jtz53g@mail.gmail.com>

> -----Original Message-----
> From: PATRICK KEROULAS <patrick.keroulas@radio-canada.ca>
> Sent: Friday, June 5, 2020 3:10
> To: Slava Ovsiienko <viacheslavo@mellanox.com>
> Cc: dev@dpdk.org; Vivien Didelot <vivien.didelot@gmail.com>; Shahaf
> Shuler <shahafs@mellanox.com>; Raslan Darawsheh
> <rasland@mellanox.com>; Matan Azrad <matan@mellanox.com>
> Subject: Re: [dpdk-dev] mlx5 & pdump: convert HW timestamps to
> nanoseconds
> 
> On Wed, Jun 3, 2020 at 3:48 AM Slava Ovsiienko
> <viacheslavo@mellanox.com> wrote:
> >
> > > From: PATRICK KEROULAS <patrick.keroulas@radio-canada.ca>
> > > * rdma-code, libibverbs-dev: 28.0
> > > * NIC Part Number:      MCX516A-CDA_Ax
> > > * ConnectX-5 Ex EN
> > > * FW: 16.25.1020
> >
> > It looks like outdated firmware, please:
> > - update the firmware - at least 16.27.2008 is GA. I would recommend
> > to install OFED - it updates the FW
> > - make sure the UCTX_EN option in FW configuration is set to "true"
> 
> Hello Slava,
> 
> I managed to query device_frequency_khz by simply setting UCTX_EN=1,
> convert the mbuf->timestamp to nsec and write a pcap. However, the
> accuracy is quite disappointing, compared to libvma or even SW TS.
> 
> The freq value looks constant (=78125kHz). Correct me if I'm wrong, a ptp
> client is supposed to continuously adjust some kind of VCO on the NIC. And

AFAIK, it is not the case for ConnectX-5, no clock adjustment, just some free running counter.
ConnectX6DX  will provide an option of adjustable nanosecond UTC in timestamps.

> even setting a crazy value through /dev/ptp interface manually doesn't affect
> device_frequency_khz. Please could you clarify?
> 
> This leads me back to mlx5dv_clock_info->nsec. If this is a valid method, I
> think the only missing piece is to access it from the secondary process, which
> implies to share ibv_context.
> 
> Best Regards,
> 
> PK

      reply	other threads:[~2020-06-05 16:30 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-19 18:20 PATRICK KEROULAS
2020-05-21 15:33 ` Thomas Monjalon
2020-05-21 19:57   ` PATRICK KEROULAS
2020-05-21 20:09     ` Thomas Monjalon
2020-05-22 18:43       ` PATRICK KEROULAS
2020-05-26  7:44         ` Tom Barbette
2020-05-29 20:46           ` N. Benes
2020-05-26 16:00         ` Slava Ovsiienko
2020-05-29 20:56           ` PATRICK KEROULAS
2020-05-31 19:47             ` Slava Ovsiienko
2020-06-02 19:18           ` PATRICK KEROULAS
2020-06-03  7:48             ` Slava Ovsiienko
2020-06-05  0:09               ` PATRICK KEROULAS
2020-06-05 16:30                 ` Slava Ovsiienko [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=AM4PR05MB32653023479E4F529F8A5E89D2860@AM4PR05MB3265.eurprd05.prod.outlook.com \
    --to=viacheslavo@mellanox.com \
    --cc=dev@dpdk.org \
    --cc=matan@mellanox.com \
    --cc=patrick.keroulas@radio-canada.ca \
    --cc=rasland@mellanox.com \
    --cc=shahafs@mellanox.com \
    --cc=vivien.didelot@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

DPDK patches and discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://inbox.dpdk.org/dev/0 dev/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 dev dev/ https://inbox.dpdk.org/dev \
		dev@dpdk.org
	public-inbox-index dev

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.dev


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git