Regression caused by commit bc976233a872, ethernet r8169 stops working after system S3
Hi Thomas,
A user reported [1] that the Realtek ethernet r8169 stops working after S3 since v4.15-rc6. The issue still exists in Linus' tree:
[ 150.877998] IPv6: ADDRCONF(NETDEV_UP): enp1s0: link is not ready [ 150.944101] do_IRQ: 3.37 No irq handler for vector [ 150.944105] r8169 0000:01:00.0 enp1s0: link down [ 150.944180] IPv6: ADDRCONF(NETDEV_UP): enp1s0: link is not ready
My desktop also has this device, which is also affected by this regression. So I did a bisect, and this is the bad commit:bc976233a872 genirq/msi x86/vector: Prevent reservation mode for non maskable MSI
After this commit gets reverted, the issue is gone.
Let me know if you need more debug information.
Kai-Heng
Quoted 8 lines · Kai-Heng Feng
A user reported [1] that the Realtek ethernet r8169 stops working after S3 since v4.15-rc6. The issue still exists in Linus' tree:
[ 150.877998] IPv6: ADDRCONF(NETDEV_UP): enp1s0: link is not ready [ 150.944101] do_IRQ: 3.37 No irq handler for vector [ 150.944105] r8169 0000:01:00.0 enp1s0: link down [ 150.944180] IPv6: ADDRCONF(NETDEV_UP): enp1s0: link is not ready
Quoted 6 lines
My desktop also has this device, which is also affected by this regression. So I did a bisect, and this is the bad commit:
bc976233a872genirq/msi x86/vector: Prevent reservation mode for non maskable MSIAfter this commit gets reverted, the issue is gone.
Sigh. Can you please apply the debug patch below and provide the output of
# cat /proc/interrupts
and full dmesg after resume.
Thanks,
tglx
8<------------------
kernel/irq/cpuhotplug.c +4 -0
@@ -134,6 +134,10 @@ static bool migrate_one_irq(struct irq_d brokeaff = false; } +pr_info ("IRQ%u: New affinity: %*pbl effective: %*pbl\n" , +cpumask_pr_args (affinity), +irq_data_get_effective_affinity_mask (d)); +if (maskchip && chip->irq_unmask) chip->irq_unmask (d);
Quoted 14 lines · Thomas Gleixner
Quoted 13 lines · Kai-Heng Feng
A user reported [1] that the Realtek ethernet r8169 stops working after S3 since v4.15-rc6. The issue still exists in Linus' tree:
[ 150.877998] IPv6: ADDRCONF(NETDEV_UP): enp1s0: link is not ready [ 150.944101] do_IRQ: 3.37 No irq handler for vector [ 150.944105] r8169 0000:01:00.0 enp1s0: link down [ 150.944180] IPv6: ADDRCONF(NETDEV_UP): enp1s0: link is not readyMy desktop also has this device, which is also affected by this regression. So I did a bisect, and this is the bad commit:
bc976233a872genirq/msi x86/vector: Prevent reservation mode for non maskable MSI
Quoted 7 lines
Quoted 1 line
After this commit gets reverted, the issue is gone.
Sigh. Can you please apply the debug patch below and provide the output of
# cat /proc/interruptsand full dmesg after resume.
Weird. I don't see this issue with this debug patch.
dmesg after resume attached.
Quoted 18 lines
Thanks,
tglx
8<------------------
kernel/irq/cpuhotplug.c +4
-0@@ -134,6 +134,10 @@ static bool migrate_one_irq(struct irq_d brokeaff = false; } +pr_info ("IRQ%u: New affinity: %*pbl effective: %*pbl\n" , +cpumask_pr_args (affinity), +irq_data_get_effective_affinity_mask (d)); +if (maskchip && chip->irq_unmask) chip->irq_unmask (d);
Quoted 20 lines · Kai-Heng Feng
Quoted 18 lines · Thomas Gleixner
Quoted 16 lines · Kai-Heng Feng
A user reported [1] that the Realtek ethernet r8169 stops working after S3 since v4.15-rc6. The issue still exists in Linus' tree:
[ 150.877998] IPv6: ADDRCONF(NETDEV_UP): enp1s0: link is not ready [ 150.944101] do_IRQ: 3.37 No irq handler for vector [ 150.944105] r8169 0000:01:00.0 enp1s0: link down [ 150.944180] IPv6: ADDRCONF(NETDEV_UP): enp1s0: link is not readyMy desktop also has this device, which is also affected by this regression. So
I did a bisect, and this is the bad commit:bc976233a872genirq/msi x86/vector: Prevent reservation mode for non maskable
MSIAfter this commit gets reverted, the issue is gone.
Quoted 7 lines
Quoted 5 lines
Sigh. Can you please apply the debug patch below and provide the output of
# cat /proc/interruptsand full dmesg after resume.
Weird. I don't see this issue with this debug patch.
Bah. The patch is broken. New version written with brain awake below.
Thanks,
tglx
8<---------------------
kernel/irq/cpuhotplug.c +4 -0
@@ -134,6 +134,10 @@ static bool migrate_one_irq(struct irq_d brokeaff = false; } +pr_info ("IRQ%u: New affinity: %*pbl effective: %*pbl\n" , + d->irq,cpumask_pr_args (affinity), +cpumask_pr_args (irq_data_get_effective_affinity_mask (d))); +if (maskchip && chip->irq_unmask) chip->irq_unmask (d);
Hi,
Quoted 2 lines · Thomas Gleixner
Bah. The patch is broken. New version written with brain awake below.
Actually I can't reproduce this issue anymore on latest Linus' tree.
I'll do a bisect and ask linux-stable maintainer to include the commit.
Thanks for your help!
Kai-Heng
Quoted 18 lines
Thanks,
tglx
8<---------------------
kernel/irq/cpuhotplug.c +4
-0@@ -134,6 +134,10 @@ static bool migrate_one_irq(struct irq_d brokeaff = false; } +pr_info ("IRQ%u: New affinity: %*pbl effective: %*pbl\n" , + d->irq,cpumask_pr_args (affinity), +cpumask_pr_args (irq_data_get_effective_affinity_mask (d))); +if (maskchip && chip->irq_unmask) chip->irq_unmask (d);