lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID:
 <PAXPR04MB851072E7E1C9F7D5E54440EC8854A@PAXPR04MB8510.eurprd04.prod.outlook.com>
Date: Mon, 14 Jul 2025 13:22:51 +0000
From: Wei Fang <wei.fang@....com>
To: Vladimir Oltean <vladimir.oltean@....com>
CC: Krzysztof Kozlowski <krzk@...nel.org>, "F.S. Peng" <fushi.peng@....com>,
	"devicetree@...r.kernel.org" <devicetree@...r.kernel.org>,
	"netdev@...r.kernel.org" <netdev@...r.kernel.org>,
	"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
	"imx@...ts.linux.dev" <imx@...ts.linux.dev>, "robh@...nel.org"
	<robh@...nel.org>, "krzk+dt@...nel.org" <krzk+dt@...nel.org>,
	"conor+dt@...nel.org" <conor+dt@...nel.org>, "richardcochran@...il.com"
	<richardcochran@...il.com>, Claudiu Manoil <claudiu.manoil@....com>, Clark
 Wang <xiaoning.wang@....com>, "andrew+netdev@...n.ch"
	<andrew+netdev@...n.ch>, "davem@...emloft.net" <davem@...emloft.net>,
	"edumazet@...gle.com" <edumazet@...gle.com>, "kuba@...nel.org"
	<kuba@...nel.org>, "pabeni@...hat.com" <pabeni@...hat.com>
Subject: RE: [PATCH net-next 01/12] dt-bindings: ptp: add bindings for NETC
 Timer

> On Mon, Jul 14, 2025 at 01:43:49PM +0300, Wei Fang wrote:
> > > On Mon, Jul 14, 2025 at 01:28:04PM +0300, Wei Fang wrote:
> > > > I do not understand, the property is to indicate which pin the board is
> > > > used to out PPS signal, as I said earlier, these pins are multiplexed with
> > > > other devices, so different board design may use different pins to out
> > > > this PPS signal.
> > >
> > > Did you look at the 'pins' API in ptp, as used by other drivers, to set
> > > a function per pin?
> >
> > ptp_set_pinfunc()?
> 
> You're in the right area, but ptp_set_pinfunc() is an internal function.
> I was specifically referring to struct ptp_clock_info :: pin_config, the
> verify() function, etc.

I don't think these can meet customer's requirement, the PPS pin depends
on the board design. If I understand correctly, these can only indicate
whether the specified pin index is in range, or whether the pin is already
occupied by another PTP function.

However, these pins are multiplexed with other devices, such as FLEXIO,
CAN, etc. If the board is designed to assign this pin to other devices, then
this pin cannot output the PPS signal. For for this use case, we need to
specify a PPS pin which can output PPS signal.

> 
> > > > The PPS interface (echo x > /sys/class/ptp/ptp0/pps_enable) provided
> > > > by the current PTP framework only supports enabling or disabling the
> > > > PPS signal. This is obviously limited for PTP devices with multiple
> channels.
> > >
> > > For what we call "PPS" I think you should be looking at the periodic
> > > output (perout) function. "PPS" is to emit events towards the local
> > > system.
> >
> > The driver supports both PPS and PEROUT.
> 
> Ok, I noticed patch 3 but missed patch 4. Anyway, the role of
> PTP_CLK_REQ_PPS is to emit events which can be monitored on the
> /dev/ppsN char device. It shouldn't have anything to do with external
> pins.

Is there a doc to stating that PTP_CLK_REQ_PPS is not used for external
pins? As far as I know, some customers/users use PTP_CLK_REQ_PPS to
output PPS signal to sync with other timer devices, for example, a similar
property "fsl,pps-channel" was added to fec.yaml by others before.




Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