Received: by 2002:a05:6a10:8395:0:0:0:0 with SMTP id n21csp636763pxh; Wed, 10 Nov 2021 07:12:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJzTlrzoQAuRmxGmkTmIGbja6AEVUyMNkL2aN0mUtmbP5oU1lTRUw0wkgNTtLb1Vd6reiloN X-Received: by 2002:a17:906:4fd0:: with SMTP id i16mr314691ejw.277.1636557165907; Wed, 10 Nov 2021 07:12:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636557165; cv=none; d=google.com; s=arc-20160816; b=vSpZzi2zXKzAd7yvjwTkMC9zp8o242dySQwFNsqiC0R8tsYzzr+PtOHTYxJy2LuIuG FS9Ur05grz54mcMk2QrjOsIlNEB1xPbMLfsDI8wuIq8pXFpZcew7gl/k0myBYzSuko+/ Odg/zSfOGZ4vMtALChHsu4zZ/xN1JWvVCa80FI8jO0u708w/ZPq9xWGRREX3YjOImpB7 0gWAmEXyozScYy/qRrJPtBoOds8RHkALw7ASApiBi6eo1RQVNf2y8A1QzaC2kZW075J/ 6eeA9I4p1BT2hHMsERTyWR5uj4keaCQkTT5Dtv7Lm4RQ02FmTv+WJq+MjqBqdUUAM8+r wekQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=odGTnK8OK8r3z3b40pT32upAxG17hXJdJNDrUm3eoyg=; b=B9jsXSBz1US2ZKigU3RMVNZFpQhEE1ROQcFb5czUTrSN2hAoFujKh7XZJ54voc7VDz fCopy/yoBXSlhIjmhd7rZ7Lz78nzzsD8puyqcWi5rG4uqRW/RK2HAdF3Kk7tJ3T8BMSQ qhxU6DrkBxE8wt8H8KPXNLWABgGJDTKzX3qs1V2PG5UhrppMskk3rGyVqQyY4CkjBerv QU4CT8lq7hO6YHQMg18DM4Mm9N1dJDRLLO+WrIopYvE/P8xEFdaO4WWgSr0mP/EdaxRd qUfXEIR2+scxOQxN0TZR+VzhjgomVxYJ2yYj5o/aq4lSOMcBNTThO5GmLdb53i1MJjK4 cnAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=RLh3FtXs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a16si166200ejk.490.2021.11.10.07.12.20; Wed, 10 Nov 2021 07:12:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=RLh3FtXs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S232388AbhKJPLw (ORCPT + 99 others); Wed, 10 Nov 2021 10:11:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51624 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232280AbhKJPLr (ORCPT ); Wed, 10 Nov 2021 10:11:47 -0500 Received: from mail-pf1-x432.google.com (mail-pf1-x432.google.com [IPv6:2607:f8b0:4864:20::432]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B05E5C061764; Wed, 10 Nov 2021 07:08:58 -0800 (PST) Received: by mail-pf1-x432.google.com with SMTP id m14so2888804pfc.9; Wed, 10 Nov 2021 07:08:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=odGTnK8OK8r3z3b40pT32upAxG17hXJdJNDrUm3eoyg=; b=RLh3FtXsv6t7xehRHzTeN8HZpcPX7JzXYZ5T8TZGOq5SG4I+zVb/6CDp/euoeWys+g 74DEjof6QBoeBhPzIj+E6PNVqq2ntmd3I9EtNm07sNRQQexpo6XDYGoipF0UgmnM9p9K yuDxPbLwiR4R2Tp17ysicxz7M2WTZzsV39t6U6TwpLkBLi47KohVyvjQwCY7rDxS6bn7 Jo0KgpNuXTThBc8QVacpKRrX+pXRots+WaCPMN1HAZiBBemBVstuP4L/0HZbyp3CskU4 5ydWXKZzgoTcNDxJuUTblnDVAqyWYPAjGddQ9rIp6Axrf2x/BrnXywjW8goDu1jj3XXR EuqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=odGTnK8OK8r3z3b40pT32upAxG17hXJdJNDrUm3eoyg=; b=XFlvak6HB+gy7nkaMWnRmF3HhC0XH+GlG2FJ4KTNY039I2ytT+3CuDXZEWJTCTQweX ItcuzZNyMWQG5Di5KXal5FZKwOki5X9MqO7v/a4iOmc9nhp8QTAy8NAwY+138rNTcC9o jzZvZwIp8vRAcOEZTtWy0Bqtw1YMakmy3blsY1RwZYrOzg4eCkznVU1M+DxfBrKIduhn Bfln0qHq6Crj//oPXEsbuqrfbFVs+kZTnb/wmb0fs8YMR3VoYwEUbt75EtDfB9plMl5R Qi9oqmqrpepLUUyR/3v5KsnBFMWLSuWSsf4XtasTNJRr8y1ouOLIVCbvF0cuZ+VdtMNb PeuA== X-Gm-Message-State: AOAM5331s/bZg9bT15qnTHF5oa9yzTrTXLWe3W8AyQoyZR6JQvndLOB8 Xozbv95uslLB9ik9hoNzU1/6i5m7dTo= X-Received: by 2002:a63:86c8:: with SMTP id x191mr333552pgd.153.1636556938091; Wed, 10 Nov 2021 07:08:58 -0800 (PST) Received: from hoboy.vegasvil.org ([2601:645:c000:2163:e2d5:5eff:fea5:802f]) by smtp.gmail.com with ESMTPSA id t13sm28375pfl.98.2021.11.10.07.08.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Nov 2021 07:08:57 -0800 (PST) Date: Wed, 10 Nov 2021 07:08:55 -0800 From: Richard Cochran To: Vladimir Oltean Cc: Kurt Kanzenbach , Martin Kaistra , Florian Fainelli , Andrew Lunn , Vivien Didelot , "David S. Miller" , Jakub Kicinski , John Stultz , Thomas Gleixner , Stephen Boyd , Russell King , Marc Kleine-Budde , linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [PATCH v2 6/7] net: dsa: b53: Add logic for TX timestamping Message-ID: <20211110150855.GD28458@hoboy.vegasvil.org> References: <20211109095013.27829-1-martin.kaistra@linutronix.de> <20211109095013.27829-7-martin.kaistra@linutronix.de> <20211109111213.6vo5swdhxjvgmyjt@skbuf> <87ee7o8otj.fsf@kurt> <20211110130545.ga7ajracz2vvzotg@skbuf> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211110130545.ga7ajracz2vvzotg@skbuf> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 10, 2021 at 03:05:45PM +0200, Vladimir Oltean wrote: > So it is true that ptp4l is single threaded and always polls > synchronously for the reception of a TX timestamp on the error queue > before proceeding to do anything else. But writing a kernel driver to > the specification of a single user space program is questionable. There are a number of HW devices on the market that only support one outstanding Tx time stamp. The implementation of ptp4l follows this limitation because a) it allows ptp4l to "just work" with most HW, and b) there is as yet no practical advantage to asynchronous Tx time stamping. The premise of (b) might change if you had a GM serving hundreds or thousands of unicast clients, for example. In any case, I agree that the driver should enable the capabilities of the HW and not impose artificial limitations. Thanks, Richard