Public bug reported:

[Impact]
When I210 device is runtime suspended, trying to read speed or duplex from 
sysfs causes an error:
[  385.991957] igb 0000:03:00.0 enp3s0: PCIe link lost

[Fix]
Only try to read the device register when it's not runtime suspended.

[Test]
Without the fix:
$ cat /sys/class/net/enp3s0/speed
1000

With the fix:
$ cat /sys/class/net/enp3s0/speed
-1

-1 means "unknown speed", which is the correct status when device is
runtime suspend.

[Regression Potential]
Low. It's a trivial fix which limits to one driver.

** Affects: hwe-next
     Importance: Undecided
         Status: New

** Affects: linux (Ubuntu)
     Importance: Undecided
         Status: New

** Affects: linux-oem-5.6 (Ubuntu)
     Importance: Undecided
         Status: New

** Affects: linux-oem-osp1 (Ubuntu)
     Importance: Undecided
         Status: New

** Affects: linux (Ubuntu Bionic)
     Importance: Undecided
         Status: Won't Fix

** Affects: linux-oem-5.6 (Ubuntu Bionic)
     Importance: Undecided
         Status: Won't Fix

** Affects: linux-oem-osp1 (Ubuntu Bionic)
     Importance: Undecided
         Status: New

** Affects: linux (Ubuntu Focal)
     Importance: Undecided
         Status: New

** Affects: linux-oem-5.6 (Ubuntu Focal)
     Importance: Undecided
         Status: New

** Affects: linux-oem-osp1 (Ubuntu Focal)
     Importance: Undecided
         Status: Won't Fix


** Tags: oem-priority originate-from-1857680 somerville

** Also affects: linux (Ubuntu Focal)
   Importance: Undecided
       Status: New

** Also affects: linux (Ubuntu Bionic)
   Importance: Undecided
       Status: New

** Also affects: linux-oem-osp1 (Ubuntu)
   Importance: Undecided
       Status: New

** Also affects: linux-oem-5.6 (Ubuntu)
   Importance: Undecided
       Status: New

** Changed in: linux-oem-5.6 (Ubuntu Bionic)
       Status: New => Won't Fix

** Changed in: linux-oem-osp1 (Ubuntu Focal)
       Status: New => Won't Fix

** Changed in: linux (Ubuntu Bionic)
       Status: New => Won't Fix

** Tags added: oem-priority originate-from-1857680 somerville

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1880656

Title:
  Fix incorrect speed/duplex when I210 device is runtime suspended

To manage notifications about this bug go to:
https://bugs.launchpad.net/hwe-next/+bug/1880656/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to