mirror of
https://git.proxmox.com/git/mirror_ubuntu-kernels.git
synced 2025-11-29 05:08:53 +00:00
In case of drv own fail in reset, we may need to run mac_reset several
times. The sequence would trigger system crash as the log below.
Because we do not re-enable/schedule "tx_napi" before disable it again,
the process would keep waiting for state change in napi_diable(). To
avoid the problem and keep status synchronize for each run, goto final
resource handling if drv own failed.
[ 5857.353423] mt7921e 0000:3b:00.0: driver own failed
[ 5858.433427] mt7921e 0000:3b:00.0: Timeout for driver own
[ 5859.633430] mt7921e 0000:3b:00.0: driver own failed
[ 5859.633444] ------------[ cut here ]------------
[ 5859.633446] WARNING: CPU: 6 at kernel/kthread.c:659 kthread_park+0x11d
[ 5859.633717] Workqueue: mt76 mt7921_mac_reset_work [mt7921_common]
[ 5859.633728] RIP: 0010:kthread_park+0x11d/0x150
[ 5859.633736] RSP: 0018:ffff8881b676fc68 EFLAGS: 00010202
......
[ 5859.633766] Call Trace:
[ 5859.633768] <TASK>
[ 5859.633771] mt7921e_mac_reset+0x176/0x6f0 [mt7921e]
[ 5859.633778] mt7921_mac_reset_work+0x184/0x3a0 [mt7921_common]
[ 5859.633785] ? mt7921_mac_set_timing+0x520/0x520 [mt7921_common]
[ 5859.633794] ? __kasan_check_read+0x11/0x20
[ 5859.633802] process_one_work+0x7ee/0x1320
[ 5859.633810] worker_thread+0x53c/0x1240
[ 5859.633818] kthread+0x2b8/0x370
[ 5859.633824] ? process_one_work+0x1320/0x1320
[ 5859.633828] ? kthread_complete_and_exit+0x30/0x30
[ 5859.633834] ret_from_fork+0x1f/0x30
[ 5859.633842] </TASK>
Cc: stable@vger.kernel.org
Fixes:
|
||
|---|---|---|
| .. | ||
| mt76x0 | ||
| mt76x2 | ||
| mt7603 | ||
| mt7615 | ||
| mt7915 | ||
| mt7921 | ||
| agg-rx.c | ||
| debugfs.c | ||
| dma.c | ||
| dma.h | ||
| eeprom.c | ||
| Kconfig | ||
| mac80211.c | ||
| Makefile | ||
| mcu.c | ||
| mmio.c | ||
| mt76_connac2_mac.h | ||
| mt76_connac_mac.c | ||
| mt76_connac_mcu.c | ||
| mt76_connac_mcu.h | ||
| mt76_connac.h | ||
| mt76.h | ||
| mt76x02_beacon.c | ||
| mt76x02_debugfs.c | ||
| mt76x02_dfs.c | ||
| mt76x02_dfs.h | ||
| mt76x02_dma.h | ||
| mt76x02_eeprom.c | ||
| mt76x02_eeprom.h | ||
| mt76x02_mac.c | ||
| mt76x02_mac.h | ||
| mt76x02_mcu.c | ||
| mt76x02_mcu.h | ||
| mt76x02_mmio.c | ||
| mt76x02_phy.c | ||
| mt76x02_phy.h | ||
| mt76x02_regs.h | ||
| mt76x02_trace.c | ||
| mt76x02_trace.h | ||
| mt76x02_txrx.c | ||
| mt76x02_usb_core.c | ||
| mt76x02_usb_mcu.c | ||
| mt76x02_usb.h | ||
| mt76x02_util.c | ||
| mt76x02.h | ||
| pci.c | ||
| sdio_txrx.c | ||
| sdio.c | ||
| sdio.h | ||
| testmode.c | ||
| testmode.h | ||
| trace.c | ||
| trace.h | ||
| tx.c | ||
| usb_trace.c | ||
| usb_trace.h | ||
| usb.c | ||
| util.c | ||
| util.h | ||