Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp889255rwl; Fri, 24 Mar 2023 03:30:34 -0700 (PDT) X-Google-Smtp-Source: AKy350bScAqi3xLBjHKCYc25j04npuFmsCZ4ytuWCpedFiNn11Ochthj+D4Q98H0/SmIbMFObwWU X-Received: by 2002:a17:906:3494:b0:92f:de0d:104b with SMTP id g20-20020a170906349400b0092fde0d104bmr2004333ejb.9.1679653834485; Fri, 24 Mar 2023 03:30:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679653834; cv=none; d=google.com; s=arc-20160816; b=cEZn2XsF4gmygbZ21Ke+/XkBPbkZuXoZvVmLdkxdZmkSDZEEPbukQMsHeR391IRzkD qCF1RDWkM87iHNUojW6srNREVyOcIeGDl1l/cTZX3RYBYf1JYcjsgtl0qOCTkg7WL0fn nhAGn/iXO3/Fdu4S4yNzCks4DSMWw984t/9I3aLBN6wGP0JysJR3CJu4k+QVFLwdb7hJ ZQtYBpdRT9twUlnu6gwQ29NcIMz0tNkwVJ2kbIj+x5ytVz2rb3pZ0x6ya7STC/1l77Y6 1NiW2vHWJ6ETxGHlpl+4ROGwHZbH27rWVSg7JE+ww6s1/QZEclccsFAffj8dfHZophYp TC6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature; bh=Xv+ASSzcWiUf7WB1UddjxDgaUpS6QjUv6DsxIIFvx1w=; b=JVeFZGHjd3PfmhXZ09rK1Z8Sv9VDZ7L9l1TG1bKQdLqr5yMMKdv4sJpxDPglGEkGAg Cf53GPQ9xtVqzcXIpSvRBR0sZIu3lLPnJWa8VEN4dw7s5Xefm9hU7VoPkWE87RCZao1g ZHXygDX5vsBOcyZs7X2hEoAsO14G89yrcJ8j+d89lPrwCHA18XcdesE0HiJhhjxMyvIl mdFwiuVPLWWw+webrh2K9uzHydNn5Xq0GEYAUIR8ug2P4qlSNcy17cjjgl7fg8N7zUIw XQ6EI47CJyKGRxpOTFv3ADbfIdZogaMjxtH1dFp1kErtZ6UE2ir7dVAO3yktKzBfly2W a2dA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=hl9OoFks; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jx11-20020a170907760b00b008b17ae97330si19495562ejc.880.2023.03.24.03.30.08; Fri, 24 Mar 2023 03:30:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=hl9OoFks; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231245AbjCXKZw (ORCPT + 99 others); Fri, 24 Mar 2023 06:25:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41062 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230071AbjCXKZv (ORCPT ); Fri, 24 Mar 2023 06:25:51 -0400 Received: from relay6-d.mail.gandi.net (relay6-d.mail.gandi.net [217.70.183.198]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3E64F1E1DF; Fri, 24 Mar 2023 03:25:48 -0700 (PDT) Received: (Authenticated sender: maxime.chevallier@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id 4FC82C0008; Fri, 24 Mar 2023 10:25:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1679653546; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Xv+ASSzcWiUf7WB1UddjxDgaUpS6QjUv6DsxIIFvx1w=; b=hl9OoFksAO9preOhRLTIo0SONnDHJIuXFwghucu/pBPo3zaA7osCDq9AyGtyOmgSyN7XUF +XYru/MB6/vken94g5WLx5HB/V8xxCe3VeE7twcYrsqfHkcaExDaS26KALR2XI1mpvsl/K SnbXosRs/KVijDPH3N1QMSg2pOhC7DPj3HIlBnPwiFoIWtrP5g58l/sQDDWQoizMoh5KIi ZR+e4ZLGcvkR/rEbhkRnVjQ+p8dYyd8KHF0BnkvCJYfPy4TtSGtUPiuEEQA54LKByF3RwN GHmrTJo2TrFW5uU0uHvpJUykvz4siTYpY1Ro4ty8npHV9HAV+5PvnZptqZg1pg== Date: Fri, 24 Mar 2023 11:25:41 +0100 From: Maxime Chevallier To: Vladimir Oltean Cc: =?UTF-8?B?S8O2cnk=?= Maincent , Andrew Lunn , Florian Fainelli , Heiner Kallweit , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-omap@vger.kernel.org, Michael Walle , Richard Cochran , thomas.petazzoni@bootlin.com, Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Jonathan Corbet , Jay Vosburgh , Veaceslav Falico , Andy Gospodarek , Claudiu Manoil , Alexandre Belloni , UNGLinuxDriver@microchip.com, Minghao Chi , Jie Wang , Oleksij Rempel , Sean Anderson , "Gustavo A. R. Silva" , Wolfram Sang , Alexander Lobakin , Marco Bonelli Subject: Re: [PATCH v3 3/5] net: Let the active time stamping layer be selectable. Message-ID: <20230324112541.0b3dd38a@pc-7.home> In-Reply-To: <20230310113533.l7flaoli7y3bmlnr@skbuf> References: <20230308135936.761794-1-kory.maincent@bootlin.com> <20230308135936.761794-1-kory.maincent@bootlin.com> <20230308135936.761794-4-kory.maincent@bootlin.com> <20230308135936.761794-4-kory.maincent@bootlin.com> <20230308230321.liw3v255okrhxg6s@skbuf> <20230310114852.3cef643d@kmaincent-XPS-13-7390> <20230310113533.l7flaoli7y3bmlnr@skbuf> Organization: Bootlin X-Mailer: Claws Mail 4.1.1 (GTK 3.24.36; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello everyone, I'm sorry to intervene late in this discussion, but since it looks like the discussion is converging towards the creation of a new API (though NDOs internally, and through netlink for userspace), I'd like to add a small other use-case to consider. Of course, this can be addressed later on. On Fri, 10 Mar 2023 13:35:33 +0200 Vladimir Oltean wrote: > On Fri, Mar 10, 2023 at 11:48:52AM +0100, K=C3=B6ry Maincent wrote: > > > From previous discussions, I believe that a device tree property > > > was added in order to prevent perceived performance regressions > > > when timestamping support is added to a PHY driver, correct? =20 > >=20 > > Yes, i.e. to select the default and better timestamp on a board. =20 >=20 > Is there a way to unambiguously determine the "better" timestamping > on a board? I'd like to point out a series sent a while ago : https://lore.kernel.org/netdev/3a14f417-1ae1-9434-5532-4b3387f25d18@orolia.= com/ Here, the MAC's timestamping unit can be configured in 2 ways, which boils down to either more accurate timestamps, or better accuracy in frequency adjustments for the clock. The need is to be able to change this mode at runtime, as we can change the clock source for the timestamping unit to a very precise-one, therefore using the "accurate timestamps mode" working as a grand-master, or switching to slave mode, where we would sacrifice a little bit the timestamping precision to get better frequency precision. So, we can consider here that not only the MAC's timestamping unit has a non-fixed precision, but if we go through the route a a new API, maybe we can also take this case into account, allowing for a bit of configuration of the timestamping unit from userspace?=20 > Is it plausible that over time, when PTP timestamping matures and, > for example, MDIO devices get support for PTP_SYS_OFFSET_EXTENDED > (an attempt was here: https://lkml.org/lkml/2019/8/16/638), the > relationship between PTP clock qualities changes, and so does the > preference change? I'm not exactly familiar with PTP_SYS_OFFSET_EXTENDED, but it looks a bit similar in purpose to the above-mentionned use-case. Thanks, Maxime