From patchwork Wed Dec 20 10:43:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Karol Kolacinski X-Patchwork-Id: 1878483 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=osuosl.org header.i=@osuosl.org header.a=rsa-sha256 header.s=default header.b=Xnq+tN2R; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=osuosl.org (client-ip=140.211.166.138; helo=smtp1.osuosl.org; envelope-from=intel-wired-lan-bounces@osuosl.org; receiver=patchwork.ozlabs.org) Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Sw9CC4PFbz1ydg for ; Wed, 20 Dec 2023 21:43:35 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 6AEA581261; Wed, 20 Dec 2023 10:43:33 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 6AEA581261 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=osuosl.org; s=default; t=1703069013; bh=QYPuuhcOuT829RKNq20PLz8VTZT5XJS8tePrNmgm9oU=; h=From:To:Date:Subject:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:Cc:From; b=Xnq+tN2Rt00sqWpLaSSz7i8DXTkKuuSO0UAiKDtDIjalu07WZMVaVAGikjkzpcoZ9 07U6+ufwVKNqkPyQezPj8Fs/iYJZorYzviXTTSARekjLhoeqtRsAOQ2KrmRhOLSdMM E008VWEt7EPDvMlL4qyyYJrbmLWJqTopYxRjFV6VsAzbC4wVDO8XAGxz/o+oKGifAM EOaURkL9aMC37zRnVbiNmqL4nKOZV2xsS4aT0eHGrzfHxjLsIuLx/o+TKA3mgH8EpC YPde4LKechdv3btrLEshtgt6V2hHV8NJAMsDC8Gq5df5+p5/7CoZo9H5jySYwAuAO3 BxW5TcZwrqn0w== X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id CTELw_YlmRU7; Wed, 20 Dec 2023 10:43:31 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp1.osuosl.org (Postfix) with ESMTP id 21CCF81291; Wed, 20 Dec 2023 10:43:31 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 21CCF81291 X-Original-To: intel-wired-lan@lists.osuosl.org Delivered-To: intel-wired-lan@lists.osuosl.org Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 7F2F41BF2B3 for ; Wed, 20 Dec 2023 10:43:29 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 60EBF403C4 for ; Wed, 20 Dec 2023 10:43:29 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 60EBF403C4 X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1FTS30V822kd for ; Wed, 20 Dec 2023 10:43:28 +0000 (UTC) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.7]) by smtp2.osuosl.org (Postfix) with ESMTPS id 800FE400DC for ; Wed, 20 Dec 2023 10:43:28 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 800FE400DC X-IronPort-AV: E=McAfee;i="6600,9927,10929"; a="17350722" X-IronPort-AV: E=Sophos;i="6.04,291,1695711600"; d="scan'208";a="17350722" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmvoesa101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Dec 2023 02:43:28 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10929"; a="846673246" X-IronPort-AV: E=Sophos;i="6.04,291,1695711600"; d="scan'208";a="846673246" Received: from kkolacin-desk1.igk.intel.com ([10.102.102.152]) by fmsmga004.fm.intel.com with ESMTP; 20 Dec 2023 02:43:25 -0800 From: Karol Kolacinski To: intel-wired-lan@lists.osuosl.org Date: Wed, 20 Dec 2023 11:43:17 +0100 Message-Id: <20231220104323.974456-1-karol.kolacinski@intel.com> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Organization: Intel Technology Poland sp. z o.o. - ul. Slowackiego 173, 80-298 Gdansk - KRS 101882 - NIP 957-07-52-316 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1703069009; x=1734605009; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=+4UmLkbg6xUes43FYzkPJiDYKjW+t0Oegw1qPEdaH00=; b=nZr2bKI3R3N3r2HQdTxrVpI3IqJny1JlcD6vyZXct0TNXYHFy/XTMdRQ 79FEVX5yihnbF7FbTirPPa5kF2GnjfQdGNmOFGOP0wYeImeHwahoO5IJA zZPaMoRfQ9SD1MRppwlSFnbXLRR70/zGedPTqE/LGvJJfkTz0wBEMrKP4 R0MMTn/CxVEyk8TYxjXbXBMTlqn7PGrUziUO0Qfy1U/YdcRCKpFsmt98U STG+V5OLEzPLyYHnvniiL3Ug4ap8AqrWVsrHS0E8C99RHhfNgjXhSaRQU lLExckSj1TlC1wucKwdBvBNPTBGS1LgHoo3gUkhgQZe3+uHXlGMNXWCJE A==; X-Mailman-Original-Authentication-Results: smtp2.osuosl.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=nZr2bKI3 Subject: [Intel-wired-lan] [PATCH v3 iwl-next 0/6] ice: fix timestamping in reset process X-BeenThere: intel-wired-lan@osuosl.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel Wired Ethernet Linux Kernel Driver Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: netdev@vger.kernel.org, Karol Kolacinski , anthony.l.nguyen@intel.com, jesse.brandeburg@intel.com Errors-To: intel-wired-lan-bounces@osuosl.org Sender: "Intel-wired-lan" PTP reset process has multiple places where timestamping can end up in an incorrect state. This series introduces a proper state machine for PTP and refactors a large part of the code to ensure that timestamping does not break. Jacob Keller (5): ice: pass reset type to PTP reset functions ice: rename verify_cached to has_ready_bitmap ice: rename ice_ptp_tx_cfg_intr ice: factor out ice_ptp_rebuild_owner() ice: stop destroying and reinitalizing Tx tracker during reset Karol Kolacinski (1): ice: introduce PTP state machine V2 -> V3: rebased the series fixed Tx timestamps missing V1 -> V2: rebased the series and dropped already merged patches drivers/net/ethernet/intel/ice/ice.h | 1 - drivers/net/ethernet/intel/ice/ice_ethtool.c | 2 +- drivers/net/ethernet/intel/ice/ice_main.c | 4 +- drivers/net/ethernet/intel/ice/ice_ptp.c | 231 +++++++++++-------- drivers/net/ethernet/intel/ice/ice_ptp.h | 38 ++- 5 files changed, 172 insertions(+), 104 deletions(-) base-commit: 087c173e92424354672c296f7164232aa3380bbd