🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.kernel.netdev
1 messages
1 total messages Started by Nicolai Buchwitz Thu, 19 Nov 2026 11:45
Re: [PATCH net-next v7 3/3] net: macb: distribute evenly Tx SRAM segments
#19126
Author: Nicolai Buchwitz
Date: Thu, 19 Nov 2026 11:45
30 lines
10007 bytes
Hi Théo

On 18.11.2026 21:53, Théo Lebrun wrote:
> GEM has registers to configure the Tx SRAM segments distribution across
> active queues. The reset value is appropriate (even spread) but we need
> to care if/when number of active queues is modified (or if we inherited
> unevenly initialised hardware from bootloader).
> 
> To distribute segments, we take as input the number of queues (current
> context num_queues) and the number of segments (found inside DCFG6).
> Its output is a number of segments for each queue, formatted as
> powers-of-two. For example, 2 for queue 0 means it has 2^2=4 segments.
> 
> We define register offset GEM_TXQSEGALLOC_UPPER which is never used.
> It shall be used when an IP supports >8 number of queues.
> 
> Note that the manual mentions explicitly that only active queues are
> taken into account. So when we write 0x1 in TXQSEGALLOC and a single
> queue is active, this means we assign (1<<1) == 2 segments to the
> first (active) queue and none on the others.
> 
> Signed-off-by: Théo Lebrun <theo.lebrun@bootlin.com>

> [...]

Reviewed-by: Nicolai Buchwitz <nb@tipi-net.de>

Thanks,
Nicolai
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