From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 77DF37F for ; Thu, 24 Aug 2023 20:40:16 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C0BA6C433C7; Thu, 24 Aug 2023 20:40:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1692909615; bh=sThFy8cM/rbLrz7RtjiioPh05v5HydKm+YY+jWATBdA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=JlMRT5GQ2yVUJg9abNW7hHJDhW+IFgayTVedMmWA5pQYTWhNnti/1f9itFwONolwb 8lq2JL02L9z+AYUa13TLe9B21DZ5ypjpSYo98pcvRm1rSA45DpAftj67GxvjIEj0hk wwVTJUkAEsFGxerofPyo544hBFz18wHiIC2iv4z5L15QBlnK93DzbQJM3NdskZl6Kl gKVlID1CfcR9ebTFHKYGBWZi8wZv/5e8CN7gPolwqVP0NPB3fwVo8IN39XxQJuD36P 0IyqM/PIKpA0eCBtOvE+TTII3AuX0fLm44y9UuBzcrQYq0ufuBh8rbYbula6ruvWWO +5ffbmWsw7PSg== Date: Thu, 24 Aug 2023 13:40:14 -0700 From: Saeed Mahameed To: Rahul Rameshbabu Cc: netdev@vger.kernel.org, Jakub Kicinski , Richard Cochran , "David S. Miller" , Paolo Abeni , Vadim Fedorenko , Kenneth Klette Jonassen Subject: Re: [PATCH net] net/mlx5: Dynamic cyclecounter shift calculation for PTP free running clock Message-ID: References: <20230821230554.236210-1-rrameshbabu@nvidia.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20230821230554.236210-1-rrameshbabu@nvidia.com> On 21 Aug 16:05, Rahul Rameshbabu wrote: >Use a dynamic calculation to determine the shift value for the internal >timer cyclecounter that will lead to the highest precision frequency >adjustments. Previously used a constant for the shift value assuming all >devices supported by the driver had a nominal frequency of 1GHz. However, >there are devices that operate at different frequencies. The previous shift >value constant would break the PHC functionality for those devices. > >Reported-by: Vadim Fedorenko >Closes: https://lore.kernel.org/netdev/20230815151507.3028503-1-vadfed@meta.com/ >Fixes: 6a4010927562 ("net/mlx5: Update cyclecounter shift value to improve ptp free running mode precision") >Signed-off-by: Rahul Rameshbabu >Tested-by: Vadim Fedorenko Acked-by: Saeed Mahameed I have nothing else in my queue so just go ahead and apply directly to net. Thanks, Saeed.