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 smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C0A07D6DDF8 for ; Fri, 15 Nov 2024 12:43:05 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 6FA2E40285; Fri, 15 Nov 2024 12:43:05 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id Hxi4ylNG1Ajq; Fri, 15 Nov 2024 12:43:04 +0000 (UTC) X-Comment: SPF check N/A for local connections - client-ip=140.211.166.142; helo=lists1.osuosl.org; envelope-from=intel-wired-lan-bounces@osuosl.org; receiver= DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 9306340295 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=osuosl.org; s=default; t=1731674584; bh=U41T4AVDI70Y4hbM81wwGvdENZJUx4ErgZhnGut/xFE=; h=Date:From:To:Cc:References:In-Reply-To:Subject:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=cFDP9g0023M6deOb8+MO+1EAr9/Resn6vaFp5nQRmkqEV7vvr1W/Mt8TkuC8qqYE9 ZJzbynyJIF9h8jrDQMpJppA+JB174gnnQjb/jmPrevaBbYxH7eazW9RjoOOViJ9hrg N8TZDQ9iwJf7qFXhzcyEwPKfK43p+1yo8yl4b8mkgIoHTiayiVXi3cP7FRU1JVMbED 1JZgLjh39lbMTXqcArBhyZOnyyVhOEQIvHIY7WyDUNtB5gLMFUKm6yoS0erR29khdr 1CwETIp0QFAfv5kudGoGZkWRkKbaXLtpCp4vOcED4g3nZyvH5NFzFcf5ai5q5Scc+Z +VPrQ52V07m/w== Received: from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142]) by smtp4.osuosl.org (Postfix) with ESMTP id 9306340295; Fri, 15 Nov 2024 12:43:04 +0000 (UTC) Received: from smtp3.osuosl.org (smtp3.osuosl.org [IPv6:2605:bc80:3010::136]) by lists1.osuosl.org (Postfix) with ESMTP id E930E1EB8 for ; Fri, 15 Nov 2024 12:43:02 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id C9B2660B62 for ; Fri, 15 Nov 2024 12:43:02 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id SgpOSLddG3E2 for ; Fri, 15 Nov 2024 12:43:02 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=147.75.193.91; helo=nyc.source.kernel.org; envelope-from=horms@kernel.org; receiver= DMARC-Filter: OpenDMARC Filter v1.4.2 smtp3.osuosl.org 200CE60B54 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 200CE60B54 Received: from nyc.source.kernel.org (nyc.source.kernel.org [147.75.193.91]) by smtp3.osuosl.org (Postfix) with ESMTPS id 200CE60B54 for ; Fri, 15 Nov 2024 12:43:01 +0000 (UTC) Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by nyc.source.kernel.org (Postfix) with ESMTP id A406DA42709; Fri, 15 Nov 2024 12:41:06 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 021F9C4CED4; Fri, 15 Nov 2024 12:42:58 +0000 (UTC) Date: Fri, 15 Nov 2024 12:42:56 +0000 From: Simon Horman To: Milena Olech Cc: intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org, anthony.l.nguyen@intel.com, przemyslaw.kitszel@intel.com, Alexander Lobakin Message-ID: <20241115124256.GN1062410@kernel.org> References: <20241113154616.2493297-1-milena.olech@intel.com> <20241113154616.2493297-3-milena.olech@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20241113154616.2493297-3-milena.olech@intel.com> X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1731674580; bh=cjPI+Yb7+CQvXGS2BSpGx8kfZLNhaUmBB0BYf0BuI9U=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=QtkoF3Iu6eKIc4zwwIztmeXdslDZ+hEDEXcUjXKi/47iWo5ooWSUrfL4mzIMG76R2 QvtYxtrWnAoWA4exKBCJFufMohKgeruF1E2+RovCkTTuo8idNDiCp/LxTRFpWMk1tH mGydlIBrQZ0E769K1hcMwWpfBbYK6uH83WEsLeaCslb4qVGFeTFnQlovG9GUwf3m4g 1rFr3ti/S2/ZYr5lUQjS3RV1HfQlXC6IQVS9AAukns2T0vyr8Qz7nHDT/OoNUaA1cP ocAqDIoEoVdb+O0fUzdO5cFc4B2HRkWS2IuLkiNq7R8Q/WTicaitn7Ut2QFpYKFngm pEaRbE4P6uvXg== X-Mailman-Original-Authentication-Results: smtp3.osuosl.org; dmarc=pass (p=quarantine dis=none) header.from=kernel.org X-Mailman-Original-Authentication-Results: smtp3.osuosl.org; dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=QtkoF3Iu Subject: Re: [Intel-wired-lan] [PATCH iwl-net 02/10] virtchnl: add PTP virtchnl definitions X-BeenThere: intel-wired-lan@osuosl.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Intel Wired Ethernet Linux Kernel Driver Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-wired-lan-bounces@osuosl.org Sender: "Intel-wired-lan" On Wed, Nov 13, 2024 at 04:46:11PM +0100, Milena Olech wrote: > PTP capabilities are negotiated using virtchnl commands. There are two > available modes of the PTP support: direct and mailbox. When the direct > access to PTP resources is negotiated, virtchnl messages returns a set > of registers that allow read/write directly. When the mailbox access to > PTP resources is negotiated, virtchnl messages are used to access > PTP clock and to read the timestamp values. > > Virtchnl API covers both modes and exposes a set of PTP capabilities. > > Using virtchnl API, the driver recognizes also HW abilities - maximum > adjustment of the clock and the basic increment value. > > Additionally, API allows to configure the secondary mailbox, dedicated > exclusively for PTP purposes. > > Reviewed-by: Alexander Lobakin > Signed-off-by: Milena Olech > --- > drivers/net/ethernet/intel/idpf/virtchnl2.h | 302 ++++++++++++++++++++ > 1 file changed, 302 insertions(+) > > diff --git a/drivers/net/ethernet/intel/idpf/virtchnl2.h b/drivers/net/ethernet/intel/idpf/virtchnl2.h ... > +/** > + * struct virtchnl2_ptp_set_dev_clk_time: Associated with message > + * VIRTCHNL2_OP_PTP_SET_DEV_CLK_TIME. > + * @dev_time_ns: Device time value expressed in nanoseconds to set > + * > + * PF/VF sends this message to set the time of the main timer. > + */ > +struct virtchnl2_ptp_set_dev_clk_time { > + __le64 dev_time_ns; > +}; > +VIRTCHNL2_CHECK_STRUCT_LEN(8, virtchnl2_ptp_set_dev_clk_time); > + > +/** > + * struct virtchnl2_ptp_set_dev_clk_time: Associated with message > + * VIRTCHNL2_OP_PTP_ADJ_DEV_CLK_FINE. nit: struct virtchnl2_ptp_adj_dev_clk_fine: Flagged by ./scripts/kernel-doc -none > + * @incval: Source timer increment value per clock cycle > + * > + * PF/VF sends this message to adjust the frequency of the main timer by the > + * indicated scaled ppm. > + */ > +struct virtchnl2_ptp_adj_dev_clk_fine { > + __le64 incval; > +}; > +VIRTCHNL2_CHECK_STRUCT_LEN(8, virtchnl2_ptp_adj_dev_clk_fine); ...