Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/1203358/?format=api
{ "id": 1203358, "url": "http://patchwork.ozlabs.org/api/patches/1203358/?format=api", "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/20191202231953.2203397-6-vinicius.gomes@intel.com/", "project": { "id": 46, "url": "http://patchwork.ozlabs.org/api/projects/46/?format=api", "name": "Intel Wired Ethernet development", "link_name": "intel-wired-lan", "list_id": "intel-wired-lan.osuosl.org", "list_email": "intel-wired-lan@osuosl.org", "web_url": "", "scm_url": "", "webscm_url": "", "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<20191202231953.2203397-6-vinicius.gomes@intel.com>", "list_archive_url": null, "date": "2019-12-02T23:19:53", "name": "[next-queue,v3,5/5] igc: Use Start of Packet signal from PHY for timestamping", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": false, "hash": "25a501dde78f36cf30d7d7b6e4781d25c075b22d", "submitter": { "id": 72272, "url": "http://patchwork.ozlabs.org/api/people/72272/?format=api", "name": "Vinicius Costa Gomes", "email": "vinicius.gomes@intel.com" }, "delegate": { "id": 68, "url": "http://patchwork.ozlabs.org/api/users/68/?format=api", "username": "jtkirshe", "first_name": "Jeff", "last_name": "Kirsher", "email": "jeffrey.t.kirsher@intel.com" }, "mbox": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/20191202231953.2203397-6-vinicius.gomes@intel.com/mbox/", "series": [ { "id": 146115, "url": "http://patchwork.ozlabs.org/api/series/146115/?format=api", "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/list/?series=146115", "date": "2019-12-02T23:19:53", "name": "igc: Add basic support for Timestamping/PTP", "version": 3, "mbox": "http://patchwork.ozlabs.org/series/146115/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/1203358/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/1203358/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<intel-wired-lan-bounces@osuosl.org>", "X-Original-To": [ "incoming@patchwork.ozlabs.org", "intel-wired-lan@lists.osuosl.org" ], "Delivered-To": [ "patchwork-incoming@bilbo.ozlabs.org", "intel-wired-lan@lists.osuosl.org" ], "Authentication-Results": [ "ozlabs.org; spf=pass (sender SPF authorized)\n\tsmtp.mailfrom=osuosl.org (client-ip=140.211.166.137;\n\thelo=fraxinus.osuosl.org;\n\tenvelope-from=intel-wired-lan-bounces@osuosl.org;\n\treceiver=<UNKNOWN>)", "ozlabs.org;\n\tdmarc=fail (p=none dis=none) header.from=intel.com" ], "Received": [ "from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 47Rh0x20wPz9sRH\n\tfor <incoming@patchwork.ozlabs.org>;\n\tTue, 3 Dec 2019 10:20:17 +1100 (AEDT)", "from localhost (localhost [127.0.0.1])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id A37F986073;\n\tMon, 2 Dec 2019 23:20:15 +0000 (UTC)", "from fraxinus.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id M26A4dkaCLM6; Mon, 2 Dec 2019 23:20:15 +0000 (UTC)", "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id C07E685FA7;\n\tMon, 2 Dec 2019 23:20:11 +0000 (UTC)", "from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137])\n\tby ash.osuosl.org (Postfix) with ESMTP id 5C2FF1BF391\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tMon, 2 Dec 2019 23:20:10 +0000 (UTC)", "from localhost (localhost [127.0.0.1])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id 57D3F85E71\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tMon, 2 Dec 2019 23:20:10 +0000 (UTC)", "from fraxinus.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id FbpOy-bb4mTL for <intel-wired-lan@lists.osuosl.org>;\n\tMon, 2 Dec 2019 23:20:08 +0000 (UTC)", "from mga02.intel.com (mga02.intel.com [134.134.136.20])\n\tby fraxinus.osuosl.org (Postfix) with ESMTPS id 2AEBD862A9\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tMon, 2 Dec 2019 23:20:07 +0000 (UTC)", "from orsmga006.jf.intel.com ([10.7.209.51])\n\tby orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t02 Dec 2019 15:19:53 -0800", "from vcostago-desk1.jf.intel.com ([10.54.70.26])\n\tby orsmga006.jf.intel.com with ESMTP; 02 Dec 2019 15:19:55 -0800" ], "X-Virus-Scanned": [ "amavisd-new at osuosl.org", "amavisd-new at osuosl.org" ], "X-Greylist": "domain auto-whitelisted by SQLgrey-1.7.6", "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.69,270,1571727600\"; d=\"scan'208\";a=\"213201675\"", "From": "Vinicius Costa Gomes <vinicius.gomes@intel.com>", "To": "intel-wired-lan@lists.osuosl.org", "Date": "Mon, 2 Dec 2019 15:19:53 -0800", "Message-Id": "<20191202231953.2203397-6-vinicius.gomes@intel.com>", "X-Mailer": "git-send-email 2.24.0", "In-Reply-To": "<20191202231953.2203397-1-vinicius.gomes@intel.com>", "References": "<20191202231953.2203397-1-vinicius.gomes@intel.com>", "MIME-Version": "1.0", "Subject": "[Intel-wired-lan] [next-queue PATCH v3 5/5] igc: Use Start of\n\tPacket signal from PHY for timestamping", "X-BeenThere": "intel-wired-lan@osuosl.org", "X-Mailman-Version": "2.1.29", "Precedence": "list", "List-Id": "Intel Wired Ethernet Linux Kernel Driver Development\n\t<intel-wired-lan.osuosl.org>", "List-Unsubscribe": "<https://lists.osuosl.org/mailman/options/intel-wired-lan>, \n\t<mailto:intel-wired-lan-request@osuosl.org?subject=unsubscribe>", "List-Archive": "<http://lists.osuosl.org/pipermail/intel-wired-lan/>", "List-Post": "<mailto:intel-wired-lan@osuosl.org>", "List-Help": "<mailto:intel-wired-lan-request@osuosl.org?subject=help>", "List-Subscribe": "<https://lists.osuosl.org/mailman/listinfo/intel-wired-lan>, \n\t<mailto:intel-wired-lan-request@osuosl.org?subject=subscribe>", "Content-Type": "text/plain; charset=\"us-ascii\"", "Content-Transfer-Encoding": "7bit", "Errors-To": "intel-wired-lan-bounces@osuosl.org", "Sender": "\"Intel-wired-lan\" <intel-wired-lan-bounces@osuosl.org>" }, "content": "For better accuracy, i225 is able to do timestamping using the Start of\nPacket signal from the PHY.\n\nSigned-off-by: Vinicius Costa Gomes <vinicius.gomes@intel.com>\n---\n drivers/net/ethernet/intel/igc/igc_defines.h | 2 ++\n drivers/net/ethernet/intel/igc/igc_ptp.c | 5 ++++-\n 2 files changed, 6 insertions(+), 1 deletion(-)", "diff": "diff --git a/drivers/net/ethernet/intel/igc/igc_defines.h b/drivers/net/ethernet/intel/igc/igc_defines.h\nindex 2ecaeddc6d3d..ed037ef01533 100644\n--- a/drivers/net/ethernet/intel/igc/igc_defines.h\n+++ b/drivers/net/ethernet/intel/igc/igc_defines.h\n@@ -395,6 +395,7 @@\n #define IGC_TSYNCRXCTL_TYPE_EVENT_V2\t0x0A\n #define IGC_TSYNCRXCTL_ENABLED\t\t0x00000010 /* enable Rx timestamping */\n #define IGC_TSYNCRXCTL_SYSCFI\t\t0x00000020 /* Sys clock frequency */\n+#define IGC_TSYNCRXCTL_RXSYNSIG\t\t0x00000400 /* Sample RX tstamp in PHY sop */\n \n /* Time Sync Receive Configuration */\n #define IGC_TSYNCRXCFG_PTP_V1_CTRLT_MASK\t0x000000FF\n@@ -418,6 +419,7 @@\n #define IGC_TSYNCTXCTL_SYNC_COMP_ERR\t\t0x20000000 /* sync err */\n #define IGC_TSYNCTXCTL_SYNC_COMP\t\t0x40000000 /* sync complete */\n #define IGC_TSYNCTXCTL_START_SYNC\t\t0x80000000 /* initiate sync */\n+#define IGC_TSYNCTXCTL_TXSYNSIG\t\t\t0x00000020 /* Sample TX tstamp in PHY sop */\n \n /* Receive Checksum Control */\n #define IGC_RXCSUM_CRCOFL\t0x00000800 /* CRC32 offload enable */\ndiff --git a/drivers/net/ethernet/intel/igc/igc_ptp.c b/drivers/net/ethernet/intel/igc/igc_ptp.c\nindex b63a03157ec1..86ca93cb2fc5 100644\n--- a/drivers/net/ethernet/intel/igc/igc_ptp.c\n+++ b/drivers/net/ethernet/intel/igc/igc_ptp.c\n@@ -368,6 +368,7 @@ static int igc_ptp_set_timestamp_mode(struct igc_adapter *adapter,\n \tif (tsync_rx_ctl) {\n \t\ttsync_rx_ctl = IGC_TSYNCRXCTL_ENABLED;\n \t\ttsync_rx_ctl |= IGC_TSYNCRXCTL_TYPE_ALL;\n+\t\ttsync_rx_ctl |= IGC_TSYNCRXCTL_RXSYNSIG;\n \t\tconfig->rx_filter = HWTSTAMP_FILTER_ALL;\n \t\tis_l2 = true;\n \t\tis_l4 = true;\n@@ -384,8 +385,10 @@ static int igc_ptp_set_timestamp_mode(struct igc_adapter *adapter,\n \t\t}\n \t}\n \n-\tif (tsync_tx_ctl)\n+\tif (tsync_tx_ctl) {\n \t\ttsync_tx_ctl = IGC_TSYNCTXCTL_ENABLED;\n+\t\ttsync_tx_ctl |= IGC_TSYNCTXCTL_TXSYNSIG;\n+\t}\n \n \t/* enable/disable TX */\n \tregval = rd32(IGC_TSYNCTXCTL);\n", "prefixes": [ "next-queue", "v3", "5/5" ] }