From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=198.175.65.17 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796086390; b=qy2bxPQd/KW4VFWVWQ7wz3QYgE3xhXwazrK/8taYkO5yCtfLdVYjOwxrZmhHPevFMswe n+eyb9gjq2LQXJA0YYEk4EvVq5DYajgyyfALW87AIkSINkXhGF9VWkED9XtPZBhtk4AT5 5dujUpggiP0T32HZtE1CV18FtPO8SXEX1CS+2796TijvGBBed3ZhmvunUSN0vTCQIt6oC Au3I8DvJ8DCeZn6Aadlp2Zo58YOvWJFrosmjnNZTqPYHT5/pROQApDuTTkmbAa6zZEftU 3JbC08SQx+6UIyGQIAd0iHS1RBHvCtpOYQW8BAqhAac5opN3QM3mBtd1Xvb1z+yYfqQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796086390; 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:To:Cc:Subject: Date:Message-ID:X-Mailer:In-Reply-To:References:MIME-Version: Content-Transfer-Encoding; bh=x0S1JcT1KcDNf2PC18UTM//HqHg+6qmaz4+gHiivtkI=; b=UBNXiu7dh/T6Ox+GwjWroyd6VpcBCmhy85MjtXCsVV9w52ZuZobOceO+J/XzuR5BhZTu c2YcfFtsc4umrGBTdOh5X4tEvkfFRR5w6LNEbn0fQRiKthvEoapJC+JrRoZugDsiG3Elq xTyxouz3Q73UJpl6v34LZbwBLB/nTpXjhrwM+j8DqZ7xG3IWqD6UPJhzWPwrR3V+NSzsp UKm1aSiu/d5cRMixIx87/8yubMqXP7JI1Wc5hB99xUfGWp9b5JjedbrM0pD1LU1y/4QyV Ofi5PCeBOvSdy+IRrQ+UIKFBO2hsSX/3+8nnF2El9QogNqNa8BzXMLUC/70sljl8+GQ== 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=FE4c3xlt; arc=none smtp.remote-ip=198.175.65.17 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.17]) (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 D7D91606A327 for ; Tue, 1 Dec 2026 00:53:09 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org D7D91606A327 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=FE4c3xlt DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1796086390; x=1827622390; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=x0S1JcT1KcDNf2PC18UTM//HqHg+6qmaz4+gHiivtkI=; b=FE4c3xlt6tlu1onEzYe6f9brezxbqemnDCnf8PtIhKV/SQnbgaIKXm1n 9YyB7gXzs/l5D7vfOtd2Qc/4KAWwxugVGjENdVYr7Lq0Ixw808y0SFi90 3by7IORGsGb6IyZhHgpeZYEiBQAdxzH64oVFXW+rivx4+tKSXlgMNgdxO grxqcklGh5bkGEZ4St/zqHBe4YyUvTUWIyqIorUvp4MnrmIaJREMS87NA gO+vbDnNUJQ57JdRdqrPlAHHufO7cZ2CyHkzCqh+V2lK+iUerp0WqJ3io OVVzytBrOxm5BCTKAgGrPyUkzhTS17vzsD4jGX79F1OIJHOta0PysUtqG Q==; X-CSE-ConnectionGUID: c6ShvJ5fT0aVFn5XLSHM0g== X-CSE-MsgGUID: o0ve7JTQQ2eyG+/4L4Bj6w== X-IronPort-AV: E=McAfee;i="6800,10657,11982"; a="4941446" X-IronPort-AV: E=Sophos;i="6.27,243,1787036400"; d="scan'208";a="4941446" Received: from fmviesa011.fm.intel.com ([10.60.135.151]) by orvoesa109.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Nov 2026 16:53:09 -0800 X-CSE-ConnectionGUID: 3Hv33y9QR4eRR/nDT5DGng== X-CSE-MsgGUID: aMl6yAtHTGKUc6kpqjSkWA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,243,1787036400"; d="scan'208";a="14837747" Received: from anguy11-upstream.jf.intel.com ([10.166.9.133]) by fmviesa011.fm.intel.com with ESMTP; 30 Nov 2026 16:53:08 -0800 From: Tony Nguyen To: davem@davemloft.net, kuba@kernel.org, pabeni@redhat.com, edumazet@kernel.org, andrew+netdev@lunn.ch, netdev@vger.kernel.org Cc: Grzegorz Nitka , anthony.l.nguyen@intel.com, przemyslaw.kitszel@intel.com, maciej.machnikowski@intel.com, jacob.e.keller@intel.com, richardcochran@gmail.com, Sergey Temerkhanov , Milena Olech , Simon Horman , Aleksandr Loktionov , Ayush Singh Subject: [PATCH net v2 2/3] ice: remove redundant cross-timestamp PTP command Date: Mon, 30 Nov 2026 16:52:55 -0800 Message-ID: <20261201005258.1323948-3-anthony.l.nguyen@intel.com> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20261201005258.1323948-1-anthony.l.nguyen@intel.com> References: <20261201005258.1323948-1-anthony.l.nguyen@intel.com> X-Mailing-List: netdev@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Grzegorz Nitka The cross-timestamp capture path programs GLTSYN_CMD with READ_TIME before starting the ART/device capture and clears it with NOP afterwards. Since GLTSYN_CMD is shared with other PTP operations, concurrent executions will race and cause desync across PHY timers causing PHY timestamps to be incorrect and resulting in faulty PTP behavior. Remove the redundant source command programming instead of adding another guard around it. This was found on an early pre-production stepping of a device, and it was assumed that it would be required for all E823 devices. We discovered that this isn't actually required on E823 production devices as originally believed. The only device SKUs that actually require this are pre-production and have device IDs which aren't supported by the driver. We tested this across a wide array of E823 silicon steppings. Testing hints: Verify crosstimestamp path, for example with phc2sys tool, on E822/E823/E825/E830 devices. Please note that the phc2sys tool performs cross-timestamping by default when supported by the hardware. This can be observed when the reported delay is 0, indicating that the system time and PHC time were latched simultaneously. Fixes: 88c360e49f51 ("ice: Support cross-timestamping for E823 devices") Signed-off-by: Grzegorz Nitka Reviewed-by: Sergey Temerkhanov Reviewed-by: Milena Olech Reviewed-by: Simon Horman Reviewed-by: Aleksandr Loktionov Tested-by: Ayush Singh (A Contingent worker at Intel) Signed-off-by: Tony Nguyen --- drivers/net/ethernet/intel/ice/ice_ptp.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/net/ethernet/intel/ice/ice_ptp.c b/drivers/net/ethernet/intel/ice/ice_ptp.c index 8908b4f3db35..db1d0e42ae52 100644 --- a/drivers/net/ethernet/intel/ice/ice_ptp.c +++ b/drivers/net/ethernet/intel/ice/ice_ptp.c @@ -2183,9 +2183,6 @@ static int ice_capture_crosststamp(ktime_t *device, /* Snapshot system time for historic interpolation */ ktime_get_snapshot_id(ctx->snapshot_clock_id, &ctx->snapshot); - /* Program cmd to master timer */ - ice_ptp_src_cmd(hw, ICE_PTP_READ_TIME); - /* Start the ART and device clock sync sequence */ ctl = rd32(hw, cfg->ctl_reg); ctl |= cfg->ctl_active; @@ -2212,9 +2209,6 @@ static int ice_capture_crosststamp(ktime_t *device, *device = ns_to_ktime(ts); err_timeout: - /* Clear the master timer */ - ice_ptp_src_cmd(hw, ICE_PTP_NOP); - /* Release HW lock */ lock = rd32(hw, cfg->lock_reg); lock &= ~cfg->lock_busy; -- 2.47.1