[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Z37BONVrIY0tadzz@pengutronix.de>
Date: Wed, 8 Jan 2025 19:17:28 +0100
From: Oleksij Rempel <o.rempel@...gutronix.de>
To: Jakub Kicinski <kuba@...nel.org>
Cc: Kory Maincent <kory.maincent@...tlin.com>,
Andrew Lunn <andrew+netdev@...n.ch>,
"David S. Miller" <davem@...emloft.net>,
Eric Dumazet <edumazet@...gle.com>, Paolo Abeni <pabeni@...hat.com>,
Simon Horman <horms@...nel.org>,
Donald Hunter <donald.hunter@...il.com>,
Jonathan Corbet <corbet@....net>,
Liam Girdwood <lgirdwood@...il.com>,
Mark Brown <broonie@...nel.org>,
Thomas Petazzoni <thomas.petazzoni@...tlin.com>,
linux-kernel@...r.kernel.org, netdev@...r.kernel.org,
linux-doc@...r.kernel.org, Kyle Swenson <kyle.swenson@....tech>,
Dent Project <dentproject@...uxfoundation.org>,
kernel@...gutronix.de,
Maxime Chevallier <maxime.chevallier@...tlin.com>
Subject: Re: [PATCH net-next 11/14] net: pse-pd: Add support for PSE device
index
On Wed, Jan 08, 2025 at 09:42:01AM -0800, Jakub Kicinski wrote:
> On Wed, 8 Jan 2025 06:47:10 +0100 Oleksij Rempel wrote:
> > On Tue, Jan 07, 2025 at 05:18:34PM -0800, Jakub Kicinski wrote:
> > > On Sat, 04 Jan 2025 23:27:36 +0100 Kory Maincent wrote:
> > > > From: Kory Maincent (Dent Project) <kory.maincent@...tlin.com>
> > > >
> > > > Add support for a PSE device index to report the PSE controller index to
> > > > the user through ethtool. This will be useful for future support of power
> > > > domains and port priority management.
> > >
> > > Can you say more? How do the PSE controllers relate to netdevs?
> > > ethtool is primarily driven by netdev / ifindex.
> > > If you're starting to build your own object hierarchy you may be
> > > better off with a separate genl family.
> >
> > I hope this schema may help to explain the topology:
> >
> > +--- netdev / ifindex 0
> > +--- PSE power domain 0 --+--- netdev / ifindex 1
> > | +--- netdev / ifindex 2
> > PSE ctrl 0 -+
> > | +--- netdev / ifindex 3
> > +--- PSE power domain 1 --+--- netdev / ifindex 4
> > +--- netdev / ifindex 5
> >
> > +--- netdev / ifindex 6
> > +--- PSE power domain 2 --+--- netdev / ifindex 7
> > | +--- netdev / ifindex 8
> > PSE ctrl 1 -+
> > | +--- netdev / ifindex 9
> > +--- PSE power domain 3 --+--- netdev / ifindex 10
> > +--- netdev / ifindex 11
> >
> > PSE device index is needed to find actually PSE controller related to
> > specific netdev / ifindex.
>
> Makes sense. So how does it end up looking in terms of APIs
> and attributes? Will we need much more than power limits at
> the domain and ctrl level?
The PSE power domains are based on regulator framework. So, we will get
some diagnostic and may be control API on this side.
The PSE controller will need some configuration and diagnostic
interfaces. For example:
- not port specific configurations
- not port specific diagnostics
Every thing port related can be passed to the netdev
--
Pengutronix e.K. | |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
Powered by blists - more mailing lists