Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp1645382rdb; Thu, 25 Jan 2024 01:44:16 -0800 (PST) X-Google-Smtp-Source: AGHT+IFma3TnyT1bySo5LpU+VLtXec4oSnSysvpMrkNDwprIWsjB8i0/yRkMr0S0MqKTo8MRblss X-Received: by 2002:a17:902:d342:b0:1d5:eba8:e576 with SMTP id l2-20020a170902d34200b001d5eba8e576mr554286plk.78.1706175856104; Thu, 25 Jan 2024 01:44:16 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706175856; cv=pass; d=google.com; s=arc-20160816; b=Q5VdHjVqPPzKSbNbr8pZlnPeDzAiC3N7UTewZOaQa4dF3CKAGxebDExA/49jV19lDe Z0lE08LXBfnIjOPG7VUpfE8njW8qHnnFBxhjMGUvwGMj1LATcabUA5pYSvTEVOWVcqGF 2JrjSmoi789gKL6nFbhDxhC0O8Be9drSd0TDvB9qwsOTvqLbKz6GMFn7izzDRKX/6jiV DlUWN/KXcBvvrqj1vUoA0KYkJ1j6/dxwMydXfYTwPS8gppJg/Ei80XPX3iieAM7W13Wv QjdN7D29V/FToSjW4/U7JsjAxvKLmXBPqSCz109wTn325YHfI2EaNlShgC1CSFnYgY6d iUjg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:message-id:date:references:in-reply-to:subject:cc:to :from:dkim-signature; bh=v7OHKf/eD55Qem09PPYclG2VfzoScAThX9wIj8orSYc=; fh=XMklvMCDjpRmDOJf1YdrqiDIaJSEuXTCRQZjzK0fggg=; b=qHizQoGTxWFpECmE58mq8dYhuc1wqctx6tU+9aKV/xkSi1lPztERPKoKp8XFfMvy0H 1vpS1q19k1pCp2Ji+3h638fN5YzC0prXc4yPulcSthy+I8U8/KsjZ8+61Riiyownol4L pWbSsX3Es4rH5fbCGrJnvzep8HpM6zOoL7WpUgpDoPWp+0MLUC/vfYkFaYsLUf2L0Sbu orHlyZ8lKo75wZgx4h8W4Kta3vozs2eLhTjT20czA3vOiJM9Tdl3wucHD/p13/t8D7bL m/wXinAdPXg+45noA1QywMr3qQbKZpf6S806apEM7lEds15Aha3zgmIDUyqHW3dz6sQE 0w4A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@geanix.com header.s=default2211 header.b=O4ULXlhg; 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-38239-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-38239-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=geanix.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id a1-20020a170902900100b001d3c375bff6si13124373plp.534.2024.01.25.01.44.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jan 2024 01:44:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-38239-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@geanix.com header.s=default2211 header.b=O4ULXlhg; 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-38239-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-38239-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id C40A4B24C49 for ; Thu, 25 Jan 2024 09:11:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D74261BF26; Thu, 25 Jan 2024 09:10:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=geanix.com header.i=@geanix.com header.b="O4ULXlhg" 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 B27501BC39; Thu, 25 Jan 2024 09:10:23 +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=1706173827; cv=none; b=rwjAgU6LSBrPRUhJQWSACpQNh58kiIfC3n0044H2DQCIEqv04xAdvLl2s6JsX6KTUx21n7IkUA39vOs/Tg/a15WtoSqMCK+jF6g2D8MefqO8FiuK/7+vdCtlmksiRHZwYIN1LCYNg4h0AcpHL84VE6sEjh6iJfFsFDLaBeEarAo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706173827; c=relaxed/simple; bh=mWozjZ0MQ+V6lQWz+OjK00G+pFbB5gGnuEUnxHrILTY=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=DNrJ7GNflxfq8nnPTPeRWo8dOCYpZ+yYKHKt/tEU7c/OUDDenH1RrlQYmpMZiNQlZb8qvwb1DISNZr8mw9bvCiCHxvP93jJu3ap/KP/0KJJ+jzV2CMiDT9isGME8BKeBGNmYCI5H2DSV++rw3ynY6NVeleGarRqphh1Aq5SdclQ= 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=O4ULXlhg; 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-Type:MIME-Version:Message-ID:Date:References: In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID; bh=v7OHKf/eD55Qem09PPYclG2VfzoScAThX9wIj8orSYc=; b=O4ULXlhgZi+zbMO8b6WHYFzfuk qNakRjVE6dc4R7OgodO6nyTQG9Plrk+O7BoYHgBciWgmjKf3YUHjitBGQ06BnTfxIFNrD151EIGsO L/9C3eCoOeillnLyHONjFtcvlZtF37IwhEGW4M4pLrUfDQmfPYafbRwMAkRr/9EWpWcoZ28s0ZOUE /bBzDUnOE9ozDamxxdkRPHpmBPmtqbwRQ/EiYlX5xe2Z1QgO7jq4FD0sRDo7gul93vBWtVJhNq4Py ji5F4O5Do+Fab7Yt2/6EhM15nLJbZ1lfa3UKpoxFNsdzr+e0B85lE/amZ+Vqs5BrI0Wnt5/14ENII X5s398cg==; Received: from sslproxy03.your-server.de ([88.198.220.132]) by www530.your-server.de with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rSvkZ-000OIA-5F; Thu, 25 Jan 2024 10:10:19 +0100 Received: from [185.17.218.86] (helo=localhost) by sslproxy03.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rSvkY-000KJu-8A; Thu, 25 Jan 2024 10:10:18 +0100 From: esben@geanix.com To: Conor Dooley Cc: devicetree@vger.kernel.org, "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Alexandre Torgue , Giuseppe Cavallaro , Jose Abreu , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/3] dt-bindings: net: snps,dwmac: Add time-based-scheduling property In-Reply-To: <20240124-reptilian-icing-a95b20f123be@spud> (Conor Dooley's message of "Wed, 24 Jan 2024 16:07:48 +0000") References: <30ce8f45b8752c603acc861ebb2f18d74d2f8a07.1706105494.git.esben@geanix.com> <20240124-reptilian-icing-a95b20f123be@spud> Date: Thu, 25 Jan 2024 10:10:17 +0100 Message-ID: <87bk99hj7q.fsf@geanix.com> User-Agent: Gnus/5.13 (Gnus v5.13) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain X-Authenticated-Sender: esben@geanix.com X-Virus-Scanned: Clear (ClamAV 0.103.10/27164/Wed Jan 24 10:45:32 2024) Conor Dooley writes: > On Wed, Jan 24, 2024 at 03:33:06PM +0100, Esben Haabendal wrote: >> Time Based Scheduling can be enabled per TX queue, if supported by the >> controller. > > If time based scheduling is not supported by the controller, then the > property should not be present! The presence of a property like this > should mean that the feature is supported, using it is up to the > operating system. > > That said, why is this a property that should be in DT? It is added to the tx-queues-config object of snps,dwmac bindings. This entire object is about configuration of the ethernet controller, which is also what the purpose of the snps,time-based-scheduling. So yes, it is not specifically about describing what the hardware is capable of, but how the hardware is configured. It is a continuation of the current driver design. > If support is per controller is it not sufficient to use the > compatible to determine if this is supported? Are you suggesting to include the mapping from all supported compatible controllers to which TX queues supports TBS in the driver code? What would the benefit of that compared to describing it explicitly in the binding? And for the purpose of the above question, I am talking about it as if the binding was describing the hardware capability and not the configuration. /Esben >> Signed-off-by: Esben Haabendal >> --- >> Documentation/devicetree/bindings/net/snps,dwmac.yaml | 6 ++++++ >> 1 file changed, 6 insertions(+) >> >> diff --git a/Documentation/devicetree/bindings/net/snps,dwmac.yaml b/Documentation/devicetree/bindings/net/snps,dwmac.yaml >> index 5c2769dc689a..301e9150ecc3 100644 >> --- a/Documentation/devicetree/bindings/net/snps,dwmac.yaml >> +++ b/Documentation/devicetree/bindings/net/snps,dwmac.yaml >> @@ -399,6 +399,12 @@ properties: >> type: boolean >> description: TX checksum offload is unsupported by the TX queue. >> >> + snps,time-based-scheduling: >> + type: boolean >> + description: >> + Time Based Scheduling will be enabled for TX queue. >> + This is typically not supported for TX queue 0. >> + >> allOf: >> - if: >> required: >> -- >> 2.43.0 >>