Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2216799/?format=api
{ "id": 2216799, "url": "http://patchwork.ozlabs.org/api/patches/2216799/?format=api", "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/20260327072332.130320-3-aleksandr.loktionov@intel.com/", "project": { "id": 46, "url": "http://patchwork.ozlabs.org/api/projects/46/?format=api", "name": "Intel Wired Ethernet development", "link_name": "intel-wired-lan", "list_id": "intel-wired-lan.osuosl.org", "list_email": "intel-wired-lan@osuosl.org", "web_url": "", "scm_url": "", "webscm_url": "", "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<20260327072332.130320-3-aleksandr.loktionov@intel.com>", "list_archive_url": null, "date": "2026-03-27T07:23:26", "name": "[net] ice: fix PTP Call Trace during PTP release", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "4cd59dbdf9ed054f7070be84ad3ec3c789a6652e", "submitter": { "id": 75597, "url": "http://patchwork.ozlabs.org/api/people/75597/?format=api", "name": "Loktionov, Aleksandr", "email": "aleksandr.loktionov@intel.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/20260327072332.130320-3-aleksandr.loktionov@intel.com/mbox/", "series": [ { "id": 497708, "url": "http://patchwork.ozlabs.org/api/series/497708/?format=api", "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/list/?series=497708", "date": "2026-03-27T07:23:26", "name": "[net] ice: fix PTP Call Trace during PTP release", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/497708/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2216799/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2216799/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<intel-wired-lan-bounces@osuosl.org>", "X-Original-To": [ "incoming@patchwork.ozlabs.org", "intel-wired-lan@lists.osuosl.org" ], "Delivered-To": [ "patchwork-incoming@legolas.ozlabs.org", "intel-wired-lan@lists.osuosl.org" ], "Authentication-Results": [ "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=osuosl.org header.i=@osuosl.org header.a=rsa-sha256\n header.s=default header.b=4q+hChRt;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=osuosl.org\n (client-ip=140.211.166.136; helo=smtp3.osuosl.org;\n envelope-from=intel-wired-lan-bounces@osuosl.org;\n receiver=patchwork.ozlabs.org)" ], "Received": [ "from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fhsZS6n3Hz1xy1\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 27 Mar 2026 18:23:44 +1100 (AEDT)", "from localhost (localhost [127.0.0.1])\n\tby smtp3.osuosl.org (Postfix) with ESMTP id 0A8D961279;\n\tFri, 27 Mar 2026 07:23:43 +0000 (UTC)", "from smtp3.osuosl.org ([127.0.0.1])\n by localhost (smtp3.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP\n id dE9SumXNfbfL; Fri, 27 Mar 2026 07:23:41 +0000 (UTC)", "from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142])\n\tby smtp3.osuosl.org (Postfix) with ESMTP id 3128261246;\n\tFri, 27 Mar 2026 07:23:41 +0000 (UTC)", "from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137])\n by lists1.osuosl.org (Postfix) with ESMTP id 5DA9C2D5\n for <intel-wired-lan@lists.osuosl.org>; Fri, 27 Mar 2026 07:23:39 +0000 (UTC)", "from localhost (localhost [127.0.0.1])\n by smtp4.osuosl.org (Postfix) with ESMTP id 5027E415FA\n for <intel-wired-lan@lists.osuosl.org>; Fri, 27 Mar 2026 07:23:39 +0000 (UTC)", "from smtp4.osuosl.org ([127.0.0.1])\n by localhost (smtp4.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP\n id cQKXGBifPAOq for <intel-wired-lan@lists.osuosl.org>;\n Fri, 27 Mar 2026 07:23:38 +0000 (UTC)", "from mgamail.intel.com (mgamail.intel.com [192.198.163.14])\n by smtp4.osuosl.org (Postfix) with ESMTPS id B6AC641574\n for <intel-wired-lan@lists.osuosl.org>; Fri, 27 Mar 2026 07:23:38 +0000 (UTC)", "from orviesa002.jf.intel.com ([10.64.159.142])\n by fmvoesa108.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 27 Mar 2026 00:23:38 -0700", "from amlin-019-225.igk.intel.com ([10.102.19.225])\n by orviesa002.jf.intel.com with ESMTP; 27 Mar 2026 00:23:37 -0700" ], "X-Virus-Scanned": [ "amavis at osuosl.org", "amavis at osuosl.org" ], "X-Comment": "SPF check N/A for local connections - client-ip=140.211.166.142;\n helo=lists1.osuosl.org; envelope-from=intel-wired-lan-bounces@osuosl.org;\n receiver=<UNKNOWN> ", "DKIM-Filter": [ "OpenDKIM Filter v2.11.0 smtp3.osuosl.org 3128261246", "OpenDKIM Filter v2.11.0 smtp4.osuosl.org B6AC641574" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=osuosl.org;\n\ts=default; t=1774596221;\n\tbh=k8ikWol00aqCz0hdMjf9FVKFkIrUTmSfPwoqSvNLh/Y=;\n\th=From:To:Cc:Date:In-Reply-To:References:Subject:List-Id:\n\t List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe:\n\t From;\n\tb=4q+hChRtMEnv4hm/ilOrro1dvdeOMBYVpFwgKd0sUiFj/e5iZ8ljs13oCzTPxwzw3\n\t Tk4ux7qmAGtCD3RN/eW5tFvGvVMypJbnHhVWd98o7Wi8B0EwsaMq4PtUHt5SgjDCnq\n\t m5HyxIo5f16Jb3rcsSIgY02YiyVg6Hvkvof8AkHJpZBFUPmp1SREmE/0KGuxtjxtDO\n\t tWFpomqbUFaeMFhemE366LpkFC2C0rZIU/FNycSSIseuHLJk65uIWVNxcoUdgffZFA\n\t u0dJPSSBWT0B8904UWB+QgNmQRsjqOUS+WN/zPdhUghbGnsBP4mkVp17IBg1/3bsj0\n\t 1LcLpqOa1RTsg==", "Received-SPF": "Pass (mailfrom) identity=mailfrom; client-ip=192.198.163.14;\n helo=mgamail.intel.com; envelope-from=aleksandr.loktionov@intel.com;\n receiver=<UNKNOWN>", "DMARC-Filter": "OpenDMARC Filter v1.4.2 smtp4.osuosl.org B6AC641574", "X-CSE-ConnectionGUID": [ "kqQMvxwuQTmeYZMiO9dGtg==", "n75L8qjOTGu0+SKFP1n+1g==" ], "X-CSE-MsgGUID": [ "TTRPHrgtQyiAmzUwv8CRcg==", "piRAxftQSTGygULDgvOr3Q==" ], "X-IronPort-AV": [ "E=McAfee;i=\"6800,10657,11741\"; a=\"75733969\"", "E=Sophos;i=\"6.23,143,1770624000\"; d=\"scan'208\";a=\"75733969\"", "E=Sophos;i=\"6.23,143,1770624000\"; d=\"scan'208\";a=\"255739090\"" ], "X-ExtLoop1": "1", "From": "Aleksandr Loktionov <aleksandr.loktionov@intel.com>", "To": "intel-wired-lan@lists.osuosl.org, anthony.l.nguyen@intel.com,\n aleksandr.loktionov@intel.com", "Cc": "netdev@vger.kernel.org,\n\tPaul Greenwalt <paul.greenwalt@intel.com>", "Date": "Fri, 27 Mar 2026 08:23:26 +0100", "Message-ID": "<20260327072332.130320-3-aleksandr.loktionov@intel.com>", "X-Mailer": "git-send-email 2.52.0", "In-Reply-To": "<20260327072332.130320-1-aleksandr.loktionov@intel.com>", "References": "<20260327072332.130320-1-aleksandr.loktionov@intel.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "X-Mailman-Original-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple;\n d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n t=1774596218; x=1806132218;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=Cb0iRpw8DUrofh4A8Mn5ZEEHKUREiiFVzuMgPY67uok=;\n b=lEhhM5n7e/44hG9/kSLHz0pgR45ouN12ExhAmby+KI44G/F0m9/TooMz\n maoiyjNEAbB56gIcsA0GZtHXyhfqSFPNu6S9th/CN+ic5pXWvnun9GVhr\n 6Jiqocx8jGW3R4meQuO+I4gsSSxX5kci8dMe03JezS8BitIQw5MSf86+J\n UQNegLbsSDbZQK/U/ST5M5k55RIes0fxHMoyX7cibcTgSjMINvpng3p75\n 9rP0ugZ0TKdhv8Xwka8gKIgJvGLpE8u9x6e4/nG5U/hCIbWePyoBt9V2O\n g1CyheluI/iWi3leYJ5VRF4AKhhd5PYM3o7QxZLELXbcXts8CmZ1w15JJ\n Q==;", "X-Mailman-Original-Authentication-Results": [ "smtp4.osuosl.org;\n dmarc=pass (p=none dis=none)\n header.from=intel.com", "smtp4.osuosl.org;\n dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com\n header.a=rsa-sha256 header.s=Intel header.b=lEhhM5n7" ], "Subject": "[Intel-wired-lan] [PATCH net] ice: fix PTP Call Trace during PTP\n release", "X-BeenThere": "intel-wired-lan@osuosl.org", "X-Mailman-Version": "2.1.30", "Precedence": "list", "List-Id": "Intel Wired Ethernet Linux Kernel Driver Development\n <intel-wired-lan.osuosl.org>", "List-Unsubscribe": "<https://lists.osuosl.org/mailman/options/intel-wired-lan>,\n <mailto:intel-wired-lan-request@osuosl.org?subject=unsubscribe>", "List-Archive": "<http://lists.osuosl.org/pipermail/intel-wired-lan/>", "List-Post": "<mailto:intel-wired-lan@osuosl.org>", "List-Help": "<mailto:intel-wired-lan-request@osuosl.org?subject=help>", "List-Subscribe": "<https://lists.osuosl.org/mailman/listinfo/intel-wired-lan>,\n <mailto:intel-wired-lan-request@osuosl.org?subject=subscribe>", "Errors-To": "intel-wired-lan-bounces@osuosl.org", "Sender": "\"Intel-wired-lan\" <intel-wired-lan-bounces@osuosl.org>" }, "content": "From: Paul Greenwalt <paul.greenwalt@intel.com>\n\nIf a PF reset occurs when the PTP state is ICE_PTP_UNINIT, then\nice_ptp_rebuild() will update the state to ICE_PTP_ERROR. This will\nresult in the following PTP release call trace during driver unload:\n\n kernel BUG at lib/list_debug.c:52!\n ice_ptp_release+0x332/0x3c0 [ice]\n ice_deinit_features.part.0+0x10e/0x120 [ice]\n ice_remove+0x100/0x220 [ice]\n\nThis was observed when passing PF1 through to a VM. ice_ptp_init()\nfails because ctrl_pf is NULL and sets the state to ICE_PTP_UNINIT.\n\nFix by detecting the ICE_PTP_UNINIT state in ice_ptp_rebuild() and\nreturning without error, preventing the invalid state transition to\nICE_PTP_ERROR. The only valid path to ICE_PTP_ERROR is from\nICE_PTP_RESETTING after a failed rebuild.\n\nFixes: 8293e4cb2ff5 (\"ice: introduce PTP state machine\")\nCc: stable@vger.kernel.org\nSigned-off-by: Paul Greenwalt <paul.greenwalt@intel.com>\nSigned-off-by: Aleksandr Loktionov <aleksandr.loktionov@intel.com>\n---\n\n drivers/net/ethernet/intel/ice/ice_ptp.c | 5 +++++\n 1 file changed, 5 insertions(+)", "diff": "diff --git a/drivers/net/ethernet/intel/ice/ice_ptp.c b/drivers/net/ethernet/intel/ice/ice_ptp.c\nindex 094e962..6848b1c 100644\n--- a/drivers/net/ethernet/intel/ice/ice_ptp.c\n+++ b/drivers/net/ethernet/intel/ice/ice_ptp.c\n@@ -3041,6 +3041,11 @@ void ice_ptp_rebuild(struct ice_pf *pf, enum ice_reset_req reset_type)\n \tstruct ice_ptp *ptp = &pf->ptp;\n \tint err;\n \n+\tif (ptp->state == ICE_PTP_UNINIT) {\n+\t\tdev_dbg(ice_pf_to_dev(pf), \"PTP was not initialized, skipping rebuild\\n\");\n+\t\treturn;\n+\t}\n+\n \tif (ptp->state == ICE_PTP_READY) {\n \t\tice_ptp_prepare_for_reset(pf, reset_type);\n \t} else if (ptp->state != ICE_PTP_RESETTING) {\n", "prefixes": [ "net" ] }