mbox series

[0/7] Fix an issue that makes r8169 fails to work after

Message ID 20180524043520.6624-1-kai.heng.feng@canonical.com
Headers show
Series Fix an issue that makes r8169 fails to work after | expand

Message

Kai-Heng Feng May 24, 2018, 4:35 a.m. UTC
BugLink: https://bugs.launchpad.net/bugs/1752772

[Impact]
Ethernet r8169 stops working after system resumed from suspend.

[Test]
User confirmed these patches fix the issue. r8169 continues to work
after resume from suspend.

[Fix]
Patch 6/7 is the commit that fixes the issue.
Patch 7/7 fixes 6/7, also includes it.
Patches [1-5]/7 are dependencies to make 6/7 a clean cherry-pick.
Disabling WOL as default should be okay, here's the commit log:
"
Vast majority of users doesn't use WOL even if the BIOS enables it in
the chip. And having WOL being active keeps the PHY(s) from powering
down if being idle.
If somebody needs WOL, he can enable it during boot, e.g. by
configuring systemd.link/WakeOnLan.
"

[Regression Potential]
Medium. The fix is limited to one device, all patches are in mainline.
The WOL default change might cause regression for users that depend on
BIOS settings. We can advice them to use userspace tool (systemd,
ethtool, etc.) instead.

Heiner Kallweit (7):
  PCI: Add pcim_set_mwi(), a device-managed pci_set_mwi()
  r8169: switch to device-managed functions in probe
  r8169: remove netif_napi_del in probe error path
  r8169: remove some WOL-related dead code
  r8169: disable WOL per default
  r8169: improve interrupt handling
  r8169: fix interrupt number after adding support for MSI-X interrupts

 drivers/net/ethernet/realtek/r8169.c | 178 +++++++--------------------
 drivers/pci/pci.c                    |  25 ++++
 include/linux/pci.h                  |   1 +
 3 files changed, 72 insertions(+), 132 deletions(-)

Comments

Stefan Bader June 4, 2018, 10:03 p.m. UTC | #1
On 23.05.2018 21:35, Kai-Heng Feng wrote:
> BugLink: https://bugs.launchpad.net/bugs/1752772
> 
> [Impact]
> Ethernet r8169 stops working after system resumed from suspend.
> 
> [Test]
> User confirmed these patches fix the issue. r8169 continues to work
> after resume from suspend.
> 
> [Fix]
> Patch 6/7 is the commit that fixes the issue.
> Patch 7/7 fixes 6/7, also includes it.
> Patches [1-5]/7 are dependencies to make 6/7 a clean cherry-pick.
> Disabling WOL as default should be okay, here's the commit log:
> "
> Vast majority of users doesn't use WOL even if the BIOS enables it in
> the chip. And having WOL being active keeps the PHY(s) from powering
> down if being idle.
> If somebody needs WOL, he can enable it during boot, e.g. by
> configuring systemd.link/WakeOnLan.
> "
> 
> [Regression Potential]
> Medium. The fix is limited to one device, all patches are in mainline.
> The WOL default change might cause regression for users that depend on
> BIOS settings. We can advice them to use userspace tool (systemd,
> ethtool, etc.) instead.
> 
> Heiner Kallweit (7):
>   PCI: Add pcim_set_mwi(), a device-managed pci_set_mwi()
>   r8169: switch to device-managed functions in probe
>   r8169: remove netif_napi_del in probe error path
>   r8169: remove some WOL-related dead code
>   r8169: disable WOL per default
>   r8169: improve interrupt handling
>   r8169: fix interrupt number after adding support for MSI-X interrupts
> 
>  drivers/net/ethernet/realtek/r8169.c | 178 +++++++--------------------
>  drivers/pci/pci.c                    |  25 ++++
>  include/linux/pci.h                  |   1 +
>  3 files changed, 72 insertions(+), 132 deletions(-)
> 
Which kernel/series does this set target? Neither the submission nor the bug
report clearly say this.

