Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp1668895rdh; Mon, 25 Sep 2023 22:54:47 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEoUrqjMVpZHbNW6URVGmquZ1sy3rPefPu+48hWsF8jLm4+6Q1Tce1I924oQDbULSQIMlmF X-Received: by 2002:a17:902:7049:b0:1c5:cd1c:46fa with SMTP id h9-20020a170902704900b001c5cd1c46famr8632351plt.36.1695707686967; Mon, 25 Sep 2023 22:54:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695707686; cv=none; d=google.com; s=arc-20160816; b=C7ah8XjY+d4DdblSUXN6b/fGzQEzV8Z/OBWT9hqd4h38JsgAvnwPQwt0Ur9QcgmuzH P7IxPP3vIqke3aBLNeyN7E5EcmxqPrJkWcLxlV+T4yrjHgaXviWfimUgY6E8z7yo559Q hE3687gWBZyHpWGHkczHbvTNM7PDToj73V9M8GuSDYRCSaMUGeqzsLrIpIKRu409u3Te 8L11NZgnnGCUF+f3SBYYO0wPRpspS0ALmAy+kWBgR0v51tgan2ELdBPot5KyzFmJVumH rd1aQXEIa5TQHX3yoViSfpXPscqAzs1XCYkST0Vq9VGi+9cJG/XgFnNu198GxO+v/Z6w 7ZTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=pM1e5CqGLtSFzt89xgsCzEzLz7+kZ9wGL7TkQswKy7Y=; fh=vo1COlNqxA5b8M6/cOj0lZga2tUGSpbgYbnIhjYsmnY=; b=XTgWLC+DPtej9Mz/1R+23Hg31xZkD6hEcAdSECtCGPL1+uBBV6wJJq1UdchLv4L/eE K0IUt7yHcuW3PGDYckZrCf8NBrx0jf8a2BsShDM/w7yTzRwl4hbStWFjf0xIz8W+eugJ ASgxN/TFqqf5KvKykMP6X5TL88yegTBAkT7Xed7eLo2HvQUtvSK+3Z5/njWSWToMsva5 rzCYMx8eGaD8m7F0k/U6nUxeZKyCWQdZvwjG4uWHooI2qKbrNLSooGlI7DCdJVM63mMM d6JkP9W+kxBcIq0/Ip2TTQVPbBAoC4o4DoUbW3UxTRErAJrxfrG5zVLCtjlG63KRSKr0 epow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=rkUPrDB0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id e11-20020a17090301cb00b001bc5a4f56fcsi13274438plh.554.2023.09.25.22.54.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Sep 2023 22:54:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=rkUPrDB0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 1328581A5A5E; Mon, 25 Sep 2023 21:47:28 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233467AbjIZEr2 (ORCPT + 99 others); Tue, 26 Sep 2023 00:47:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42350 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229472AbjIZEr0 (ORCPT ); Tue, 26 Sep 2023 00:47:26 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2045FB8; Mon, 25 Sep 2023 21:47:20 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E2282C433C8; Tue, 26 Sep 2023 04:47:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1695703639; bh=AMClMXoW/SwY9XBZNSxgkg0YbclLYYx39/FwqmsD/P4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=rkUPrDB0Sc8Aa13mYevbDJwYR3shwPRBPjo91IL8D7otbra6/ar4Agns76mXyoPXl eeLGRc3tuiE7WXxMCDYBWAQpvPaTcUqMM658ZkEJ/Mn3e0EzkKCRsBGeBPc1/c+lE0 m3yODV1yBiXYk1aszHeoF3KWwDedd6Iw704oDQ8E= Date: Tue, 26 Sep 2023 06:47:16 +0200 From: Greg KH To: Yajun Deng Cc: Tony Nguyen , Jacob Keller , jesse.brandeburg@intel.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, richardcochran@gmail.com, intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH] i40e: fix the wrong PTP frequency calculation Message-ID: <2023092641-rind-seventh-c99b@gregkh> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,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 agentk.vger.email 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 (agentk.vger.email [0.0.0.0]); Mon, 25 Sep 2023 21:47:28 -0700 (PDT) On Tue, Sep 26, 2023 at 09:54:29AM +0800, Yajun Deng wrote: > > 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. That wasn't very obvious to most of us, perhaps resend it and explicitly ask for acks/reviews so it can be only applied to the 6.1.y tree? thanks, greg k-h