From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 92E9AEE4993 for ; Tue, 22 Aug 2023 07:29:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233406AbjHVH3V (ORCPT ); Tue, 22 Aug 2023 03:29:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43974 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233366AbjHVH3S (ORCPT ); Tue, 22 Aug 2023 03:29:18 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1D927186 for ; Tue, 22 Aug 2023 00:29:16 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 942FE64E6F for ; Tue, 22 Aug 2023 07:29:15 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0E6E1C433C7; Tue, 22 Aug 2023 07:29:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1692689354; bh=GlJaG6ZRX4I+wLZZpdMZ3KFHFXQKGDaXAy2IBBc3GbA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=rjgVnoGJcw74HmYSqB6jRUSxklL0xe0dMpoQ1IbbOzNF5O+BwkgcFUbgkCKQ7tChj F/6JaZh4IvIeNwAagbv/7PWVgxU8cM7KZMcUwjWqTq6wVM9OVHlQhytYWuAGXfRrkJ 9o9bsNCL3trRb85Jjgq/twaGiFlXQGGxFb9LxVAYi8TLZ8CUaxhYXvhlWTuGnzOBFd ljJFeKnL6TS+NOQGJTV1laphANXn1ps5cOm6ugetCjsyL2LWsR3MupSfOctdQkrhul BSJRgf/JzGcAMkrJqavFt/5LoT1dyezUX3tP2/lL6hjwvFLhFxUGcypmbEKI6Mca9/ G5CfjfofiRRIg== Date: Tue, 22 Aug 2023 09:29:09 +0200 From: Simon Horman To: Sai Krishna Cc: davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, sgoutham@marvell.com, gakula@marvell.com, sbhatta@marvell.com, hkelam@marvell.com, richardcochran@gmail.com, kalesh-anakkur.purayil@broadcom.com, leon@kernel.org, Naveen Mamindlapalli Subject: Re: [net-next PATCH v4] octeontx2-pf: Use PTP HW timestamp counter atomic update feature Message-ID: <20230822072909.GM2711035@kernel.org> References: <20230821103629.3799884-1-saikrishnag@marvell.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230821103629.3799884-1-saikrishnag@marvell.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 21, 2023 at 04:06:29PM +0530, Sai Krishna wrote: > Some of the newer silicon versions in CN10K series supports a feature > where in the current PTP timestamp in HW can be updated atomically > without losing any cpu cycles unlike read/modify/write register. > This patch uses this feature so that PTP accuracy can be improved > while adjusting the master offset in HW. There is no need for SW > timecounter when using this feature. So removed references to SW > timecounter wherever appropriate. > > Signed-off-by: Sai Krishna > Signed-off-by: Naveen Mamindlapalli > Signed-off-by: Sunil Kovvuri Goutham > Reviewed-by: Kalesh AP > --- > v4: > - Addressed review comments given by Leon Romanovsky > 1. Unlocked mutex in error conditions. > v3: > - Addressed review comments given by Jakub Kicinski > 1. Fixed re-ordering of headers in alphabetical order > 2. Refactored SoC revision identification logic > 3. CN10K errata revisions can be different from atomic update > supported revision devices. > 4. Removed ptp device check. > v2: > - Addressed review comments given by Simon Horman, Kalesh Anakkur Purayil > 1. Removed inline keyword for function in .c file > 2. Modified/optimized conditions related boolean Reviewed-by: Simon Horman