Skip to content

RFC r8169: disable ASPM during NAPI poll

Heiner Kallweit netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest6 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6r8169: use spinlock to protect mac ocp register accessdrivers/net/ethernet/realtek/r8169_main.c+33 -41 reply
2/6r8169: use spinlock to protect access to registers Config2 and Config5drivers/net/ethernet/realtek/r8169_main.c+37 -100 replies
3/6r8169: enable cfg9346 config register access in atomic contextdrivers/net/ethernet/realtek/r8169_main.c+16 -21 reply
4/6r8169: prepare rtl_hw_aspm_clkreq_enable for usage in atomic contextdrivers/net/ethernet/realtek/r8169_main.c+3 -21 reply
5/6r8169: disable ASPM during NAPI polldrivers/net/ethernet/realtek/r8169_main.c+10 -10 replies
6/6r8169: remove ASPM restrictions now that ASPM is disabled during NAPI polldrivers/net/ethernet/realtek/r8169_main.c+1 -262 replies

Reviews trailers per patch

None of the 6 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchKai-Heng FengSimon HormanHolger Hoffstätte
SeriesT-b R-b T-b
1/6
2/6
3/6
4/6
5/6
6/6

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [PATCH RFC 0/6] r8169: disable ASPM during NAPI poll

This is a rework of ideas from Kai-Heng on how to avoid the known ASPM issues whilst still allowing for a maximum of ASPM-related power savings. As a prerequisite some locking is added first.

This change affects a bigger number of supported chip versions, therefore this series comes as RFC first for further testing.

Heiner Kallweit (6):
r8169: use spinlock to protect mac ocp register access
r8169: use spinlock to protect access to registers Config2 and Config5
r8169: enable cfg9346 config register access in atomic context
r8169: prepare rtl_hw_aspm_clkreq_enable for usage in atomic context
r8169: disable ASPM during NAPI poll
r8169: remove ASPM restrictions now that ASPM is disabled during NAPI
poll

 drivers/net/ethernet/realtek/r8169_main.c | 145 +++++++++++++++-------
 1 file changed, 100 insertions(+), 45 deletions(-)
Signature · 1 line
2.39.2