From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E7375471252; Fri, 7 Aug 2026 15:37:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786117032; cv=none; b=XqiHNscTk++pB+w0sp9ypJy1UntlAIrlKAApozrnjaS4Hai3qIyiv3uHpMlLc79mZVg6Z6f1Ru5yV+n0tYHMd2TpyB9NLvF56Zl+N75vtCrJ7uW3zh3aBdZA8f8kU0xVmtzb9Vvd71Um5fDntbxK0I7iAM28TimHam0LzieZyog= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786117032; c=relaxed/simple; bh=N0PPYcEMJ6PElHKJf12Hg/YCUNrT1QNwhje1sKsz1bQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=AH9Jmz4EA/PGvPUUdcqjwd+rwaalvqR9Y74ubVh4+nR5CY1BA7DgTbxh83/WGz+/OLgOK4APUx9/k5hwBv/OZMLaxfYR6u0EAg8B/VsLhGGpiKlHFMUZSoT8cUXs8txrSHZ69wE3+pYP37nWyMJ1pcuIBuWDUfqjtths1/HIEP4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=RrhT2PUa; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="RrhT2PUa" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0C9771F000E9; Fri, 7 Aug 2026 15:37:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1786117030; bh=hyu/c8IrYHLsUtcGWDvvZMtyq8H5hLnRf8YrEV70KHc=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=RrhT2PUaSXWm3SNoruJpkoCAb9GMyCxFTcnww3lrfpT23GFkwWT7jKLiFyzdTw7qs sC6/yfGgsleIF7bL2lom0ZVj1fvZuPNX35UsKeZ/miNPSZwx+RH2D+jNmRAvDiPQOG WsbcVQ+yDpovuJmz7WwxNp2V8dVwOBWcX/8p3AWc= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Maxime Chevallier , Rohan G Thomas , Nazim Amirul , Jakub Kicinski , Sasha Levin Subject: [PATCH 7.1 177/438] net: stmmac: Fix E2E delay mechanism Date: Fri, 7 Aug 2026 16:36:13 +0200 Message-ID: <20260807143431.808316751@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260807143428.008222056@linuxfoundation.org> References: <20260807143428.008222056@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 7.1-stable review patch. If anyone has any objections, please let me know. ------------------ From: Nazim Amirul [ Upstream commit b041ed62aa6e3b2d7d36127e0e5d7bf2701f8231 ] For E2E delay mechanism, "received DELAY_REQ without timestamp" error messages show up for dwmac v3.70+ and dwxgmac IPs. This issue affects socfpga platforms, Agilex7 (dwmac 3.70) and Agilex5 (dwxgmac). According to the databook, to enable timestamping for all events, the SNAPTYPSEL bits in the MAC_Timestamp_Control register must be set to 2'b01, and the TSEVNTENA bit must be cleared to 0'b0. Commit 3cb958027cb8 ("net: stmmac: Fix E2E delay mechanism") already addresses this problem for all dwmacs above version v4.10. However, same holds true for v3.70 and above, as well as for dwxgmac. Updates the check accordingly. Fixes: 14f347334bf2 ("net: stmmac: Correctly take timestamp for PTPv2") Fixes: f2fb6b6275eb ("net: stmmac: enable timestamp snapshot for required PTP packets in dwmac v5.10a") Fixes: 3cb958027cb8 ("net: stmmac: Fix E2E delay mechanism") Reviewed-by: Maxime Chevallier Signed-off-by: Rohan G Thomas Signed-off-by: Nazim Amirul Link: https://patch.msgid.link/20260728060904.31993-1-muhammad.nazim.amirul.nazle.asmade@altera.com Signed-off-by: Jakub Kicinski Signed-off-by: Sasha Levin --- drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c index 755f48a34314b..f28367fbcaf81 100644 --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c @@ -755,7 +755,8 @@ static int stmmac_hwtstamp_set(struct net_device *dev, config->rx_filter = HWTSTAMP_FILTER_PTP_V2_EVENT; ptp_v2 = PTP_TCR_TSVER2ENA; snap_type_sel = PTP_TCR_SNAPTYPSEL_1; - if (priv->synopsys_id < DWMAC_CORE_4_10) + if (priv->synopsys_id < DWMAC_CORE_3_70 && + priv->plat->core_type != DWMAC_CORE_XGMAC) ts_event_en = PTP_TCR_TSEVNTENA; ptp_over_ipv4_udp = PTP_TCR_TSIPV4ENA; ptp_over_ipv6_udp = PTP_TCR_TSIPV6ENA; -- 2.53.0