Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp1177386rdb; Wed, 24 Jan 2024 07:10:21 -0800 (PST) X-Google-Smtp-Source: AGHT+IE3qv1quOe8jCkY/DOZ+L4GD9HNdcMBqEWZ4tclBYeebO2mWb9wPr3HtcghiTzsRQXd/PQ6 X-Received: by 2002:a17:903:24f:b0:1d6:f1ca:41c4 with SMTP id j15-20020a170903024f00b001d6f1ca41c4mr844719plh.78.1706109020772; Wed, 24 Jan 2024 07:10:20 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706109020; cv=pass; d=google.com; s=arc-20160816; b=jYJnfE+yBbIz/rKGFrPCsF+9VqjvgtXNxiPa3X6mVg2Wt5nfR6FevzDqSuxmLf/sTO fB4bNwQGUduSow0+nf5sn5HKjip/QcPqHQ/v6N9/FghJuFwFuSyGggX5WE+WaV60/j93 JO79AuXx0UtWlT70QnlIFXdKZPwoLNLlQ6guShKC5RN8q/Rzn5cmhAGemEu7K+X64Hpe bkbiWIMKfSM8hFu3+P+VAtmO6o2UWfgeviRn9fm++bMLEKXRNoq/R2FBTbmw9WLEMizJ t73WkqTz0JOABVnvUGW9QgKcphEjN0LuKAf1nFYazkJqFenb4BvU+WEk33dVgSJ6B8gC XNHA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=43lXa0WU3VYMfy+YKtoNb7AXn3JY+KVVRfKVmYJaNNU=; fh=BKbgBJA00URhnVxKnPor2P+JsxS/Cg82TGn007JT7Zo=; b=qXbVhUGByQEvHsihQWcN+7myLNE/Lu5iT0IiQ4s3yUgRym47vN0WgltBwWhSUeF5sh s1x04r9oi0RAwERGIpoU4qODTvoOKIKSeNv1sgp6DdmypaR7rJO4B2tIX/qIjBsM6nQ8 L2xA7578/7tPB3s5+N/n7FiTbvid4xyBNajd+LZtCBFQj+8w7PQTtjTj5nucDFGcrpNK nPqBzFtazEVWCGY5nqkEHwqikMREDuUv/EKW/lEVqAHsFdO9qxS3sXO3fCZebGpgqlSz bv1WAt3+6QGiCFIz3zuNzT67ahpQJGOap/1uzpnfEfq/v+VlsWzCqQI99OPKWz1YiB/G QR2Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@geanix.com header.s=default2211 header.b=gX3xFsmZ; arc=pass (i=1 spf=pass spfdomain=geanix.com dkim=pass dkdomain=geanix.com dmarc=pass fromdomain=geanix.com); spf=pass (google.com: domain of linux-kernel+bounces-37189-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-37189-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=geanix.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id l10-20020a170902f68a00b001d72c1a5afbsi8196823plg.415.2024.01.24.07.10.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Jan 2024 07:10:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-37189-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@geanix.com header.s=default2211 header.b=gX3xFsmZ; arc=pass (i=1 spf=pass spfdomain=geanix.com dkim=pass dkdomain=geanix.com dmarc=pass fromdomain=geanix.com); spf=pass (google.com: domain of linux-kernel+bounces-37189-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-37189-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=geanix.com 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 2D688299898 for ; Wed, 24 Jan 2024 14:50:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4A0AB86153; Wed, 24 Jan 2024 14:33:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=geanix.com header.i=@geanix.com header.b="gX3xFsmZ" Received: from www530.your-server.de (www530.your-server.de [188.40.30.78]) (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 4DF7286140; Wed, 24 Jan 2024 14:33:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=188.40.30.78 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706106801; cv=none; b=D77KJ7x9XP3DamjGbwZkozaN5U9fITTShjx0hKPzM26f27ONB4jW2jj9JJvsXPJi1WnIB0sHlGZgsuCGVbV5BhdNvPbORROX1Im3o/nE3E9ocVgCeRarXrJOVZX0DWtlvCua3fpWNQ2leKoNGWgHJ09mOhs+Fg3EObecNwsFo2w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706106801; c=relaxed/simple; bh=J8ZnbGicfIizYlxlwcoQNvv53niL2C5JlGn6ghyQ5wo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=pKraiRmS0KbwTF3EwCSoRGTDgHayyhZgxCpbV7g90e+wiyFmy5QY3FAi1Gkl6knYpzbSV/xeWEeK+hxDa0SiIHuEVyGlmHnMb9vJ/nesARt0RnjFHzySdsYmA9CYwBL4klcJgJaGMEUxubwYKIw5cn9IppJ2QH/3lWtZfEXxsSk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=geanix.com; spf=pass smtp.mailfrom=geanix.com; dkim=pass (2048-bit key) header.d=geanix.com header.i=@geanix.com header.b=gX3xFsmZ; arc=none smtp.client-ip=188.40.30.78 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=geanix.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=geanix.com DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=geanix.com; s=default2211; h=Content-Transfer-Encoding:MIME-Version:References: In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID; bh=43lXa0WU3VYMfy+YKtoNb7AXn3JY+KVVRfKVmYJaNNU=; b=gX3xFsmZxlILiwmvmGybuap8w/ CtYayO6m6VuK+QhhX5Pnk+brc4gckoiGoV5ESNv/8TjSEQ6VpZPSVmNRiLYJRnDa+AdE/D62XWUVy eBDYOpTnliziZF06bme87Y/4UK89aEii+9EfuUzEu1oMQ5Ypc7IgFlXX9oviQNx5lo5Ih2nS+G9+5 q0ROMsxjZF40qVx4TKCDS0zfQff7+a+R2nfh/J7zg6O17HQ4nY7/LXPJUentt0nRn1TQ583ZA0VVd H7vsZ6izsyFEKHRZmoFS+t5kWHt+elaJBU9LSuakv8REzyZ3SxpTCnm4UwvmsSeLuyYJ7ahrIkEky p6tthuNA==; Received: from sslproxy01.your-server.de ([78.46.139.224]) by www530.your-server.de with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rSeJY-000Nbk-31; Wed, 24 Jan 2024 15:33:16 +0100 Received: from [87.49.43.79] (helo=localhost) by sslproxy01.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rSeJX-0009kq-8t; Wed, 24 Jan 2024 15:33:15 +0100 From: Esben Haabendal To: netdev@vger.kernel.org, Alexandre Torgue , Jose Abreu , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Maxime Coquelin Cc: linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/3] net: stmmac: Time Based Scheduling support for OF platforms Date: Wed, 24 Jan 2024 15:33:14 +0100 Message-ID: X-Mailer: git-send-email 2.43.0 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Authenticated-Sender: esben@geanix.com X-Virus-Scanned: Clear (ClamAV 0.103.10/27164/Wed Jan 24 10:45:32 2024) This allows enabling TBS for TX queues by adding the snps,time-based-scheduling property. You should check for support for this on your particular controller before enabling. Typically, TX queue 0 does not support TBS. Signed-off-by: Esben Haabendal --- drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c index 70eadc83ca68..f0bb49b0f41c 100644 --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c @@ -278,6 +278,8 @@ static int stmmac_mtl_setup(struct platform_device *pdev, plat->tx_queues_cfg[queue].coe_unsupported = of_property_read_bool(q_node, "snps,coe-unsupported"); + plat->tx_queues_cfg[queue].tbs_en = + of_property_read_bool(q_node, "snps,time-based-scheduling"); queue++; } -- 2.43.0