<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Ethernet Napi Tx/Rx processing on iMX8mp (kthread starved for 4990 jiffies) in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Ethernet-Napi-Tx-Rx-processing-on-iMX8mp-kthread-starved-for/m-p/1400970#M185961</link>
    <description>&lt;P&gt;Any news about reproducing the problem? Do it only affect me?&lt;/P&gt;</description>
    <pubDate>Tue, 18 Jan 2022 13:45:34 GMT</pubDate>
    <dc:creator>etienne_lorrain</dc:creator>
    <dc:date>2022-01-18T13:45:34Z</dc:date>
    <item>
      <title>Ethernet Napi Tx/Rx processing on iMX8mp (kthread starved for 4990 jiffies)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Ethernet-Napi-Tx-Rx-processing-on-iMX8mp-kthread-starved-for/m-p/1388878#M184657</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I get "rcu_preempt self-detected stall on CPU" with the following stack dump when trying to broadcast quite a lot of netconsole message (to a non-local network) over a 100 kbytes/s Ethernet.&lt;BR /&gt;&lt;BR /&gt;[ 69.619386] netpoll: netconsole: local port 6665&lt;BR /&gt;[ 69.624048] netpoll: netconsole: local IPv4 address 10.2.6.32&lt;BR /&gt;[ 69.629806] netpoll: netconsole: interface 'eth0'&lt;BR /&gt;[ 69.634533] netpoll: netconsole: remote port 6666&lt;BR /&gt;[ 69.639242] netpoll: netconsole: remote IPv4 address 10.255.255.254&lt;BR /&gt;[ 69.645518] netpoll: netconsole: remote ethernet address ff:ff:ff:ff:ff:ff&lt;BR /&gt;[ 70.708711] ddrc freq set to low bus mode&lt;BR /&gt;[ 90.688112] rcu: INFO: rcu_preempt self-detected stall on CPU&lt;BR /&gt;[ 90.688116] rcu: 2-...!: (1 GPs behind) idle=58a/1/0x4000000000000002 softirq=3896/3897 fqs=114&lt;BR /&gt;[ 90.688118] (t=5250 jiffies g=6721 q=5614)&lt;BR /&gt;[ 90.688121] rcu: rcu_preempt kthread starved for 4990 jiffies! g6721 f0x0 RCU_GP_WAIT_FQS(5) -&amp;gt;state=0x0 -&amp;gt;cpu=1&lt;BR /&gt;[ 90.688123] rcu: Unless rcu_preempt kthread gets sufficient CPU time, OOM is now expected behavior.&lt;BR /&gt;[ 90.688125] rcu: RCU grace-period kthread stack dump:&lt;BR /&gt;[ 90.688127] task:rcu_preempt state:R running task stack: 0 pid: 11 ppid: 2 flags:0x00000028&lt;BR /&gt;[ 90.688133] Call trace:&lt;BR /&gt;[ 90.688134] __switch_to+0x100/0x160&lt;BR /&gt;[ 90.688135] __schedule+0x25c/0x6d0&lt;BR /&gt;[ 90.688137] schedule+0x70/0x104&lt;BR /&gt;[ 90.688138] schedule_timeout+0x84/0xfc&lt;BR /&gt;[ 90.688140] rcu_gp_kthread+0x4d8/0xaa0&lt;BR /&gt;[ 90.688141] kthread+0x154/0x160&lt;BR /&gt;[ 90.688143] ret_from_fork+0x10/0x30&lt;BR /&gt;[ 90.688144] Task dump for CPU 2:&lt;BR /&gt;[ 90.688145] task:modprobe state:R running task stack: 0 pid: 2801 ppid: 802 flags:0x00400002&lt;BR /&gt;[ 90.688151] Call trace:&lt;BR /&gt;[ 90.688153] dump_backtrace+0x0/0x1d0&lt;BR /&gt;[ 90.688154] show_stack+0x18/0x70&lt;BR /&gt;[ 90.688155] sched_show_task+0x144/0x170&lt;BR /&gt;[ 90.688157] dump_cpu_task+0x44/0x54&lt;BR /&gt;[ 90.688158] rcu_dump_cpu_stacks+0xb0/0xf0&lt;BR /&gt;[ 90.688160] rcu_sched_clock_irq+0x994/0xc9c&lt;BR /&gt;[ 90.688161] update_process_times+0x60/0xa0&lt;BR /&gt;[ 90.688163] tick_sched_handle+0x34/0x60&lt;BR /&gt;[ 90.688164] tick_sched_timer+0x4c/0xa4&lt;BR /&gt;[ 90.688167] __hrtimer_run_queues+0x140/0x1e0&lt;BR /&gt;[ 90.688169] hrtimer_interrupt+0xe8/0x2c0&lt;BR /&gt;[ 90.688171] arch_timer_handler_phys+0x38/0x50&lt;BR /&gt;[ 90.688172] handle_percpu_devid_irq+0x84/0x150&lt;BR /&gt;[ 90.688174] __handle_domain_irq+0x7c/0xe0&lt;BR /&gt;[ 90.688175] gic_handle_irq+0xc0/0x140&lt;BR /&gt;[ 90.688176] el1_irq+0xc4/0x180&lt;BR /&gt;[ 90.688178] net_rx_action+0x110/0x440&lt;BR /&gt;[ 90.688179] _stext+0x124/0x290&lt;BR /&gt;[ 90.688180] do_softirq+0x80/0x90&lt;BR /&gt;[ 90.688182] __local_bh_enable_ip+0x8c/0xa0&lt;BR /&gt;[ 90.688184] _raw_spin_unlock_bh+0x38/0x60&lt;BR /&gt;[ 90.688186] stmmac_napi_poll_tx+0x404/0x614&lt;BR /&gt;[ 90.688188] netpoll_poll_dev+0xfc/0x1c0&lt;BR /&gt;[ 90.688191] netpoll_send_skb+0x22c/0x290&lt;BR /&gt;[ 90.688192] netpoll_send_udp+0x210/0x3b0&lt;BR /&gt;[ 90.688195] write_msg+0xf0/0x120 [netconsole]&lt;BR /&gt;[ 90.688196] console_unlock+0x36c/0x460&lt;BR /&gt;[ 90.688197] register_console+0x174/0x2c0&lt;BR /&gt;[ 90.688199] init_netconsole+0x1ac/0x1000 [netconsole]&lt;BR /&gt;[ 90.688201] do_one_initcall+0x54/0x1b0&lt;BR /&gt;[ 90.688202] do_init_module+0x58/0x250&lt;BR /&gt;[ 90.688204] load_module+0x22a0/0x2914&lt;BR /&gt;[ 90.688206] __do_sys_init_module+0x210/0x24c&lt;BR /&gt;[ 90.688208] __arm64_sys_init_module+0x1c/0x2c&lt;BR /&gt;[ 90.688209] el0_svc_common.constprop.0+0x78/0x1a0&lt;BR /&gt;[ 90.688211] do_el0_svc_compat+0x1c/0x50&lt;BR /&gt;[ 90.688212] el0_svc_compat+0x14/0x20&lt;BR /&gt;[ 90.688213] el0_sync_compat_handler+0x90/0x150&lt;BR /&gt;[ 90.688215] el0_sync_compat+0x17c/0x180&lt;BR /&gt;[ 91.212534] rcu: INFO: rcu_preempt detected expedited stalls on CPUs/tasks: { 2-... } 5312 jiffies s: 293 root: 0x4/.&lt;BR /&gt;[ 91.212553] rcu: blocking rcu_node structures:&lt;BR /&gt;[ 91.212557] Task dump for CPU 2:&lt;BR /&gt;[ 91.212561] task:modprobe state:R running task stack: 0 pid: 2801 ppid: 802 flags:0x00400002&lt;BR /&gt;[ 91.212569] Call trace:&lt;BR /&gt;[ 91.212583] __switch_to+0x100/0x160&lt;BR /&gt;[ 91.212589] 0x9f009a73dc14e400&lt;/P&gt;&lt;P&gt;I am not sure to interpret those logs correctly, but it seem there is a mix of Tx/Rx Ethernet processing using NAPI on the same core and it doesn't feel right, is the Ethernet driver handling all the corner cases?&lt;/P&gt;&lt;P&gt;The result is usually watchdog trigger reboot or some kind of processor freeze.&lt;BR /&gt;Not enabling netconsole is a temporary fix, then Ethernet doesn't show any problem, for as long as tested (at least hours).&lt;/P&gt;&lt;P&gt;Best Regards, Etienne.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Dec 2021 15:16:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Ethernet-Napi-Tx-Rx-processing-on-iMX8mp-kthread-starved-for/m-p/1388878#M184657</guid>
      <dc:creator>etienne_lorrain</dc:creator>
      <dc:date>2021-12-17T15:16:07Z</dc:date>
    </item>
    <item>
      <title>Re: Ethernet Napi Tx/Rx processing on iMX8mp (kthread starved for 4990 jiffies)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Ethernet-Napi-Tx-Rx-processing-on-iMX8mp-kthread-starved-for/m-p/1390438#M184837</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Which version of BSP are you using?&lt;/P&gt;
