Received: by 2002:a05:6a10:8395:0:0:0:0 with SMTP id n21csp596335pxh; Tue, 9 Nov 2021 15:54:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJxc4aK5ysoJBpj9eddR+vgZKHLpr9Yww/6b2eFDjQVCWrQqkaJhavIkYQbFcaVZXkeokayi X-Received: by 2002:a5d:8ad2:: with SMTP id e18mr7787096iot.144.1636502091044; Tue, 09 Nov 2021 15:54:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636502091; cv=none; d=google.com; s=arc-20160816; b=CbM1VbG0Xi3PgQ5+L+Jh/NYh7ooqM/gjwCa0HV9tlst79xYTGLB9OUbXVMPt62ULTa JxDLB+ojL/BoF2uOJ5FNXXKmScmNCpUkutnq9nfuNqcOXI6er0ZFskztFTI1um1soFmi +Oj3w8PiBY6qlKBieEQJTGvYi88QVxYG/kDDIylTP3GzqlLiXtUJYKw4izd4HKEFpTVU +VekNAZeFbjhtrLoj8W5/eM5ewsIoLQ4qsn6TNQqb+HkUp2pcBSHCMjvCk78/1713D1T lB+kDZ86/KfX3NjnC7aEMI7mUDi7RYWOhyLqPOoI/MsTRciogmw5WbTf132mqI5hN/nh ULjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:references:cc :to:subject:from; bh=l+1GoSGReFPdFvRjKzTwL11QxjLCtDM0EBHtPmAaJk8=; b=R8YvzBjLmjoCMkTQTSbCxdMr6h4MJ5IdXllr3QaFz1alQttSQlycDtMB16eiO9/qiH O22qqAA+GGwKpw86KucVx6fvvJOFzURZPxpZbuneI0M2PxCaqpFGkn7Nh3jDeA+Wx9A0 AH3ZFJbkwc3F9piG8cntJ5mgU7gFMgA3MctwEiPuqEZGAPuxRsfh1+CeKAJrpdfhvEof B8MQrnNwwXYwuX+sWD5CRa0gr80Kmx7s9wuat4wSAaEDHMfalczx3m4rIlJMxt69CkbO PjYbPHAhMKbxsEkBWvayHtNUJHKumsH8PBCqk9DOjzWl5C2ci2zDLgFGhHZ/j6Dy2fo7 F+qw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a15si33501573iok.86.2021.11.09.15.54.38; Tue, 09 Nov 2021 15:54:51 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235367AbhKIOWb (ORCPT + 97 others); Tue, 9 Nov 2021 09:22:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54766 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235142AbhKIOWa (ORCPT ); Tue, 9 Nov 2021 09:22:30 -0500 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 8AD4EC061766 for ; Tue, 9 Nov 2021 06:19:43 -0800 (PST) Received: from gallifrey.ext.pengutronix.de ([2001:67c:670:201:5054:ff:fe8d:eefb] helo=[127.0.0.1]) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1mkRyH-0003AW-2g; Tue, 09 Nov 2021 15:19:33 +0100 From: Ahmad Fatoum Subject: Re: [Linux-stm32] [PATCH net] net: stmmac: allow a tc-taprio base-time of zero To: Vladimir Oltean , Kurt Kanzenbach , Holger Assmann Cc: Yannick Vignon , "linux-kernel@vger.kernel.org" , "netdev@vger.kernel.org" , Xiaoliang Yang , Alexandre Torgue , "linux-stm32@st-md-mailman.stormreply.com" , Jose Abreu , Maxime Coquelin , Giuseppe Cavallaro , Jakub Kicinski , "David S. Miller" , "linux-arm-kernel@lists.infradead.org" , Pengutronix Kernel Team References: <20211108202854.1740995-1-vladimir.oltean@nxp.com> <87bl2t3fkq.fsf@kurt> <20211109103504.ahl2djymnevsbhoj@skbuf> Message-ID: <6bf6db8b-4717-71fe-b6de-9f6e12202dad@pengutronix.de> Date: Tue, 9 Nov 2021 15:19:28 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 In-Reply-To: <20211109103504.ahl2djymnevsbhoj@skbuf> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 2001:67c:670:201:5054:ff:fe8d:eefb X-SA-Exim-Mail-From: a.fatoum@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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Vladimir, Kurt, On 09.11.21 11:35, Vladimir Oltean wrote: > On Tue, Nov 09, 2021 at 09:20:53AM +0100, Kurt Kanzenbach wrote: >> Hi Vladimir, >> >> On Mon Nov 08 2021, Vladimir Oltean wrote: >>> Commit fe28c53ed71d ("net: stmmac: fix taprio configuration when >>> base_time is in the past") allowed some base time values in the past, >>> but apparently not all, the base-time value of 0 (Jan 1st 1970) is still >>> explicitly denied by the driver. >>> >>> Remove the bogus check. >>> >>> Fixes: b60189e0392f ("net: stmmac: Integrate EST with TAPRIO scheduler API") >>> Signed-off-by: Vladimir Oltean >> >> I've experienced the same problem and wanted to send a patch for >> it. Thanks! >> >> Reviewed-by: Kurt Kanzenbach > > Cool. So you had that patch queued up? What other stmmac patches do you > have queued up? :) Do you have a fix for the driver setting the PTP time > every time when SIOCSHWTSTAMP is called? This breaks the UTC-to-TAI > offset established by phc2sys and it takes a few seconds to readjust, > which is very annoying. Sounds like the same issue in: https://lore.kernel.org/netdev/20201216113239.2980816-1-h.assmann@pengutronix.de/ Cheers, Ahmad > _______________________________________________ > Linux-stm32 mailing list > Linux-stm32@st-md-mailman.stormreply.com > https://st-md-mailman.stormreply.com/mailman/listinfo/linux-stm32 > -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |