Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp816820rdb; Thu, 30 Nov 2023 21:53:34 -0800 (PST) X-Google-Smtp-Source: AGHT+IH+j9unp+m7r/EqFPhdBc46pmgYtKajzFJ3XyznXxVF36zHjW5vJ1P3VlXVxHmT2DzVA0gq X-Received: by 2002:a17:90a:7e14:b0:286:44ca:425a with SMTP id i20-20020a17090a7e1400b0028644ca425amr4542417pjl.18.1701410013737; Thu, 30 Nov 2023 21:53:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701410013; cv=none; d=google.com; s=arc-20160816; b=U9mRVvqQ9L0IVD4/ec01owo4iei+WjLVYSnHV22OP/CdoRqetSYu8w4jjEdTTSrP8N sRpffocRrSNJ1UZ7QQte8FJPKxoPo9SfY5HSG1tOcEWM1ZEYPIyPB+fzkAwndYDkIv2L Pp8ImnIWMK51UfS4CUJYsAkIIB3ftCjIa6W/x2BIRUB0YGcqnSKXUYDzDQmIiBmJhhf/ XuxGJMVTdMQ27vLS2G64JlC5rKHkmjcI4NB9WEfHOeS1bitns8VLV/gMccUSHIheBl/g VXDUbKhE8U3N3IR5/ZS1OUxlHFwccz/e4DfmrY9fqgcmgUg8aKdU6/mSysHIJ1L3HxIS WCPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=+FuRoiWODn7/+htuY2v0LEIF8L5kISvav8nC3wLI0KA=; fh=p36MzhksjyrQP8UVrj/w1y/OYb1NKbvLN3LzitIfoNM=; b=VAjMZvZfo1MZ3EZ1mw+RH/4ev2aChhld3d02dYQcHeI5x2Kg5W0AUr7OrGpzNT36nH adF+fZs73wvwmnupqkvKTvI1vZfILYMCGoMxOh2Vf8HckOyhxx1VWobkQlpWxs8RpyH3 Tgy7t9sOmNzqmDWPu6/4/YI6GY7ULvpRCqRimMpI1EZOfDrzep7wOxaJqqu/rAEqMejl SPYIxRzogO4DLUiL52eYg3VkFWxdfIWOnHa33oolaOryM8cuRyILBSOkazGoBCSsf+mn OkuY6ac3AWO5WAV/UfQfq6ybVST60SMeozNV2CqJkceyJlkkjLelJMCfnhREr+fKkmAg JJeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=MdBv04z6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id lb12-20020a17090b4a4c00b002864ee5aadasi1584183pjb.186.2023.11.30.21.53.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 21:53:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=MdBv04z6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 696BF80FCBD8; Thu, 30 Nov 2023 21:53:30 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232346AbjLAFxN (ORCPT + 99 others); Fri, 1 Dec 2023 00:53:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35508 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232338AbjLAFxL (ORCPT ); Fri, 1 Dec 2023 00:53:11 -0500 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1F193170C; Thu, 30 Nov 2023 21:53:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1701409998; x=1732945998; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=rNUFphnEkQB+qWot/63Nna2HVEbtWnhUjyaz1RNUd68=; b=MdBv04z6GYo1k3KcUtbAdJL5Kj9svzrjZkJIjtE5NHWGcAZGQj/uhW0c C0Yl8G9dWzyMvFwNPj6t6ml7eW+Nb0X8s5fZsXZaQclRd/Ha6yBfb1c2F cFxYbti4N93Xjkl/PXJDu+IbFFVFVMM7Sg/Qa1ON7Yg5kzAXnoaKrsVt8 KeDjD+gNK1EMRhhgD3lQfoxdVcgC5N/fYj49tPgrbx/OjkKzB07ZsDuhU NJ/nAHbEX6+1FnHyg1VKlMxgg68L7PUyMXuRA/3rJFStihcOFCIy8jK+P dsnyoV795GBAZqofp0uOt26SYrRTo6ST36Kho0ycd6O5retooztXlLEUC g==; X-IronPort-AV: E=McAfee;i="6600,9927,10910"; a="373623981" X-IronPort-AV: E=Sophos;i="6.04,241,1695711600"; d="scan'208";a="373623981" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Nov 2023 21:53:10 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10910"; a="763004522" X-IronPort-AV: E=Sophos;i="6.04,241,1695711600"; d="scan'208";a="763004522" Received: from ppgyli0104.png.intel.com ([10.126.160.64]) by orsmga007.jf.intel.com with ESMTP; 30 Nov 2023 21:53:04 -0800 From: Rohan G Thomas To: "David S . Miller" , Alexandre Torgue , Jose Abreu , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Maxime Coquelin , Giuseppe Cavallaro , Richard Cochran , Russell King , Alexei Starovoitov , Daniel Borkmann , Jesper Dangaard Brouer , John Fastabend , Serge Semin Cc: netdev@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, bpf@vger.kernel.org, Rohan G Thomas Subject: [PATCH net-next v2 0/3] net: stmmac: EST implementation Date: Fri, 1 Dec 2023 13:52:49 +0800 Message-Id: <20231201055252.1302-1-rohan.g.thomas@intel.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Thu, 30 Nov 2023 21:53:30 -0800 (PST) Hi, This patchset extends EST interrupt handling support to DWXGMAC IP followed by refactoring of EST implementation. Added a separate module for EST and moved all EST related functions to the new module. Also added support for EST cycle-time-extension. changelog v2: * Refactor EST implementation as suggested by Serge and Jakub * Added support for EST cycle-time-extension Rohan G Thomas (3): net: stmmac: xgmac: EST interrupts handling net: stmmac: Refactor EST implementation net: stmmac: Add support for EST cycle-time-extension drivers/net/ethernet/stmicro/stmmac/Makefile | 2 +- drivers/net/ethernet/stmicro/stmmac/common.h | 1 + .../net/ethernet/stmicro/stmmac/dwmac4_core.c | 4 - drivers/net/ethernet/stmicro/stmmac/dwmac5.c | 137 --------------- drivers/net/ethernet/stmicro/stmmac/dwmac5.h | 51 ------ .../net/ethernet/stmicro/stmmac/dwxgmac2.h | 16 -- .../ethernet/stmicro/stmmac/dwxgmac2_core.c | 53 ------ drivers/net/ethernet/stmicro/stmmac/hwif.c | 21 +++ drivers/net/ethernet/stmicro/stmmac/hwif.h | 22 ++- drivers/net/ethernet/stmicro/stmmac/stmmac.h | 1 + .../net/ethernet/stmicro/stmmac/stmmac_est.c | 165 ++++++++++++++++++ .../net/ethernet/stmicro/stmmac/stmmac_est.h | 64 +++++++ .../net/ethernet/stmicro/stmmac/stmmac_main.c | 2 +- .../net/ethernet/stmicro/stmmac/stmmac_ptp.c | 4 +- .../net/ethernet/stmicro/stmmac/stmmac_tc.c | 8 +- 15 files changed, 276 insertions(+), 275 deletions(-) create mode 100644 drivers/net/ethernet/stmicro/stmmac/stmmac_est.c create mode 100644 drivers/net/ethernet/stmicro/stmmac/stmmac_est.h -- 2.26.2