Thread View: linux.kernel.netdev
1 messages
1 total messages
Started by Oleksij Rempel
Wed, 21 Oct 2026 05:17
Re: [PATCH net v2 01/14] net: pse-pd: size the notification kfifo after defaulting nr_lines
Author: Oleksij Rempel
Date: Wed, 21 Oct 2026 05:17
Date: Wed, 21 Oct 2026 05:17
26 lines
12125 bytes
12125 bytes
On Tue, Oct 20, 2026 at 07:12:36PM +0200, Carlo Szelinsky wrote:
> pse_controller_register() allocates the notification kfifo before it
> turns nr_lines == 0 into 1, and kfifo_alloc() fails for a size below 2.
> So a controller with nr_lines 0 or 1 cannot register. pse_regulator
> (podl-pse-regulator) never sets nr_lines, so its probe has failed with
> -EINVAL ever since the kfifo was added.
>
> Apply the default first, and allocate at least two entries.
>
> Triggered in QEMU (arm64) with a test-only PSE controller with
> nr_lines 0: its probe failed with "failed to allocate kfifo
> notifications". With this patch it registers.
>
> Fixes: ffef61d6d273 ("net: pse-pd: Add support for budget evaluation strategies")
> Reviewed-by: Kory Maincent <kory.maincent@bootlin.com>
> Signed-off-by: Carlo Szelinsky <github@szelinsky.de>
Acked-by: Oleksij Rempel <o.rempel@pengutronix.de>
Thank you!
--
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 |
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads