Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp840326pxb; Wed, 6 Apr 2022 01:28:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxAzqqpEBwHRWf6K8ny4AzBm5WSC+kj0+h844WJI0soHM3Klp53EMrlyfRh02krQWXmITSY X-Received: by 2002:a17:902:da84:b0:154:3b08:4523 with SMTP id j4-20020a170902da8400b001543b084523mr7710440plx.65.1649233736123; Wed, 06 Apr 2022 01:28:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649233736; cv=none; d=google.com; s=arc-20160816; b=rMJJu8ApceTPL4DewPPOuGiumAkPRJD9vtags+2FJVn7oUINtlUW/vNrofC5AmTx3R HcG3CoE4PfuaI49Z5NxTmF49nXNAHxYY+fFq5suyGfdlqh8gzQzq8eFlBVF+TtbFhXpj Tdwpd80mi06WRanW1enTl83mU5MqsGG51bLMj1h5lpJE0ameBzkxzM6ZmHgGu9MSTWKE LT2xC9xYFq3526owjI5bF/+MyN3uu1y5CYiIdeAr/L99M/ZVTo9MGI8oVeF+BHTG1hll qcfyRVBYlV4UecmX5j3m+tQiCHlljZRbITwS3kfM49JhQddYbiZFQv//8nI24IwDpa1R Bauw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:dkim-signature:dkim-signature:from; bh=w4wC13cgxgcXdHBjki817aUc/ec42N1KzUxtBLjVtcc=; b=tQGzKtJIZw6L3deGsrV+UhpMP9FFNl9PVsAKJvG5d7DjIatL1KUUBtPsFEkYvRXXZJ K2r64Y2qSRtKyZ2qY3gs5JwD+S2qGy3baQncz7b6WMc+LpOiz7oU0x3T0rcg7KHsoFzq nRTOC3+Uoz/xuAusZN5nKTKp+iEUfAMvsXF+BgedfsRM2Q8XB0KIgbciBIDPn0KZECAH JmYH7AHjjuwB/2799GBpY3JGWMqI9IiwXXSKnvNKh62UVmr4NDYw4qMM1PprZgvJBvPf yK8gvA5bFixCsL+X6yfLv7w798te1ucku/zjKv+UZmVc3+Mj5/m0K4kEdXEc3POxl8Y8 du8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=BXekPsXO; dkim=neutral (no key) header.i=@linutronix.de header.b=oFyO70rt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id h13-20020a056a00230d00b004fa7c4d3815si16423079pfh.73.2022.04.06.01.28.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 01:28:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=BXekPsXO; dkim=neutral (no key) header.i=@linutronix.de header.b=oFyO70rt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id CB6265633B0; Wed, 6 Apr 2022 01:14:45 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1842518AbiDFBbu (ORCPT + 99 others); Tue, 5 Apr 2022 21:31:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57544 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1382121AbiDEMAo (ORCPT ); Tue, 5 Apr 2022 08:00:44 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F9073527C; Tue, 5 Apr 2022 04:20:02 -0700 (PDT) From: Kurt Kanzenbach DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1649157600; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=w4wC13cgxgcXdHBjki817aUc/ec42N1KzUxtBLjVtcc=; b=BXekPsXOfwzgvSZEi1DNEsjRtwJF0K2+Ym69LE7AzzCOz6c6EDroh6V53dcfxypNprCC0d YBFF2R/ezJFkE9rB7iVyyKZ8SYyHRVBqmuM5QklN/QI7wl4PEJJ0Cb9XyqvB1Dv4oy24or MzIIX/3GpyT+caqjrEh4pIYQWLIdEH8/kE4bTIivLQA8XNtANVDV2Bq8gdcYuwS4pQT/Gi D/GGmH3tGhmJFJ0Zv9eWT831GVM2ieebbNU7RUrjUORtauVt9kvbkal3GukcA204CeGChT rP3fKPX713//p6S0+RTeyWBc5mcKaKQ0eWX6VcH5A+mylWf25pYwVJyDki7arg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1649157600; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=w4wC13cgxgcXdHBjki817aUc/ec42N1KzUxtBLjVtcc=; b=oFyO70rtb6aZDlRGxSJ/Boi/0eCighJ6RPnZX8oziT2T0rpTuut40ZLJItQ2sbiszjbdVZ 5vTHHVc+8eFc27Dg== To: Michael Walle Cc: Andrew Lunn , richardcochran@gmail.com, davem@davemloft.net, grygorii.strashko@ti.com, kuba@kernel.org, linux-kernel@vger.kernel.org, linux@armlinux.org.uk, mlichvar@redhat.com, netdev@vger.kernel.org, qiangqing.zhang@nxp.com, vladimir.oltean@nxp.com Subject: Re: [PATCH RFC V1 net-next 3/4] net: Let the active time stamping layer be selectable. In-Reply-To: References: <20220104014215.GA20062@hoboy.vegasvil.org> <20220404150508.3945833-1-michael@walle.cc> <877d83rjjc.fsf@kurt> Date: Tue, 05 Apr 2022 13:19:58 +0200 Message-ID: <87wng3pyjl.fsf@kurt> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Tue Apr 05 2022, Michael Walle wrote: > Am 2022-04-05 11:01, schrieb Kurt Kanzenbach: >> On Mon Apr 04 2022, Michael Walle wrote: >>> That would make sense. I guess what bothers me with the current >>> mechanism is that a feature addition to the PHY in the *future* (the >>> timestamping support) might break a board - or at least changes the >>> behavior by suddenly using PHY timestamping. >>=20 >> Currently PHY timestamping is hidden behind a configuration option >> (NETWORK_PHY_TIMESTAMPING). By disabling this option the default >> behavior should stay at MAC timestamping even if additional features >> are added on top of the PHY drivers at later stages. Or not? > > That is correct. But a Kconfig option has several drawbacks: > (1) Doesn't work with boards where I might want PHY timestamping > on *some* ports, thus I need to enable it and then stumple > across the same problem. > (2) Doesn't work with generic distro support, which is what is > ARM pushing right now with their SystemReady stuff (among other > things also for embeddem system). Despite that, I have two boards > which are already ready for booting debian out of the box for > example. While I might convince Debian to enable that option > (as I see it, that option is there to disable the additional > overhead) it certainly won't be on a per board basis. > Actually for keeping the MAC timestamping as is, you'd need to > convince a distribution to never enable the PHY timestamping > kconfig option. > > So yes, I agree it will work when you have control over your > kconfig options, after all (1) might be more academic. But I'm > really concerned about (2). Yes, the limitations described above are exactly one of the reasons to make the timestamping layer configurable at run time as done by these patches. Thanks, Kurt --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJHBAEBCgAxFiEEvLm/ssjDfdPf21mSwZPR8qpGc4IFAmJMJd4THGt1cnRAbGlu dXRyb25peC5kZQAKCRDBk9HyqkZzgtOtD/9duBdOcHsfImUfY/KkCXEDs8Floeju +xKhay38ecgGiVhCd3dVKjfmcN7mHjQ5bTDVQdNaVk/pAhWSiT0YLzKlaJ0aqWqy XAcO67YWR2tv4WS9oXKCZjKhpbcFyX5FWo54U0TDcuyNwU/37lxN68tJnYISbjK8 Fgj0UG0YIG3xEU25hETK2ECwaczPbPfONiil96tN6G1GIfy7zWFmGCTGx3h7qc1X JSJ5wtbprxvOdzvgV+SI3B3lgJbaG4l0sbrQsl0VZcueBAdtec8nKQg5ktnGRAiG JV84i4bwpf9D/6xRNNky8G3VLLCm1m5DPr08JZqkow7ikZxum9VhNF3IdnwiyCnN 5wvw5yoDo9mNw4OS8zD7l5iDHPQZT7lLyXU25JERuPj/jRnR0NPpcC9BUbon97ED ESA/usK4aWFOCvapU9MJvgARbr+OkwzjhUJfK51HpbvG72FCELlMzGVKbaLtP3Ut GtoEl7WfWzeEKsv/Y8kazK2RNfTF/ew0z9aLfjJg5qvZPb3ZVBe+mXj/vn9R0zO6 N5VQY1XtIlruFC6nPfG29+r8QptX1ovC5C8x/p/BejQ+vf3YnTMNDT80DL+agjp5 zzDvvRuoIOqeyrEf+/I2F/WivLiyNOkheTZYM70MmIGu9f0ITa02d6ooLzkLFwle RQ2ARFGqWSJ7VA== =+pav -----END PGP SIGNATURE----- --=-=-=--