ACK: [PATCH 0/6 V2][SRU][Lunar] Fix only reach PC3 when ethernet is plugged r8169

Andrei Gherzan andrei.gherzan at canonical.com
Mon Jun 5 09:50:59 UTC 2023


On 23/06/05 11:27AM, Koba Ko wrote:
> BugLink: https://bugs.launchpad.net/bugs/1946433
> 
> [impact]
> Restrictions on enabling ASPM prevented power savings when the network is not fully loaded. 
> Keeping ASPM enabled during NAPI poll can cause issues 
> like rx_missed errors or tx timeouts on some chip versions. 
> The root causes of these issues are unknown.
> 
> [fix] 
> - Remove unnecessary ASPM restrictions to allow enabling ASPM more often, increasing power savings.
> - Disable ASPM during NAPI poll to avoid issues on some chip versions.
> 
> [test cases]
> 1. don't ping or make data transacation through ethernet.
> 2. check /sys/kernel/debug/pmc_core_package_cstate_show
> 
> [where the issue could happen]
> low, this increases both performance and stablility.
> 
> [Misc]
> All patches landed on unstable.
> 
> ~~~
> V2: SRUed the cleaner version that have landsed on vanilla kernel.
> 
> 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

All patches landed in 6.4-rc1, they have no known bugs introduced and
they all apply cleanly on our trees.

Acked-by: Andrei Gherzan <andrei.gherzan at canonical.com>

> 
>  drivers/net/ethernet/realtek/r8169_main.c | 145 +++++++++++++++-------
>  1 file changed, 100 insertions(+), 45 deletions(-)
> 
> -- 
> 2.25.1

-- 
Andrei Gherzan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/kernel-team/attachments/20230605/43e56982/attachment-0001.sig>


More information about the kernel-team mailing list