Received: by 10.223.164.202 with SMTP id h10csp1167153wrb; Tue, 7 Nov 2017 23:16:55 -0800 (PST) X-Google-Smtp-Source: ABhQp+Togd0r2FgrvFNy1eRglkfDtOuKLXjhbPjLfszHtKg8bM0E8S9id/pZseHwOxr3Yxu+XtiP X-Received: by 10.99.4.209 with SMTP id 200mr1441375pge.123.1510125415873; Tue, 07 Nov 2017 23:16:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510125415; cv=none; d=google.com; s=arc-20160816; b=xkdntEE4xdzXYliD/RH8NXLiykKcEQALTBHC9UJkQ4tH9oQWWXg2nWXONnygOv8gE/ O+Ta+jbTa/Lvhz2Qn6Bx71QksYlEtHz3hJAUD7BxY/HmorNHffvyjvDANvtkl1bFxNlj ixm1/6ehKxMSiZHXmktoqTIVWzUOOZdB8ErD6a3s55EgfHg0PjEPd+bmqhpTX/jg9A8c xK/HHgN5Y4hRGxzMcpV21gc9p0EEDmsweAcGNQ/jO2FVy8cUXFh2Nwdmj9IFvAMyrEV9 LR6taWviBvwd+j+TmvMYQDxF5bbnUfAaqty9hM9luR7HR4BTkv0YOIpwJALN1zCB1ra0 FphQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:message-id:date:subject:cc:to :from:dkim-signature:arc-authentication-results; bh=tjRkTiROMSz6Q4DrSAuCU9ZleNlMessgchY+U5segQY=; b=Be0F1unzViDohBFKtzhq7ITfjbxXaAQWByFcjkWdtQzayt+ipRqi0CKMhhr3bwc5Bn M/dPoD6QeLd3cMQboQnyQTQgS8fK01eKGwBommYZgK+w4Bo8IuhP6sp+fFp6h608e22J KMOHSwT3ZfsB0NrTQ317EQBySOZJu5PvT3kIsP2EZlym0qdTl+xsXWCv1SCByosvNzjp SH1r3kXfDE/h+VN9XlY7LnukGBwQ2lplzqgXuCZVJRtqslEdWpGU+qOT4ak47iCleLVv pFXi/2vfbcXMsua6OqFca3DHDZMExyKnu+K/EaNyJOJf1SxtvZukvbylLBO6d0Vgg0cP angQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@CAVIUMNETWORKS.onmicrosoft.com header.s=selector1-cavium-com header.b=oxFGcCWF; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o19si3396965pfk.349.2017.11.07.23.16.43; Tue, 07 Nov 2017 23:16:55 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@CAVIUMNETWORKS.onmicrosoft.com header.s=selector1-cavium-com header.b=oxFGcCWF; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758679AbdKGTHk (ORCPT + 90 others); Tue, 7 Nov 2017 14:07:40 -0500 Received: from mail-by2nam01on0074.outbound.protection.outlook.com ([104.47.34.74]:5392 "EHLO NAM01-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752650AbdKGTHg (ORCPT ); Tue, 7 Nov 2017 14:07:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=tjRkTiROMSz6Q4DrSAuCU9ZleNlMessgchY+U5segQY=; b=oxFGcCWFy8OK/6fF93jDnzW9aGdiKNM94TISCSmtFRlK/QD3gU/geJ49nNNSvcF0oNkUs60mIA23cvbKVJz/ftj7SIWYxTyiGFS6IU9gstDvgF3SKpvDCFnDQd7j88sqOxhy9maknMRM+8lmdXTGywsKlgIEapsUfzBLM53GkrA= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Aleksey.Makarov@cavium.com; Received: from localhost.localdomain (46.242.12.6) by CO2PR07MB2488.namprd07.prod.outlook.com (10.166.200.146) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.197.13; Tue, 7 Nov 2017 19:07:32 +0000 From: Aleksey Makarov To: netdev@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, "Goutham, Sunil" , Radoslaw Biernacki , Aleksey Makarov , Robert Richter Subject: [PATCH net-next 0/2] net: thunderx: add support for PTP clock Date: Tue, 7 Nov 2017 22:07:00 +0300 Message-Id: <20171107190704.15458-1-aleksey.makarov@cavium.com> X-Mailer: git-send-email 2.15.0 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [46.242.12.6] X-ClientProxiedBy: AM5PR0701CA0059.eurprd07.prod.outlook.com (10.169.145.149) To CO2PR07MB2488.namprd07.prod.outlook.com (10.166.200.146) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: cd4bc221-297e-44ec-880f-08d52612cdc6 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(2017052603199);SRVR:CO2PR07MB2488; X-Microsoft-Exchange-Diagnostics: 1;CO2PR07MB2488;3:HUmaFXPRn51FJFGGJbVnfjzjx4n46opoQiuLL/1CBtRk6j3r/3W8bgIhsabZU7V1Bo00KxiP5uZufmUdp4eOUvpSvrLP1midftUCAaCWlZkaFS0BIedd1slaJ5zeeVrh3dy7RY7vWaD3CRyKU226Qx8QjuwaOmNm8rofsts6E7XUOL2wVGTFR35q3+UGoiR32yzgelYt0P6T0DEywpNi1m9qWGwvFgpw/VN9XfobCFOhW+Mayk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oqtY4/sYXnTHxNlCr7Iz68kUe3X+Exr4gzGFudtRt5SIecN3jC7n5N34HNqq3Ac2Ohgxzv5qwn2R+NJ6FF22YyKyEA0P3Jrc1nKRwE;4:vUYnH6oCHmISdeai9iGd/0TZoS0jSvaU14nMs3VSmuJVLggv/vmTaNioROeDDj1/U+6iQ2kULKEv4XYRj5iqvegfeFDldxqClrPhuxynPC880fTwSlRjfr4rrpWRawm7+hsRYDq41zPZF+eRM+/Sc2MVx0fDI+DMgvIMgzbJb8toels2En8ZJBQUMVjr57k3Lwe7Mj20+cpdonLuP68hwDsTCqKFHbrj71pwn4wI87HpAC5qIEG/S23gZMNbcqDscG1DXX+06zcyjbQnQ0+meA== X-Exchange-Antispam-Report-Test: UriScan:; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(5005006)(8121501046)(3002001)(10201501046)(3231021)(93006095)(93001095)(100000703101)(100105400095)(6041248)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(20161123558100)(20161123564025)(20161123560025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:CO2PR07MB2488;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:CO2PR07MB2488; X-Forefront-PRVS: 0484063412 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(6069001)(6009001)(376002)(346002)(199003)(189002)(316002)(6916009)(101416001)(50986999)(6506006)(25786009)(6666003)(6486002)(72206003)(5660300001)(6116002)(3846002)(36756003)(86362001)(1076002)(478600001)(105586002)(106356001)(47776003)(66066001)(2361001)(2351001)(5003940100001)(50466002)(53936002)(68736007)(81166006)(81156014)(8676002)(7736002)(8936002)(48376002)(50226002)(33646002)(305945005)(54906003)(97736004)(16526018)(189998001)(16586007)(2906002)(4326008)(6512007);DIR:OUT;SFP:1101;SCL:1;SRVR:CO2PR07MB2488;H:localhost.localdomain;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;CO2PR07MB2488;23:a0CaXQ5hDhgnUqjMu5+lmF7MRcqoYqHyAKo/I/3hn?= =?us-ascii?Q?dI/6+hhNrtqlCRhENb7+qWgs/um1p3H3IxRkXv91e41Hd+llDl0WCQma2mPY?= =?us-ascii?Q?HlxzakovlduiG/+WNHQBkhgaWqIAVhmUSdCEGVDqBRPAigkDr00IrFZwA9Gl?= =?us-ascii?Q?SZKwiUAUZ0xV5G9uzZX4LFuC4qFC/9RhrlleoRPMkenBaEYE4i+kcfNsdnV1?= =?us-ascii?Q?9NLcMLL/XpqW2A0nyHJUnrVyPjDpJvOA0QeazacIJbRDKZzNroe7O25A6Xi8?= =?us-ascii?Q?EgEweklEn66vtITADfbV0HOPfCjtYcbpRnBAQoD/jVemZJeEwSO65VIoDhmZ?= =?us-ascii?Q?PwLYsMPvnd/r1NQbYkVUt3Ysg9AIUwKJViu5kEXi39ttEItFbXKLUJWiGqTT?= =?us-ascii?Q?zEi0FKhpOm0Nj3XynelfOKEcGFnytaBy1HSIbReKtJzavS+Q3ndUbztDmWWS?= =?us-ascii?Q?8Y5Z5HCnQcncd99UyOGF7IcLnj2NHi+Iz6/MvcKkmBc1O29Boio28HqF1m2Y?= =?us-ascii?Q?m/AG09xGXwN7IfD6Dvg53hTqVhT6zRE+2K/eFGXNPUreOGpUxYCkcv1fnNDy?= =?us-ascii?Q?RYElctGHyv0/I9jVD9ErHLXjwKMMqb9f4ekdRsu7Ts5VNXSzm4DHKDvFfi0J?= =?us-ascii?Q?a3rx6HGiqOEXSx2q6459Z6ZhGhGQSjPW5cn/rmV4u9m5qfO7CsaCvvOHRh1E?= =?us-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4pmlFhCWDJdVAST7YsaRajIjAaY1cD6Lrs18DkhokUjH6+TbDBxUVvGSmuJQ4E9f3kQWZA=;24:liGurBDtHuIzxVEk4ZKarTERQSR0TD0X9DrLLnbDShpsb1n6gwKOW7MOn/xj5WPoSGmKK8j42gWL3mXHUkuqcVq/9cqsG7GxIxscTrArEVs=;7:4DRefSG/pDDUj8bLw5mV/WdqmHROJCfXDM9+UwvQryWtBRQjxiiqGD2g49Xtw3twhIsIHHH6TOktevF771yBNHhfCe+fdJ90CUxhZ5DVG3BAK5z9sFydAG8U4nFk63zA9VOy5ZWI6OA/2jaTusbZqY1bvL08mm1G2MGCndnlyncBss7UJtMN+g5Ny8z7ATekVgdLNgqV5DVWU9m7wsZrDKNEglwdU6XmXXaPOZb+iDZf1cd0MDG6jnuTpfrqQKZe SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Nov 2017 19:07:32.7654 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: cd4bc221-297e-44ec-880f-08d52612cdc6 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO2PR07MB2488 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series adds support for IEEE 1588 Precision Time Protocol to Cavium ethernet driver. The first patch adds support for the Precision Time Protocol Clocks and Timestamping coprocessor (PTP) found on Cavium processors. It registers a new PTP clock in the PTP core and provides functions to use the counter in BGX, TNS, GTI, and NIC blocks. The second patch introduces support for the PTP protocol to the Cavium ThunderX ethernet driver. Radoslaw Biernacki (1): net: add support for Cavium PTP coprocessor Sunil Goutham (1): net: thunderx: add timestamping support drivers/net/ethernet/cavium/Kconfig | 14 + drivers/net/ethernet/cavium/Makefile | 1 + drivers/net/ethernet/cavium/common/Makefile | 1 + drivers/net/ethernet/cavium/common/cavium_ptp.c | 353 +++++++++++++++++++++ drivers/net/ethernet/cavium/common/cavium_ptp.h | 78 +++++ drivers/net/ethernet/cavium/thunder/nic.h | 15 + drivers/net/ethernet/cavium/thunder/nic_main.c | 58 +++- drivers/net/ethernet/cavium/thunder/nic_reg.h | 1 + .../net/ethernet/cavium/thunder/nicvf_ethtool.c | 29 +- drivers/net/ethernet/cavium/thunder/nicvf_main.c | 173 +++++++++- drivers/net/ethernet/cavium/thunder/nicvf_queues.c | 26 ++ drivers/net/ethernet/cavium/thunder/thunder_bgx.c | 29 ++ drivers/net/ethernet/cavium/thunder/thunder_bgx.h | 4 + 13 files changed, 776 insertions(+), 6 deletions(-) create mode 100644 drivers/net/ethernet/cavium/common/Makefile create mode 100644 drivers/net/ethernet/cavium/common/cavium_ptp.c create mode 100644 drivers/net/ethernet/cavium/common/cavium_ptp.h -- 2.15.0 From 1583325415974197956@xxx Mon Nov 06 13:59:43 +0000 2017 X-GM-THRID: 1583325415974197956 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread