From patchwork Fri Dec 1 05:52:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rohan G Thomas X-Patchwork-Id: 13475421 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id EE57FC4167B for ; Fri, 1 Dec 2023 05:53:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=gRF4xVhyJw041VpM8del8fF2DkvzfmkbFXTW27802xw=; b=t12EE3THEzJ+bG Bxulpw2XuG7aztdBwoGuRO2NImCD7sQ8RViUj4gUb0kLfYX/lVyp+KEoVDe78OuTJ7cwcU/aRd9x6 u0JFDKoDmdtBmsR93zRdVM6i8h/rJqVCb0UptmBv2XWolY8kDyC3jfJ52iXsOs8DcANTPFXtOKvBc 1/aWLY8WQfglUNm4fAxTYpnDtD33ZpqZaCdctwh6C8ZJnf7J9Jbojh3kPV1dLg2irfYQ4OHKCXHa1 TJJArSM66ALTgoGtfFOcW9a4T0RQC5loJSxLjD04tkvBlIFhrW0SJ1ru2akXshjsoTvzScEqmuoC0 5Zcsv0ojnQJmU0lHK2LQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r8wSt-00Cj5W-06; Fri, 01 Dec 2023 05:53:27 +0000 Received: from mgamail.intel.com ([192.55.52.151]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r8wSq-00Cj4B-1r for linux-arm-kernel@lists.infradead.org; Fri, 01 Dec 2023 05:53:25 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1701410004; x=1732946004; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=rNUFphnEkQB+qWot/63Nna2HVEbtWnhUjyaz1RNUd68=; b=Lx2VJt2lOij+FAcHLKpeF2puUSbMl9ubsQQ4n8N+Yp76DnR3kBY6RaNM E06+kgf3pzyfu4cJM4Q5kMsSFi7T57TgREtlevO25DrpEYhVsVqiHnwyn ZtBaLa4B7VQIXGHGlfQRUAa3+uH1YZLFI5j8/V08dbRlXuYF4HZZZxRjP a3Z5qCRC71iY5poTUt2ibTpsc7HmPEKLmtOSiGREuK9sk02E8Uz4hJhmJ vPh2i5MS3rXSI3c7eEOGtybjo/BYKpR3ohhahvB4kWXRo7RvVNMAaPKY5 uxQiXeubzQ566nfMfZmXT0JgbRzAxvMmdYCTbKAr7d2eUzD6jrX7CRsgo A==; X-IronPort-AV: E=McAfee;i="6600,9927,10910"; a="373623982" X-IronPort-AV: E=Sophos;i="6.04,241,1695711600"; d="scan'208";a="373623982" 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231130_215324_631176_83337D66 X-CRM114-Status: UNSURE ( 9.68 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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 Reviewed-by: Serge Semin