๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #7269

Re: [PATCH net v5 08/13] ice: E825: stop clearing PHY_REG_TX_OFFSET_READY

#7269
From: netdev-bot+sashiko
Date: Sun, 25 Oct 2026 23:44
61 lines
10421 bytes
Thank you for your contribution! Sashiko AI review found more severe
issue(s) in other patches of this series. This mail is only an FYI, in case
you want to address the nit picks below when you respin.

Low priority / nit picks for your consideration:

- [Low] The commit message for "ice: E825: stop clearing
  PHY_REG_TX_OFFSET_READY" names a Tx tracker field that does not exist.

--

ice: E825: stop clearing PHY_REG_TX_OFFSET_READY

On E825, ice_stop_phy_timer_eth56g() no longer clears
PHY_REG_TX_OFFSET_READY. Clearing it left the hardware's outstanding Tx
timestamp counter out of sync. Instead, new Tx timestamp requests are
blocked in software while the PHY is stopped or restarting, and
ice_ptp_mark_tx_tracker_stale() now checks tx->init.

> Now that we do not clear the PHY_REG_TX_OFFSET_READY, new timestamp
> requests could happen while the PHY is calibrating. To avoid this, set the
> tx.calibrating field of the Tx timestamp tracker when stopping the timer
> and clear it when finishing the restart.

[ ... ]

> Unlike E822 devices, set the calibrating flag when "stopping" the PHY and
> clear it immediately after the start procedure.

[ ... ]

> In the event that the PHY timer start procedure fails, the device is in an
> unknown state and timestamps will not behave properly. As such, and similar
> to E822 devices, the calibrating field is not cleared on failure.

[Severity: Low]
Should these references to tx.calibrating say tx.disabled instead?

struct ice_ptp_tx in ice_ptp.h has no calibrating member. Its bitfields
are:

	u8 init : 1;
	u8 disabled : 1;
	u8 has_ready_bitmap : 1;

The new E825 code in ice_ptp_port_phy_stop() and
ice_ptp_port_phy_restart() sets and clears ptp_port->tx.disabled:

	spin_lock_irqsave(&ptp_port->tx.lock, flags);
	ptp_port->tx.disabled = true;
	spin_unlock_irqrestore(&ptp_port->tx.lock, flags);

ice_ptp_wait_for_offsets() uses the same field for E82x, and the
kernel-doc update in this patch is for @disabled.

The behaviour the commit message describes matches the code. Only the
field name is wrong.

