Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp2979200pxb; Tue, 12 Jan 2021 03:26:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJz1iJcErFjE6ukHQ+AViWqYMy6G1ZDSuK3mXackdFDSmHZn+smVYxUzA/EWvyxjfS5gksQW X-Received: by 2002:a17:907:10c8:: with SMTP id rv8mr1359957ejb.228.1610450819287; Tue, 12 Jan 2021 03:26:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610450819; cv=none; d=google.com; s=arc-20160816; b=nE1M7+orKqtmCL0YOmoYUpprATOGDDozvj8d415Y62VJlvlJkFC6iXC9BTLOu7C5s2 5pN6gfjGpegSR3RGqFg+22AMfPWO/q/J/DGaiacrEjl6PUwoVPiGrr2mpsbxnStQEZ+v xsQtXXxje5UyHQE39DJMZHndNRQgrpJ4u+gGxLBcyJ/1nzQQH5kaeLdtyI7K7+tUOmmh LxFQI2T3xYu98NVK9MWNOCbP71C/TSwvslKQs7RyGpDr7H28beQhZ3XTXQL1DmAYcY2r Oyt4Ulb/2DR46Y6CcGcRIWbmF0nNlf6EN1tcaLlacslTHVZvGyudCRYAwQo8wPlJ2AOm LQyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=ElVoQG5KMy+Lp9Vbs8/Yd2MZ45smz4katwHziEUpjdc=; b=bHxSl1ETXslqlDuDhOFyLed8dUS3X2gLtHwn60dbaMXlr2m8JERykDqqT3T15TMOMx czKS1HapnrRQtUu1st3M2H1t5StK24Nfr3zkUkiMGKapruKvbbHj7ca4GYfCnxC+As32 cmbKTe15yFlGTqc9o39b0vclK2PCZfKa6hr7miDWoWKydpyyncaeXJqDgcGlkZHb2Xvm Nzst9uUs8mN9Nxc1QAEWx9Ut5Gr0egU++zbYsZehpV3w+LdDfR2lRiRH59Wt27OrEvq2 wblyx3ULkPrmHDcXiA/xbz6pjyWCm5oISVl5jWV62G9J757PIa5ezs/jpu0n39rER24M OREQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g15si1270682edp.102.2021.01.12.03.26.35; Tue, 12 Jan 2021 03:26:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387544AbhALGj0 (ORCPT + 99 others); Tue, 12 Jan 2021 01:39:26 -0500 Received: from mail-yb1-f176.google.com ([209.85.219.176]:36593 "EHLO mail-yb1-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729049AbhALGjZ (ORCPT ); Tue, 12 Jan 2021 01:39:25 -0500 Received: by mail-yb1-f176.google.com with SMTP id y4so1210447ybn.3; Mon, 11 Jan 2021 22:39:10 -0800 (PST) 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=ElVoQG5KMy+Lp9Vbs8/Yd2MZ45smz4katwHziEUpjdc=; b=MTWCkB/dKdua3g2SMD2mcDlCFbJCNQ0E7A8jJ8YbGDCfwWZOGMUO2niICPIiHVaCRT oQOkYdPyUoTt9aYMzk3x0zTw5NOUYPzxvqOQwKFkxJMWPOHYILJs4oLakKC4DtDk66Z3 v9zqQYu8Xc8DT23oC/hWxpIZTG1RpzoQFFpoYc3I0nkakZtvbNHJQ6F+usvD00n2WvUt o7JbXpDRNiGf0JDO2y+axgya3mrlQlGKeRWTzHbGVKnNj/hawcfGjhefsfDYB9WRxOV9 sCrjGH0Ecb1YqGDICQI17cicDrh5vvEYIO34cFRQzK7YBTET+jrVWaZ+YTFZ1BPvEqfM 4FsA== X-Gm-Message-State: AOAM531CwFsXZ1j+UhtlCVhsxKQMd6qODjuULa086h0acyaQv+V1Zap8 0NTHx8iVY4buKaUk1kS3+2vtC74QLLzFulj4z3s= X-Received: by 2002:a25:287:: with SMTP id 129mr4375547ybc.145.1610433524639; Mon, 11 Jan 2021 22:38:44 -0800 (PST) MIME-Version: 1.0 References: <20210110124903.109773-1-mailhol.vincent@wanadoo.fr> <20210110124903.109773-2-mailhol.vincent@wanadoo.fr> <20210111171152.GB11715@hoboy.vegasvil.org> <20210112021420.GA18703@hoboy.vegasvil.org> In-Reply-To: <20210112021420.GA18703@hoboy.vegasvil.org> From: Vincent MAILHOL Date: Tue, 12 Jan 2021 15:38:33 +0900 Message-ID: Subject: Re: [PATCH v3 1/1] can: dev: add software tx timestamps To: Richard Cochran Cc: Marc Kleine-Budde , linux-can , Jeroen Hofstee , Wolfgang Grandegger , "David S. Miller" , Jakub Kicinski , "open list:NETWORKING DRIVERS" , open list Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue. 12 Jan 2021 at 11:14, Richard Cochran wrote: > > On Tue, Jan 12, 2021 at 09:00:33AM +0900, Vincent MAILHOL wrote: > > Out of curiosity, which programs do you use? I guess wireshark > > but please let me know if you use any other programs (I just use > > to write a small C program to do the stuff). > > I was thinking of PTP over DeviceNET (which, in turn, is over CAN). > This is specified in Annex G of IEEE 1588. > > The linuxptp stack has modular design and could one day support > DeviceNET. It would be much easier for linuxptp if CAN interfaces > support hardware time stamping in the same way as other network > interfaces. I actually also thought of implementing PTP but for a slightly different goal: synchronise the clock of the different CAN controllers connected to a same Linux host. But so far, it is just a rough idea and I never looked really deep into the technical details of linuxptp. However, I did not know about DeviceNET. I am not really aware of the use cases for industrial automation applications. Glad to have asked, learnt something :) Yours sincerely, Vincent