-Stefan
Kai-Heng Feng June 5, 2018, 3:41 a.m. UTC | #2
> On Jun 5, 2018, at 6:03 AM, Stefan Bader <stefan.bader@canonical.com>  
> wrote:
>
> On 23.05.2018 21:35, Kai-Heng Feng wrote:
>> BugLink: https://bugs.launchpad.net/bugs/1752772
>>
>> [Impact]
>> Ethernet r8169 stops working after system resumed from suspend.
>>
>> [Test]
>> User confirmed these patches fix the issue. r8169 continues to work
>> after resume from suspend.
>>
>> [Fix]
>> Patch 6/7 is the commit that fixes the issue.
>> Patch 7/7 fixes 6/7, also includes it.
>> Patches [1-5]/7 are dependencies to make 6/7 a clean cherry-pick.
>> Disabling WOL as default should be okay, here's the commit log:
>> "
>> Vast majority of users doesn't use WOL even if the BIOS enables it in
>> the chip. And having WOL being active keeps the PHY(s) from powering
>> down if being idle.
>> If somebody needs WOL, he can enable it during boot, e.g. by
>> configuring systemd.link/WakeOnLan.
>> "
>>
>> [Regression Potential]
>> Medium. The fix is limited to one device, all patches are in mainline.
>> The WOL default change might cause regression for users that depend on
>> BIOS settings. We can advice them to use userspace tool (systemd,
>> ethtool, etc.) instead.
>>
>> Heiner Kallweit (7):
>>   PCI: Add pcim_set_mwi(), a device-managed pci_set_mwi()
>>   r8169: switch to device-managed functions in probe
>>   r8169: remove netif_napi_del in probe error path
>>   r8169: remove some WOL-related dead code
>>   r8169: disable WOL per default
>>   r8169: improve interrupt handling
>>   r8169: fix interrupt number after adding support for MSI-X interrupts
>>
>>  drivers/net/ethernet/realtek/r8169.c | 178 +++++++--------------------
>>  drivers/pci/pci.c                    |  25 ++++
>>  include/linux/pci.h                  |   1 +
>>  3 files changed, 72 insertions(+), 132 deletions(-)
> Which kernel/series does this set target? Neither the submission nor the  
> bug
> report clearly say this.

Sorry I missed that.
This is for Bionic.
Should I send a V2 for this?

Kai-Heng

>
> -Stefan
Kleber Sacilotto de Souza June 5, 2018, 10:19 p.m. UTC | #3
On 05/23/18 21:35, Kai-Heng Feng wrote:
> BugLink: https://bugs.launchpad.net/bugs/1752772
> 
> [Impact]
> Ethernet r8169 stops working after system resumed from suspend.
> 
> [Test]
> User confirmed these patches fix the issue. r8169 continues to work
> after resume from suspend.
> 
> [Fix]
> Patch 6/7 is the commit that fixes the issue.
> Patch 7/7 fixes 6/7, also includes it.
> Patches [1-5]/7 are dependencies to make 6/7 a clean cherry-pick.
> Disabling WOL as default should be okay, here's the commit log:
> "
> Vast majority of users doesn't use WOL even if the BIOS enables it in
> the chip. And having WOL being active keeps the PHY(s) from powering
> down if being idle.
> If somebody needs WOL, he can enable it during boot, e.g. by
> configuring systemd.link/WakeOnLan.
> "
> 
> [Regression Potential]
> Medium. The fix is limited to one device, all patches are in mainline.
> The WOL default change might cause regression for users that depend on
> BIOS settings. We can advice them to use userspace tool (systemd,
> ethtool, etc.) instead.
> 
> Heiner Kallweit (7):
>   PCI: Add pcim_set_mwi(), a device-managed pci_set_mwi()
>   r8169: switch to device-managed functions in probe
>   r8169: remove netif_napi_del in probe error path
>   r8169: remove some WOL-related dead code
>   r8169: disable WOL per default
>   r8169: improve interrupt handling
>   r8169: fix interrupt number after adding support for MSI-X interrupts
> 
>  drivers/net/ethernet/realtek/r8169.c | 178 +++++++--------------------
>  drivers/pci/pci.c                    |  25 ++++
>  include/linux/pci.h                  |   1 +
>  3 files changed, 72 insertions(+), 132 deletions(-)
> 

It's a relatively large number of patches as prereq, but they seem
reasonable.

