Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp2455138rdb; Mon, 20 Nov 2023 11:11:32 -0800 (PST) X-Google-Smtp-Source: AGHT+IFuS0L55PkOPw1E5ITGpTfzlt2lNwd+7g7a/VevE/Hsi92IB3UGYtclKNgMZP5yBYsLD/S2 X-Received: by 2002:a05:6a00:e05:b0:6cb:64b7:a3bc with SMTP id bq5-20020a056a000e0500b006cb64b7a3bcmr5832208pfb.29.1700507492120; Mon, 20 Nov 2023 11:11:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700507492; cv=none; d=google.com; s=arc-20160816; b=FeezM5wXJNZXEGTkwt8KettLlWIM5BYq/OEioiREoPuQALDA/xjQ1IKohenonfmxIU KpxoqLJMy911zW1VvmAcqywUe8wcHTSpoOhjX7NblCkdvmpO2hsHM5GN0rLtwEVy6wHL 27Pb36MLAzGxBdabgYw6toADxkXwXp2DXydYPaOuVZVHeDuuq972+yAGIlI7yTtqItC6 q3bxjKu7LNqhWYgJ1bEMMlQL0CHzE9mHrUNlm5nh6jxbPi7HBtMWDKNucRlFnZyYhkFU VDS2ZOtXyJNv2sQeZgVU0HqWDC5tZ4z1+jVfZLHXlWv2cCuNziZeJBcZWkzgxixKp0B6 f8iw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=nQggdxI9MQ2FS/W0GEG8D1cdBawPg8AZAzpNVf/hhDE=; fh=1McZX42Gr/tpXkO2OlWLtZHMDpsulhIt2Sj5EMnDOeg=; b=t4D5v0g7tbnbfO94cgvjvOLh31WlCeC/H/DaCMN2ZAXtw3XpJ8Tv4bIA+xk+mp5Ai3 1uJKEPx8Z7f/BRHj8ES4MVyzGqRFuj2BXbmrn8MtCnqxHeW4H4nCtOisOaXXOvI2NiNH gjV+XW3KEDJ1HhKbTGhmAPaEbgQaiX/lCrm16sWddhUS+s967Soklai/GGzibRZvZdD7 0efu3vmosoMKPO36qSe/P8X+j9wAQDQmNPRhk6jm9jr+zQcLqj36xZ6dVgGEdMva6nFX zRysl1y0YQhIT/Vv2wJJ03GjOQ4CaQqrk+WrPuBObnSGkiQe2KNvGo6dgv2bQDayUSdI ND0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=wv7i7KIs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id m123-20020a625881000000b006cb8607ec19si3441760pfb.223.2023.11.20.11.11.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Nov 2023 11:11:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=wv7i7KIs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id E8F11808652C; Mon, 20 Nov 2023 11:10:34 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232057AbjKTTKZ (ORCPT + 99 others); Mon, 20 Nov 2023 14:10:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32776 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229623AbjKTTKY (ORCPT ); Mon, 20 Nov 2023 14:10:24 -0500 Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [IPv6:2001:4d48:ad52:32c8:5054:ff:fe00:142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 44C21E3; Mon, 20 Nov 2023 11:10:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=nQggdxI9MQ2FS/W0GEG8D1cdBawPg8AZAzpNVf/hhDE=; b=wv7i7KIsLK5sNs6GxBZ1eTPvBs 8D8waGZ6Bwkk1VOH7PyCYlBdY9FsgioEi1s1ihGrbcNKiF9AfI7TAtw9C3PUA/kTAIHd12QNvdw4o DOtwmu10YB8J+ElXm/wS/syMFmzPx6OXbkbgALZ95FKgsPgKIEkAwVFlO2KcY8A133LpHG23/UDXt DxGwZ0Ee1yOjGDnINBC/yfQAQU9K0KOT2AdYYXMPnLAMhzilCsGlSHatd15UG/R4Zf831IuuTQvtR o6JmuUipByC7p2R4IlIWia1+wi6WZUEDC0JRDZ+tVZBruY6fC5yfCeWJPrdORF0W9FOWHPCbxrmm4 v6qFC6bA==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:60598) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1r59ef-00062L-1c; Mon, 20 Nov 2023 19:09:57 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1r59ed-0003Q4-V6; Mon, 20 Nov 2023 19:09:55 +0000 Date: Mon, 20 Nov 2023 19:09:55 +0000 From: "Russell King (Oracle)" To: Andrew Lunn Cc: Jakub Kicinski , Vladimir Oltean , =?iso-8859-1?Q?K=F6ry?= Maincent , Florian Fainelli , Broadcom internal kernel review list , Heiner Kallweit , "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: References: <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> <157c68b0-687e-4333-9d59-fad3f5032345@lunn.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <157c68b0-687e-4333-9d59-fad3f5032345@lunn.ch> Sender: Russell King (Oracle) X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, 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 groat.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 (groat.vger.email [0.0.0.0]); Mon, 20 Nov 2023 11:10:35 -0800 (PST) On Mon, Nov 20, 2023 at 07:39:35PM +0100, Andrew Lunn wrote: > > 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? Not so much a MAC and PHY sharing a PHC, but I notice in USXGMII-M, there is the ability for the PHY to pass the timestamp back to the MAC through the USXGMII-M connection - which would eliminate the problems of accessing the PHY to get that the timestamps. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!