From patchwork Mon Dec 3 12:59:40 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miroslav Lichvar X-Patchwork-Id: 1006887 Return-Path: X-Original-To: patchwork-incoming-netdev@ozlabs.org Delivered-To: patchwork-incoming-netdev@ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=netdev-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=redhat.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 437lSx0SBcz9s3C for ; Mon, 3 Dec 2018 23:59:45 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725922AbeLCNAj (ORCPT ); Mon, 3 Dec 2018 08:00:39 -0500 Received: from mx1.redhat.com ([209.132.183.28]:47586 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725903AbeLCNAj (ORCPT ); Mon, 3 Dec 2018 08:00:39 -0500 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id E22233097071; Mon, 3 Dec 2018 12:59:42 +0000 (UTC) Received: from holly.tpb.lab.eng.brq.redhat.com (holly.tpb.lab.eng.brq.redhat.com [10.43.134.11]) by smtp.corp.redhat.com (Postfix) with ESMTP id BA2685D6B3; Mon, 3 Dec 2018 12:59:41 +0000 (UTC) From: Miroslav Lichvar To: Saeed Mahameed Cc: netdev@vger.kernel.org, Richard Cochran , Hangbin Liu , Miroslav Lichvar Subject: [PATCH mlx5-next 0/2] Improvements for PTP clock in mlx5 driver Date: Mon, 3 Dec 2018 13:59:40 +0100 Message-Id: <20181203125942.13088-1-mlichvar@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.43]); Mon, 03 Dec 2018 12:59:42 +0000 (UTC) Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org This is a pair of patches for the mlx5 driver related to the PTP clock. The first patch fixes a potential issue causing backward jumps due to a late update of the PHC timecounter. The second patch adds support for the PTP_SYS_OFFSET_EXTENDED ioctl. Miroslav Lichvar (2): mlx5: update timecounter at least twice per counter overflow mlx5: extend PTP gettime function to read system clock .../ethernet/mellanox/mlx5/core/lib/clock.c | 24 +++++++++++-------- .../net/ethernet/mellanox/mlx5/core/main.c | 11 +++++++-- .../ethernet/mellanox/mlx5/core/mlx5_core.h | 4 +++- 3 files changed, 26 insertions(+), 13 deletions(-)