Article View: linux.kernel.netdev
Article #8691[PATCH net 0/3] ice: E825: PHY restart fixes
From: Jacob Keller
Date: Thu, 29 Oct 2026 18:55
Date: Thu, 29 Oct 2026 18:55
79 lines
14314 bytes
14314 bytes
This is a subset of the timestamp processing logic fixes that were
previously posted at [1] and [2]. It focuses specifically on the E825 timer
restart procedure, including three fixes which we have deemed the most
critical for reaching customer deployments due to recently reported issues.
First, the driver is modified to stop clearing the PHY_REG_TX_OFFSET_READY
register. This register controls whether a captured timestamp will have its
"valid" bit set. A timestamp captured while this register still increments
the internal counter. However, since the valid bit is clear, reads of this
timestamp will not trigger the internal counter decrement, leading to an
off-by-one error in the hardware logic. Instead of clearing the offset
ready register, disable timestamp requests purely in software and mark
outstanding timestamps as stale to prevent reporting timestamps that should
be considered valid.
Next, the E825 soft reset procedure is extended to sweep the timestamp
memory region with reads before the soft reset is performed. Reading a
timestamp triggers hardware side effects including automatically clearing
the "valid" bit of the timestamp in the memory, and clearing the "ready"
bit from the timestamp bitmap. The hardware soft reset register does reset
the ready bitmap, but does not automatically clear the "valid" bits from
the timestamps in the memory bank. Additionally, the hardware does not
initialize the memory bank to zero at power on. The sweep ensures that
the memory region will have all the valid bits cleared and the device will
be in a consistent state after the soft reset. The sweep is performed as
part of the soft reset because the reads could otherwise leave the internal
counter in an off-by-one state. By always pairing the sweep with a soft
reset, the memory region is cleared and the soft reset resets the ready
bitmap and internal counter to a known good state.
Finally, the E825 timer restart procedure is extended to include performing
a PHY soft reset. By performing a soft reset, the driver can be sure that
the device is in a known good state at every link up. This also provides a
mechanism to recover if any faulty logic still causes the internal
timestamp counter to become out of sync. The system administrator can reset
the link, triggering a PHY timer restart.
These fixes originally came along with other changes to the driver
timestamping logic flow, but have been separated as they are deemed the
most critical for upcoming E825 deployments. The remaining changes from the
original series continue to suffer from AI feedback pointing out potential
race conditions. The link changes especially may need some deeper
investigation to resolve. I appreciate the maintainers patience with this
work including the multiple rounds on the original series and helping find
a path forward.
Link: [1] https://lore.kernel.org/netdev/710677e5-3668-4588-bd36-2d8f7fb692a9@intel.com/
Link: [2] https://lore.kernel.org/netdev/20261027-reduction-v1-0-81237c67a361@intel.com/
Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
---
Changes:
- The missing mutex_unlock() in the -ENODEV case has been fixed.
- A small typo in the kdoc has been fixed.
I've double checked this round through my own local sashiko instance 3
times and didn't get any remaining reports after a few runs. I only have
claude models, but hopefully there won't be any remaining complaints... :D
---
Jacob Keller (3):
ice: E825: stop clearing PHY_REG_TX_OFFSET_READY
ice: E825: clear PHY_TSTAMP memory prior to soft reset
ice: E825: perform a soft reset when starting the PHY timer
drivers/net/ethernet/intel/ice/ice_ptp.h | 5 +-
drivers/net/ethernet/intel/ice/ice_ptp_hw.h | 2 +-
drivers/net/ethernet/intel/ice/ice_ptp.c | 43 ++++++--
drivers/net/ethernet/intel/ice/ice_ptp_hw.c | 155 ++++++++++++++++------------
4 files changed, 126 insertions(+), 79 deletions(-)
---
base-commit: 8f44631ba02afe9fff2f0a0fb66560ab19df87fd
base-tree: git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git main
change-id: 20261029-jk-e825c-critical-timestamping-fixes-8e1f86335de1
Best regards,
--
Jacob Keller <jacob.e.keller@intel.com>
Technical Details
Message-ID:
<20261029-jk-e825c-critical-timestamping-fixes-v1-0-72128d1dd928@intel.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-353455-linux-kernel-netdev=dewy.ruShow 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-353455-linux-kernel-netdev=dewy.ru From: jacob.e.keller@intel.com (Jacob Keller) Newsgroups: linux.kernel.netdev Subject: [PATCH net 0/3] ice: E825: PHY restart fixes Date: Thu, 29 Oct 2026 11:55:00 -0700 Organization: Usenet Network Message-ID: <20261029-jk-e825c-critical-timestamping-fixes-v1-0-72128d1dd928@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Injection-Info: usenet.network; logging-data="2077595"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:esm92FZA9Sk0L1ALaF9Xgptj/9c= sha256:1Dzrdz/jMPehGoOEo/bJKglkLX52Npd4PhNq2qevEfY= sha1:zo3J02NmYgzKeYiUv1ejZoam+xQ= sha256:gw4DGXLcm2wA5RylwazY5wo5OyEV+BFxJaq/W2vnwik= 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 A7D4C125C72; Thu, 29 Oct 2026 22:01:00 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.05 X-Spam-Status: No, score=-3.05 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.25, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key) header.d=intel.com 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 9httVndMORlC; Thu, 29 Oct 2026 22:00:57 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-353455-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=intel.com X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114]) by mail.dewy.ru (Postfix) with ESMTPS id 11CEE125C6E; Thu, 29 Oct 2026 22:00:49 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by tor.lore.kernel.org (Postfix) with ESMTP id 4341D2C5F2; Thu, 29 Oct 2026 18:55:35 +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=1793300132; b=dYjl4llI/ENEq2bidTdxuLd+qAqPJF6I2tnw+Pk9QcXaDZqXRuPiPIskxWPfxmDgqu2X jyBBNlv7bFcGC2Iak73IwQ+OCZkv/8kDuqHwk22sXEvTRLl5YJKsz0tzTaRB0yMUVE/34 wcQbX4uPqLEIVL41T+aP0h8iJjp1fL2N0kcyqgju59nMG2JfUCPPi3LksTiHNSzj5kMAn WfD33pRNzAP/a7/SI6l0ns2i1kSzPz4fGWmWrhvnE9MP3+fatv/7fv5Z7gi8tHNaNO3GF hFOjpCjfxEmnnNzdfbryzebzU7/QSat5JVgyIy04ti5BkP3d5Dagce9gDuTziS2lPuQ== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793300132; h=X-Original-To:Received:DMARC-Filter:DKIM-Signature: X-CSE-ConnectionGUID:X-CSE-MsgGUID:X-IronPort-AV:X-IronPort-AV: Received:X-CSE-ConnectionGUID:X-CSE-MsgGUID:X-ExtLoop1:X-IronPort-AV: Received:From:Subject:Date:Message-Id:X-Mailing-List:List-Id: List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner: Precedence:MIME-Version:Content-Type:Content-Transfer-Encoding: X-B4-Tracking:X-Change-ID:To:Cc:X-Mailer:X-Developer-Signature: X-Developer-Key; bh=HHrvKgT/2K3LqufqQouf4HOOub42rH6TixN7nVjIiWI=; b=3BXhJe6x+RPGJ3OP4XJ12b0uZXRtbHTbGw7q08efHl//sSzvBjC3KWz2N72HntjLyA/1 gu/wHsTXEh2iD5WjfiVRdaXpfwzOIhQFJp/VyI9Gp6iQgIH0NaH1kRwf8uEr+1iImdEa9 5WcYW2x3kLqg2xN+iTMsCXaq3i+KOnvVGYwXae9OKVmAgvMMnm8mFAfyO+ofKbaJDVK3L lARujcOl+dSbXS7iU5alcocUK1sYq9Pe8peHuSLOYABFjAtQVqxfk1u1IjuXRYHnPBTtg GCOylCyvGgZdWBalJ/L7GI3tnnQTS+pVyjDHupH2cLf4T1BkWCAozR/AlNMg3X+2jwQ== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=l33wAZyU; dmarc=pass header.from=intel.com; spf=pass smtp.mailfrom=intel.com; 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 32841606A323; Thu, 29 Oct 2026 18:55:32 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=l33wAZyU X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=198.175.65.21 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1793300131; b=vhY6wD/8vnCR1F7txufj+L245I5jeMSX03HFDHp4ToPZCE6Uabfsd/jlfnMqLew6N9fK hgPPvxFLemUpSR08SJkVPj8s28OyBAgsnEeVebyB0PKusP7LwC6/SaJ8bV7csTa/1yfD8 4Cf45+nW2mUDbUMhpZbOJT8qL1cK+WlgqJYnwwgqW5doW0mLa2MMm32hcIZLiaejIIhOY hxX2B9In+RMXMJ0RPkYMTIlka/8ZmwTtjaEYdyAXTX09G18PJ0+GhYofBweXYYL5taaQy +O8q+ZLi/4v3OnyxK7pfmLn02Wdxsa8t0BYeIipRNGXjhI2q8d9vcg5YEYGP0b88EkQ== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793300131; h=DMARC-Filter:DKIM-Signature:X-CSE-ConnectionGUID:X-CSE-MsgGUID: X-IronPort-AV:X-IronPort-AV:Received:X-CSE-ConnectionGUID: X-CSE-MsgGUID:X-ExtLoop1:X-IronPort-AV:Received:From:Subject:Date: Message-Id:MIME-Version:Content-Type:Content-Transfer-Encoding: X-B4-Tracking:X-Change-ID:To:Cc:X-Mailer:X-Developer-Signature: X-Developer-Key; bh=HHrvKgT/2K3LqufqQouf4HOOub42rH6TixN7nVjIiWI=; b=ruzNmw1OK9Khxa74LkjRKtCW0+nLDB62JVO44sTihaXhrTyolqZR+ile9FfTacJH9pUR Pu5fX9maaLXssZUOPAtQrISwsntWIhzz07ZJCz/yXb3GQ5L0MVN3b/8vIjBtBrMYVd1lK MzFwTKzh3/a0yvrl4c1Dno6CN3NkiT7f3Z3lxlXxAi2SMHxEiJNLIUkOrREkWd1me7S3H Dr1snubLO0vTX18Tm2gyFM61sOScseoEExLqVAuWadefEFop3Y4HvZY3f2ffPzH90ePjJ jOmshmUJCC/+1pS34ykd5LVJ1NDLjcAIUUmx/idgp1NgkZiwQlbMKFw3Fy6xYiPKqRg== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=l33wAZyU; arc=none smtp.remote-ip=198.175.65.21 X-Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.21]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C76FD606A31C for <netdev@vger.kernel.org>; Thu, 29 Oct 2026 18:55:29 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org C76FD606A31C X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1793300130; x=1824836130; h=from:subject:date:message-id:mime-version: content-transfer-encoding:to:cc; bh=9IFeJyzzRTdjZZaoVDPerD+tFpr/WPI7Q6Nnx12Saw4=; b=l33wAZyUhvfzUrcuSfWCHIQgZGnFPlN8hzC3X+/SkHqHfcPoXbPezWz3 gvVRSyO2FvujaeGfS7JpLzY6iw5RJz6+swo0QN5vVZPOSvZuecp5oll3p ESQoJ6mzRRg/XWvhP2+pOVcct1rk8Z8eUUmbLj7koMfMpuAWHcObw3sRo 2qqvd0jEHviREWFJcUwXnVOTskW8rsIPw+dM/H/itL2XvXV6BgcTdEkzo eIcQ0EZvpwraWyJJPxgNpU32iWan+0r9Ymr7l/ZA/EBh/J5mMwd7fM7SV ViPin7zZfaP1y0pC5VN5JY+lCNjp+Zsq9irJmKQQe0Sn9vQUQJYiB974J A==; X-CSE-ConnectionGUID: LXHSsznyST2FnAl9FvPR5A== X-CSE-MsgGUID: zubiSocDSTCOSrTu8+Dj5Q== X-IronPort-AV: E=McAfee;i="6800,10657,11950"; a="2147527" X-IronPort-AV: E=Sophos;i="6.27,184,1787036400"; d="scan'208";a="2147527" X-Received: from fmviesa005.fm.intel.com ([10.60.135.145]) by orvoesa113.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Oct 2026 11:55:29 -0700 X-CSE-ConnectionGUID: 86H6f3mDR76aD4+yq0Ymqg== X-CSE-MsgGUID: busP35UQSju3l+yhAQDsmA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,184,1787036400"; d="scan'208";a="5348465" X-Received: from orcnseosdtjek.amr.corp.intel.com ([10.166.28.128]) by smtpauth.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Oct 2026 11:55:28 -0700 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 X-B4-Tracking: v=1; b=H4sIAAAAAAAC/yWN0Q6CMBAEf4Xcs5fQEkj1V4wPtSx4KJX0ijEh/ LtVH2c2md1IkQRKp2qjhJeoPGMBc6go3HwcwdIXJlvbztT2yNOd4WwbOCTJEvyDs8zQ7OdF4si DvKHsYAbXNU3bw1BJLQm/oZTOFJHp8pe6XieE/D2gff8Ad36HSI0AAAA= X-Change-ID: 20261029-jk-e825c-critical-timestamping-fixes-8e1f86335de1 X-Cc: Grzegorz Nitka <grzegorz.nitka@intel.com>, Aleksandr Loktionov <aleksandr.loktionov@intel.com>, Alexander Nowlin <alexander.nowlin@intel.com>, Tony Nguyen <anthony.l.nguyen@intel.com>, jacob.e.keller@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-Mailer: b4 0.17-dev-67df5 X-Developer-Signature: v=1; a=openpgp-sha256; l=4262; i=jacob.e.keller@intel.com; h=from:subject:message-id; bh=9IFeJyzzRTdjZZaoVDPerD+tFpr/WPI7Q6Nnx12Saw4=; b=owGbwMvMwCWWNS3WLp9f4wXjabUkhqzH02ZMbpbz7PPWfhlx7ecE8z8KC7ZZP7E3iT48PdhQf RbTZM3ejhIWBjEuBlkxRRYFh5CV140nhGm9cZaDmcPKBDKEgYtTACbiPYvhm2K4reT0QPl5ZWGL ers2zHGTTNnU/LPo9o6j52VnpxmXMPz3nVC/ju3WatN2kU+7u68qswfdqjHxKbxhur3c/9iyBnE eAA== X-Developer-Key: i=jacob.e.keller@intel.com; a=openpgp; fpr=204054A9D73390562AEC431E6A965D3E6F0F28E8