Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp735571rdb; Mon, 29 Jan 2024 17:32:29 -0800 (PST) X-Google-Smtp-Source: AGHT+IHVhDcfoQbINiRZ9HEdsEavVugX2T3iTOxaO1repqqyylRXePy4GtpF3AeEtAzUPWTLjxC0 X-Received: by 2002:a17:902:f693:b0:1d8:f394:da44 with SMTP id l19-20020a170902f69300b001d8f394da44mr2127250plg.69.1706578348897; Mon, 29 Jan 2024 17:32:28 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706578348; cv=pass; d=google.com; s=arc-20160816; b=XrjpL0GW+4l88nBxF7acJ9Cdj0V7qxQruzIMJZSXYD8eOZFuqeyq6R2Ix1+SYb32kU 1S4yJykw+3HCKn3Nor/6z0mJylETFBWaxFvRjnU9zvmq0pxrI0a5zA70EtzyZrvpMQDu 4XB/YjTORX7O8k4ST+aFh1M56uzJz2Uiklhy001ah4gTMHd/zE9BzJCg7YgyCnUgKP5I fxSjo7TzX1bgr9yGbSo1aD2ytc4IkHlcVHT90Mkll4yFf2ofDwietn2hwo5/leQptlUr EtDDilGzR0AiOaw4bVniW7MmtItHXOJb65J9aYpT1SZlSipGsYkyihvGi2BfjbXrRRdY J+Tg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:date:references:in-reply-to:subject:cc:to:from :dkim-signature; bh=FEYnpVJlzC++/HyG/H24jdoAceLkGB7YiPTo/2P/mR8=; fh=VXW4dAMsDxJjUHCPPAIzLI9hF9082piafykNhKoUl3Y=; b=YSjOgxz7LihrhS4c0oybLmrcxcD0kQ2mft+QaQoAKVmrowVT0IJ4Nfj5I+HGjtvwau D2zHB5rB/DfiZy/75HnteDbiXO4FyTHn9tZw2oMqwx+TqJjIuNBNesqMk96bzv/iK/o5 +BHfKTvViRht8XWOqx1TiJPC3EhljA0PrBEjLPBT/aWWS/y5rLaHtDAj4kaDf9urv7ZX dUvTaLzhdnaDREffICJk1xkpVIKtny8fQuUhzs3POxiFw3FnwjhQie0PE79tw1eDhMPP ZyMLjNbqYT5aojW3gfWgH/UFndJyqgwe8k02Mgmr13iTRar5Gtu14l/pOjDLOO+YL6/o i1+g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ATsRK54z; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-43718-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-43718-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id n12-20020a170902d2cc00b001d556872df5si6757574plc.335.2024.01.29.17.32.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jan 2024 17:32:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-43718-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ATsRK54z; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-43718-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-43718-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id CF1E0B22233 for ; Tue, 30 Jan 2024 01:32:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D74AE374E9; Tue, 30 Jan 2024 01:31:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="ATsRK54z" Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.115]) (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 35F9236139; Tue, 30 Jan 2024 01:31:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.55.52.115 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706578284; cv=none; b=Wju+NxR9kHYqhxHswXyB2cPpA+eoLS3BgBul/+Dwr2bvbbDRaoBz/ao1qYbG12tjS5kON/jjBhVFKp8e+chv59a+i+Uz53rRCHe2JrlgH+frKX4xTNHP2IbrMbs3TkV7iIxfhL1DvtWkFDySzc4uuWENSszxbrd/qr9BJVe/VoQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706578284; c=relaxed/simple; bh=pdiLzVVJ6IINEY+dX9MjF6XRC5ht/E67cJ1XtKl6k/k=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=SBsLNsLhkrMSZ5FBirV2E8GG9fNsXhcMiZkafhAG1P+cXGFYyHhMTkAiLtUxXkZ8lIE9syeFvnUJPfoZremJaIQRgcnQ8UQTNmjsiXf+udfA4YyKXpRvgGLr3txtfyJWnQ9HVRlQZ2ZJT5UegWmaK5mujKZK8pSKNNYxl7uN1gg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=ATsRK54z; arc=none smtp.client-ip=192.55.52.115 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1706578282; x=1738114282; h=from:to:cc:subject:in-reply-to:references:date: message-id:mime-version; bh=pdiLzVVJ6IINEY+dX9MjF6XRC5ht/E67cJ1XtKl6k/k=; b=ATsRK54z78W/xVVkXARI+f6mmXmLAB4INi5rioaPWILICsKsZG1/mWyM AC7SezX7p4GhlOzRNlweoROtAMr4rdk/T3oOVBXnm2apU4qhxk9UVb6GI mKhQtQsldoGS3y2BuUKyPDZfklyeZZ4aFlcG7bTqAsqivWPeeUTtZO90W RY8B70TIWPXyc9rK5I/T3IntsPh2iTcsFm+Eb6UJZJwqSwrr/cHHlb67O rsIXSTj3kAq/xXjYp/QwgyPFSi6vGW83B5VgmeiJSeTsTmOZicTVNkcOD qe4Cj6LM+pfC+5d7JfMmM8FmnGB3K2zdKuyOpONNsmJNlMtyrHtmliJFc A==; X-IronPort-AV: E=McAfee;i="6600,9927,10968"; a="402767516" X-IronPort-AV: E=Sophos;i="6.05,227,1701158400"; d="scan'208";a="402767516" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Jan 2024 17:31:13 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10968"; a="788015350" X-IronPort-AV: E=Sophos;i="6.05,227,1701158400"; d="scan'208";a="788015350" Received: from sriramja-mobl.amr.corp.intel.com (HELO vcostago-mobl3) ([10.125.16.208]) by orsmga002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Jan 2024 17:31:12 -0800 From: Vinicius Costa Gomes To: Sai Krishna Gajula , "richardcochran@gmail.com" , "davem@davemloft.net" , "kuba@kernel.org" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Sunil Kovvuri Goutham , Geethasowjanya Akula , Linu Cherian , Hariprasad Kelam , Subbaraya Sundeep Bhatta Cc: Naveen Mamindlapalli Subject: Re: [net-next PATCH] octeontx2: Add PTP clock driver for Octeon PTM clock. In-Reply-To: References: <20240124064156.2577119-1-saikrishnag@marvell.com> <87h6j154yx.fsf@intel.com> Date: Mon, 29 Jan 2024 17:31:12 -0800 Message-ID: <87jznrr4in.fsf@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain Sai Krishna Gajula writes: >> -----Original Message----- >> From: Vinicius Costa Gomes >> Sent: Friday, January 26, 2024 5:41 AM >> To: Sai Krishna Gajula ; >> richardcochran@gmail.com; davem@davemloft.net; kuba@kernel.org; >> netdev@vger.kernel.org; linux-kernel@vger.kernel.org; Sunil Kovvuri >> Goutham ; Geethasowjanya Akula >> ; Linu Cherian ; Hariprasad >> Kelam ; Subbaraya Sundeep Bhatta >> >> Cc: Sai Krishna Gajula ; Naveen Mamindlapalli >> >> Subject: Re: [net-next PATCH] octeontx2: Add PTP clock driver for >> Octeon PTM clock. >> >> Sai Krishna writes: >> >> > The PCIe PTM(Precision time measurement) protocol provides precise >> > coordination of events across multiple components like PCIe host >> > clock, PCIe EP PHC local clocks of PCIe devices. This patch adds >> > support for ptp clock based PTM clock. We can use this PTP device to >> > sync the PTM time with CLOCK_REALTIME or other PTP PHC devices using >> > phc2sys. >> > >> > Signed-off-by: Sai Krishna >> > Signed-off-by: Naveen Mamindlapalli >> > Signed-off-by: Sunil Kovvuri Goutham >> > --- >> >> I can see that the same device id (PCI_DEVID_OCTEONTX2_PTP) is used by a >> ethernet driver. >> >> That brings me a question: why expose a different PTP chardev? In other >> words, why can't you just implement .getcrosststamp() for that ethernet >> device? > > This driver runs on endpoint device and not on the host. > getcrosststamp() needs ART time, frequency details in case of x86 host > system. Our use case is to sync the host's PTP/PTM time to the > endpoint device via PTM interface. Ah! I see. This is for "the other side", cool :-) Cheers, -- Vinicius