Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3921857ybl; Mon, 13 Jan 2020 05:04:46 -0800 (PST) X-Google-Smtp-Source: APXvYqzU7VfKLmnL88LnVpTN9LeM26oktQxMQ8CwrmIknDY5BgLbBeId4h6HfGVr8S2r8T3dMYTK X-Received: by 2002:a05:6808:30d:: with SMTP id i13mr11776432oie.144.1578920686240; Mon, 13 Jan 2020 05:04:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578920686; cv=none; d=google.com; s=arc-20160816; b=qratJvOLICsDuFRh56LvNrx13djSzNuwyZ3KEuzGcW9fLCpeizJsXGyil7TreSRhT5 6x70k2zxoAtF4kXQebwutfWtK8Vjlg23Ygb3a0ZhFxmQOCgOMfFvMLoG1TehfG0GUsOD QUXN1RWGKE6ym2h4u1qO3Dka+tQRTXdPJnWYPnRicEP8aD3v1CjDHAwSA+MmtqhXBX7d Ae6R0zJggHSzmoj+EbnXRPQJcM2T7Z/laWq0l5c8PEInb8YG7O7L+dbe7iY7i0CzXXz5 hnKJjIZux8y7h7r91+jpuoPNc/f0NBVwN01LQx0OXgoaawxra4HW+/Kg1WU5CbkJ2/I3 cZ9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=NeDFrZTbXo6ksxgALaEjIf2ljmDeDdCS1M67gcGDDKY=; b=MYBLmr59SnV81VIDJVpLgQCQiNxQGTeIKm648rNXg9eXrSn6BDTMb5VavP0NpqpVlC OqNxZQ3kbU0usRCj9t/7ZT5IO/ab3zioLLn3SaKnpn/yMe1OB+xqHiNqsI5vUjDabD5f PDnngmx6rTk1klUcNxTp2rfqdfd4GmztpMkosdt4AUBiTwiYbMlqn0ztS2mV4Ow2eVyC cCmoBPUsg9+uh698lhZmvhteJCzggUxrvjBw/Q4wezBOQ4i+1FFb71h8c9sGXSfHX08Y NMCBNv+UGWpw181zK/cHeG+C+T07KMs88TWphQYFdR3D5/yWOK4dm7P7LZoKrse71E7R OG8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@synopsys.com header.s=mail header.b=O3I2EJKx; 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=synopsys.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m5si6330459ote.187.2020.01.13.05.04.34; Mon, 13 Jan 2020 05:04:46 -0800 (PST) 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=@synopsys.com header.s=mail header.b=O3I2EJKx; 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=synopsys.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728829AbgAMNCy (ORCPT + 99 others); Mon, 13 Jan 2020 08:02:54 -0500 Received: from us03-smtprelay2.synopsys.com ([149.117.87.133]:56840 "EHLO smtprelay-out1.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727465AbgAMNCx (ORCPT ); Mon, 13 Jan 2020 08:02:53 -0500 Received: from mailhost.synopsys.com (mdc-mailhost1.synopsys.com [10.225.0.209]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by smtprelay-out1.synopsys.com (Postfix) with ESMTPS id 903F5C05C3; Mon, 13 Jan 2020 13:02:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1578920572; bh=zKs/zoX9SDuQlYKJwNzslfhtAuZSfAwnQ4w1YbbcszA=; h=From:To:Cc:Subject:Date:From; b=O3I2EJKxhODJf3stOIYZ85/9R21fxpB1RDXAK3J35wiDwCF3xD31Jr/JN5G3f4rfM oNiieVLJr7KfC4e0E3PfLnRxds2DQvQjlrJmf8sxZw5XVT1ABJjHmGArm/D2whRyUE Ng+z0ei1RXRRBq7fODTtFXwchxCp5QW/K3afmDcm9L51n6WM6owwgMQjGqhfjjvMhd hMkMcq7JzWRDShcydMof2AFfn3zML6dpWOq3+q9cr9WI4wC+MQHUClq4d1FrR+TcBK mrRulZpSo6Ctoj9OmzqbxmVz8RTR8npaiF8fzZ/DY0uyT4HYWMKL5jldFz9J4rhWKk /BXTW4jI1Risw== Received: from de02dwia024.internal.synopsys.com (de02dwia024.internal.synopsys.com [10.225.19.81]) by mailhost.synopsys.com (Postfix) with ESMTP id 67301A005B; Mon, 13 Jan 2020 13:02:44 +0000 (UTC) From: Jose Abreu To: netdev@vger.kernel.org Cc: Joao Pinto , Jose Abreu , Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu , "David S. Miller" , Maxime Coquelin , linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH net-next v2 0/8] net: stmmac: ETF support Date: Mon, 13 Jan 2020 14:02:35 +0100 Message-Id: X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series adds the support for ETF scheduler in stmmac. 1) Starts adding the support by implementing Enhanced Descriptors in stmmac main core. This is needed for ETF feature in XGMAC and QoS cores. 2) Integrates the ETF logic into stmmac TC core. 3) and 4) adds the HW specific support for ETF in XGMAC and QoS cores. The IP feature is called TBS (Time Based Scheduling). 5) Enables ETF in GMAC5 IPK PCI entry for all Queues except Queue 0. 6) Adds the new TBS feature and even more information into the debugFS HW features file. 7) Switches the selftests mechanism to use dev_direct_xmit() so that we can send packets on specific Queues. 8) Adds a new test for TBS feature. --- Cc: Giuseppe Cavallaro Cc: Alexandre Torgue Cc: Jose Abreu Cc: "David S. Miller" Cc: Maxime Coquelin Cc: netdev@vger.kernel.org Cc: linux-stm32@st-md-mailman.stormreply.com Cc: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org --- Jose Abreu (8): net: stmmac: Initial support for TBS net: stmmac: tc: Add support for ETF Scheduler using TBS net: stmmac: xgmac: Add TBS support net: stmmac: gmac4+: Add TBS support net: stmmac: pci: Enable TBS on GMAC5 IPK PCI entry net: stmmac: Add missing information in DebugFS capabilities file net: stmmac: selftests: Switch to dev_direct_xmit() net: stmmac: selftests: Add a test for TBS feature drivers/net/ethernet/stmicro/stmmac/common.h | 1 + drivers/net/ethernet/stmicro/stmmac/descs.h | 9 ++ drivers/net/ethernet/stmicro/stmmac/dwmac4.h | 1 + drivers/net/ethernet/stmicro/stmmac/dwmac4_descs.c | 10 ++ drivers/net/ethernet/stmicro/stmmac/dwmac4_descs.h | 7 + drivers/net/ethernet/stmicro/stmmac/dwmac4_dma.c | 21 +++ drivers/net/ethernet/stmicro/stmmac/dwmac4_dma.h | 7 + drivers/net/ethernet/stmicro/stmmac/dwxgmac2.h | 13 ++ .../net/ethernet/stmicro/stmmac/dwxgmac2_descs.c | 9 ++ drivers/net/ethernet/stmicro/stmmac/dwxgmac2_dma.c | 24 ++++ drivers/net/ethernet/stmicro/stmmac/hwif.h | 12 ++ drivers/net/ethernet/stmicro/stmmac/stmmac.h | 3 + drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 149 ++++++++++++++++----- drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c | 2 + .../net/ethernet/stmicro/stmmac/stmmac_selftests.c | 98 +++++++++++--- drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c | 18 +++ include/linux/stmmac.h | 1 + 17 files changed, 334 insertions(+), 51 deletions(-) -- 2.7.4