-- 
Sashiko AI review ยท https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261021-jk-e825c-timestamp-processing-logic-fixes-srcu-v5-0-72289a4ac8eb%40intel.com
Technical Details
Message-ID: <179297184040.3134.16872406836500329599@kernel.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-351633-linux-kernel-netdev=dewy.ru
References: <20261021-jk-e825c-timestamp-processing-logic-fixes-srcu-v5-8-72289a4ac8eb@intel.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-351633-linux-kernel-netdev=dewy.ru
From: netdev-bot+sashiko@kernel.org
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net v5 08/13] ice: E825: stop clearing PHY_REG_TX_OFFSET_READY
Date: Sun, 25 Oct 2026 23:44:00 +0000
Organization: Usenet Network
Message-ID: <179297184040.3134.16872406836500329599@kernel.org>
References: <20261021-jk-e825c-timestamp-processing-logic-fixes-srcu-v5-8-72289a4ac8eb@intel.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="1173221"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:pJtquoYI6iYKOxh3c/wxZMPoTpk= sha256:IfGptcM1jEluwYjE5iWfXo3sVh9OkHKFEWWz6ESN2Z4=
	sha1:wVanLJjRzGH2ljDtYo+YkG+hwNk= sha256:TFD/Z606+euVKuIJSXMreyffBrBWccIm1YjJjnAPWuM=
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id 8F69A125B7E; Mon, 26 Oct 2026 02:45:15 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.739
X-Spam-Status: No, score=-3.739 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.339, DKIM_SIGNED=0.1,
	DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
	MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
	SPF_PASS=-0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=kernel.org
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id Ix2hhCMrv4Mo;
	Mon, 26 Oct 2026 02:45:12 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-351633-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id C460E125B7B; Mon, 26 Oct 2026 02:45:03 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sea.lore.kernel.org (Postfix) with ESMTP id 416B63A7C3; Sun, 25 Oct 2026 23:44:03 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1792971843;
	b=WnMk4ZM678Lk7F0WEUZNfCy16W96w7dAIGXZuS4Ir0wzmMlVR5taFO8gRArKLWam3lUQ
	 KIa0yUae1o59xz7rB553uZ2l7vyfpC4vbpXVnq+W90WBPjy+5pDMo0yRYNC6/jhXo7m3F
	 An7Cg8WvCuGk+X1ryGUXuzVVhr7Go9lE18OgDaywxPJhCr0iEPyMwMWajyN3+SCEPDxy1
	 8hMM8ZiY6elH2KI6+N68MWHwAJ/Lkw/1J5NFmsJ3OIyg2ztWtoM/spQj34woi7Zd/Ms3L
	 whgihKJV/QEbs5MBKtXRVUueQs0RPzTL5eCG/pdMmmbEV6B6iXwWEciVvTZp1I6UMyQ==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1792971843;
	h=X-Original-To:Received:Received:DKIM-Signature:Subject:From:To:Cc:
	 Date:Message-ID:In-Reply-To:References:X-sashiko-severity:
	 Content-Type:Content-Transfer-Encoding:X-Mailing-List:List-Id:
	 List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner:
	 Precedence:MIME-Version;
	bh=F5IcTz3zdhdhlrBs64CB/6G2Lii0ugSxWBd4UAQ8ZAk=;
	b=X/IMFYrP5lTDx0jdcLEWs/Dgp1Mjbk/2oZBhZylcNh/xEPVY0cLIMogeJIYdQcIRSLoZ
	 Q1xqX7J2St9d/2H548vijEltWfg7UuvrxOjGkhApATPOmZs8Brm4bcVJld5GfzTKbUyhq
	 kJKKfeaHJIlekHXy3BXahAFlOg8B3vNqlR2ZSOjWCyFzSIqRN5HPFi8q5I13XOIdMYQJn
	 p22DKIA+rexsgKsxhMSUQgJHCz5Ew9qc/DWSWNCghYId5BmJO5ivzWlJWC90PffsNDPvS
	 SZnBCdcJP0TPYIwdQXQIsBi7VlAlRb4DNHar5EdiKvSLqkzLzE1ySSDVzZHh6VfS3pQ==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b="iehOsL/t";
	arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 1837A606A31E;
	Sun, 25 Oct 2026 23:44:03 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=iehOsL/t
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1792971842;
	b=eRuTmdWW5+AHh08Y5wWQxXDDl0BKQG/EI6BlrraBLulmIjLfntXh7iWv1sgXUpcAXGLP
	 FjNdyX7qKokzHNC8621hMNfNXeirvi/h9iQyIWrbyQyzGuqz5ees1YMBoVRAjRW1KXodA
	 RWAJP3Mq8xGew/aQ/cLl3cYLhOw7oV9W1UK/0PNyxgPAC5P4DMslsYHW52iU9/vtWYQC1
	 pZNYqIBPNiWq0iWiZO0M8q95stU30n15CRe6eMnetEfppkx+eyXaZtWQ/UYd+ri8wUjGZ
	 vEFmByCkmdCRVmzXzHeIt87PK+miJY+rsBE7hFWJAMfgzo93oA3r/eWTSeE8hw/YL6g==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1792971842;
	h=Received:DKIM-Signature:Subject:From:To:Cc:Date:Message-ID:
	 In-Reply-To:References:X-sashiko-severity:Content-Type:
	 Content-Transfer-Encoding:MIME-Version;
	bh=F5IcTz3zdhdhlrBs64CB/6G2Lii0ugSxWBd4UAQ8ZAk=;
	b=5HwPE2kZij9tELGErnUlfv8vd+oWcCqNNFPwBg++Pj5n1OcRmcifTvyZ2qhgvvV1da+u
	 2FbjEQqtD8yxddKerwiBKtXY3GlT6l06T3N0srzyQqsICdWLkd2tUwE5P0vh5mdwhvoLq
	 EDuJbEBT0FPTvIqjhCtqJzadB9J474fNJh8BsR9YicOlu5OXLrj6MQvwnvARIDPNRF0fV
	 QP6faTqISDaQ6X7TObEpbLkRkh8BmRFn1l0SaK8xz0JGTaZCcuWJt8UvtUTnOpKBhlJSY
	 T7PG1Ln9BEGP0y/xPLoCGtWyRmxrWFZPe2b2B5rYznZfQT1Gc2x6VQPsWN51V4wBgzg==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b="iehOsL/t";
	arc=none smtp.remote-ip=100.103.45.18
X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id F2617606A325
	for <netdev@vger.kernel.org>; Sun, 25 Oct 2026 23:44:01 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id CF0BE1F01828;
	Sun, 25 Oct 2026 23:44:00 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1792971841;
	bh=F5IcTz3zdhdhlrBs64CB/6G2Lii0ugSxWBd4UAQ8ZAk=;
	h=Subject:From:To:Cc:Date:In-Reply-To:References;
	b=iehOsL/te6kHBDWPlTSW9qeid8hPnXNQONupLzBMjZ2L5So/4de3qoqgiL9WblA02
	 OXzcvt+65xXJCMq7hV8lSn+PrUze+bssw7EEM65gzPHDCosmUftZYeYLDaI7yv9mNc
	 D+sSf3XFN+bMoC6ulO6awFzfeHmjw9vkUN96NL7vXGMzWfE+nwDgCqSYhVO0ctllgo
	 Ndd84VKRmmLeY0JVRQdTdDXiRW3eGozy5ntqNPcHmkkpEwvah8SXNjWdOMETXeZjK3
	 N8T6xZuOXrKrnf40/WGQEYdc8Pd3wuG5G4pEMs+0JsNc5LXKoj8+R4gcfcNiNxd5xl
	 yvegxDK5fvGbg==
X-Cc: przemyslaw.kitszel@intel.com, andrew+netdev@lunn.ch, davem@davemloft.net,
 edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, poros@redhat.com,
 netdev@vger.kernel.org, grzegorz.nitka@intel.com,
 aleksandr.loktionov@intel.com, alexander.nowlin@intel.com,
 anthony.l.nguyen@intel.com, maciej.machnikowski@intel.com,
 przemyslaw.korba@intel.com, sergey.temerkhanov@intel.com,
 arkadiusz.kubalewski@intel.com, richardcochran@gmail.com, horms@kernel.org
X-In-Reply-To: <20261021-jk-e825c-timestamp-processing-logic-fixes-srcu-v5-8-72289a4ac8eb@intel.com>
X-sashiko-severity: Low
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list