mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Kory Maincent <kory.maincent@bootlin.com>
To: Jakub Kicinski <kuba@kernel.org>
Cc: Oleksij Rempel <o.rempel@pengutronix.de>,
	Andrew Lunn <andrew+netdev@lunn.ch>,
	"David S. Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@google.com>,
	Paolo Abeni <pabeni@redhat.com>, Jiri Pirko <jiri@resnulli.us>,
	Simon Horman <horms@kernel.org>, Jonathan Corbet <corbet@lwn.net>,
	Donald Hunter <donald.hunter@gmail.com>,
	kernel@pengutronix.de,
	Dent Project <dentproject@linuxfoundation.org>,
	Thomas Petazzoni <thomas.petazzoni@bootlin.com>,
	netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
	Maxime Chevallier <maxime.chevallier@bootlin.com>,
	linux-doc@vger.kernel.org, Kyle Swenson <kyle.swenson@est.tech>,
	Luka Perkov <luka.perkov@sartura.hr>,
	Robert Marko <robert.marko@sartura.hr>,
	Sridhar Rao <srao@linuxfoundation.org>
Subject: Re: [PATCH net-next v3 0/5] net: pse-pd: pd692x0: Add permanent configuration management support
Date: Tue, 23 Sep 2025 11:04:51 +0200	[thread overview]
Message-ID: <20250923110451.6d402a79@kmaincent-XPS-13-7390> (raw)
In-Reply-To: <20250922110220.4909e58b@kernel.org>

On Mon, 22 Sep 2025 11:02:20 -0700
Jakub Kicinski <kuba@kernel.org> wrote:

> On Mon, 22 Sep 2025 18:20:02 +0200 Kory Maincent wrote:
>  [...]  
> > > 
> > > Right, subjectively I focused on the last sentence of Oleksij's reply.
> > > I vote we leave it out for now.    
> > 
> > I would like to restart the discussion as I have one more argument besides
> > the boot time optimization coming from Luka Perkov in CC.
> > 
> > According to him, not having this feature supported also brings an issue
> > across reboot:
> > "When a network switch reboots, any devices receiving Power over
> > Ethernet (PoE) from that switch will lose power unless the PoE
> > configuration is persisted across the reboot cycle. This creates a
> > significant operational impact: WiFi access points and other
> > PoE-powered devices will experience an unplanned hard power loss,
> > forcing them offline without any opportunity for graceful shutdown.
> > 
> > The critical issue is not the impact on the switch itself, but rather
> > the cascading effect on all dependent infrastructure. Without
> > kernel-level persistence of PoE settings, a simple switch reboot
> > (whether for maintenance, updates, or recovery) forces all connected
> > PoE devices into an abrupt power cycle. This results in extended
> > downtime as these devices must complete their full boot sequence once
> > power is restored, rather than remaining operational throughout the
> > switch's reboot process."  
> 
> Any sort of hot reset that maintains the pre-existing configuration 
> and doesn't issue resets is orthogonal to storing the configuration
> into the flash.

Indeed if the switch reboot and the PSE lose its power supply, the devices will
in any cases face a power loss. While if the PSE does not lose its power the
configuration won't be reset whether there is a permanent configuration or
not. We just need to detect during the boot if the port matrix has already
been flashed to not reconfigure all the ports.  
This argument is indeed not relevant.

Luka any other arguments in favor of permanent configuration support?

Regards,
-- 
Köry Maincent, Bootlin
Embedded Linux and kernel engineering
https://bootlin.com

  reply	other threads:[~2025-09-23  9:05 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-09-15 17:06 Kory Maincent
2025-09-15 17:06 ` [PATCH net-next v3 1/5] net: pse-pd: pd692x0: Replace __free macro with explicit kfree calls Kory Maincent
2025-09-15 17:06 ` [PATCH net-next v3 2/5] net: pse-pd: pd692x0: Separate configuration parsing from hardware setup Kory Maincent
2025-09-15 17:06 ` [PATCH net-next v3 3/5] docs: devlink: Sort table of contents alphabetically Kory Maincent
2025-09-15 17:06 ` [PATCH net-next v3 4/5] devlink: Add devlink-conf uAPI for NV memory management Kory Maincent
2025-09-15 17:06 ` [PATCH net-next v3 5/5] net: pse-pd: pd692x0: Add devlink interface for configuration save/reset Kory Maincent
2025-09-16 23:54 ` [PATCH net-next v3 0/5] net: pse-pd: pd692x0: Add permanent configuration management support Jakub Kicinski
2025-09-17  9:46   ` Kory Maincent
2025-09-17 21:19     ` Jakub Kicinski
2025-09-22 16:20       ` Kory Maincent
2025-09-22 18:02         ` Jakub Kicinski
2025-09-23  9:04           ` Kory Maincent [this message]
2025-09-17  0:20 ` patchwork-bot+netdevbpf

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250923110451.6d402a79@kmaincent-XPS-13-7390 \
    --to=kory.maincent@bootlin.com \
    --cc=andrew+netdev@lunn.ch \
    --cc=corbet@lwn.net \
    --cc=davem@davemloft.net \
    --cc=dentproject@linuxfoundation.org \
    --cc=donald.hunter@gmail.com \
    --cc=edumazet@google.com \
    --cc=horms@kernel.org \
    --cc=jiri@resnulli.us \
    --cc=kernel@pengutronix.de \
    --cc=kuba@kernel.org \
    --cc=kyle.swenson@est.tech \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=luka.perkov@sartura.hr \
    --cc=maxime.chevallier@bootlin.com \
    --cc=netdev@vger.kernel.org \
    --cc=o.rempel@pengutronix.de \
    --cc=pabeni@redhat.com \
    --cc=robert.marko@sartura.hr \
    --cc=srao@linuxfoundation.org \
    --cc=thomas.petazzoni@bootlin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®