Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp5330949ybv; Tue, 11 Feb 2020 13:39:56 -0800 (PST) X-Google-Smtp-Source: APXvYqwzRwrGF1UHH2F9bDGbUTKgqibgLwGKmnH7/U+NKpbueHe+e4nQtGwrF5kfYhHL+9KLur2B X-Received: by 2002:a9d:4e99:: with SMTP id v25mr7006915otk.363.1581457195986; Tue, 11 Feb 2020 13:39:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581457195; cv=none; d=google.com; s=arc-20160816; b=QhTbwAYfkBKW6i7H6xDzYAh5DrvXw9KOoQV0jNvwkJU3/hgP7Pda+D3SZDNZ2FDyac vh8BErlc2R58cCLzYO6B1oRPTCwVEUXqsK5v/L6eWb1sGLqCSfrnD9Nr7Mftk4icBTnA DlpNPgrVM+hVlhIorNf4GLCV3YSkVtG1yNztCc3eXZCjjGNZ78QMW7L0FQjjeN87r9fK zpZhyee5Y5N4v8W2pBhGFTvNADliiVGlsPAYMVd47ddYGhlXPSz+iHQ45Hu0w2sQf9dH FADDYvtgrwNLKFV4bebEJHYRxWtQxgru0u5c8aTCQdwF+R/0vpnE0b8FSE2TMZENGHYU E34w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from; bh=L7EUKUyKpGVwBZvsbzFAFMIxog3iNKIes6trVq0x788=; b=L9H16CigAjmpq668s1Ez1fuJ4B0dlJPh2zcNsIUJq4WV+N9H8Eapguqew7/lHo6e8Q c6ai0CDbYR7Nra1McrvB9z8oe621+vMlKo1cFgJIbG3gF4b82nhxcqEYH40FIZzJIlb3 Bo+LmG1LaTNedEkzvqQrJv+NoORupLY7OilhiLXsIuY7vnUPqbxfIHbnpqJtqxWNdmUc 4mfVTxexAejR+g4nSYzSQwSwdnjsvzgxEHX6h/AntlKuIrJ4Ff4bbs4AAPDaYH/NMYZG bFpQXiy3lx6xDGzO8Nu2zjh8mlFDvWUBf1u3YykZCoorANY8LJpJcF6N90H7HQp40Oq6 B7Hw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 22si2075617oin.34.2020.02.11.13.39.44; Tue, 11 Feb 2020 13:39:55 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731623AbgBKTVY (ORCPT + 99 others); Tue, 11 Feb 2020 14:21:24 -0500 Received: from mga14.intel.com ([192.55.52.115]:52862 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729800AbgBKTVX (ORCPT ); Tue, 11 Feb 2020 14:21:23 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 11 Feb 2020 11:21:22 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,428,1574150400"; d="scan'208";a="433791170" Received: from vcostago-desk1.jf.intel.com (HELO vcostago-desk1) ([10.54.70.26]) by fmsmga006.fm.intel.com with ESMTP; 11 Feb 2020 11:21:21 -0800 From: Vinicius Costa Gomes To: Murali Karicheri , Vladimir Oltean Cc: Po Liu , "davem\@davemloft.net" , "hauke.mehrtens\@intel.com" , "gregkh\@linuxfoundation.org" , "allison\@lohutok.net" , "tglx\@linutronix.de" , "hkallweit1\@gmail.com" , "saeedm\@mellanox.com" , "andrew\@lunn.ch" , "f.fainelli\@gmail.com" , "alexandru.ardelean\@analog.com" , "jiri\@mellanox.com" , "ayal\@mellanox.com" , "pablo\@netfilter.org" , "linux-kernel\@vger.kernel.org" , "netdev\@vger.kernel.org" , "simon.horman\@netronome.com" , Claudiu Manoil , Vladimir Oltean , Alexandru Marginean , Xiaoliang Yang , Roy Zang , Mingkai Hu , Jerry Huang , Leo Li Subject: Re: [v1,net-next, 1/2] ethtool: add setting frame preemption of traffic classes In-Reply-To: <70deb628-d7bc-d2a3-486d-d3e53854c06e@ti.com> References: <20191127094517.6255-1-Po.Liu@nxp.com> <87v9p93a2s.fsf@linux.intel.com> <9b13a47e-8ca3-66b0-063c-798a5fa71149@ti.com> <87d0bajc3l.fsf@linux.intel.com> <70deb628-d7bc-d2a3-486d-d3e53854c06e@ti.com> Date: Tue, 11 Feb 2020 11:22:56 -0800 Message-ID: <877e0tx71r.fsf@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Murali Karicheri writes: > We are still working to send a patch for taprio offload on our hardware > and it may take a while to get to this. So if someone can help to add > the required kernel/driver interface for this, that will be great! Will add this to my todo list. But if anyone else has the spare cycles feel free to have a go at it. > >>>> - ConfigChangeError - Error in configuration (AdminBaseTime < >>>> CurrentTime) >>> >>> This can be exported similarly. >> >> In my view, having this as a "runtime" error is not useful, as we can >> verify this at configuration time. > > Looks like this is not an error per 802.1Q standard if I understood it > correctly. > > This is what I see. > ======================================================================= > From 802.1Q 2018, 8.6.9.1.1 SetCycleStartTime() > > If AdminBaseTime is set to the same time in the past in all bridges and > end stations, OperBaseTime is always in the past, and all cycles start > synchronized. Using AdminBaseTime in the past is appropriate when you > can start schedules prior to starting the application that uses the > schedules. Use of AdminBaseTime in the future is intended to change a > currently running schedule in all bridges and end stations to a new > schedule at a future time. Using AdminBaseTime in the future is > appropriate when schedules must be changed without stopping the > application > ======================================================================== > What I meant here is the case that I already have an "oper" schedule running, so my "oper->base_time" is in the past, and I try to add an "admin" schedule with a "base_time" also in the past. What's the expected behavior in this case? The text about stopping/starting applications doesn't seem to apply to the way the tc subsystem interacts with the applications. >> >>> >>>> - SupportedListMax - Maximum supported Admin/Open shed list. >>>> >>>> Is there a plan to export these from driver through tc show or such >>>> command? The reason being, there would be applications developed to >>>> manage configuration/schedule of TSN nodes that would requires these >>>> information from the node. So would need a support either in tc or >>>> some other means to retrieve them from hardware or driver. That is my >>>> understanding... >>>> >> >> Hm, now I understamd what you meant here... >> >>> >>> Not sure what answer you expect to receive for "is there any plan". >>> You can go ahead and propose something, as long as it is reasonably >>> useful to have. >> >> ... if this is indeed useful, perhaps one way to do is to add a subcommand >> to TC_SETUP_QDISC_TAPRIO, so we can retrieve the stats/information we want >> from the driver. Similar to what cls_flower does. >> > > What I understand is that there will be some work done to allow auto > configuration of TSN nodes from user space and that would need access to > all or some of the above parameters along with tc command to configure > the same. May be a open source project for this or some custom > application? Any such projects existing?? Yeah, this is a big missing piece for TSN. I've heard 'netopeer2' and 'sysrepo' mentioned when similar questions were asked, but I have still to take a look at them and see what's missing. (Or if they are the right tool for the job) -- Vinicius