Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp2007610rwb; Thu, 27 Jul 2023 00:04:44 -0700 (PDT) X-Google-Smtp-Source: APBJJlEv2m9rsY0HSvH8GUB5VGy34MGByg6XTI43slL4dDDNw9pIBhGKTLCNqrDvaQQ5ZTusUt5u X-Received: by 2002:a05:6512:104d:b0:4fd:c882:bb42 with SMTP id c13-20020a056512104d00b004fdc882bb42mr1519698lfb.15.1690441483948; Thu, 27 Jul 2023 00:04:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690441483; cv=none; d=google.com; s=arc-20160816; b=OQ/F+vsaNg80k9yyV+KOqipScql80N9tJp4DX2n/t0ObHJ9gyXfBrJFndI/DB6rknF KMGmd2MQvxDLKP4LcaU4/v6iyWclTbiPaMm7pZtH5Bw/4klz7ORRTgerMafrSfj7goOp E0782Wvp/6STO6PiS1dWzmvK07QbtS8cDYSpEptMwob2qC44YJkR9Hq1WuX+7LFb06pt uNNdsPJ9SyUB/wtSJ6Y+kxHykQbq2YUvLir+voVLzYRaKrFmF8Mewo4EVayx/JHumtKD /bfn6Ayut+G1XweflwT/7iucIqXqHT2jpp2+bH5jT8AI4qGE5d/Pulxm/kFsP9qRiiCd YcMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=SS2M4ckAiiovHa1Ui2GG4ynSaSCcW1VCoq0cJXwP4R8=; fh=Eax5s2Hpvo9Z8QzkxmTm/e/rGEKscET66iMhiOPCFyg=; b=snuIMbIzmFO+w9jbMSfrxnixEbjev4oJBJIGxhE6QY2DbdQn1OvOYuboknigvLXul3 arVPuMh+36EgbtoR3Xn+8SPi6xZsBBtAqthqmadokuhckkcMx7OjAFy5EQAVbxQql2hj SwwH8hoNj/HUd1X4PGsniqJjfkNflG/kpoUPuwjOMc5F+vQ4SYZcoXPFtdqkl4R+ihs1 VP6XSMgrNLYw8dy33pfHKoa6fk+XBUgLYM+P7iJOFLm+RfKdfUDClqWUPUQsGauRVkiO nIcFB+O23u1AdJO7DyvPwIM4GqqbEeHMGOG/a4C7yvJXVhVPwFHxRFxYMFZ/7/j8BP1w 843A== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l12-20020a1709066b8c00b00965a1d85cf1si610039ejr.890.2023.07.27.00.04.19; Thu, 27 Jul 2023 00:04:43 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231233AbjG0Gno (ORCPT + 99 others); Thu, 27 Jul 2023 02:43:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39714 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231622AbjG0Gnk (ORCPT ); Thu, 27 Jul 2023 02:43:40 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 03DCA26A0 for ; Wed, 26 Jul 2023 23:43:18 -0700 (PDT) Received: from ptz.office.stw.pengutronix.de ([2a0a:edc0:0:900:1d::77] helo=[127.0.0.1]) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1qOui9-0002NW-LM; Thu, 27 Jul 2023 08:42:57 +0200 Message-ID: <06859eed-6f9b-5d66-3221-e55dcd83466c@pengutronix.de> Date: Thu, 27 Jul 2023 08:42:52 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH v2] net: stmmac: correct MAC propagation delay Content-Language: en-US, de-DE To: Richard Cochran Cc: Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Maxime Coquelin , Russell King , patchwork-jzi@pengutronix.de, netdev@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kernel@pengutronix.de, kernel test robot References: <20230719-stmmac_correct_mac_delay-v2-1-3366f38ee9a6@pengutronix.de> From: Johannes Zink In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 2a0a:edc0:0:900:1d::77 X-SA-Exim-Mail-From: j.zink@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,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 lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Richard, On 7/26/23 20:00, Richard Cochran wrote: > On Mon, Jul 24, 2023 at 12:01:31PM +0200, Johannes Zink wrote: > >> diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_ptp.h b/drivers/net/ethernet/stmicro/stmmac/stmmac_ptp.h >> index bf619295d079..d1fe4b46f162 100644 >> --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_ptp.h >> +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_ptp.h >> @@ -26,6 +26,12 @@ >> #define PTP_ACR 0x40 /* Auxiliary Control Reg */ >> #define PTP_ATNR 0x48 /* Auxiliary Timestamp - Nanoseconds Reg */ >> #define PTP_ATSR 0x4c /* Auxiliary Timestamp - Seconds Reg */ >> +#define PTP_TS_INGR_CORR_NS 0x58 /* Ingress timestamp correction nanoseconds */ >> +#define PTP_TS_EGR_CORR_NS 0x5C /* Egress timestamp correction nanoseconds*/ >> +#define PTP_TS_INGR_CORR_SNS 0x60 /* Ingress timestamp correction subnanoseconds */ >> +#define PTP_TS_EGR_CORR_SNS 0x64 /* Egress timestamp correction subnanoseconds */ > > These two... > >> +#define PTP_TS_INGR_LAT 0x68 /* MAC internal Ingress Latency */ >> +#define PTP_TS_EGR_LAT 0x6c /* MAC internal Egress Latency */ > > do not exist on earlier versions of the IP core. > > I wonder what values are there? > good catch, I think adding the register definition won't hurt, but if you feel more comfortable about it I can add them only for IP core version 5. Johannes > Thanks, > Richard > -- Pengutronix e.K. | Johannes Zink | Steuerwalder Str. 21 | https://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686| Fax: +49-5121-206917-5555 |