I have added the nomination for Bionic on the Launchpad bug and no
changes are needed on the patches themselves, so no need for a
re-submission.

So for Bionic:

Acked-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
Stefan Bader June 7, 2018, 9:34 p.m. UTC | #4
On 23.05.2018 21:35, Kai-Heng Feng wrote:
> BugLink: https://bugs.launchpad.net/bugs/1752772
> 
> [Impact]
> Ethernet r8169 stops working after system resumed from suspend.
> 
> [Test]
> User confirmed these patches fix the issue. r8169 continues to work
> after resume from suspend.
> 
> [Fix]
> Patch 6/7 is the commit that fixes the issue.
> Patch 7/7 fixes 6/7, also includes it.
> Patches [1-5]/7 are dependencies to make 6/7 a clean cherry-pick.
> Disabling WOL as default should be okay, here's the commit log:
> "
> Vast majority of users doesn't use WOL even if the BIOS enables it in
> the chip. And having WOL being active keeps the PHY(s) from powering
> down if being idle.
> If somebody needs WOL, he can enable it during boot, e.g. by
> configuring systemd.link/WakeOnLan.
> "
> 
> [Regression Potential]
> Medium. The fix is limited to one device, all patches are in mainline.
> The WOL default change might cause regression for users that depend on
> BIOS settings. We can advice them to use userspace tool (systemd,
> ethtool, etc.) instead.
> 
> Heiner Kallweit (7):
>   PCI: Add pcim_set_mwi(), a device-managed pci_set_mwi()
>   r8169: switch to device-managed functions in probe
>   r8169: remove netif_napi_del in probe error path
>   r8169: remove some WOL-related dead code
>   r8169: disable WOL per default
>   r8169: improve interrupt handling
>   r8169: fix interrupt number after adding support for MSI-X interrupts
> 
>  drivers/net/ethernet/realtek/r8169.c | 178 +++++++--------------------
>  drivers/pci/pci.c                    |  25 ++++
>  include/linux/pci.h                  |   1 +
>  3 files changed, 72 insertions(+), 132 deletions(-)
> 
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Khalid Elmously June 8, 2018, 9:53 p.m. UTC | #5
Applied to Bionic


On 2018-05-24 12:35:13 , Kai-Heng Feng wrote:
> BugLink: https://bugs.launchpad.net/bugs/1752772
> 
> [Impact]
> Ethernet r8169 stops working after system resumed from suspend.
> 
> [Test]
> User confirmed these patches fix the issue. r8169 continues to work
> after resume from suspend.
> 
> [Fix]
> Patch 6/7 is the commit that fixes the issue.
> Patch 7/7 fixes 6/7, also includes it.
> Patches [1-5]/7 are dependencies to make 6/7 a clean cherry-pick.
> Disabling WOL as default should be okay, here's the commit log:
> "
> Vast majority of users doesn't use WOL even if the BIOS enables it in
> the chip. And having WOL being active keeps the PHY(s) from powering
> down if being idle.
> If somebody needs WOL, he can enable it during boot, e.g. by
> configuring systemd.link/WakeOnLan.
> "
> 
> [Regression Potential]
> Medium. The fix is limited to one device, all patches are in mainline.
> The WOL default change might cause regression for users that depend on
> BIOS settings. We can advice them to use userspace tool (systemd,
> ethtool, etc.) instead.
> 
> Heiner Kallweit (7):
>   PCI: Add pcim_set_mwi(), a device-managed pci_set_mwi()
>   r8169: switch to device-managed functions in probe
>   r8169: remove netif_napi_del in probe error path
>   r8169: remove some WOL-related dead code
>   r8169: disable WOL per default
>   r8169: improve interrupt handling
>   r8169: fix interrupt number after adding support for MSI-X interrupts
> 
>  drivers/net/ethernet/realtek/r8169.c | 178 +++++++--------------------
>  drivers/pci/pci.c                    |  25 ++++
>  include/linux/pci.h                  |   1 +
>  3 files changed, 72 insertions(+), 132 deletions(-)
> 
> -- 
> 2.17.0
> 
> 
> -- 
> kernel-team mailing list
> kernel-team@lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/kernel-team