Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp4985135imm; Fri, 18 May 2018 14:17:15 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpoS9a0o6BU3kkkezdiswWXF9i0Ns5R5CftazBIYRsQAjEAjytGec7ev8izJTxPnqkzPN7q X-Received: by 2002:aa7:850f:: with SMTP id v15-v6mr10926401pfn.144.1526678235063; Fri, 18 May 2018 14:17:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526678235; cv=none; d=google.com; s=arc-20160816; b=bHfcHBd0UxRCquwoqU/o0xl++bujBs7JLhmUVZ9OVJsgwcu3vOzR5y1f37p8vAZK4M pXft5RnJPfhNV+zN+M6aM+Y71lxa1xdj2mjy3EB+ORtb11vFNAp8OeFJLbHpJsO+IPNC WmbOcxkKKfr503DBsQQ80UE+are5QOKcs9fB0KGwy4PIJsMeanY5xe+IpviUwyexkBsI 4mFFL8db+nPZCHrMS0QIjEFJ1or5bTOXECysFy1J5lsxhfq9qfUitHmIwnkZbD6HA3V2 dRxHy0wWLCdIPVMVLA7IOhbBLcDy9df3N2eIIgn1fsWMryJ+JBZU43CuLGeLXWALeRo4 zxWg== 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 i74-v6si8611525pfd.105.2018.05.18.14.17.00; Fri, 18 May 2018 14:17:15 -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 S1752173AbeERVPT (ORCPT + 99 others); Fri, 18 May 2018 17:15:19 -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 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 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