From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from relay5-d.mail.gandi.net (relay5-d.mail.gandi.net [217.70.183.197]) (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 83C36188CD8; Fri, 15 Nov 2024 09:13:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.197 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731661986; cv=none; b=e13/q+dbS2JqazEIBhghxj+ESdzOCpLJx3I8Jgv0CdHM9CR4DpWH7jVlo1oSywwzb+u9CiUgOahLOGRiYZIPbe0mSY+k62+vXYMI9xu+qwwLj+B1oTo3PVibeT1aIlNnY69gmSwBCFV/XbhI/cGE89bTRYzqsO1PyJXZUOAHOdk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731661986; c=relaxed/simple; bh=QsI/3Ha5rhxQCj1sLq7ej0Wjb7E9/WTx/ofKg1hjq/0=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=dNFbQSI5nyEiE/F6ZFbJDTPOuVP4rK8r3+E/R41tBH0MxyJ564iVPUBLxFMqSjVJNLH9VlZbo9J0xjUcdRB0cz1ZqVwVfcJr3doIWshh9vf71la67h3pXI2C8/4o4U9/rpBk4jPWAxXdTeJm4DRKfOZoC51wlV+2up/ay2UMyqo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=APVQaXVj; arc=none smtp.client-ip=217.70.183.197 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="APVQaXVj" Received: by mail.gandi.net (Postfix) with ESMTPSA id EBB591C000A; Fri, 15 Nov 2024 09:12:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1731661981; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=1tCKgsw5mO3MHwzTtn95V8anwpIV8qQqwPzP1acmtXQ=; b=APVQaXVjo/LSYd4+xRqmFl1A9WBWKDlAY1a9/agm4vbBS3KaoxD8ikVoIpRrwIwTmy80n7 ThId5bX78yYvD9yD90A+O05zV77U96jV22rR+KShYZPADaddte5vpti6H5IYBvORI/8nCF Z8z37D0FGNraVvBCiThYmrk9T1Woyk99cKt7kbQicq+J2xjJguh93vt3BvZRdi9EfKOI+O 2WqO7clzSL+zUnAtzS9S+AVjDXPDIeChP29wy3pZCesTXL0oxssPvpXizjVzI8EzhK2kg1 KFFuXx8fwk8Kmw4MRzM8Gkkh2W/9/T4uY3GyGHpt5RjC/etOSdtS6Zlz44+EGg== Date: Fri, 15 Nov 2024 10:12:56 +0100 From: Kory Maincent To: Jakub Kicinski Cc: Florian Fainelli , Broadcom internal kernel review list , Andrew Lunn , Heiner Kallweit , Russell King , "David S. Miller" , Eric Dumazet , Paolo Abeni , Richard Cochran , Radu Pirea , Jay Vosburgh , Andy Gospodarek , Nicolas Ferre , Claudiu Beznea , Willem de Bruijn , Jonathan Corbet , Horatiu Vultur , UNGLinuxDriver@microchip.com, Simon Horman , Vladimir Oltean , donald.hunter@gmail.com, danieller@nvidia.com, ecree.xilinx@gmail.com, Andrew Lunn , Thomas Petazzoni , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-doc@vger.kernel.org, Maxime Chevallier , Rahul Rameshbabu , Willem de Bruijn , Shannon Nelson , Alexandra Winter , Jacob Keller Subject: Re: [PATCH net-next v19 03/10] ptp: Add phc source and helpers to register specific PTP clock or get information Message-ID: <20241115101256.34300900@kmaincent-XPS-13-7390> In-Reply-To: <20241114173906.71e9e6fb@kernel.org> References: <20241030-feature_ptp_netnext-v19-0-94f8aadc9d5c@bootlin.com> <20241030-feature_ptp_netnext-v19-3-94f8aadc9d5c@bootlin.com> <20241111150609.2b0425f6@kernel.org> <20241112111232.1637f814@kmaincent-XPS-13-7390> <20241112182226.2a6c8bab@kernel.org> <20241113113808.4f8c5a0b@kmaincent-XPS-13-7390> <20241113163925.7b3bd3d9@kernel.org> <20241114114610.1eb4a5da@kmaincent-XPS-13-7390> <20241114173906.71e9e6fb@kernel.org> Organization: bootlin X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.33; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-GND-Sasl: kory.maincent@bootlin.com On Thu, 14 Nov 2024 17:39:06 -0800 Jakub Kicinski wrote: > On Thu, 14 Nov 2024 11:46:10 +0100 Kory Maincent wrote: > [...] =20 > > >=20 > > > In net_device? Yes, I think so. =20 > > =20 > > Also as the "user" is not described in the ptp_clock structure the only= way > > to find it is to roll through all the PTP of the concerned net device > > topology. This find ptp loop will not be in the hotpath but only when > > getting the tsinfo of a PHC or changing the current PHC. Is it ok for y= ou? =20 >=20 > I think so :) We need to be able to figure out if it's the MAC PHC > quickly, because MAC timestamping can be high rate. But IIUC PHY > timestamping will usually involve async work and slow buses, so > walking all PHYs of a netdev should be fine. Especially that 99% > of the time there will only be one. Hope I understood the question.. Yes, thanks for the confirmation.=20 Regards, --=20 K=C3=B6ry Maincent, Bootlin Embedded Linux and kernel engineering https://bootlin.com