&lt;P&gt;Which board are you using?&lt;/P&gt;
&lt;P&gt;How you test it? so we may try to reproduce it on our board.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Jimmy&lt;/P&gt;</description>
      <pubDate>Wed, 22 Dec 2021 04:08:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Ethernet-Napi-Tx-Rx-processing-on-iMX8mp-kthread-starved-for/m-p/1390438#M184837</guid>
      <dc:creator>jimmychan</dc:creator>
      <dc:date>2021-12-22T04:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: Ethernet Napi Tx/Rx processing on iMX8mp (kthread starved for 4990 jiffies)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Ethernet-Napi-Tx-Rx-processing-on-iMX8mp-kthread-starved-for/m-p/1390849#M184894</link>
      <description>&lt;P&gt;I am using BSP version 5.10.35-2.0.0 , with a board built in-house inside the company.&lt;/P&gt;&lt;P&gt;Hopefully you can reproduce with any iMX8mp board having a working Ethernet, maybe even with latest BSP.&lt;BR /&gt;Connect that network at 100 Mb/s, even if the network is not on 10.255.255.255 network (my configuration is not connected to such network).&lt;BR /&gt;Then check the Linux kernel has "CONFIG_NETCONSOLE=m".&lt;/P&gt;&lt;P&gt;Then executing:&lt;/P&gt;&lt;P&gt;static_ip=10.45.62.149&lt;BR /&gt;syslogsrv_iface=eth0&lt;BR /&gt;syslogsrv_ip=10.255.255.254&lt;BR /&gt;syslogsrv_mac=ff:ff:ff:ff:ff:ff&lt;BR /&gt;modprobe netconsole netconsole="6665@$static_ip/$syslogsrv_iface,6666@$syslogsrv_ip/$syslogsrv_mac"&lt;BR /&gt;Then generate a bit of log:&lt;BR /&gt;{ logread 2&amp;gt;/dev/null || cat /var/log/messages; } | logger -t "rc.syslog" -p debug&lt;/P&gt;&lt;P&gt;That should be sufficient.&lt;BR /&gt;I am sorry I will be unresponsive during the holidays season.&lt;/P&gt;&lt;P&gt;Have a good Xmas and new year.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Dec 2021 16:03:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Ethernet-Napi-Tx-Rx-processing-on-iMX8mp-kthread-starved-for/m-p/1390849#M184894</guid>
      <dc:creator>etienne_lorrain</dc:creator>
      <dc:date>2021-12-22T16:03:28Z</dc:date>
    </item>
    <item>
      <title>Re: Ethernet Napi Tx/Rx processing on iMX8mp (kthread starved for 4990 jiffies)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Ethernet-Napi-Tx-Rx-processing-on-iMX8mp-kthread-starved-for/m-p/1394771#M185439</link>
      <description>&lt;P&gt;Are you able to reproduce, or is it a local problem of mine?&lt;/P&gt;&lt;P&gt;Note that my local board do not even have 10.45.62.149 defined in ifconfig:&lt;BR /&gt;# ip addr&lt;BR /&gt;1: lo: &amp;lt;LOOPBACK,UP,LOWER_UP&amp;gt; mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000&lt;BR /&gt;link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00&lt;BR /&gt;inet 127.0.0.1/8 brd 127.255.255.255 scope host lo&lt;BR /&gt;valid_lft forever preferred_lft forever&lt;BR /&gt;2: eth0: &amp;lt;BROADCAST,MULTICAST,UP,LOWER_UP&amp;gt; mtu 1500 qdisc mq state UP group default qlen 1000&lt;BR /&gt;link/ether 00:80:0f:2a:25:ac brd ff:ff:ff:ff:ff:ff&lt;BR /&gt;inet 169.254.65.225/16 brd 169.254.255.255 scope link eth0&lt;BR /&gt;valid_lft forever preferred_lft forever&lt;BR /&gt;inet 192.168.1.38/24 brd 192.168.1.255 scope global eth0:dhcp&lt;BR /&gt;valid_lft forever preferred_lft forever&lt;/P&gt;&lt;P&gt;Best Regards, and happy new year!&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jan 2022 10:40:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Ethernet-Napi-Tx-Rx-processing-on-iMX8mp-kthread-starved-for/m-p/1394771#M185439</guid>
      <dc:creator>etienne_lorrain</dc:creator>
      <dc:date>2022-01-05T10:40:43Z</dc:date>
    </item>
    <item>
      <title>Re: Ethernet Napi Tx/Rx processing on iMX8mp (kthread starved for 4990 jiffies)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Ethernet-Napi-Tx-Rx-processing-on-iMX8mp-kthread-starved-for/m-p/1400970#M185961</link>
      <description>&lt;P&gt;Any news about reproducing the problem? Do it only affect me?&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jan 2022 13:45:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Ethernet-Napi-Tx-Rx-processing-on-iMX8mp-kthread-starved-for/m-p/1400970#M185961</guid>
      <dc:creator>etienne_lorrain</dc:creator>
      <dc:date>2022-01-18T13:45:34Z</dc:date>
    </item>
    <item>
      <title>Re: Ethernet Napi Tx/Rx processing on iMX8mp (kthread starved for 4990 jiffies)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Ethernet-Napi-Tx-Rx-processing-on-iMX8mp-kthread-starved-for/m-p/1415907#M187187</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I had a similar problem,but it is cpu stall.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/t5/T-Series/MPC85XX-T2080-E6500-RCU-detect-CPU-X-STALL/m-p/1414239#M4373" target="_blank"&gt;MPC85XX T2080 E6500 RCU检测CPU X卡顿 - 恩智浦社区 (nxp.com)&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Feb 2022 09:28:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Ethernet-Napi-Tx-Rx-processing-on-iMX8mp-kthread-starved-for/m-p/1415907#M187187</guid>
      <dc:creator>jobs</dc:creator>
      <dc:date>2022-02-18T09:28:49Z</dc:date>
    </item>
  </channel>
</rss>

