Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp1078415rdg; Fri, 13 Oct 2023 09:32:13 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEMrbCYYDJcgubMJkRDovmCS1+wLBtFny973JJXuakJ3a4cNNsof05cPLyfNWVVv3A5Ut0E X-Received: by 2002:a05:6e02:1d11:b0:34f:203c:2432 with SMTP id i17-20020a056e021d1100b0034f203c2432mr34570510ila.12.1697214732769; Fri, 13 Oct 2023 09:32:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697214732; cv=none; d=google.com; s=arc-20160816; b=VaAoo/j7Osd5PBJIUUNCbbE6KK91G/cA0OMzxOaELJ0eHt2zNesu6egi2wqhfLdnIc kh6GTZq/whrwR8UXhbz3NusP7DwfcbzzI/dTvfOxoPmvQWKEAcZOfExnNbKg0tNA3S3O WT7gU+uLRfNGmWyywt32WnfHB6HJPrRY0vfn9sfruCq3gN8vGZY3cIVkY36/bIhsQHHP G4EAKsVGdckqVD6t7XAtBaIzjFkni8MAJ0CcSkNOc8DiyEd4g1EMRt4vKw5uzU6utJmm fZTfbZRF6Tnzeb6NKy9JwqCHdtXKUXk2+iaotgyvEHMDWYaXHTpzJ4Gxi71ypufet7X8 a61g== 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 :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=UMJc//zSW+MXhvxNkmTJPeI7u35+0BDBZD6Vcs/oD5U=; fh=iA9bTnpmaYLoKcvpe/HYYvQwIKjzaXwIG4hFcJy8kWY=; b=Ac6Dq08u7I7jPVU95kbMXbnCuBdIkLrm6gyYsYQ7Bbj44fcieWxAlUhzn40jB9+k3s 4TtDa7LBiFG2WL/iUGCSTzsFA7tXJwTmrJcZhwcJNZEvEWmJapmzPtkuVs1MZScrY0ZO HmwuX6XTwmyWn9UBBsAGzeStsKnSwkwksTXCmpWoCPjJVsEPxa6Df8omRK6H5TBqNASC EFnWqpXS5zYfMCztCTq117mJoO7wA8h0GJxPc0JxU+fiBpUN0Du8+W/8v1T+Rp4zJ9SM eGsxuYWVBr2qGCwEg44iOoO085/3Vl2sPKtyeUxiJnpvACOrEofq5JakqR4LlcRJgFcO jovg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=A4On1qqi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id bt23-20020a056a00439700b0068e39cd7acdsi17036047pfb.83.2023.10.13.09.32.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Oct 2023 09:32:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=A4On1qqi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id B9BAF8338178; Fri, 13 Oct 2023 09:32:11 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232626AbjJMQcJ (ORCPT + 99 others); Fri, 13 Oct 2023 12:32:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47854 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231789AbjJMQbu (ORCPT ); Fri, 13 Oct 2023 12:31:50 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 72FC5138 for ; Fri, 13 Oct 2023 09:30:59 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DB43FC433C7; Fri, 13 Oct 2023 16:30:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1697214659; bh=UhsiyLWpL6PODRiDXR4L4zDoj2dJa8jOUZmaiu9xQhU=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=A4On1qqi9cYF0h0xfOzqALiK7J8ty6wIJR7FhK0Mbn8GtYEwXnZB1WyTNgSI/goeM tAl5egrMh/qfmDRZD7ef+6TKTH9ODYM3/F97YXDBIqJZCLKwP5UPiAfBcHK3MNAQZS WmSYHua4BjFOOkYc9uKg6a+TfN06hU4HAIqqpjxsisp2u9Sk/QVGU7eEa7UrSH5VbD s7sRuR/Iz1hj1URMAVIjojCtHG3emblLfBvpmPRjCKdEhzrLDd0n290Uqe6dPKg1ce umrTGrZyjDNHtj0DL6D7TmGZuV3z0gm0jeJuI/Rc50P+syD80ZwiR9zMKXzwH9oKn/ eE1WgQXlD96EA== Date: Fri, 13 Oct 2023 09:30:56 -0700 From: Jakub Kicinski To: Vladimir Oltean Cc: =?UTF-8?B?S8O2cnk=?= Maincent , Florian Fainelli , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, Thomas Petazzoni , "David S . Miller" , Eric Dumazet , Paolo Abeni , Jonathan Corbet , Jay Vosburgh , Andy Gospodarek , Nicolas Ferre , Claudiu Beznea , Horatiu Vultur , UNGLinuxDriver@microchip.com, Broadcom internal kernel review list , Andrew Lunn , Heiner Kallweit , Russell King , Richard Cochran , Radu Pirea , Willem de Bruijn , Michael Walle , Jacob Keller , Maxime Chevallier Subject: Re: [PATCH net-next v5 08/16] net: ethtool: Add a command to expose current time stamping layer Message-ID: <20231013093056.4f915df1@kernel.org> In-Reply-To: <20231013161446.st7tlemyaj3ggkgk@skbuf> References: <20231009155138.86458-1-kory.maincent@bootlin.com> <20231009155138.86458-9-kory.maincent@bootlin.com> <2fbde275-e60b-473d-8488-8f0aa637c294@broadcom.com> <20231010102343.3529e4a7@kmaincent-XPS-13-7390> <20231013090020.34e9f125@kernel.org> <20231013161446.st7tlemyaj3ggkgk@skbuf> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=ham 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Fri, 13 Oct 2023 09:32:11 -0700 (PDT) On Fri, 13 Oct 2023 19:14:46 +0300 Vladimir Oltean wrote: > > What is "PRECISION"? DMA is a separate block like MAC and PHY. > > If DMA is a separate block like MAC and PHY, can it have its own PHC > device, and the ethtool UAPI only lists the timestamping-capable PHCs > for one NIC, and is able to select between them? Possibly, I guess. There are some devices which use generic (i.e. modeled by Linux as separate struct device) DMA controllers to read out packets from "MAC" FIFOs. In practice I'm not sure if any of those DMA controllers has time stamping capabilities. > Translation between the UAPI-visible PHC index and MAC, DMA, phylib > PHY, other PHY etc can then be done by the kernel as needed. Translation by the kernel at which point? IMHO it'd indeed be clearer for the user to have an ability to read the PHC for SOF_..._DMA via ETHTOOL_MSG_TS_LIST_GET_REPLY as a separate entry, rather than e.g. assume that DMA uses the same PHC as MAC.