Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp1010141rwb; Sat, 5 Aug 2023 05:46:41 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE217Y9AfdYl1pAsDoAwxlWJXFTDZjrLQ4121DjOTH+XeDLWMKhn7SN37FuYe9gpYryMgVz X-Received: by 2002:a19:2d03:0:b0:4fe:d0f:1f1e with SMTP id k3-20020a192d03000000b004fe0d0f1f1emr2972705lfj.25.1691239601562; Sat, 05 Aug 2023 05:46:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691239601; cv=none; d=google.com; s=arc-20160816; b=nLqWNm9QPkxONU5tw9q3/vC38z2ZnUhsLmLxNow3cqm+oLO3nmIziqKIxTl4TLzBJe L8W4l3vAUG4h8yHJn24YYTJm9EFp9twl9baYRVpOfKPd/xlR7qmW5Mbk3goqE2TTXE4p sx4ggyvBdJdvl/RAeB+yVTygwhDWQ30m8e+5qcEUJzkyLF9MRwFNs0LQxZgwXSeA/GZo O3NEoLXds03P5/d2iaPdl7BoZso36lvNf0Vz7yZoJ2PLp8yfL+ICVgA/1MoDtqggzvmS SWpNZSH1u3FevQurcNPDXAEy4Q9dvdI0HWYWxVkPijnBvX6xtPsWyDqz8BnyvzNcTvXr uuvA== 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=ChO/hu4gXk3ytr9OXDzWdEEuqiPrMkMzsA+As9a/PHk=; fh=WdpvxinqbJ73u9xMvfCH5LIRXNGAdWHMA8RxyvuSS6Y=; b=DrEov1grwclFdAzVIToPy3EsAfeBHlpNqS9GuGT/UNYprPCCc9GXVJuK4X404IqB2c MxcL5d0x7WQbvqJjq0r4ZzNcQahC6vKSiSfjoTEaKiZ4+gY1gnfz43Jk+RsnY4bHj3/w r1g0/At+Dz3W3PRAOY+PvF9ThJJGxtF0ZoYpAwV2yrS34sqiYrlTIO04LcSqdZMei/4x ojLcq4U2cCMmqZbFEoaEzQXzcpLXD6SYcTkpUOST63ik7BPJt9U+dsX0Zk7/iBqKngQt PpBLRTBvfcz82hlwDyZ6NcTpxHExNjVoxc9eMeC9eRmes0qYj1XEtBirQ4CAwvQbtYDr kBNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CDAfg8gK; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h10-20020aa7c60a000000b0052258afdebbsi3011448edq.157.2023.08.05.05.46.16; Sat, 05 Aug 2023 05:46:41 -0700 (PDT) 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=@kernel.org header.s=k20201202 header.b=CDAfg8gK; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229712AbjHELdx (ORCPT + 99 others); Sat, 5 Aug 2023 07:33:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55132 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229511AbjHELdw (ORCPT ); Sat, 5 Aug 2023 07:33:52 -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 02FB4E55 for ; Sat, 5 Aug 2023 04:33:50 -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) server-digest SHA256) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 7493660CBB for ; Sat, 5 Aug 2023 11:33:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 40BAEC433C8; Sat, 5 Aug 2023 11:33:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691235229; bh=BzmzOuQh1iU+dc3h9XOJmPxsH1ETWoPd8fdiuvtrdjU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=CDAfg8gKkeWIOvV2LJQ5QdoOi9YmuwJ0LmWJcG1r3ZSJMPh6U2ZBJKgab1T8T683f I8knNLLFXVpR22H4eAYp269A4BA8ISGygWIue1JwHzx5QV/KmWP8t/RhiqjAvy7feZ IJ3r1gp1y8TTmxd/bP32Gfm2dzHGyQxV/51V6JhZeDv2D2BuJSz1THjXYXfI/cTilz ijIFgW84drX1xNaQUWgpimMCeMJYVTKOFCJX35d+BKCUL7rkrN+HKN9lWH+33z7KVg G4GOiOVeCXxQYtOg5DcmunWdiyW0BmwWkiUWxYKRWyzeapXxNrIEVZmpkdxVmJOILO ma1XUzvcjvK+g== Date: Sat, 5 Aug 2023 13:33:44 +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, Naveen Mamindlapalli Subject: Re: [net-next PATCH] octeontx2-pf: Use PTP HW timestamp counter atomic update feature Message-ID: References: <20230804093014.2729634-1-saikrishnag@marvell.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230804093014.2729634-1-saikrishnag@marvell.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS 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 Fri, Aug 04, 2023 at 03:00:14PM +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 ... > struct npc_get_field_status_req { > diff --git a/drivers/net/ethernet/marvell/octeontx2/af/ptp.c b/drivers/net/ethernet/marvell/octeontx2/af/ptp.c ... > > -static bool is_ptp_tsfmt_sec_nsec(struct ptp *ptp) > +static inline bool is_tstmp_atomic_update_supported(struct rvu *rvu) Hi Sai, Please avoid using the inline keyword for functions in .c files. Unless there is a demonstrable advantage to doing so it should be left up to the compiler to inline or not. ... -- pw-bot: changes-requested