xenomai3 pcie网卡偶发性的oops
待解决
报错截图

[ 1954.723628] ------------[ cut here ]------------
[ 1954.723658] NETDEV WATCHDOG: enp6s0 (r8168): transmit queue 0 timed out
[ 1954.723695] WARNING: CPU: 5 PID: 0 at net/sched/sch_generic.c:525 dev_watchdog+0x278/0x290
[ 1954.723713] Modules linked in:
[ 1954.723718] CPU: 5 PID: 0 Comm: swapper/5 Not tainted 6.1.99-xeno #40
[ 1954.723723] Hardware name: Rockchip RK3588 EVB7 V11 Board (DT)
[ 1954.723725] IRQ stage: Linux
[ 1954.723728] pstate: 60400009 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
[ 1954.723734] pc : dev_watchdog+0x278/0x290
[ 1954.723739] lr : dev_watchdog+0x278/0x290
[ 1954.723742] sp : ffffffc00a92bb20
[ 1954.723744] x29: ffffffc00a92bb20 x28: ffffffc009031070 x27: ffffffc00a92bc10
[ 1954.723750] x26: ffffffc009cc9008 x25: 0000000000000000 x24: ffffffc00a278cc0
[ 1954.723756] x23: ffffffc00a276000 x22: 0000000000000000 x21: ffffff81029f039c
[ 1954.723761] x20: ffffff81029f0000 x19: ffffff81029f03c0 x18: 0000000000000030
[ 1954.723766] x17: 3020657565757120 x16: 74696d736e617274 x15: ffffffffffffffff
[ 1954.723771] x14: 0000000000000000 x13: 74756f2064656d69 x12: 7420302065756575
[ 1954.723776] x11: 712074696d736e61 x10: ffffffc00a3436f8 x9 : ffffffc0080f539c
[ 1954.723781] x8 : 0000000000000400 x7 : ffffff8103d83ce8 x6 : 0000000aec40f944
[ 1954.723786] x5 : 00ffffffffffffff x4 : 00000000000e27a5 x3 : ffffffc00a92b830
[ 1954.723791] x2 : 0000000000000000 x1 : 0000000000000000 x0 : ffffff810095c880
[ 1954.723796] Call trace:
[ 1954.723799] dev_watchdog+0x278/0x290
[ 1954.723804] call_timer_fn+0x38/0x1c0
[ 1954.723813] __run_timers.part.0+0x21c/0x2dc
[ 1954.723819] run_timer_softirq+0x40/0x74
[ 1954.723824] handle_softirqs+0x110/0x350
[ 1954.723831] __irq_exit_rcu+0x9c/0xc4
[ 1954.723835] irq_exit+0x14/0x20
[ 1954.723839] arch_do_IRQ_pipelined+0x4c/0x70
[ 1954.723845] sync_current_irq_stage+0x170/0x280
[ 1954.723852] __inband_irq_enable+0x8c/0xb0
[ 1954.723856] inband_irq_enable+0xc/0x14
[ 1954.723861] arch_cpu_idle+0x1c/0x40
[ 1954.723869] default_idle_call+0x58/0x194
[ 1954.723873] do_idle+0xc4/0x130
[ 1954.723879] cpu_startup_entry+0x38/0x40
[ 1954.723883] secondary_start_kernel+0x150/0x1e4
[ 1954.723889] __secondary_switched+0x64/0x68
[ 1954.723894]
PC: 0xffffffc0090312e8:
[ 1954.723896] 10e8 721f003f 54000321 aa1503e0 940d42f3 b4000254 d5384101 b9401020 11000400
[ 1954.723907] 1108 b9001020 12800003 d53cd042 f9420280 8b020000 b823001f d503201f d503201f
[ 1954.723916] 1128 d503201f f9400820 d1000400 b9001020 b50004e0 940d23be a94153f3 a9425bf5
报错的代码位置
# net/sched/sch_generic.c
# static void dev_watchdog(struct timer_list *t) 函数
if (unlikely(some_queue_timedout)) {
trace_net_dev_xmit_timeout(dev, i);
WARN_ONCE(1, KERN_INFO "NETDEV WATCHDOG: %s (%s): transmit queue %u timed out\n",
dev->name, netdev_drivername(dev), i);
netif_freeze_queues(dev);
dev->netdev_ops->ndo_tx_timeout(dev, i);
netif_unfreeze_queues(dev);
}
分析
触发了 网络设备看门狗(NETDEV WATCHDOG)超时,导致内核输出警告(WARNING)。
网络队列调度是表象,,,
应该是中断问题,但是,,,
本文来自博客园,作者:潇汀,转载请注明原文链接:https://www.cnblogs.com/allalonewithyou/p/19283970,个人邮箱:yaonie4444@foxmail.com

浙公网安备 33010602011771号