From patchwork Fri Jun 15 18:13:04 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ivan Khoronzhuk X-Patchwork-Id: 930150 Return-Path: X-Original-To: patchwork-incoming-netdev@ozlabs.org Delivered-To: patchwork-incoming-netdev@ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=netdev-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="EIJeVI6S"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 416pYl0Xd3z9s3R for ; Sat, 16 Jun 2018 04:15:07 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756350AbeFOSNS (ORCPT ); Fri, 15 Jun 2018 14:13:18 -0400 Received: from mail-lf0-f66.google.com ([209.85.215.66]:44057 "EHLO mail-lf0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754429AbeFOSNQ (ORCPT ); Fri, 15 Jun 2018 14:13:16 -0400 Received: by mail-lf0-f66.google.com with SMTP id p23-v6so4189368lfh.11 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=E97e+bpArkvNO/gGKrjLfs+eeQ3EFNae6kXquUw54+a3EJF0UhVP1w4+4boO9j6FD6 Tz/SJVVmXOycIQ3ivkXlVsixUFfn1+QVv5aOEGCii9EKWYFWOc7pjzXsOnbfRhXlblgY FhGBEFJXNtBPH2mF19gBJPFMGl5q99IQmvx0KfSat1CnyW21Yse30bTbW0pxTM4tWWPI 4nbqfnGZeAX2mZwG/msVrQ19FXo1Wbx9H+uqFV3phiHC/ARp2Opet2mlKO47nNj2keW4 8KLOoGoea4jV/sehd7AhYTE/2mKVE1wnpdBSrN2LWsQG+30isybrWmxJFIXmIVIV8f5M PU2Q== X-Gm-Message-State: APt69E2GUBj6q/Oaw0lrqGwJ9SfrWGaVlGg7tEduCA2G8mhatlT/tkUW GVkfxcaibukg3NFJ4hJFVwLKaQ== X-Google-Smtp-Source: ADUXVKJsVkIYfTyEvXNeaJGxrT1t8pXqEeCiIHkwAsPlRDEc8dH4QBWHuJcwawDI5K9AoJ6Brt6Fqw== 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 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@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 Reviewed-by: Grygorii Strashko