Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp6255351imm; Mon, 23 Jul 2018 14:29:25 -0700 (PDT) X-Google-Smtp-Source: AAOMgpd1LKubpho1F840HdO3T+w84zgbakHm0DlLmsCpXBUwiSxptOvfBxmDu+eoI/QG85l+O+nr X-Received: by 2002:a62:f50b:: with SMTP id n11-v6mr14807792pfh.120.1532381365589; Mon, 23 Jul 2018 14:29:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532381365; cv=none; d=google.com; s=arc-20160816; b=dUep3rtTovvmvA6bqw/LzzZFvCwL+/DJN8hdMl0spHG/eQKk6vF6eCXdTj03JCV3om 1diziosMO4n1b9ZeDLeFGJxJw0w9nt1zfJbMCiqRNn8ZDRPdhIFVt0z15L2Q1Ipcqr32 Msb9mnrlnKf7KlUXEFCv/bkt2rOL5i6EFNcKyH9VxKyyIkrUHM33KncMC3Xc1V++SJtK C3FIFTbgD39YuZNuBcXAFPmgXm1sVUU0v2M88w1+FmHz7tsPCBOC7qADtOhkZijrvzd/ GIRXm6ONWxi9MNOBFeEm8dT2dyvqrA6/Ocl6CbiZMLGgIuxxzISUXt90wkBWWrG+v3Gx 3nPw== 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=l4LZ2U7rCEEjVXipIBEDgn965M2WR4pXhOWhJdcMIeo=; b=EWoE1bv8vBnfnRWMnYMhjLo6TNQfscS2x4LiIN0h8Q/kjbJOmI0TtiGXi+b2q6rWau U0IjjpITyVZ1eC1RaBDA0ZoaWe+UfpiBdN5VNH/5U99q7TSa9ha98daX3oW1AZUqmdFB QFaFZzarAmq2GMj3Nl1mUid84IJKsy81l3iKA1dO0BlTmNXmAiPeBLJ8ojVnsRP0v3yh Ijb9HyQeYQk5fAXIfxO1RCNtjL8hbhmtbO/NC6xwocGC5GCzQPNkEe9dU6G+WraKP3Oq lESXofaKkv/HtQcwbXvYud2EG+ehpY9ebMphwGNnhOmr6D4cql4z5iQwm+DjRb2PFGr4 ZBkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GBNeYlVE; 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 u186-v6si10107686pfu.263.2018.07.23.14.29.11; Mon, 23 Jul 2018 14:29:25 -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=GBNeYlVE; 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 S2388196AbeGWW3z (ORCPT + 99 others); Mon, 23 Jul 2018 18:29:55 -0400 Received: from mail-lf1-f68.google.com ([209.85.167.68]:36939 "EHLO mail-lf1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388105AbeGWW3z (ORCPT ); Mon, 23 Jul 2018 18:29:55 -0400 Received: by mail-lf1-f68.google.com with SMTP id j8-v6so1510362lfb.4 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=pDlQ8mW2alxzbh9xjGQLZPvzFl+e/VCAZDcVCTor7SicYiCPIxed/ry2eDLuiVSMB2 YiqF7NwtWuMrgPMW1sUGLH+7Cq77IbI9bDiq9nLhgyHshlXu4STaGQqMFZ3ZhmdcFwAH 1lAM6MEHrc9Jp15l1qN4MDvg4uS+ASnS7QQRNyMd6eIAsvzLV+cl6Tz5sqX3TsX5/iYm SVz9GrS5FDGyWQCz0A72m8aAI0OTvv9vTHbqx+zR5rXz7IiFwWcE8I/Cd/bqcxWlPUlP kVl+7NNYrYbqANajjSrM29AtL9+sxjkm8Sg3M9NTQSo8rbXrU9OrT6yj5uYkachPvg5t 30Fw== X-Gm-Message-State: AOUpUlFJMulYOSlPBShGEX05PMJmJvQVx+6K37OVJZqyuIyOpWFF7FNy A1K8jKudp0Cqi5Pe5JLWGLZgfg== 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 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 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