From patchwork Sat Jul 21 11:59:17 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ivan Khoronzhuk X-Patchwork-Id: 142491 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp4011945ljj; Sat, 21 Jul 2018 04:59:36 -0700 (PDT) X-Google-Smtp-Source: AAOMgpecRvikB/K8jsVxupZs3U8yfHlF4uUK/IQlXPoXhAUKOSZEZm5q4Omf/b1aX7ZxNPeYbWEJ X-Received: by 2002:a17:902:3f81:: with SMTP id a1-v6mr5634311pld.29.1532174376120; Sat, 21 Jul 2018 04:59:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532174376; cv=none; d=google.com; s=arc-20160816; b=EPs0u6UZkNyTcJOL6m9Hrj9CBN9PujxaZKSypzKH7odWs0/aFaaghrHVoEtfjvZWUk PXnety01uJCN5xilp5NaFGST50TlYzaswj9DBiHx845TSbl72uhEgRkjtFi1WEbRaLS3 VSHtDPe+K21IAb5ZnDXv8u1HIc7We/CbN8YgVlM+H+qGHb9RPaKrnrTkUovZHGYqfI/g vOAXCBkVpbRAtarWry3CyUHaoUi/uDhVLjfDGzPASJsesj8Gulcbxvq8y/AYMEh7XKX0 6aTsPR5bulVh55SkidjBhL4OgfHSfI1JWwGVoKiiQ1yu4WeepQDuLPv/6JlkdCHCOqTR tZ6g== 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=hmXKflMAeLMHsG9iCY4OsGF/N1p8p3LhvpYUycf3Xz4=; b=lXE7dwO5LFjkx7XsDepi7cGKvVSguKio24FqbMGSr/Gd+QGXbTHlypwkKS9xvmC5F6 dBJvtSr8IK8pkRC1q3JlNUc0Dgf63ToXOv21LGLI4XQaBm7b4ZM76zAs8MLeK0EEsvE7 Mm6gdQNC4EEFIrFOaWh5EDA2x9GFBzJRLUJ9a8B9nbkU/PV7tm50JzyX1dy5YsigCeXq DplnTf3ZsAQVgaWsSBVXdkO49Ue3vS65IYRaBVMTW4zbFOBeUO71ORDZ0eYemvsETh3i RJ4pMJZEWtgQXv2ksLiEHs31RnpouSF+DNZr9JjTU+WqpuK9QcF9lLbX5okJtE9VvRa6 Vl7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=hHi6CIIY; 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 i15-v6si4110171pfk.146.2018.07.21.04.59.35; Sat, 21 Jul 2018 04:59:36 -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=hHi6CIIY; 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 S1727759AbeGUMwD (ORCPT + 5 others); Sat, 21 Jul 2018 08:52:03 -0400 Received: from mail-lf1-f67.google.com ([209.85.167.67]:41175 "EHLO mail-lf1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727638AbeGUMwD (ORCPT ); Sat, 21 Jul 2018 08:52:03 -0400 Received: by mail-lf1-f67.google.com with SMTP id v22-v6so3477836lfe.8 for ; Sat, 21 Jul 2018 04:59:33 -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=7xFHfTlcMNT5Yw+vTSDeNN9RPAjbKc7TWlhRbw8hE4s=; b=hHi6CIIYgNQamZJchmy56Nh4dkiEk9kxkzCSquwpGi4TIBtzUYfTISLdmGDCzlVoQn ZmhNu+tQnJWrSTa6qgUwGmtP/oB7jsqWtelusJCQQ9soJr+nFY5fOuB8kscIK9szCOHp d5ezRAfeRKSMq8wEXLO3crpSZ1I4m3R9XEkNY= 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=7xFHfTlcMNT5Yw+vTSDeNN9RPAjbKc7TWlhRbw8hE4s=; b=WmHm+CRgQnfN6iTVrQZ8+43U3Sp+TnMEYfqwwrjQW8HVoob3vf9YBdT/0ciU6vj3uy qisskXrTqvpZWx/A4ZJCcyObVjd+wtgm4VA0+YBGPnNpROIhhYTQKwRbuHselKMegL+I FJXEjlFmv8oJKjwWGMOVlYOPxyH/+gAg7N5EieRSt1MjcPO0gWiaaHknk8Oynf/EOfWg o+GJeOB2Zquqw7tQpcL+PG60LShQRGE/5JZVaWqgvYNOWnKsOTLF5WDfomGI6TZdwoRj HzitN3qfpwx/+JwyYLHb1GwAyBqizfnk3YcA5QbzdB4YzLJm0afvVB+ysPfASpqqXTQO fzZA== X-Gm-Message-State: AOUpUlEvf/qoHZFrXooUbE1GAN43SKmIhCGuwKsln0ZVc3AMiOJs3mzx UUpB/HX3YdAu+G7bMfhUTUGJBw== X-Received: by 2002:a19:1863:: with SMTP id o96-v6mr3582504lfi.134.1532174372682; Sat, 21 Jul 2018 04:59:32 -0700 (PDT) Received: from localhost.localdomain (59-201-94-178.pool.ukrtel.net. [178.94.201.59]) by smtp.gmail.com with ESMTPSA id 73-v6sm664260lfs.44.2018.07.21.04.59.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 21 Jul 2018 04:59:31 -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 v4 net-next 0/6] net: ethernet: ti: cpsw: add MQPRIO and CBS Qdisc offload Date: Sat, 21 Jul 2018 14:59:17 +0300 Message-Id: <20180721115923.1389-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 v4..v3: - nothing, just rebase 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 -- 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