Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp1441815rwb; Wed, 26 Jul 2023 12:33:21 -0700 (PDT) X-Google-Smtp-Source: APBJJlHq2wYn3CLPbSceJarYKeoo/BKfnD6Q+PvMrSHxRSnC1Jf++Hagqj58rVQW5i7P7ttxtgmH X-Received: by 2002:a17:90b:1494:b0:263:3b44:b0cd with SMTP id js20-20020a17090b149400b002633b44b0cdmr2398972pjb.44.1690400001297; Wed, 26 Jul 2023 12:33:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690400001; cv=none; d=google.com; s=arc-20160816; b=ocw6a6zc8PeVZk57KixADxPBXoWXgzGiusHWYaO4qNGdVuqwjtDACka4TUP15RF/nM 6J6QVHQjQVfhcErmUfiPwjMoZWvvyotqEhcYJmURsKCvafnXDcj88jf2acJrtTPEYXRf j8YrI+5RQVApHr1NGZ9QodzgW7kkuMgPV/iWKCtb0ExOPHieVdykGXpVfvo61VsR9edy Sr33vzNvFOP6XC6G/giOOCXCGn7R8a5qhKDXyCu3neIpH0+WRdIgmuMdgxLtM8+9HjQG 7VuH0xsYLQah4SC6HxORy5FrIqLN4d+EZZLre/0OkciRkq0hqro77GJz+BhgvW/zgEDq tm/w== 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=pBrqRf9KetYwqqw9kE2OBONwOaipxgqPSXo8Gqyj3es=; fh=PdadLLWE7On5Az6YmT63qNRKNq7WJzwCtOi9nnvkQf8=; b=OvduRjFZF/zlB1j8ap8ml1zS3p/Tumz0H3FiFTCDbybCnYABn71ek6Kt3Rt7lSgQk3 ennq/swuxAD47yZ4xiyuiZFJYUtCJ9OoS/zOonlj9yndkYOPTb86/KYBoSGMK6ndwkc4 rnFqky7gX8b300ZFWd8CReDOGc3DjxcL3E/a/He6orIcX2KNvVRUFj+W8xGPDEKbaxaI 4N/rEmpkc3wvfU9c8iMh/qYsJiC3VBvaTW+covrXdub9kjeWBM427AaHbFyF6AB80gYI cT+CUD2MSR6teX68/Cjiu82atNMFHGu70aHhXF6poRIAKr6fKU336gCzxLLrLSpUzL0l tNPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=BJugwYfk; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q16-20020a170902dad000b001b84335fb90si920367plx.286.2023.07.26.12.33.07; Wed, 26 Jul 2023 12:33:21 -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=@gmail.com header.s=20221208 header.b=BJugwYfk; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231266AbjGZSAM (ORCPT + 99 others); Wed, 26 Jul 2023 14:00:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46862 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229535AbjGZSAI (ORCPT ); Wed, 26 Jul 2023 14:00:08 -0400 Received: from mail-pf1-x42c.google.com (mail-pf1-x42c.google.com [IPv6:2607:f8b0:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B17892697; Wed, 26 Jul 2023 11:00:07 -0700 (PDT) Received: by mail-pf1-x42c.google.com with SMTP id d2e1a72fcca58-66d6a9851f3so27853b3a.0; Wed, 26 Jul 2023 11:00:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690394407; x=1690999207; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=pBrqRf9KetYwqqw9kE2OBONwOaipxgqPSXo8Gqyj3es=; b=BJugwYfk9LHDG/VPjAGZ96UsiwDn8TCeZ9LCCV0vdU+A86oCwErSafXPcRTlt4wyHH olEKlDsp5tCv9J+gTP/BCdtUV1gH+RSTCHx3QU5HZaWkvSMVDcnHbt0HTDCMOpGiNsVE KyyFCDdEclB2qjuRpur33Oh2MGejJdqA7Pfq6/FOgmiHLUK7/y5O6PIXfnfP6kye5GyV uEf8nCHvAvLC4zwWtjhSolGUu8oBsiIviNL8P5VLKgQCOepoWWgti5/7n7qeNhc9amP9 wgNYW8PGLhnvtR+Aax5NdsXZYVoX8zScB/0xptN72pTMS2Pro4MsWraYmL2WqtGk/Mrl xVHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690394407; x=1690999207; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=pBrqRf9KetYwqqw9kE2OBONwOaipxgqPSXo8Gqyj3es=; b=AfpQt7vMoj9TIqAokboYjpOGDZHEPAHIR5ewl3FgIlByJLMwu1eSkgnPPxlUJCRYiM sksazTbL89ru3Stn0Ai1torwRQ2Gm+IBGIy8FSJfxK+cDljUk+kkPKeZYNJBc2e5EMNx 6sBwJdnKCw8UH0Ty39MoBnNDpk7v1x2/bRoaxkv5lKQPJyv5UNg7sMQO187ChK3gwxys hQBP5Kby13MUWAE7vrcgC71Wu/ShNDNqA11B54S/ZLR4FJHx3Blmxo5iw3tVo0lKuLy9 Jjf7LpP64f3TpvNgpdtsvWOzR5Mig5QVjMVnGowRq17lgKqAA39cFLdY5H2M5xHcXE0i LLEQ== X-Gm-Message-State: ABy/qLZl0BV1E7m9P1rmYjL6Wv4PZoYAsuoIhU0CV6qbePFIdE7a+dCh ff+yx2LekXxDAa6t6GKRlKE= X-Received: by 2002:a05:6a00:2d82:b0:675:8627:a291 with SMTP id fb2-20020a056a002d8200b006758627a291mr2820706pfb.3.1690394407071; Wed, 26 Jul 2023 11:00:07 -0700 (PDT) Received: from hoboy.vegasvil.org ([2601:640:8000:54:e2d5:5eff:fea5:802f]) by smtp.gmail.com with ESMTPSA id i8-20020aa78d88000000b006765cb32558sm11724126pfr.139.2023.07.26.11.00.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Jul 2023 11:00:06 -0700 (PDT) Date: Wed, 26 Jul 2023 11:00:03 -0700 From: Richard Cochran To: Johannes Zink 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 Subject: Re: [PATCH v2] net: stmmac: correct MAC propagation delay Message-ID: References: <20230719-stmmac_correct_mac_delay-v2-1-3366f38ee9a6@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230719-stmmac_correct_mac_delay-v2-1-3366f38ee9a6@pengutronix.de> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 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? Thanks, Richard