From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 984B6A00C4; Fri, 5 Jun 2020 02:10:05 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 1AE701D5FC; Fri, 5 Jun 2020 02:10:05 +0200 (CEST) Received: from mail-oi1-f171.google.com (mail-oi1-f171.google.com [209.85.167.171]) by dpdk.org (Postfix) with ESMTP id 4B9351D5ED for ; Fri, 5 Jun 2020 02:10:03 +0200 (CEST) Received: by mail-oi1-f171.google.com with SMTP id m67so6733375oif.4 for ; Thu, 04 Jun 2020 17:10:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=radio-canada-ca.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=D03Mv3mgnPTjgwEcD+9AXOijyhLEgtMEIh3ogxv3jwE=; b=hZn4EcvFn3T6YTZfu/iVwc/4Ga7CfiSJUUDBoQe/VDn9dCRQbju5LhwtTjhJGLoGIy AVVjuHBoO91NgdtZ0/6n1rr6Ku19qxedWEdA787UQMEnWmMGj8FuGOIhbMWHULmjfjZ1 INzZonX95IusS3jVJlvbLzg0joG6Kk6JdMYmR4c/fYJFRKlKezUqgVYNK1DsncIK1A58 mnX7MYfwooAEnTagxtIFIjn61szOJTwbNcdQYFfRbFP6tmEfxCvtaZZ7JG5o3YlRl+XI 7I3JEEhBNs1Q5vfN3BHPP/1bmRdm8zKlR4qygQ/l/7B9gG2AwQuGtW0aTjHgTFN76/Ui K8ng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=D03Mv3mgnPTjgwEcD+9AXOijyhLEgtMEIh3ogxv3jwE=; b=jdviQUPcKNrEefEwv+z8qR72oLxS96U5+eqFKhLW6nbrB8pWJQlJm4SrarAOgQuuAt JtrFCG5IVANmub54Rwq6AYTYEK6Mj5Sgby5+mob0L7UjQ60SPUPL/f7UKCArpJP533q9 FdR40FXhXTAC7HJeMZgoWuBOIiSeBaEvN+K6uhkA2mTI/FWyNtwInqaUUeL4evZrJfQP iyXXeWmp3O710j1aY4wJBuN0GxpL7YZN/Ut8FXhb4uVAKcZeI5GkDS240lJpwz2i+feF +pSdbuvVswpNsJMLmFghDY67D/tq1kT3jFxuzb8TsaUkBd+8nn1CKOYI+c5T7tyjq3rt aUdA== X-Gm-Message-State: AOAM531RsYcaZ/WtYEib1aV0kMtyv8ufQsKBF5Xk0NAKM+CQNzEan9in QqAkTTcS9SRl69XXXLpO0GaXkox+kILnXlxlgSWa7w== X-Google-Smtp-Source: ABdhPJyCkY11XzbcGk2lAB2KBy7h6vsFYMaNX+/X6tpQWmIIHzg9nEuxbeHHzI8D3+pMufgYQ5B8D6TQjLyP16VQ9jM= X-Received: by 2002:aca:fc12:: with SMTP id a18mr300729oii.25.1591315802470; Thu, 04 Jun 2020 17:10:02 -0700 (PDT) MIME-Version: 1.0 References: <3986292.sUUuQTochr@thomas> <2766519.SlWGiteSXv@thomas> In-Reply-To: From: PATRICK KEROULAS Date: Thu, 4 Jun 2020 20:09:51 -0400 Message-ID: To: Slava Ovsiienko Cc: "dev@dpdk.org" , Vivien Didelot , Shahaf Shuler , Raslan Darawsheh , Matan Azrad Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-dev] mlx5 & pdump: convert HW timestamps to nanoseconds X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Wed, Jun 3, 2020 at 3:48 AM Slava Ovsiienko wrote: > > > From: PATRICK KEROULAS > > * 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 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