Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp1591192rdh; Mon, 25 Sep 2023 18:54:47 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF+dYpCr9dpwewQuCEM9ef1U03nDdKxkyfQv+GOdW2BZHv0ke7hO/fnPH8QcwXtTbcnxo3w X-Received: by 2002:a05:6a00:3912:b0:68f:bb16:d16a with SMTP id fh18-20020a056a00391200b0068fbb16d16amr1968348pfb.5.1695693287404; Mon, 25 Sep 2023 18:54:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695693287; cv=none; d=google.com; s=arc-20160816; b=gddvNztbHzhGOAUOqB+9rqMIlsL3biaps9IKNbumHJx05RUo+oeWa4++i6vcU8BW/K umb/OOp2a2aua9B1E4O/4DX+I9HIKAg9yOrolDxkCqzX3TyCk0wlSQdgKyQ7cbFWXGwG QHDEXGXZoKeyAiZ94UN4ieWADHkRCAwn/pfBk5LbwmlQrplvnbj3xeW0i7tJBkU/SHsb vswbtSY/ue98RtoqlEDqjVwnQA9vdR8UuqpQno8w0ZOSdah4QLa83QzMQEoL2You+hju vGQr9M7wH1tMfJzFo11Y1DeWIJmQ8qlMU497g6inphX2/HgPmDQEyKfeIyDOQ7LF0VvY GdFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:mime-version:date :dkim-signature:message-id; bh=ufzb6Q0ueCOMPAPRFaFdRhM3aTpkv2BWqJuSSkbzkI8=; fh=1BGlOQBY//tmLRJFe0fXQZJHbwUitn5Un/g6tviV82w=; b=FpFPJvuSP6H5AfHuJljGdKXyS+bfTjcvqudGk0wYxe3AYLQYjXLKPoi+ku6icSAJJA MIYtKADvkLCe7tBYJi/Vc5G/zCV/jwxHKHNDwJsfEwB5qlfDaDT1leD1LBYEDs/IM2mU JECB96sBWF0QwPJibl0TnpWizUBQLAB7fpA3ZDnyMU0+FZsTogZ5mkUlScGhIX4UdS2+ HPz70hEyFClzfxvtQ+eHwOOUOyFmKrWweJJrJxb8yOo483TLRGxntPZ/bC6f2npRaDi+ rd1IjrJlAPqRDAJQXmA5nHguEWSAK5Kml1Y+ja9R1zoD6bY4YjD+u2n3hEbiX+dFFHX3 yDaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=jvH9uXw7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id p20-20020a056a000a1400b006902507d409si12341231pfh.174.2023.09.25.18.54.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Sep 2023 18:54:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=jvH9uXw7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 7E8DC831303E; Mon, 25 Sep 2023 18:54:45 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230054AbjIZByt (ORCPT + 99 others); Mon, 25 Sep 2023 21:54:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55524 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229501AbjIZBys (ORCPT ); Mon, 25 Sep 2023 21:54:48 -0400 Received: from out-194.mta1.migadu.com (out-194.mta1.migadu.com [95.215.58.194]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 549C710E for ; Mon, 25 Sep 2023 18:54:42 -0700 (PDT) Message-ID: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1695693280; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ufzb6Q0ueCOMPAPRFaFdRhM3aTpkv2BWqJuSSkbzkI8=; b=jvH9uXw7nezAG9r0ukkLe3Z59PNuYljD/apS3isX3wIoOAT1qdv4Nb6X2B3d9TBwbdb6xU r27pWgb241Lm7ect9ttQMogWrTjTe9qkA8CUcEVOOvlxqUhCgYhuSF5d91Z+RChN8jzwJI /PwKsNIUHPJpXd4ui8UQYtg7zCK2NkI= Date: Tue, 26 Sep 2023 09:54:29 +0800 MIME-Version: 1.0 Subject: Re: [PATCH] i40e: fix the wrong PTP frequency calculation To: Tony Nguyen , Jacob Keller , jesse.brandeburg@intel.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, richardcochran@gmail.com Cc: intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org References: <20230627022658.1876747-1-yajun.deng@linux.dev> <10269e86-ed8a-0b09-a39a-a5239a1ba744@intel.com> <72bfc00f-7c60-f027-61cb-03084021c218@linux.dev> <9e1b824f-04d3-4acb-66d3-a5f90afbad0e@intel.com> Content-Language: en-US X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Yajun Deng In-Reply-To: <9e1b824f-04d3-4acb-66d3-a5f90afbad0e@intel.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_OUT X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Mon, 25 Sep 2023 18:54:45 -0700 (PDT) On 2023/9/26 07:59, Tony Nguyen wrote: > On 9/25/2023 12:55 AM, Yajun Deng wrote: >> >> On 2023/6/28 04:20, Jacob Keller wrote: >>> >>> On 6/26/2023 7:26 PM, Yajun Deng wrote: >>>> The new adjustment should be based on the base frequency, not the >>>> I40E_PTP_40GB_INCVAL in i40e_ptp_adjfine(). >>>> >>>> This issue was introduced in commit 3626a690b717 ("i40e: use >>>> mul_u64_u64_div_u64 for PTP frequency calculation"), and was fixed in >>>> commit 1060707e3809 ("ptp: introduce helpers to adjust by scaled >>>> parts per million"). However the latter is a new feature and hasn't >>>> been >>>> backported to the stable releases. >>>> >>>> This issue affects both v6.0 and v6.1 versions, and the v6.1 >>>> version is >>>> an LTS version. >>>> > > ... > >>> >>> Thanks for finding and fixing this mistake. I think its the simplest >>> fix >>> to get into the stable kernel that are broken, since taking the >>> adjust_by_scaled_ppm version would require additional patches. >>> >>> Reviewed-by: Jacob Keller >>> >> Kindly ping... > > As this patch looks to be for stable, you need to follow the process > for that. I believe your situation would fall into option 3: > https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html#option-3 > > Yes, it needs an upstream commit ID. But this patch didn't need to apply to the upstream. As the commit of the patch, the issue was fixed in commit 1060707e3809 ("ptp: introduce helpers to adjust by scaled parts per million"). However the commit is a new feature and hasn't been backported to the stable releases. Therefore, the patch does not have an upstream commit ID, and only needs to be applied to stable. > Thanks, > Tony