Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp99879rwb; Wed, 18 Jan 2023 14:47:37 -0800 (PST) X-Google-Smtp-Source: AMrXdXtEBKbdvui656ZD6x5KbWR8hkaEn/XHtnsKPrvdUB7+X8MIXtsT0J9jzPuqHFfE3e/786QX X-Received: by 2002:a05:6402:138b:b0:46a:3bd0:4784 with SMTP id b11-20020a056402138b00b0046a3bd04784mr9786288edv.7.1674082057511; Wed, 18 Jan 2023 14:47:37 -0800 (PST) Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x1-20020a05640226c100b0049e48d13300si4553549edd.459.2023.01.18.14.47.26; Wed, 18 Jan 2023 14:47:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=XSReatP1; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229796AbjARWW4 (ORCPT + 46 others); Wed, 18 Jan 2023 17:22:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34662 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229446AbjARWWy (ORCPT ); Wed, 18 Jan 2023 17:22:54 -0500 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DFD555FD46; Wed, 18 Jan 2023 14:22:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1674080574; x=1705616574; h=message-id:date:subject:to:cc:references:from: in-reply-to:content-transfer-encoding:mime-version; bh=23Bo2W3nsa3Pgtc807KgNFiG87ig2AIElvhg+xQmNMI=; b=XSReatP1TQYghSOoF7+/etSaEc1crktWeCp0ZQaohGB+RgoN8ZOIhoDe eRFzEnRKJqP41zMR25l0UoWMzJnJDtUM5DVt47HIgVOv9l7xrLqhds2gH sc32c0A+nSC7UfKw/vYnZjfSMZyAgR0xg3l39Z++m98Pyi0S3MqSx3G81 s52n+YIYw70aSIU9CPLYAgl46OUwg/ubTiNi5FBF1V+ZWxciawDp2vX0J XD6TJK6U+2ZNK/aLcXOho2u4/UOL+iMCArAXCMub2nUgIQ4tZr+9JNc3g qxBEaRl20quubO4Y+99kvqHGytoSWBeNGjRPsgonqk3ydajYT8194M5Sm w==; X-IronPort-AV: E=McAfee;i="6500,9779,10594"; a="308678975" X-IronPort-AV: E=Sophos;i="5.97,226,1669104000"; d="scan'208";a="308678975" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Jan 2023 14:22:49 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10594"; a="905286856" X-IronPort-AV: E=Sophos;i="5.97,226,1669104000"; d="scan'208";a="905286856" Received: from fmsmsx602.amr.corp.intel.com ([10.18.126.82]) by fmsmga006.fm.intel.com with ESMTP; 18 Jan 2023 14:22:49 -0800 Received: from fmsmsx603.amr.corp.intel.com (10.18.126.83) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.16; Wed, 18 Jan 2023 14:22:48 -0800 Received: from fmsedg601.ED.cps.intel.com (10.1.192.135) by fmsmsx603.amr.corp.intel.com (10.18.126.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.16 via Frontend Transport; Wed, 18 Jan 2023 14:22:48 -0800 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (104.47.58.105) by edgegateway.intel.com (192.55.55.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.16; Wed, 18 Jan 2023 14:22:48 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Od4vvsnFipR7FLfDtnCyd5wNSpqPa5wQN1j5zxdXxGqYCpryIzDfAQK/jWhDywxOT8JAi8JW0Ivtim0r9IQJnRGaSMj0RigKvcD+PziPMrNDsqT2iBpn1UFrzDWbA09U+ETdabjSU58w1ai0RCqSMGf+rDzdCI2Jb9oRaquWPVI3WhTtA5IL/JNYUJTnFEQPK6+14+3bB32N9PWtlfMlY+OsCsy2eelPfjxm4B1lEFJcsqDM+bc6xZJNSTC18HSZBSYqaawJnnQlpXAHVToZV2lC/LbuDERlDjrh3p4BnqGu6qFQK/ORVVWc+9BH1kuRP64CcKhwgLDT2DGX0X9slQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=dgMEfgqa4vjCFW/hqagYCZlk84x7paAl9J0J1Yz622M=; b=EASkHyxb5esPqwg8KKUhLjoc+B5Ey6Jk+wiqjMEdC95Mli6QnfuhFkpnsn2HI6c5ywNXRV5UgKeBSl8U4J5/yvLC2QSz3LhKxJ2v5WEAuHw4iiPl4IAOoEb1Umnsu/bxoXbeKetviaPor0SE0J5pbd2QJSwjn69uTiLI44Exk21UQo1Pi3FALV8J+uDJ9ba+kuiMV8kCcRdx9lEnsdOShhoaP/XYDRlnmQalByuwGWh2PmulYAhboqoO5daHOjJ81sx5QvUAypYjJa4+dh2teTUePYsLbLae9q4eQaUN75R57jKLylJ9hvdqT0d/5icEup/fTVojzmvbCa+qiqMC+g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from CO1PR11MB5089.namprd11.prod.outlook.com (2603:10b6:303:9b::16) by CY5PR11MB6343.namprd11.prod.outlook.com (2603:10b6:930:3c::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5986.18; Wed, 18 Jan 2023 22:22:47 +0000 Received: from CO1PR11MB5089.namprd11.prod.outlook.com ([fe80::5697:a11e:691e:6acf]) by CO1PR11MB5089.namprd11.prod.outlook.com ([fe80::5697:a11e:691e:6acf%5]) with mapi id 15.20.6002.024; Wed, 18 Jan 2023 22:22:46 +0000 Message-ID: <820cf397-a99e-44d4-cf9e-3ad6876e4d06@intel.com> Date: Wed, 18 Jan 2023 14:22:43 -0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: [Intel-wired-lan] [PATCH] ice/ptp: fix the PTP worker retrying indefinitely if the link went down Content-Language: en-US To: Daniel Vacek CC: Jesse Brandeburg , Tony Nguyen , "David S. Miller" , "Eric Dumazet" , Jakub Kicinski , Paolo Abeni , Richard Cochran , "Kolacinski, Karol" , Siddaraju , "Michalik, Michal" , , , References: <20230117181533.2350335-1-neelx@redhat.com> <2bdeb975-6d45-67bb-3017-f19df62fe7af@intel.com> <42e74619-f2d0-1079-28b1-61e9e17ae953@intel.com> From: Jacob Keller In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-ClientProxiedBy: SJ0PR05CA0066.namprd05.prod.outlook.com (2603:10b6:a03:332::11) To CO1PR11MB5089.namprd11.prod.outlook.com (2603:10b6:303:9b::16) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1PR11MB5089:EE_|CY5PR11MB6343:EE_ X-MS-Office365-Filtering-Correlation-Id: a9ae69c7-656c-4904-2634-08daf9a286ad X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: SN61NyIIJ3RBF+j7h124syd9BltnPPGJyySlfyi8UDCx/c8ReeYxi8IvKtlV1qp9xG6W8TWMLcFjGxGvkL8N9Gjh2j6Cj7KonzbPYirN8KpWW+EqM9mXiIp2zL0oZkz8pKacSWaywOP9Db3kKa4Nzl1PjhdkKAEOixgytUlk9D7yNlZpgUXc/hvkp0QGkdzXKdXB+xdZ6VHGcC7k2mWWm2jBse5/3NDkr39X9gkIQdWWAkXIx0ofno8hOe5TmOyFt7PgLKC7I/ILS0pSWOsAkQjmkoUXn9NdTla7Ad2uTpr9Z3DpPg+DDyjKW0mKkHGUVZSxR0UcPL318Lr0361Hn1XPJ1Ca69KbZ86HpzAYgQW4lNmLdKsYtBnLOvp9IEhwUmXiqUzUsIed4g4lqJWHH1KT/ndg0gNF9YvDJ9If2FsyDf5kTb9nOl1/VPV5KLUaxvys+MyeRsCbpAcIh9o4FsghuER1aytQuxFpUvURI1L/ETEGzTcfBHH+KHVnCydNEdrFnUKYjhkliKE7A8Bg15twSBfEYMmhVjsfzCdThHfhJClorw7DS7BrTHYKDj5v0p9m+H9g12ooRdsw5FkYbJ+wLGD6o3aeI9Tm/NEYfjSCXtmeFi+uTKyVFwQLj7VKOaqvdSKKyEhbCF7hFAJX5ZjBKS10BZLJo8ujZ5ftdm39eHL8diR16+W8XCF+E5Vtf/4mcLO/+ompBFqzZYSMoD069xZ3R+YQmSXnm7H3/Ss= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CO1PR11MB5089.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(396003)(346002)(39860400002)(366004)(376002)(136003)(451199015)(31686004)(26005)(478600001)(6486002)(186003)(6512007)(6506007)(6666004)(2616005)(53546011)(316002)(6916009)(4326008)(8676002)(54906003)(36756003)(8936002)(41300700001)(83380400001)(2906002)(66476007)(66946007)(4744005)(66556008)(38100700002)(31696002)(86362001)(5660300002)(82960400001)(43740500002)(45980500001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?cDJQdVZTQTB6bCtlakc4azRYQ3VBc2JXYWtZaWpmZHdLa1I2Tm1jSG15TGNa?= =?utf-8?B?c0NpaGdseXBhWW5EajFlai9zWkR6a3Ria1FRekJkb2pwUmZFc3hwam9ieVB3?= =?utf-8?B?RGhTbWE1QUpYY3JOdUg2bVNvTEZlVXFoYUVpQXdpcGcvSHlqSnNtZDZoZzQw?= =?utf-8?B?dTFGVmZML1JBSHlJOUdTTEw4bGdKSkRpRjZ3NTJmNTI5SmRxUCtWaUVyTHd2?= =?utf-8?B?RzVCN0JUODNvcjQyRTA5SlpaUFJxQmpidEVJZzh5TVh0SnZTaVBCdUNYcjZ1?= =?utf-8?B?cmswbG9TVTdQSnhxMjk2Y2JsT3kyWGM2Q3dtR1lkamFOVVEvWjNSMU9sQU83?= =?utf-8?B?cDlRdFMvQWlMRlorTFRFMnJEeTl5SzRObnNicTUrTHhNZ0t5UCt1UUdoS0E3?= =?utf-8?B?Y2ptYXFkZFlCbUhyMTM0RzFGTkNtd1d2ZDRybklGRDBhc00rOVcxaXJ3N3pr?= =?utf-8?B?L052NFAxQkZrVXNCQ3A4Y1pHY2V6SHRYQkw2MnFULzZseWk1NDFRL2crTXRr?= =?utf-8?B?Qkc4VG85cllFVCt6aElocUI4SHVFWmlPZGVVL1ZKNnJOMXRjYXhxdWZ6ZlNh?= =?utf-8?B?MmVod3hpbnN1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cWFR?= =?utf-8?B?aWIxSlJtZnR4T3ZFQ0ZCNEQwV09YNzlQajlJd1YxQTIwWmlQeVZQMFJGcDNz?= =?utf-8?B?RVBVZU9mcXl5M0VaVUNMUy83WGtJQWRwVjA1NWFBa1U1S3NlU2ZWWnZNVFlK?= =?utf-8?B?QzRDWERSQ2VWNHBIblVFSllJcHpuUnk5NXZCYVE5bXFROVkwM2tmWGpMNVZU?= =?utf-8?B?ckg5WkFmVTQzd1VmYXdnWEplamloWHZGdXhtbHhuTXp3V0FkSWlLZEcwSUNz?= =?utf-8?B?UFFwdEJJbGd0enVTSlVMQXBiUjUvOXRnYWNIdTlVcEFhTGxITmROdFkwTHcv?= =?utf-8?B?VjR3a1kvVmRNdjMxcFZueGJvUEJLT1Y5YkYwd1Y4ZWNvdGEycGNYMTR2Q0FI?= =?utf-8?B?RVRKQjlxQ0VKTFpLL0pZcC8zRnRnRDdLeDZxeVNJQjl5REFpbmN2MFlISmR2?= =?utf-8?B?RjBsQ3NyT0lDY0dMUDdVODhvSjlWSXVKNVRCYmluTElCSnJuMjdNaTMzdGpD?= =?utf-8?B?L3pqbjQxR0hVdGJpMXhlSGtON2hHYWxxM0VEdk8vaGhQL0RaYnJ6NkZPTldN?= =?utf-8?B?TktrVW0xYUc3emFXWVBNNlVsZERCUDhKQVRIUGlQbkViRTVzNWNWanNlSzdE?= =?utf-8?B?WTFqT01RVXBJWjlGTlhuanltZVE1UXpYckJ1bkpKOC94K2JtR0RhbFBibmEr?= =?utf-8?B?ZXc9PQ==?= X-MS-Exchange-CrossTenant-Network-Message-Id: a9ae69c7-656c-4904-2634-08daf9a286ad X-MS-Exchange-CrossTenant-AuthSource: CO1PR11MB5089.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Jan 2023 22:22:46.8046 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: Xx4CDLeML8o3nUrcH2Y9HxgrjUmsjnHOVA2GmpHmtA1h+/WpkMGH7EojGJ2krrWu4z1htxenA8xjAT6RJhh2QSbd5IGmH67AP9WAGolV+k4= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY5PR11MB6343 X-OriginatorOrg: intel.com X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/18/2023 2:11 PM, Daniel Vacek wrote: > On Wed, Jan 18, 2023 at 9:59 PM Jacob Keller wrote: >> On 1/18/2023 7:14 AM, Daniel Vacek wrote: >> 1) request tx timestamp >> 2) timestamp occurs >> 3) link goes down while processing > > I was thinking this is the case we got reported. But then again, I'm > not really experienced in this field. > I think it might be, or at least something similar to this. I think that can be fixed with the link check you added. I think we actually have a copy of the current link status in the ice_ptp or ice_ptp_tx structure which could be used instead of having to check back to the other structure. I'm just hoping not to re-introduce bugs related to the hardware interrupt counter that we had which results in preventing all future timestamp interrupts. > --nX > >> 1) link down >> 2) request tx timestamp rejected >> >> Thanks! >> >> -Jake >