From patchwork Fri May 18 21:15: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: 136366 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp1726582lji; Fri, 18 May 2018 14:15:24 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoxFzfcfAP0PedAHSFY2VLXkNDREQBeD+/XLdI56JBMsPXiaerlPdod/CGsJq8FLV7eFtpX X-Received: by 2002:a62:5050:: with SMTP id e77-v6mr11075233pfb.16.1526678124255; Fri, 18 May 2018 14:15:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526678124; cv=none; d=google.com; s=arc-20160816; b=MIJyWpF7eVBZcTQuJIe5PO99uWC28T9EOv4T9faY/QkhmDF0cSD37ZuPjrCGWFzCp1 3DPoXc/1pfvOwD+sMz0QRIDAUhnJct7WJNk7/FhEKoWC47m88QMUy5kUmg3mckj8tGNu lcdC5leNkqzTcKf4nVBlHbN4v/iP5p8I/zRCXetLTArfHpCEFjxZbRq/aa6f958VxUjZ OtPGkW6BxZAdbBfJVR9sqP5r3dl6HmhicD1I5Wp8y8R4opPDoQvph98u9dGnK2gwLLL9 jPO8U+cFBanwBNPz40sXtwP+Of7ZGBb3boAF6p3/Lf/WCpc8G1X+VD8AL9DPghBwSjOY Lx5g== 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=tq/VxJ2MvJvVh8LbIbBH5ypHQ0wgjClNVzat8HYRxJA=; b=f19fzqrO5uiW/HweAbZSHp5l7mYyADoqbzj1Q+RSQ99IFnnkYdwEgSSQLHUBrTY7OV iHQbU69oKKJu1quiBf4Spk0kaLkmwO2Qt7MTVgQNlhVFG863KfCQSpQOH38QTcu4uvxo 30PcxTcLe5W0haczGo3zJhrc+KR7c5xnZ78QNJJVj2PIM/j9HVeLWkBZ9ma8hjdOHeCH hlWeZvRcrf85H9k0pQ9X83T7SmdEGa4jA4oM+mI6suJ4UpjILWbkJEtCp57ajLO+QVmD fxzHQm533nYQyKUFS13tCHmfG/Prrp0+YiS6a4X7TyNSbsFmVw7By5AGj6CxUnVjR+WH rT1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZVjyHRpL; 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 c13-v6si6779854pgt.649.2018.05.18.14.15.23; Fri, 18 May 2018 14:15:24 -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=ZVjyHRpL; 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 S1751606AbeERVPU (ORCPT + 29 others); Fri, 18 May 2018 17:15:20 -0400 Received: from mail-lf0-f68.google.com ([209.85.215.68]:36127 "EHLO mail-lf0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751571AbeERVPR (ORCPT ); Fri, 18 May 2018 17:15:17 -0400 Received: by mail-lf0-f68.google.com with SMTP id t129-v6so15902384lff.3 for ; Fri, 18 May 2018 14:15:16 -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=tq/VxJ2MvJvVh8LbIbBH5ypHQ0wgjClNVzat8HYRxJA=; b=ZVjyHRpL7pkEcVh9XlSNr9edVArU5jZZ9p6RbuA0FbunCODcXiXqYB+pxtF2dw05yV pok+bB8/q5t17eYAudZSkF/IVcYfZqOPn5Qsu0K1dEiEEP7BAO4NpwkEoob91/x6mDOV QhmwW4vT1UTgIzKDk0iEC5Cu7A92coj1Ztmtg= 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=tq/VxJ2MvJvVh8LbIbBH5ypHQ0wgjClNVzat8HYRxJA=; b=Y2mA/i82jy6Ro9i2whT6mn7n6hBwquynsXNQ+mndaKHy5MA9rQ5URvjcbFHtqxjKzH rwqA4+DEQa7yc1aCh3PIn3GLLuD5+v/b5tFPZ6HJlhNZMmd0ANLDbzoRz9dqcjGsyv1O MEAEfadfjvU7lAra35OMDxc/HSFFVFY7QXfpHHZLZI4diXT3/t0lZohXGISZnT7EnMRf mdzMj9Y6yO62u8/YLc6yowcPt2XgkYq8ffRFlHd2teHyyV+Z6Cq/NwajrMDRIyslCm7y KR7RYxk1QppUis2FMBcALK9EqBi99xDUvUhxBa1CyW2c807ahfgqLeXi91vHwxH++eh0 ZCkQ== X-Gm-Message-State: ALKqPweIVaCRxmsDPOSP3bkoqT85GtB6WR1tFiAG2W8eA+q2G21HRyLs gJgqNPQ5LPK97PDIfHoilHMdHw== X-Received: by 2002:a2e:8518:: with SMTP id j24-v6mr7069707lji.12.1526678116163; Fri, 18 May 2018 14:15:16 -0700 (PDT) Received: from localhost.localdomain (59-201-94-178.pool.ukrtel.net. [178.94.201.59]) by smtp.gmail.com with ESMTPSA id g20-v6sm2045991lfk.39.2018.05.18.14.15.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 18 May 2018 14:15:15 -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, Ivan Khoronzhuk Subject: [RFC PATCH 0/6] net: ethernet: ti: cpsw: add MQPRIO and CBS Qdisc offload Date: Sat, 19 May 2018 00:15:04 +0300 Message-Id: <20180518211510.13341-1-ivan.khoronzhuk@linaro.org> X-Mailer: git-send-email 2.17.0 MIME-Version: 1.0 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 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/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/cpsw.txt -- 2.17.0