From patchwork Mon Jan 6 23:19:51 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Kirsher, Jeffrey T" X-Patchwork-Id: 1218502 Return-Path: X-Original-To: patchwork-incoming-netdev@ozlabs.org Delivered-To: patchwork-incoming-netdev@ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) 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=intel.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 47sBLV6Y2kz9s29 for ; Tue, 7 Jan 2020 10:20:02 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727322AbgAFXUB (ORCPT ); Mon, 6 Jan 2020 18:20:01 -0500 Received: from mga05.intel.com ([192.55.52.43]:21026 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726545AbgAFXUB (ORCPT ); Mon, 6 Jan 2020 18:20:01 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 06 Jan 2020 15:20:00 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,404,1571727600"; d="scan'208";a="303013015" Received: from jtkirshe-desk1.jf.intel.com ([134.134.177.74]) by orsmga001.jf.intel.com with ESMTP; 06 Jan 2020 15:20:00 -0800 From: Jeff Kirsher To: davem@davemloft.net Cc: Jeff Kirsher , netdev@vger.kernel.org, nhorman@redhat.com, sassmann@redhat.com Subject: [net-next 0/5][pull request] 1GbE Intel Wired LAN Driver Updates 2020-01-06 Date: Mon, 6 Jan 2020 15:19:51 -0800 Message-Id: <20200106231956.549255-1-jeffrey.t.kirsher@intel.com> X-Mailer: git-send-email 2.24.1 MIME-Version: 1.0 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org This series contains updates to igc to add basic support for timestamping. Vinicius adds basic support for timestamping and enables ptp4l/phc2sys to work with i225 devices. Initially, adds the ability to read and adjust the PHC clock. Patches 2 & 3 enable and retrieve hardware timestamps. Patch 4 implements the ethtool ioctl that ptp4l uses to check what timestamping methods are supported. Lastly, added support to do timestamping using the "Start of Packet" signal from the PHY, which is now supported in i225 devices. While i225 does support multiple PTP domains, with multiple timestamping registers, we currently only support one PTP domain and use only one of the timestamping registers for implementation purposes. The following are changes since commit df2c2ba831a04083ad7485684896eeb090ca3c7d: Merge branch 'Convert-Felix-DSA-switch-to-PHYLINK' and are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/jkirsher/next-queue 1GbE Vinicius Costa Gomes (5): igc: Add basic skeleton for PTP igc: Add support for RX timestamping igc: Add support for TX timestamping igc: Add support for ethtool GET_TS_INFO command igc: Use Start of Packet signal from PHY for timestamping drivers/net/ethernet/intel/igc/Makefile | 2 +- drivers/net/ethernet/intel/igc/igc.h | 45 ++ drivers/net/ethernet/intel/igc/igc_defines.h | 66 ++ drivers/net/ethernet/intel/igc/igc_ethtool.c | 34 + drivers/net/ethernet/intel/igc/igc_main.c | 87 +++ drivers/net/ethernet/intel/igc/igc_ptp.c | 716 +++++++++++++++++++ drivers/net/ethernet/intel/igc/igc_regs.h | 27 + 7 files changed, 976 insertions(+), 1 deletion(-) create mode 100644 drivers/net/ethernet/intel/igc/igc_ptp.c