Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1105237imm; Fri, 15 Jun 2018 11:16:05 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLw+3vDgBvuGIRAeR9wSZFOhEwwznGrBsGOF6jO8w9/kHGGS4P/q4ZHHdLe0HCiNI/OupQS X-Received: by 2002:a17:902:3124:: with SMTP id w33-v6mr3174938plb.235.1529086565123; Fri, 15 Jun 2018 11:16:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529086565; cv=none; d=google.com; s=arc-20160816; b=R4MZ5B3myiO37+H6ZDjpvjpWrEarxFn6hnlCb7auK+gjU/lnM4bO8Tm6FRlgtox+oZ xGnZx+Xl7rIfF9EryTFJza5OciJF3tWO0W/PwulXFu4hpWglKgJeVi1v/+4cYGSfU8hx ZEQyDpjxj+wbyiScPJyKUKTblx7F4QRufvfoR1UyxrtkEDU2pa6DeRrNPnh9TdrJqtVG zjTqzseLoocbGb7+qGaJ9NA9ePFB1hUlNp/6Vkup0CaRb3vjkaAWmaKR0emoVQEGG43m 0k4O3xohMlGMUZPt39m5AGLcNJ7PbhowL+DD0Uk5bqcNT/FXC6XzYia37212lD048RJi JXBQ== 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=INkN5fVtTut2zEu33+1uKA5DpWw6RvcT/ID+grvF9Zw=; b=Z/hCq1j+8ucoZxeFeFnEQ6BNWSAoKFbibOtKKCFQL2BiFDyVRha/YinkpmIqqGwKoY tsAb4SO0F7TRcIymnMppavOi9jtC9JM9e39uqupns8nESWqef6Ccr1w1oYF22wijFn6z AKbR4tFzXYVgPTYnAo0lpIAqasyyKREakrVRurNtcoUyJ15UTC/U060+2sE6CZDndq7Z CFDb6AQx9SI/s/cBICCGKzQBlFU0iZfguuEqycP4ESXJqbzQ7dq1SQYeTCTbQ34gRd4t Nh+Tj0WGdReCx+foS8AOiAAQpBqghuCRypsRsvgvn2fILeIft8MdNb44cNF+GX0JLceu sSzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=EIJeVI6S; 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 100-v6si8591836plc.205.2018.06.15.11.15.50; Fri, 15 Jun 2018 11:16:05 -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=EIJeVI6S; 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 S1756364AbeFOSNS (ORCPT + 99 others); Fri, 15 Jun 2018 14:13:18 -0400 Received: from mail-lf0-f68.google.com ([209.85.215.68]:42007 "EHLO mail-lf0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756214AbeFOSNQ (ORCPT ); Fri, 15 Jun 2018 14:13:16 -0400 Received: by mail-lf0-f68.google.com with SMTP id v135-v6so15883624lfa.9 for ; Fri, 15 Jun 2018 11:13:15 -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=INkN5fVtTut2zEu33+1uKA5DpWw6RvcT/ID+grvF9Zw=; b=EIJeVI6SXWlVyDT7LMlZkH4oqckcpy0Ud7a6JScRlgjP1AIkAbfwjixyIXRQPl92pQ Z55C0rF1hrWsXlHYoCVaumKJdRipUAOZtgTrhw5glDnfPoVX+Kde3TfNpWjmURzVUZI6 uOpZRnzCDyhWrA0K3IqIZO1S0pT0A3KgNNbEA= 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=INkN5fVtTut2zEu33+1uKA5DpWw6RvcT/ID+grvF9Zw=; b=bV4/bF3DrusMRel6F5M3e9FoXlGcwRDmKjdqSGoL7iDAhPWLJGg9N48scqTitg5owP +sBc/RGXQMIcyB338BEU0hlrMIatbefSXBgawcN2AVK5e3HzI9lNqwxF5TAL74pl35te E8X+Gi4H+5iGibrDH7YGICLlOv8kASAH7yF9uo/X4zYlEkEaq9qA9wnuM/yFBJwNl8CZ fsmbCijcZrb29em5XMgorSd6cxeIHT9Cfzxybcj8lLbJXVRrAt4chKAwKsXzby1vzh/l Qayj4Fty/BkxkSDr1nShipGzCTxvpybfC9RXj+zvSFgZYlW5u3pdntSYqpED8ZQHMHn6 w+Yg== X-Gm-Message-State: APt69E0d59dLfNBUFmUdu5iPzVeJdfox/EbQFqoQJ0K5A+Yg7UfFG3v6 N5oq23hOhoPE9RFvqL5t4TVwFw== X-Received: by 2002:a19:a892:: with SMTP id r140-v6mr1777222lfe.39.1529086394564; Fri, 15 Jun 2018 11:13:14 -0700 (PDT) Received: from localhost.localdomain (59-201-94-178.pool.ukrtel.net. [178.94.201.59]) by smtp.gmail.com with ESMTPSA id h4-v6sm1543260ljc.8.2018.06.15.11.13.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 15 Jun 2018 11:13:13 -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 v3 net-next 0/6] net: ethernet: ti: cpsw: add MQPRIO and CBS Qdisc offload Date: Fri, 15 Jun 2018 21:13:04 +0300 Message-Id: <20180615181310.10437-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 v3..v2: - corrected typo of "shaper" word, any functional changes 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