Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1615118imm; Thu, 14 Jun 2018 00:38:06 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLW8LsTXOLrXL417G2SLqaN/jkNWr8o2ne60/fHPyb5QIlYswxcVyvNHHtAk0wIIybUkAH5 X-Received: by 2002:a63:3348:: with SMTP id z69-v6mr1280261pgz.171.1528961886550; Thu, 14 Jun 2018 00:38:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528961886; cv=none; d=google.com; s=arc-20160816; b=dVfMZ8KDDir/QmbMEe2yzgsZAtGWKPlqs0RUjUzkkZpei4SGglU15c5ahz99AVVeLY Pph2eJ6z1Qj4SBqtNIDuk2rnANP/Fj4b0DfSK0jhamIBYtfAH6xYrLluE2a5c1SRmeJe UYcKse+u4iXxvPD8oRbAtfIkGwZ+poM7c5riafhMVW9g/YcOeZ/B/vjynLWJF5ivgnXC /M7MgH53vxpApHy9aTTTHYEdh1FMg7DOfrAs3pLRNmtn4PlAs6WozJ468PyEFvy1cJfo 14wPS4quBNsqgdMJqu+neTKgpXAT5h4hfPJFk97VzN9HKMu59K+pUJMZJFXqif5eIyOS aKag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=7kehnpMGy3E3ogmw+u7+0RyfzSfKms7KfjmEy0y3zZU=; b=ePafq/JxL+15Zs2K62DNbfXpywWG6HMJqi8pbq4YAzKxhns/p4mxYeKHJvazRFynWM 45NoXs4pWYxkDwoBNAer2mm6JSU+GazHqfgMBJ46NjCt8FE+gPzUr67hUZJzc+sx87QW KD9GRQ1cG0W53zqbOl7TQ2XOyKX9eNm3iQfGElxpzKq7iJoTN6piwtOeWq3sVyR0rqv4 Ig+17rekxtQyniIza8hRHwpmrDrcQf2KnXLo1Bad9hcz7wS4vWN1W4wycooi2gtKfM4u GOm+cXafZdo5U6LN0BO+/0MZCdJaKLIvKmmau/CLSZMrJVA5n37A9AIQaOTNTCzZ8dfk jgGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=V0utCaxZ; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o3-v6si4797339pld.50.2018.06.14.00.37.50; Thu, 14 Jun 2018 00:38:06 -0700 (PDT) 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; dkim=pass header.i=@linaro.org header.s=google header.b=V0utCaxZ; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754724AbeFNHhP (ORCPT + 99 others); Thu, 14 Jun 2018 03:37:15 -0400 Received: from mail-lf0-f68.google.com ([209.85.215.68]:37331 "EHLO mail-lf0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754603AbeFNHhJ (ORCPT ); Thu, 14 Jun 2018 03:37:09 -0400 Received: by mail-lf0-f68.google.com with SMTP id g21-v6so7861641lfb.4 for ; Thu, 14 Jun 2018 00:37:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=7kehnpMGy3E3ogmw+u7+0RyfzSfKms7KfjmEy0y3zZU=; b=V0utCaxZ+9A5m/beAwl8mN4CZEBGLhjsqKzVdZbBtwJipWRLtnlEzEmQSsm9g/VijI cwceVUlOnnB1FTyG0c+EgnrJTwHU0zlsH+GCSiGA6NAJU8AeQQ9h8m/hyaXf32DHPlDj TVoSp87f/hmLnv3Ot8tevo9vGNHe8/hgwpzy8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=7kehnpMGy3E3ogmw+u7+0RyfzSfKms7KfjmEy0y3zZU=; b=M6LphsWJiJaR+Mgr3g0fUaFTmnYjaFLus5SPaCEI85n9vwliO9RzrpQ3rhmpIjNkPG amJvO+I2xpJzOU5dIpeKxmsKN6cU+lVfVyrGZ5QmUhfozpMMEQeJ59eY8YhEFu9kuVgn kUpmvAHukn53BpsUAvhJw6wghgq6uX3WdOXJEhrfRu9kwn49dPX97Jxbn2XHqGRKdovJ +x5Akt0PIrAUduaigWP9ckkYbcLSvsCPyQ1BdeYdGQfqda/oo/tXKbX8dfolXv4yePK8 l8fC4aiFlh1wOkKpYTzBOrS1dcBdTzH8HctOjNUm9pcc8/E0Hae/joKt7ROwUbEu5m3s VUjg== X-Gm-Message-State: APt69E0IauFZlv7KURMLDWx+DohXhDHQBGjFT07S/OhzVL+4jFqdDQVh 9fk0NyLveaL+y+RDv/GeH6asog== X-Received: by 2002:a2e:980f:: with SMTP id a15-v6mr886661ljj.143.1528961828407; Thu, 14 Jun 2018 00:37:08 -0700 (PDT) Received: from localhost.localdomain (59-201-94-178.pool.ukrtel.net. [178.94.201.59]) by smtp.gmail.com with ESMTPSA id a195-v6sm957597lfe.44.2018.06.14.00.37.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 14 Jun 2018 00:37:07 -0700 (PDT) From: Ivan Khoronzhuk To: grygorii.strashko@ti.com, davem@davemloft.net Cc: corbet@lwn.net, akpm@linux-foundation.org, netdev@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, vinicius.gomes@intel.com, henrik@austad.us, jesus.sanchez-palencia@intel.com, ilias.apalodimas@linaro.org, p-varis@ti.com, spatton@ti.com, francois.ozog@linaro.org, yogeshs@ti.com, nsekhar@ti.com, andrew@lunn.ch, Ivan Khoronzhuk Subject: [PATCH v2 net-next 0/6] net: ethernet: ti: cpsw: add MQPRIO and CBS Qdisc offload Date: Thu, 14 Jun 2018 10:36:44 +0300 Message-Id: <20180614073650.29659-1-ivan.khoronzhuk@linaro.org> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series adds MQPRIO and CBS Qdisc offload for TI cpsw driver. It potentially can be used in audio video bridging (AVB) and time sensitive networking (TSN). Patchset was tested on AM572x EVM and BBB boards. Last patch from this series adds detailed description of configuration with examples. For consistency reasons, in role of talker and listener, tools from patchset "TSN: Add qdisc based config interface for CBS" were used and can be seen here: https://www.spinics.net/lists/netdev/msg460869.html Based on net-next/master v2..v1: - changed name cpsw.txt on ti-cpsw.txt - changed name cpsw_set_tc() on cpsw_set_mqprio() Ivan Khoronzhuk (6): net: ethernet: ti: cpsw: use cpdma channels in backward order for txq net: ethernet: ti: cpdma: fit rated channels in backward order net: ethernet: ti: cpsw: add MQPRIO Qdisc offload net: ethernet: ti: cpsw: add CBS Qdisc offload net: ethernet: ti: cpsw: restore shaper configuration while down/up Documentation: networking: cpsw: add MQPRIO & CBS offload examples Documentation/networking/ti-cpsw.txt | 540 ++++++++++++++++++++++++ drivers/net/ethernet/ti/cpsw.c | 364 +++++++++++++++- drivers/net/ethernet/ti/davinci_cpdma.c | 31 +- 3 files changed, 913 insertions(+), 22 deletions(-) create mode 100644 Documentation/networking/ti-cpsw.txt -- 2.17.1