Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp387582lqa; Sat, 27 Apr 2024 06:31:48 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV9tImARP7n3X0Xn47Oi4oj/QW1y8v5HGO0WALNDrf8PzQR1srseHSJrGcgoKUUrQMSMGQTuEPoTL+mezUS3D/tJ55YeebsFw6Ty3UGVA== X-Google-Smtp-Source: AGHT+IEc9qeUehcSeiOSQTYNzzj0XxGbutQcry/hpVhcn1QnGlfvj+IyEK7bwCcJMyIYcd2ji6s/ X-Received: by 2002:a05:6a20:a11e:b0:1ad:682d:55b3 with SMTP id q30-20020a056a20a11e00b001ad682d55b3mr6786136pzk.3.1714224707720; Sat, 27 Apr 2024 06:31:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714224707; cv=pass; d=google.com; s=arc-20160816; b=bTZDqtg9dm5HcywLcDNJQHFKIVtEhXEwyPwqmxflgmDpOHIig3s6GBN153TOCc+tPa eWjVgswX6nyTdFJ1NWBYEXmnJ0aTFUiLroFht5wtbPWhFgkuXqMWq2TypT8i+n7IAQI/ LsIAzFtZMrfBH9gBt1qqW6z9qF6LCBUAXV9D2NTnS5SPqdGZxfCfjlK5Os1raWnNHWMW SrBw8Z91Fbku2/u9IEu7P52a6SzVZ4TEzWsjTT58MoTy2VncEthZc/hxuTPPccfJc2hI 7+PkqK4xtwl1oIfeetTpARRM7Ih7bxx41rIdGOD7cxDsXz8FMRMCJAqp0Fn5kKCrPFzZ XvSg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=d5+nFqFYijKCw2MAhBQh7MqWkaqgIhsGHqwcYD/vhkw=; fh=yPFbls8gXE3lrwsyF+SSalLb3jm0xZmKOc2eYXVZ4mk=; b=Cyhin8sFrD1fwt1yGM8M7cZwCGbOn+pRejubxCVilIgAg+GTMKQUerKHki4f5dV/fm 0wyQWjLMsF0Ct2HoJyKbJGseCO/Fr1TxzY6nOj4EENM6/gwKHvFUwMDe6TC7g/HLYDwK yvsEkn8Uiyea73BdK6U8GYQCeDApn8qlLgwmqkl0Bw/ZtsXrusPXIBYBWJKgI7SbrWgM xB4Zbbth06BDtCIIpO+DaaaYHPflds0dBSdIZwvRuDr0tksk5lyjB9fJx5aW++RotYki 1xD0wDZIn5UhmNbrW39sk+qTfQWw/JGec0+b1bvC33mRdurh/JAl9L6oGE0qRFzuPpqM OPQA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Tze2SrNK; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-161052-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-161052-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id m22-20020a634c56000000b005e430f46834si17323487pgl.19.2024.04.27.06.31.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 27 Apr 2024 06:31:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-161052-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Tze2SrNK; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-161052-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-161052-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 76441B2338F for ; Sat, 27 Apr 2024 13:31:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D11D74F213; Sat, 27 Apr 2024 13:31:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Tze2SrNK" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F087F4EB5F; Sat, 27 Apr 2024 13:31:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714224695; cv=none; b=MU6uYnZl5lNxqmcGcqi6v6XPvXzrUBTQe1euUkM4rgbdApT2SCI8cYf4PS3i2O57+l0QozUotheKLSgYOtjz7J2lReCbRphaFDKISPOx8V9KjWoVREdNprZnocamdL1akBWU8rus3pBxvDXKdNiilkiPYWnHPRTRXQ4+OP59dzs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714224695; c=relaxed/simple; bh=tnm5KkPb4FdfDcHUzOfR0PM2z3QBCBSBw6ifiMIT4QI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ANg7ISkzAwP5kJYjRWeGuwkOYLB3BXv9LI3O4pF5hbV5vs3V3XiLlZ15FZes0RnA7vgSxH6TQISGR3jR/60Ug4WOPxiub5Fd+TpmT60e3rnWfYV2dys1B4tuB+1KYglkpE/hp6c3ksuDKCKlV77Qs6jeSQwAEY/k+oxWCBfAZDs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Tze2SrNK; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 86FE5C113CE; Sat, 27 Apr 2024 13:31:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714224694; bh=tnm5KkPb4FdfDcHUzOfR0PM2z3QBCBSBw6ifiMIT4QI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Tze2SrNKoSjoGSWiX0bMeNtF1iovTM8KoqE79ZgXLWfB1Pk6j7ug26D5+JdTbtJm/ vJrZpWjejVOtkOwupyuybGyNN68MPdvUmT91g0Gz+aZxmg6FE9agC4hgf446ZBfcEg m93a0tSl/bMGGiS2QzMe7aKU1zLQOuwI4Jt+GSUj8Oze801MPzEWik0oo9Iyuk6ju5 IMXsdX5Dm/qfyWZJAexfuhTgyKSI4EheB5874133nEv/ktD2eVA5b4aStnNfQ9BCoA tchfo7ebvkSs6cH9IxuoJDSGeljfgIYm8OfXM8p/f555WfeZmg+RTBYC+1bZbtwu4u 9enwGNY//VqrA== Date: Sat, 27 Apr 2024 14:31:29 +0100 From: Simon Horman To: Chintan Vankar Cc: Tanmay Patil , =?utf-8?Q?Asbj=C3=B8rn_Sloth_T=C3=B8nnesen?= , Roger Quadros , Vladimir Oltean , Paolo Abeni , Jakub Kicinski , Eric Dumazet , "David S. Miller" , s-vadapalli@ti.com, srk@ti.com, danishanwar@ti.com, r-gunasekaran@ti.com, linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [PATCH net-next] net: ethernet: ti: am65-cpsw-qos: Add support to taprio for past base_time Message-ID: <20240427133129.GI516117@kernel.org> References: <20240425103142.1999123-1-c-vankar@ti.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240425103142.1999123-1-c-vankar@ti.com> On Thu, Apr 25, 2024 at 04:01:42PM +0530, Chintan Vankar wrote: > From: Tanmay Patil > > If the base-time for taprio is in the past, start the schedule at the time > of the form "base_time + N*cycle_time" where N is the smallest possible > integer such that the above time is in the future. > > Signed-off-by: Tanmay Patil > Signed-off-by: Chintan Vankar Reviewed-by: Simon Horman