From patchwork Mon Jul 23 21:26:28 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ivan Khoronzhuk X-Patchwork-Id: 142651 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp6512855ljj; Mon, 23 Jul 2018 14:26:52 -0700 (PDT) X-Google-Smtp-Source: AAOMgpek7+an3rm01l031i/s2VjWYgMFCuQNSXqJZZ4y/VCd4Il/r77Ip078O2HlmLd0RYy0Pxhr X-Received: by 2002:a17:902:b08d:: with SMTP id p13-v6mr14742393plr.0.1532381212268; Mon, 23 Jul 2018 14:26:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532381212; cv=none; d=google.com; s=arc-20160816; b=RIQLfXafXsy0XG+Dd9Gu38SsJqPksFiJVWkh3QaR4pyDGcu3zGSC0GO933WUNJzIpI zpnU5CuDA2cPD+YnpnEVPBB1vqt5TVQN21tglYmKXyqos22GWFhjU7YBi+wX1CRGWoiU sgg78AwOBtGlLunQhVp8oiq6WgbXdK1HLuPSGOpJ+Se06lLfeNe9cGyNMlXZfGy1x7fq J2kggRZjTdAEKsBOpqaIYu3sPCUbo7Q0t3WTxd+a/EcIaLQUdxz17F3qP8jocWZtt4Zo 0Dwneu0QMOZEudNEG5ysratipBNxTz1pahq3pGeTRFCO9ermIbU+jSlnxmg/a8fpCsWi 4Ycw== 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=mf4CINpmogrW89BkgRGOpDRu8n1LJhkNsD+F2cvXTeE=; b=xkIRPTh9LBAeBPuoVa7jdXnxTxfNR5zV+jtS4/I9vNNxaVjbEoKs0eSii0XPpnwQqn yI8X0gE6g/NTYHo2z5IyniTCCg81n/kPfT6Nppx+LaJo+6DJrKjYEUeklih032azFJOf 9HJ/lWpl/DOQtmG8XWyk4hVELdqQUJUow66s0Qkv82UfBFK3ss35alxqwCB2XGo7Qtvt S8lTxNKI9VbcOlapn2+quvbWT1Q7J0aKcicahHdWOY3mh54JENG5Fdpendi67aFz+c6q YzeLgRBNlaQOAFr0rJ2oVrM1tWRcZ/SLIqD/kebA3G726Nrcix6uPi9yzKMcFKeXWouL hT3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=GBNeYlVE; spf=pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-omap-owner@vger.kernel.org; dmarc=fail (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 e17-v6si8057136pgv.615.2018.07.23.14.26.52; Mon, 23 Jul 2018 14:26:52 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=GBNeYlVE; spf=pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-omap-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388212AbeGWW3z (ORCPT + 5 others); Mon, 23 Jul 2018 18:29:55 -0400 Received: from mail-lf1-f65.google.com ([209.85.167.65]:34636 "EHLO mail-lf1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388141AbeGWW3z (ORCPT ); Mon, 23 Jul 2018 18:29:55 -0400 Received: by mail-lf1-f65.google.com with SMTP id n96-v6so1512107lfi.1 for ; Mon, 23 Jul 2018 14:26:48 -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=l4LZ2U7rCEEjVXipIBEDgn965M2WR4pXhOWhJdcMIeo=; b=GBNeYlVENYZiHWnt4aY8IzsOzLR9HSRvoBzEiwGOHgpolGg/NnrzK7A5dI/wtj37ap +yjgzdWg6qH56SXMG2ypTRmMf3JPYGdnzQo+akCZ4kmKlmoxnGWhq1yIVrdZ+9AGUQ8G R2/Xp4K6X6cOdrfJSLvI847laDmYLVqhyzyHU= 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=l4LZ2U7rCEEjVXipIBEDgn965M2WR4pXhOWhJdcMIeo=; b=VTiM0ZvoodUVSRmSoY7WzwMCaUGAKEjaTcFgCbg7+5QlxkU57P90NyjwKM1YazJayE KydJKNm+V2y3R3F72bLIBdpKWFVC118/cBN4H0UTZ9zlEYKGTCHfANoVAMugtBSsUeCo ixXPCx9Px4Ur5RBi5VS/l1hdBWEXbSfwgm+J30gp7UZHqjdHlG/63kmMY0+cPjSPL3Zv HwDUp7NPaX1nSLWEWOM6IVVc8lopuxbkurUkzwb9LlbKs3gtrTDsI04AgQzGYVP97s6/ wPbCZ45nKR3jUogpmkB6SKWZu0ZowJgylvCGGW67hJGM3fG6GKumOCcZJR6ocvPmSYu1 r3cw== X-Gm-Message-State: AOUpUlERHcHHbqrpc3qghZt2CxGIYP5BctU/LV4zlCWNhMIb1jduQ3ul vgoJCXUhh++Fw2TfcjK6A5imzA== X-Received: by 2002:a19:ebd7:: with SMTP id f84-v6mr8071049lfk.18.1532381207840; Mon, 23 Jul 2018 14:26:47 -0700 (PDT) Received: from localhost.localdomain (59-201-94-178.pool.ukrtel.net. [178.94.201.59]) by smtp.gmail.com with ESMTPSA id q4-v6sm1990435ljh.36.2018.07.23.14.26.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 23 Jul 2018 14:26:46 -0700 (PDT) From: Ivan Khoronzhuk To: davem@davemloft.net, grygorii.strashko@ti.com 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 v5 net-next 0/6] net: ethernet: ti: cpsw: add MQPRIO and CBS Qdisc offload Date: Tue, 24 Jul 2018 00:26:28 +0300 Message-Id: <20180723212634.3219-1-ivan.khoronzhuk@linaro.org> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@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 v5..v4: - corrected typo of "am57xx" board name, no functional changes v4..v3: - nothing, just rebase v3..v2: - corrected typo of "shaper" word, no 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 -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html