Skip to content

debug genet issues#7378

Open
nbuchwitz wants to merge 4 commits into
raspberrypi:rpi-6.18.yfrom
nbuchwitz:devel/genet-debug
Open

debug genet issues#7378
nbuchwitz wants to merge 4 commits into
raspberrypi:rpi-6.18.yfrom
nbuchwitz:devel/genet-debug

Conversation

@nbuchwitz
Copy link
Copy Markdown
Contributor

do not merge (yet) - just want the build artifacts

@nbuchwitz
Copy link
Copy Markdown
Contributor Author

@pelwell can you please trigger the build? These three commits are worth a shot

Ryceancurry and others added 4 commits May 19, 2026 08:48
The write_ptr points to the next open tx_cb. We want to return the
tx_cb that gets rewinded, so we must rewind the pointer first then
return the tx_cb that it points to. That way the txcb can be correctly
cleaned up.

Fixes: 876dbad ("net: bcmgenet: Fix unmapping of fragments in bcmgenet_xmit()")
Signed-off-by: Justin Chen <justin.chen@broadcom.com>
Reviewed-by: Nicolai Buchwitz <nb@tipi-net.de>
Link: https://patch.msgid.link/20260406175756.134567-2-justin.chen@broadcom.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
While reclaiming the tx queue we fast forward the write pointer to
drop any data in flight. These dropped frames are not added back
to the pool of free bds. We also need to tell the netdev that we
are dropping said data.

Fixes: f1bacae ("net: bcmgenet: support reclaiming unsent Tx packets")
Signed-off-by: Justin Chen <justin.chen@broadcom.com>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
Reviewed-by: Nicolai Buchwitz <nb@tipi-net.de>
Tested-by: Nicolai Buchwitz <nb@tipi-net.de>
Link: https://patch.msgid.link/20260406175756.134567-3-justin.chen@broadcom.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
The bcmgenet_timeout handler tries to take down all tx queues when
a single queue times out. This is over zealous and causes many race
conditions with queues that are still chugging along. Instead lets
only restart the timed out queue.

Fixes: 13ea657 ("net: bcmgenet: improve TX timeout")
Signed-off-by: Justin Chen <justin.chen@broadcom.com>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
Reviewed-by: Nicolai Buchwitz <nb@tipi-net.de>
Tested-by: Nicolai Buchwitz <nb@tipi-net.de>
Link: https://patch.msgid.link/20260406175756.134567-4-justin.chen@broadcom.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Nicolai Buchwitz <nb@tipi-net.de>
@nbuchwitz nbuchwitz force-pushed the devel/genet-debug branch from 45eaaf0 to d126e15 Compare May 19, 2026 06:51
@nbuchwitz
Copy link
Copy Markdown
Contributor Author

@pelwell please start the build again. d126e15 hopefully will prove more debugging knobs for testing

@pelwell
Copy link
Copy Markdown
Contributor

pelwell commented May 19, 2026

That's ready now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants