Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp2437780rdb; Mon, 20 Nov 2023 10:41:45 -0800 (PST) X-Google-Smtp-Source: AGHT+IH02t5ThVjrBWprfPjyMuWgB16rdj3roNg67CBf6QayiGGCWhoPX7ghfkWpaXOfbliCNMCS X-Received: by 2002:a17:902:e808:b0:1cf:5806:5674 with SMTP id u8-20020a170902e80800b001cf58065674mr7441278plg.8.1700505704889; Mon, 20 Nov 2023 10:41:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700505704; cv=none; d=google.com; s=arc-20160816; b=SfshB0Uq4uSu2e8tFXk3+Ua+gG7QJMThb1/bqgzGXabtc0E5BlH5cyzYXrtnXDGBPb i4oSiCoSWX0xIpUPTzJ7Ipd0J3zpfthRtTA4uw+ATlx02kQAE7hxT41cs8p/YgihYwNK 2DQ3TjFVpb3DT/vlcKB41W4j8UmlJ9NFvIqcRcdspx3Rr+QPFrEtadBxRZyIX041V29o NcnMn3+BS8+7oegd/YpvHjvENuNa9xj2CMTEch4US4F+gZwf+83tteoT+KSbEOu8+DwV dvKd6UWiM0/gUvSFj+l+ht63K5DjNvX8VLBBIiics+W8kzFhIlB3w//98Jb48MJWNyqw /R1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=1xq3rnDkxbQv8ZOGxbeVruFwb6C2miBEOHlkxHgkY+s=; fh=F/oyszQnRBxtBTU9f5etRRWzMb9uMP/Xcq7MVDQCdGo=; b=bf3lH3xnpc+K6LQPbzOOgTprfASjhNxcJecq31wQUdAgLyszBvZ2DZhiTQHEzNWa35 cqSGqT9PCEYSrLPtMjK4le3LeE/zVdwZ7COC8iGIcNgLzwdwOA/lVDY9aDehYZQu0vha lTM42eRmk7hYTCpc83e2LMm7joI5s+c6nd0QER9PAlvDRR+KrmKR952qzGuGZlOFFQcs R+hakRbCkJ4ybwU957ND6OflgTrPwqRiAcXGynYCh1uDy5nY3vH/XrHF41X7rtnMpbK8 ZaNXYdzCk29SSuvRpF/WeAqB5beOsghDxGHIB4NDn8W6i0HE0fuAPrTjsmy5xUgbY7z6 e1bw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=hwfJORHr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id g5-20020a170902c38500b001cc41020674si8347801plg.518.2023.11.20.10.41.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Nov 2023 10:41:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=hwfJORHr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id D05998085995; Mon, 20 Nov 2023 10:40:30 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232057AbjKTSkI (ORCPT + 99 others); Mon, 20 Nov 2023 13:40:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51500 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232218AbjKTSj6 (ORCPT ); Mon, 20 Nov 2023 13:39:58 -0500 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D08FEC8; Mon, 20 Nov 2023 10:39:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=1xq3rnDkxbQv8ZOGxbeVruFwb6C2miBEOHlkxHgkY+s=; b=hwfJORHrC8ylIS5wpRzrPloLok iS0Q1+kpLIrt+0MNZWgWUYsDgUi0IOOrvxcVLMY8PHIZY4IGFqeimq6laToXIHnpfAD1kQPHRwXF4 u54LycpwIZFUEsYIr1+T2szIC69LVzUuy485cAJGO/TqW0CVc+AkBQSep0JbQqo93DX0=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1r59BH-000gF9-Mp; Mon, 20 Nov 2023 19:39:35 +0100 Date: Mon, 20 Nov 2023 19:39:35 +0100 From: Andrew Lunn To: Jakub Kicinski Cc: Vladimir Oltean , =?iso-8859-1?Q?K=F6ry?= Maincent , Florian Fainelli , Broadcom internal kernel review list , Heiner Kallweit , Russell King , "David S. Miller" , Eric Dumazet , Paolo Abeni , Richard Cochran , Radu Pirea , Jay Vosburgh , Andy Gospodarek , Nicolas Ferre , Claudiu Beznea , Willem de Bruijn , Jonathan Corbet , Horatiu Vultur , UNGLinuxDriver@microchip.com, Simon Horman , Thomas Petazzoni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, Maxime Chevallier Subject: Re: [PATCH net-next v7 15/16] net: ethtool: ts: Let the active time stamping layer be selectable Message-ID: <157c68b0-687e-4333-9d59-fad3f5032345@lunn.ch> References: <20231114-feature_ptp_netnext-v7-0-472e77951e40@bootlin.com> <20231114-feature_ptp_netnext-v7-15-472e77951e40@bootlin.com> <20231118183433.30ca1d1a@kernel.org> <20231120104439.15bfdd09@kmaincent-XPS-13-7390> <20231120105255.cgbart5amkg4efaz@skbuf> <20231120121440.3274d44c@kmaincent-XPS-13-7390> <20231120120601.ondrhbkqpnaozl2q@skbuf> <20231120144929.3375317e@kmaincent-XPS-13-7390> <20231120142316.d2emoaqeej2pg4s3@skbuf> <20231120093723.4d88fb2a@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231120093723.4d88fb2a@kernel.org> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email 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 (lipwig.vger.email [0.0.0.0]); Mon, 20 Nov 2023 10:40:31 -0800 (PST) > What about my use case of having a NIC which can stamp at a low rate > at the PHY (for PTP) and high rate at the DMA block (for congestion > control)? Both stamp points have the same PHC index. How theoretical is that? To me, it seems more likely you have two PHC. The PHY stamping tends to be slow because of the MDIO bus. If the MAC has fast access to the PHC, it means its not on the MDIO bus. It probably means you have the PHY integrated into the MAC/SoC, so the MAC can access it. But if its integrated like this, i don't see why PHY stamping should be particularly slow. So you can probably use it for congestion control. And then you don't need DMA stamping. Do you know of real hardware with a MAC and a PHY sharing a PHC? Andrew