🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.kernel.netdev
1 messages
1 total messages Started by Jonas Læborg Mon, 19 Oct 2026 20:50
[BUG] atlantic: AQC113 napi_disable() hangs in aq_nic_stop() after resume from S3, wedging rtnl
#5139
Author: Jonas Læborg
Date: Mon, 19 Oct 2026 20:50
89 lines
11523 bytes
Hi,

On an AQC113 (Antigua) card the atlantic driver intermittently fails to
bring the link back after resume from S3. The next time the interface is
closed, aq_nic_stop() blocks forever in napi_disable() while holding rtnl.
Every following netlink user then blocks too, suspend fails ("Freezing user
space processes failed", 6-23 tasks in D state), and the machine eventually
becomes unusable and needs a hard reset.

Hardware / software
  NIC:      Aquantia AQC113 [1d6a:04c0] rev 03, subsystem ASUS [1043:889a]
            (ASUS XG-C100C V2 add-in card), firmware 1.3.31 (ATL2FW 103001f)
  Link:     5000 Mb/s full duplex
  Board:    ASUS TUF GAMING B650-PLUS WIFI, BIOS 3222 (2025-03-05), AMD
  Kernel:   7.2.9-300.fc45.x86_64 (Fedora 45), also seen on 7.2.8-300.fc45
  Setup:    enp7s0 is the primary slave of an active-backup bond0 managed by
            NetworkManager; backup slave is the onboard RTL8125 (r8169)

Sequence (boot of 2026-10-19)
  18:38  resume from S3: enp7s0 comes back fine ("link change old 0 new 5000")
  19:16  suspend (deep) succeeds; NM releases eno1 only
  19:45  resume: bond0 reports enp7s0 "link status definitely down,
         disabling slave"; eno1 takes over. Unlike every good resume, there
         is no "atlantic: link change old 0 new 5000" afterwards, the link
         never comes back
  21:54  idle suspend: NM releases eno1, then enp7s0 from the bond
         (__bond_release_one -> dev_close). aq_ndev_close() never returns
  21:55  suspend: freezing fails, NetworkManager stuck in D state
         (trace below), PM falls back to s2idle, which fails the same way
  22:12, 22:29  same again; network unusable (DNS timeouts), hard reset at 22:30

The same pattern occurred on 2026-10-08, 2026-10-10 and 2026-10-15 (6-52
failed-suspend traces per boot once it starts). Most suspend/resume cycles
are fine; I have no deterministic reproducer yet.

Hung task (first failed freeze, identical on every retry):

task:NetworkManager  state:D stack:0     pid:1239  tgid:1239  ppid:1      task_flags:0x400100 flags:0x00080803
Call Trace:
 <TASK>
 __schedule+0x2c0/0x6e0
 schedule+0x27/0xa0
 schedule_hrtimeout_range_clock+0x10a/0x160
 usleep_range_state+0x6c/0xa0
 napi_disable_locked+0xdd/0xf0
 napi_disable+0x25/0x40
 aq_nic_stop+0x15c/0x1c0 [atlantic]
 aq_ndev_close+0x1d/0x40 [atlantic]
 __dev_close_many+0xbc/0x210
 netif_close_many+0xb5/0x190
 netif_close+0xa5/0xe0
 dev_close+0x2a/0x80
 __bond_release_one.cold+0x26a/0x3d8 [bonding]
 do_set_master+0x79/0x1d0
 do_setlink.isra.0+0x37d/0xea0
 rtnl_newlink+0x446/0x940
 rtnetlink_rcv_msg+0x3d5/0x4d0
 netlink_rcv_skb+0xcd/0x150
 netlink_unicast+0x29e/0x3d0
 netlink_sendmsg+0x21f/0x470
 ____sys_sendmsg+0x39c/0x3d0
 ___sys_sendmsg+0xe1/0x130
 __sys_sendmsg+0xa4/0x100
 do_syscall_64+0xe2/0x570
 entry_SYSCALL_64_after_hwframe+0x76/0x7e
 </TASK>

Other tasks stuck at the same time are blocked on rtnl (DNS resolver
threads, Chromium/Electron network threads, rtnl_getlink callers).

Other kernel messages around resume:
  ptp ptp0: PM: parent enp7s0 should not be sleeping

It looks as if a NAPI instance is left scheduled (or never re-armed) when
the resume path fails to restore the link, so napi_disable() in
aq_nic_stop() waits for a poll that never completes.

Happy to test patches or collect more data (full dmesg, ethtool -d /
register dumps, or a dynamic-debug run) on the next occurrence.


Thanks,
Jonas
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads